mermaid/dist/mermaid.slim.min.js

10 lines
331 KiB
JavaScript
Raw Normal View History

!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.mermaid=t()}}(function(){var define,module,exports;return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=r[o]={exports:{}};e[o][0].call(c.exports,function(t){var r=e[o][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e){e.exports={graphlib:t("./lib/graphlib"),dagre:t("./lib/dagre"),intersect:t("./lib/intersect"),render:t("./lib/render"),util:t("./lib/util"),version:t("./lib/version")}},{"./lib/dagre":8,"./lib/graphlib":9,"./lib/intersect":10,"./lib/render":25,"./lib/util":27,"./lib/version":28}],2:[function(t,e){function r(t,e,r,n){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,r[n+"Style"])}function n(t,e,r,n){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,r[n+"Style"])}function i(t,e,r,n){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,r[n+"Style"])}var a=t("./util");e.exports={"default":r,normal:r,vee:n,undirected:i}},{"./util":27}],3:[function(t,e){function r(t,e){var r=e.nodes().filter(function(t){return n.isSubgraph(e,t)}),a=t.selectAll("g.cluster").data(r,function(t){return t});return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",function(t){var r=e.node(t);return r.id}).style("opacity",0),n.applyTransition(a,e).style("opacity",1),a.each(function(t){var r=e.node(t),n=d3.select(this);d3.select(this).append("rect");var a=n.append("g").attr("class","label");i(a,r,r.clusterLabelPos)}),a.selectAll("rect").each(function(t){var r=e.node(t),i=d3.select(this);n.applyStyle(i,r.style)}),n.applyTransition(a.exit(),e).style("opacity",0).remove(),a}var n=t("./util"),i=t("./label/add-label");e.exports=r},{"./label/add-label":18,"./util":27}],4:[function(t,e){"use strict";function r(t,e){var r=t.selectAll("g.edgeLabel").data(e.edges(),function(t){return a.edgeToId(t)}).classed("update",!0);return r.selectAll("*").remove(),r.enter().append("g").classed("edgeLabel",!0).style("opacity",0),r.each(function(t){var r=e.edge(t),a=i(o.select(this),e.edge(t),0,0).classed("label",!0),s=a.node().getBBox();r.labelId&&a.attr("id",r.labelId),n.has(r,"width")||(r.width=s.width),n.has(r,"height")||(r.height=s.height)}),a.applyTransition(r.exit(),e).style("opacity",0).remove(),r}var n=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");e.exports=r},{"./d3":7,"./label/add-label":18,"./lodash":21,"./util":27}],5:[function(t,e){"use strict";function r(t,e,r){var i=t.selectAll("g.edgePath").data(e.edges(),function(t){return l.edgeToId(t)}).classed("update",!0);return o(i,e),s(i,e),l.applyTransition(i,e).style("opacity",1),i.each(function(t){var r=h.select(this),n=e.edge(t);n.elem=this,n.id&&r.attr("id",n.id),l.applyClass(r,n["class"],(r.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(t){var r=e.edge(t);r.arrowheadId=u.uniqueId("arrowhead");var i=h.select(this).attr("marker-end",
})})}var o=t("../lodash"),s=t("./init-order"),u=t("./cross-count"),c=t("./sort-subgraph"),l=t("./build-layer-graph"),h=t("./add-subgraph-constraints"),d=t("../graphlib").Graph,f=t("../util");e.exports=r},{"../graphlib":35,"../lodash":38,"../util":57,"./add-subgraph-constraints":41,"./build-layer-graph":43,"./cross-count":44,"./init-order":46,"./sort-subgraph":48}],46:[function(t,e){"use strict";function r(t){function e(i){if(!n.has(r,i)){r[i]=!0;var a=t.node(i);o[a.rank].push(i),n.each(t.successors(i),e)}}var r={},i=n.filter(t.nodes(),function(e){return!t.children(e).length}),a=n.max(n.map(i,function(e){return t.node(e).rank})),o=n.map(n.range(a+1),function(){return[]}),s=n.sortBy(i,function(e){return t.node(e).rank});return n.each(s,e),o}var n=t("../lodash");e.exports=r},{"../lodash":38}],47:[function(t,e){"use strict";function r(t,e){var r={};a.each(t,function(t,e){var n=r[t.v]={indegree:0,"in":[],out:[],vs:[t.v],i:e};a.isUndefined(t.barycenter)||(n.barycenter=t.barycenter,n.weight=t.weight)}),a.each(e.edges(),function(t){var e=r[t.v],n=r[t.w];a.isUndefined(e)||a.isUndefined(n)||(n.indegree++,e.out.push(r[t.w]))});var i=a.filter(r,function(t){return!t.indegree});return n(i)}function n(t){function e(t){return function(e){e.merged||(a.isUndefined(e.barycenter)||a.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&i(t,e)}}function r(e){return function(r){r["in"].push(e),0===--r.indegree&&t.push(r)}}for(var n=[];t.length;){var o=t.pop();n.push(o),a.each(o["in"].reverse(),e(o)),a.each(o.out,r(o))}return a.chain(n).filter(function(t){return!t.merged}).map(function(t){return a.pick(t,["vs","i","barycenter","weight"])}).value()}function i(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}var a=t("../lodash");e.exports=r},{"../lodash":38}],48:[function(t,e){function r(t,e,c,l){var h=t.children(e),d=t.node(e),f=d?d.borderLeft:void 0,p=d?d.borderRight:void 0,g={};f&&(h=a.filter(h,function(t){return t!==f&&t!==p}));var y=o(t,h);a.each(y,function(e){if(t.children(e.v).length){var n=r(t,e.v,c,l);g[e.v]=n,a.has(n,"barycenter")&&i(e,n)}});var m=s(y,c);n(m,g);var v=u(m,l);if(f&&(v.vs=a.flatten([f,v.vs,p],!0),t.predecessors(f).length)){var b=t.node(t.predecessors(f)[0]),_=t.node(t.predecessors(p)[0]);a.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+b.order+_.order)/(v.weight+2),v.weight+=2}return v}function n(t,e){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}function i(t,e){a.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var a=t("../lodash"),o=t("./barycenter"),s=t("./resolve-conflicts"),u=t("./sort");e.exports=r},{"../lodash":38,"./barycenter":42,"./resolve-conflicts":47,"./sort":49}],49:[function(t,e){function r(t,e){var r=o.partition(t,function(t){return a.has(t,"barycenter")}),s=r.lhs,u=a.sortBy(r.rhs,function(t){return-t.i}),c=[],l=0,h=0,d=0;s.sort(i(!!e)),d=n(c,u,d),a.each(s,function(t){d+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,d=n(c,u,d)});var f={vs:a.flatten(c,!0)};return h&&(f.barycenter=l/h,f.weight=h),f}function n(t,e,r){for(var n;e.length&&(n=a.last(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function i(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}var a=t("../lodash"),o=t("../util");e.exports=r},{"../lodash":38,"../util":57}],50:[function(t,e){function r(t){var e=i(t);a.each(t.graph().dummyChains,function(r){for(var i=t.node(r),a=i.edgeObj,o=n(t,e,a.v,a.w),s=o.path,u=o.lca,c=0,l=s[c],h=!0;r!==a.w;){if(i=t.node(r),h){for(;(l=s[c])!==u&&t.node(l).maxRank<i.rank;)c++;l===u&&(h=!1)}if(!h){for(;c<s.length-1&&t.node(l=s[c+1]).minRank<=i.rank;)c++;l=s[c]}t.setParent(r,l),r=t.successors(r)[0]}})}function n(t,e,r,n){var i,a,o=[],s=[],u=Math.min(e[r].low,e[n].low),c=Math.max(e[r].lim,e[n].lim);i=
for(this.data={hash:ms(null),set:new hs};e--;)this.push(t[e])}function Xe(t,e){var r=t.data,n="string"==typeof e||Ia(e)?r.set.has(e):r.hash[e];return n?0:-1}function Je(t){var e=this.data;"string"==typeof t||Ia(t)?e.set.add(t):e.hash[t]=!0}function Qe(t,e){for(var r=-1,n=t.length,i=-1,a=e.length,o=Uo(n+a);++r<n;)o[r]=t[r];for(;++i<a;)o[r++]=e[i];return o}function tr(t,e){var r=-1,n=t.length;for(e||(e=Uo(n));++r<n;)e[r]=t[r];return e}function er(t,e){for(var r=-1,n=t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function ir(t,e){for(var r=t.length;r--&&e(t[r],r,t)!==!1;);return t}function ar(t,e){for(var r=-1,n=t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function or(t,e,r,n){for(var i=-1,a=t.length,o=n,s=o;++i<a;){var u=t[i],c=+e(u);r(c,o)&&(o=c,s=u)}return s}function sr(t,e){for(var r=-1,n=t.length,i=-1,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[++i]=o)}return a}function ur(t,e){for(var r=-1,n=t.length,i=Uo(n);++r<n;)i[r]=e(t[r],r,t);return i}function cr(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function lr(t,e,r,n){var i=-1,a=t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}function hr(t,e,r,n){var i=t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function dr(t,e){for(var r=-1,n=t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function fr(t,e){for(var r=t.length,n=0;r--;)n+=+e(t[r])||0;return n}function pr(t,e){return t===E?e:t}function gr(t,e,r,n){return t!==E&&es.call(n,r)?t:e}function yr(t,e,r){for(var n=-1,i=Yu(e),a=i.length;++n<a;){var o=i[n],s=t[o],u=r(s,e[o],o,t,e);(u===u?u===s:s!==s)&&(s!==E||o in t)||(t[o]=u)}return t}function mr(t,e){return null==e?t:br(e,Yu(e),t)}function vr(t,e){for(var r=-1,n=null==t,i=!n&&Xn(t),a=i?t.length:0,o=e.length,s=Uo(o);++r<o;){var u=e[r];s[r]=i?Jn(u,a)?t[u]:E:n?E:t[u]}return s}function br(t,e,r){r||(r={});for(var n=-1,i=e.length;++n<i;){var a=e[n];r[a]=t[a]}return r}function _r(t,e,r){var n=typeof t;return"function"==n?e===E?t:on(t,e,r):null==t?To:"object"==n?qr(t):e===E?Io(t):Yr(t,e)}function wr(t,e,r,n,i,a,o){var s;if(r&&(s=i?r(t,n,i):r(t)),s!==E)return s;if(!Ia(t))return t;var u=Su(t);if(u){if(s=Wn(t),!e)return tr(t,s)}else{var c=ns.call(t),l=c==K;if(c!=Q&&c!=$&&(!l||i))return Ve[c]?Zn(t,c,e):i?t:{};if(s=zn(l?{}:t),!e)return mr(s,t)}a||(a=[]),o||(o=[]);for(var h=a.length;h--;)if(a[h]==t)return o[h];return a.push(t),o.push(s),(u?er:Br)(t,function(n,i){s[i]=wr(n,e,r,i,t,a,o)}),s}function xr(t,e,r){if("function"!=typeof t)throw new Ko(V);return ds(function(){t.apply(E,r)},e)}function Ar(t,e){var r=t?t.length:0,n=[];if(!r)return n;var i=-1,o=Vn(),s=o==a,u=s&&e.length>=Y?gn(e):null,c=e.length;u&&(o=Xe,s=!1,e=u);t:for(;++i<r;){var l=t[i];if(s&&l===l){for(var h=c;h--;)if(e[h]===l)continue t;n.push(l)}else o(e,l,0)<0&&n.push(l)}return n}function kr(t,e){var r=!0;return Ms(t,function(t,n,i){return r=!!e(t,n,i)}),r}function Er(t,e,r,n){var i=n,a=i;return Ms(t,function(t,o,s){var u=+e(t,o,s);(r(u,i)||u===n&&u===a)&&(i=u,a=t)}),a}function Dr(t,e,r,n){var i=t.length;for(r=null==r?0:+r||0,0>r&&(r=-r>i?0:i+r),n=n===E||n>i?i:+n||0,0>n&&(n+=i),i=r>n?0:n>>>0,r>>>=0;i>r;)t[r++]=e;return t}function Cr(t,e){var r=[];return Ms(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}function Tr(t,e,r,n){var i;return r(t,function(t,r,a){return e(t,r,a)?(i=n?r:t,!1):void 0}),i}function Sr(t,e,r,n){n||(n=[]);for(var i=-1,a=t.length;++i<a;){var o=t[i];m(o)&&Xn(o)&&(r||Su(o)||Ea(o))?e?Sr(o,e,r,n):cr(n,o):r||(n[n.length]=o)}return n}function Fr(t,e){return Ps(t,e,to)}function Br(t,e){return Ps(t,e,Yu)}function Lr(t,e){return qs(t,e,Yu)}function Or(t,e){for(var r=-1,n=e.length,i=-1,a=[];++r<n;){var o=e[r];Oa(t[o])&&(a[++i]=o)}return a}function Ir(t,e,r){if(null!=t){r!==E&&r in hi(t)&&(e=[r]);for(var n=0,i=e.length;null!=t&&i>n;)t=t[e[n++]];return n&&n==i?t:E}}function Nr(t,e,r,n,i,a){return t===e?!0:null==t||null==e||!Ia(t)&&!m(e)?t!==t&&e!==e:Mr(t,e,Nr,r,n,i,a)}function Mr(t,e,r,n,i,a,o){var s=Su(t),u=Su(e),c=H,l=H;s||(c=ns.call(t),c==$?c=Q:c!=Q&&(s=Va(t))),u||(l=ns.call(e),l==$?l=Q:l!=Q&&(u=Va(e)));var h=c==Q,d=l==Q,f=c==l;if(f&&!s&&!h)return qn(t,e,c);if(!i){var p=h&&es.
if(o||r){var n=t(this.__wrapped__),i=n.__actions__=tr(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),n.__chain__=r,n}return e.apply(t,cr([this.value()],arguments))}}(h))}return t}function Lo(){return rr._=is,this}function Oo(){}function Io(t){return ti(t)?Vr(t):Gr(t)}function No(t){return function(e){return Ir(t,di(e),e+"")}}function Mo(t,e,r){r&&Qn(t,e,r)&&(e=r=E),t=+t||0,r=null==r?1:+r||0,null==e?(e=t,t=0):e=+e||0;for(var n=-1,i=xs(ys((e-t)/(r||1)),0),a=Uo(i);++n<i;)a[n]=t,t+=r;return a}function Ro(t,e,r){if(t=vs(t),1>t||!_s(t))return[];var n=-1,i=Uo(As(t,Ss));for(e=on(e,r,1);++n<t;)Ss>n?i[n]=e(n):e(n);return i}function Po(t){var e=++rs;return s(t)+e}function qo(t,e){return(+t||0)+(+e||0)}function Yo(t,e,r){return r&&Qn(t,e,r)&&(e=E),e=Un(e,r,3),1==e.length?fr(Su(t)?t:li(t),e):Jr(t,e)}t=t?nr.defaults(rr.Object(),t,nr.pick(rr,Ye)):rr;{var Uo=t.Array,jo=t.Date,Vo=t.Error,Go=t.Function,$o=t.Math,Ho=t.Number,Wo=t.Object,zo=t.RegExp,Zo=t.String,Ko=t.TypeError,Xo=Uo.prototype,Jo=Wo.prototype,Qo=Zo.prototype,ts=Go.prototype.toString,es=Jo.hasOwnProperty,rs=0,ns=Jo.toString,is=rr._,as=zo("^"+ts.call(es).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),os=t.ArrayBuffer,ss=t.clearTimeout,us=t.parseFloat,cs=$o.pow,ls=Jo.propertyIsEnumerable,hs=$n(t,"Set"),ds=t.setTimeout,fs=Xo.splice,ps=t.Uint8Array,gs=$n(t,"WeakMap"),ys=$o.ceil,ms=$n(Wo,"create"),vs=$o.floor,bs=$n(Uo,"isArray"),_s=t.isFinite,ws=$n(Wo,"keys"),xs=$o.max,As=$o.min,ks=$n(jo,"now"),Es=t.parseInt,Ds=$o.random,Cs=Ho.NEGATIVE_INFINITY,Ts=Ho.POSITIVE_INFINITY,Ss=4294967295,Fs=Ss-1,Bs=Ss>>>1,Ls=9007199254740991,Os=gs&&new gs,Is={};e.support={}}e.templateSettings={escape:we,evaluate:xe,interpolate:Ae,variable:"",imports:{_:e}};var Ns=function(){function t(){}return function(e){if(Ia(e)){t.prototype=e;var r=new t;t.prototype=E}return r||{}}}(),Ms=dn(Br),Rs=dn(Lr,!0),Ps=fn(),qs=fn(!0),Ys=Os?function(t,e){return Os.set(t,e),t}:To,Us=Os?function(t){return Os.get(t)}:Oo,js=Vr("length"),Vs=function(){var t=0,e=0;return function(r,n){var i=gu(),a=q-(i-e);if(e=i,a>0){if(++t>=P)return r}else t=0;return Ys(r,n)}}(),Gs=ma(function(t,e){return m(t)&&Xn(t)?Ar(t,Sr(e,!1,!0)):[]}),$s=xn(),Hs=xn(!0),Ws=ma(function(t){for(var e=t.length,r=e,n=Uo(h),i=Vn(),o=i==a,s=[];r--;){var u=t[r]=Xn(u=t[r])?u:[];n[r]=o&&u.length>=120?gn(r&&u):null}var c=t[0],l=-1,h=c?c.length:0,d=n[0];t:for(;++l<h;)if(u=c[l],(d?Xe(d,u):i(s,u,0))<0){for(var r=e;--r;){var f=n[r];if((f?Xe(f,u):i(t[r],u,0))<0)continue t}d&&d.push(u),s.push(u)}return s}),zs=ma(function(t,e){e=Sr(e);var r=vr(t,e);return $r(t,e.sort(n)),r}),Zs=Mn(),Ks=Mn(!0),Xs=ma(function(t){return Qr(Sr(t,!1,!0))}),Js=ma(function(t,e){return Xn(t)?Ar(t,e):[]}),Qs=ma(Ri),tu=ma(function(t){var e=t.length,r=e>2?t[e-2]:E,n=e>1?t[e-1]:E;return e>2&&"function"==typeof r?e-=2:(r=e>1&&"function"==typeof n?(--e,n):E,n=E),t.length=e,Pi(t,r,n)}),eu=ma(function(t){return t=Sr(t),this.thru(function(e){return Qe(Su(e)?e:[hi(e)],t)})}),ru=ma(function(t,e){return vr(t,Sr(e))}),nu=ln(function(t,e,r){es.call(t,r)?++t[r]:t[r]=1}),iu=wn(Ms),au=wn(Rs,!0),ou=En(er,Ms),su=En(ir,Rs),uu=ln(function(t,e,r){es.call(t,r)?t[r].push(e):t[r]=[e]}),cu=ln(function(t,e,r){t[r]=e}),lu=ma(function(t,e,r){var n=-1,i="function"==typeof e,a=ti(e),o=Xn(t)?Uo(t.length):[];return Ms(t,function(t){var s=i?e:a&&null!=t?t[e]:E;o[++n]=s?s.apply(t,r):Kn(t,e,r)}),o}),hu=ln(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]}),du=Bn(lr,Ms),fu=Bn(hr,Rs),pu=ma(function(t,e){if(null==t)return[];var r=e[2];return r&&Qn(e[0],e[1],r)&&(e.length=1),Xr(t,Sr(e),[])}),gu=ks||function(){return(new jo).getTime()},yu=ma(function(t,e,r){var n=C;if(r.length){var i=b(r,yu.placeholder);n|=L}return Rn(t,n,e,r,i)}),mu=ma(function(t,e){e=e.length?Sr(e):Ka(t);for(var r=-1,n=e.length;++r<n;){var i=e[r];t[i]=Rn(t[i],C,t)}return t}),vu=ma(function(t,e,r){var n=C|T;if(r.length){var i=b(r,vu.placeholder);n|=L}return Rn(e,n,t,r,i)}),bu=vn(F),_u=vn(B),wu=ma(function(t,e){return xr(t,1,e)}),xu=ma(function(t,e,r){return xr(t,e,r)}),Au=kn(),
},E=function(t,e){for(var r=-1,n=t.length;++r<n;)if(t[r]==e)return!0;return!1},D=function(t,e){if(!t)return e;var r,n={};for(r in e)n[r]=k(t,r)?t[r]:e[r];return n},C=function(t,e){var r="";return t>=55296&&57343>=t||t>1114111?(e&&S("character reference outside the permissible Unicode range"),"<22>"):k(b,t)?(e&&S("disallowed character reference"),b[t]):(e&&E(_,t)&&S("disallowed character reference"),t>65535&&(t-=65536,r+=w(t>>>10&1023|55296),t=56320|1023&t),r+=w(t))},T=function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"},S=function(t){throw Error("Parse error: "+t)},F=function(t,e){e=D(e,F.options);var r=e.strict;r&&g.test(t)&&S("forbidden code point");var n=e.encodeEverything,i=e.useNamedReferences,a=e.allowUnsafeSymbols;return n?(t=t.replace(u,function(t){return i&&k(h,t)?"&"+h[t]+";":T(t)}),i&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),i&&(t=t.replace(l,function(t){return"&"+h[t]+";"}))):i?(a||(t=t.replace(d,function(t){return"&"+h[t]+";"})),t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),t=t.replace(l,function(t){return"&"+h[t]+";"})):a||(t=t.replace(d,T)),t.replace(s,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=1024*(e-55296)+r-56320+65536;return"&#x"+n.toString(16).toUpperCase()+";"}).replace(c,T)};F.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1};var B=function(t,e){e=D(e,B.options);var r=e.strict;return r&&p.test(t)&&S("malformed character reference"),t.replace(y,function(t,n,i,a,o,s,u,c){var l,h,d,f,p;return n?(l=n,h=i,r&&!h&&S("character reference was not terminated by a semicolon"),C(l,r)):a?(d=a,h=o,r&&!h&&S("character reference was not terminated by a semicolon"),l=parseInt(d,16),C(l,r)):s?(f=s,k(m,f)?m[f]:(r&&S("named character reference was not terminated by a semicolon"),t)):(f=u,p=c,p&&e.isAttributeValue?(r&&"="==p&&S("`&` did not start a character reference"),t):(r&&S("named character reference was not terminated by a semicolon"),v[f]+(p||"")))})};B.options={isAttributeValue:!1,strict:!1};var L=function(t){return t.replace(d,function(t){return f[t]})},O={version:"0.5.0",encode:F,decode:B,escape:L,unescape:B};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return O});else if(i&&!i.nodeType)if(a)a.exports=O;else for(var I in O)k(O,I)&&(i[I]=O[I]);else n.he=O}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],84:[function(t,e,r){!function(t,n){"object"==typeof r&&"undefined"!=typeof e?e.exports=n():"function"==typeof define&&define.amd?define(n):t.moment=n()}(this,function(){"use strict";function r(){return Mn.apply(null,arguments)}function n(t){Mn=t}function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function o(t,e){var r,n=[];for(r=0;r<t.length;++r)n.push(e(t[r],r));return n}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var r in e)s(e,r)&&(t[r]=e[r]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,r,n){return Fe(t,e,r,n,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function h(t){return null==t._pf&&(t._pf=l()),t._pf}function d(t){if(null==t._isValid){var e=h(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function f(t){var e=c(0/0);return null!=t?u(h(e),t):h(e).userInvalidated=!0,e}function p(t,e){var r,n,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._str
null!=n?e.d=n:h(r).invalidWeekday=t}),$(["d","e","E"],function(t,e,r,n){e[n]=v(t)});var Oi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ni="Su_Mo_Tu_We_Th_Fr_Sa".split("_");N("H",["HH",2],0,"hour"),N("h",["hh",2],0,function(){return this.hours()%12||12}),Hr("a",!0),Hr("A",!1),C("hour","h"),U("a",Wr),U("A",Wr),U("H",Xn),U("h",Xn),U("HH",Xn,Wn),U("hh",Xn,Wn),G(["H","HH"],hi),G(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t}),G(["h","hh"],function(t,e,r){e[hi]=v(t),h(r).bigHour=!0});var Mi=/[ap]\.?m?\.?/i,Ri=F("Hours",!0);N("m",["mm",2],0,"minute"),C("minute","m"),U("m",Xn),U("mm",Xn,Wn),G(["m","mm"],di);var Pi=F("Minutes",!1);N("s",["ss",2],0,"second"),C("second","s"),U("s",Xn),U("ss",Xn,Wn),G(["s","ss"],fi);var qi=F("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),U("S",Jn,Hn),U("SS",Jn,Wn),U("SSS",Jn,zn);var Yi;for(Yi="SSSS";Yi.length<=9;Yi+="S")U(Yi,ei);for(Yi="S";Yi.length<=9;Yi+="S")G(Yi,Kr);var Ui=F("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var ji=g.prototype;ji.add=Si,ji.calendar=ir,ji.clone=ar,ji.diff=lr,ji.endOf=xr,ji.format=pr,ji.from=gr,ji.fromNow=yr,ji.to=mr,ji.toNow=vr,ji.get=O,ji.invalidAt=Fr,ji.isAfter=or,ji.isBefore=sr,ji.isBetween=ur,ji.isSame=cr,ji.isValid=Tr,ji.lang=Bi,ji.locale=br,ji.localeData=_r,ji.max=Ei,ji.min=ki,ji.parsingFlags=Sr,ji.set=O,ji.startOf=wr,ji.subtract=Fi,ji.toArray=Dr,ji.toObject=Cr,ji.toDate=Er,ji.toISOString=fr,ji.toJSON=fr,ji.toString=dr,ji.unix=kr,ji.valueOf=Ar,ji.year=xi,ji.isLeapYear=le,ji.weekYear=Or,ji.isoWeekYear=Ir,ji.quarter=ji.quarters=Rr,ji.month=J,ji.daysInMonth=Q,ji.week=ji.weeks=ge,ji.isoWeek=ji.isoWeeks=ye,ji.weeksInYear=Mr,ji.isoWeeksInYear=Nr,ji.date=Li,ji.day=ji.days=Vr,ji.weekday=Gr,ji.isoWeekday=$r,ji.dayOfYear=ve,ji.hour=ji.hours=Ri,ji.minute=ji.minutes=Pi,ji.second=ji.seconds=qi,ji.millisecond=ji.milliseconds=Ui,ji.utcOffset=Ue,ji.utc=Ve,ji.local=Ge,ji.parseZone=$e,ji.hasAlignedHourOffset=He,ji.isDST=We,ji.isDSTShifted=ze,ji.isLocal=Ze,ji.isUtcOffset=Ke,ji.isUtc=Xe,ji.isUTC=Xe,ji.zoneAbbr=Xr,ji.zoneName=Jr,ji.dates=re("dates accessor is deprecated. Use date instead.",Li),ji.months=re("months accessor is deprecated. Use month instead",J),ji.years=re("years accessor is deprecated. Use year instead",xi),ji.zone=re("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",je);var Vi=ji,Gi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},$i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Hi="Invalid date",Wi="%d",zi=/\d{1,2}/,Zi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ki=_.prototype;Ki._calendar=Gi,Ki.calendar=en,Ki._longDateFormat=$i,Ki.longDateFormat=rn,Ki._invalidDate=Hi,Ki.invalidDate=nn,Ki._ordinal=Wi,Ki.ordinal=an,Ki._ordinalParse=zi,Ki.preparse=on,Ki.postformat=on,Ki._relativeTime=Zi,Ki.relativeTime=sn,Ki.pastFuture=un,Ki.set=cn,Ki.months=z,Ki._months=gi,Ki.monthsShort=Z,Ki._monthsShort=yi,Ki.monthsParse=K,Ki.week=de,Ki._week=Ai,Ki.firstDayOfYear=pe,Ki.firstDayOfWeek=fe,Ki.weekdays=qr,Ki._weekdays=Oi,Ki.weekdaysMin=Ur,Ki._weekdaysMin=Ni,Ki.weekdaysShort=Yr,Ki._weekdaysShort=Ii,Ki.weekdaysParse=jr,Ki.isPM=zr,Ki._meridiemParse=Mi,Ki.meridiem=Zr,k("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:fu
switch(i){case 1:this.$=a[o-1];break;case 2:this.$=a[o-4];break;case 3:this.$=a[o-5];break;case 4:this.$=a[o-3];break;case 8:case 10:case 11:this.$=a[o];break;case 9:this.$=a[o-1]+""+a[o];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[o];break;case 17:this.$="<br>";break;case 39:this.$="oy";break;case 40:n.addLink(a[o-1],a[o].id,a[o].op),this.$="oy";break;case 42:n.addLink(a[o-1],a[o].id,a[o].op),this.$={op:a[o-2],id:a[o-1]};break;case 44:this.$={op:a[o-1],id:a[o]};break;case 48:n.addVertex(a[o-1]),this.$=a[o-1];break;case 49:n.addVertex(a[o]),this.$=a[o];break;case 66:this.$="arrow";break;case 67:this.$="arrow_open"}},table:[{3:1,4:2,6:3,11:[1,4],12:r,13:n},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p},{6:23,12:r,13:n},e(g,[2,5]),e(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p}),e(w,[2,8]),e(w,[2,10]),e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),e(w,[2,14]),e(w,[2,15]),e(w,[2,16]),e(w,[2,17]),e(w,[2,18]),e(w,[2,19]),e(w,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,41]},{10:[2,21],28:[1,42]},e(x,[2,23]),e(x,[2,24]),e(x,[2,25]),e(A,k,{44:44,32:[1,43],45:E}),e(x,[2,27],{41:46,43:47,57:D,58:C}),e(x,[2,47],{43:47,34:50,41:51,37:T,57:D,58:C}),{34:53,37:T},{34:54,37:T},{34:55,37:T},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e(w,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{7:62,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p},e(A,[2,48]),e(A,S,{14:10,15:11,7:63,46:64,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,48:F,49:B,50:L,51:O,52:I,53:N,54:M,55:R,56:P}),e(x,[2,41],{34:74,37:T}),{7:77,8:y,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,33:76,42:75,47:_},e(q,[2,66]),e(q,[2,67]),e(x,[2,46]),e(x,[2,40],{34:78,37:T}),{7:81,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,38:79,39:[1,80]},e(x,[2,28]),e(x,[2,29]),e(x,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{5:[2,2]},{10:[2,22]},e(x,[2,26]),e(A,[2,51],{45:[1,86]}),e(A,[2,52]),e(A,[2,56]),e(A,[2,57]),e(A,[2,58]),e(A,[2,59]),e(A,[2,60]),e(A,[2,61]),e(A,[2,62]),e(A,[2,63]),e(A,[2,64]),e(x,[2,38]),e(Y,[2,44],{43:47,41:87,57:D,58:C}),e(Y,[2,45],{43:47,41:88,57:D,58:C}),e(A,k,{44:44,45:E}),e(x,[2,39]),{39:[1,89]},e(x,[2,34],{34:90,37:T}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,93]},e(A,[2,55]),{10:[1,94]},e(A,S,{46:95,48:F,49:B,50:L,51:O,52:I,53:N,54:M,55:R,56:P}),e(Y,[2,42]),e(Y,[2,43]),e(x,[2,33],{34:96,37:T}),e(x,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p},{10:[1,98]},e(A,[2,54]),{5:[2,3]},e(A,[2,50]),e(x,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},e(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:o,19:s,20:u,21:c,22:l,23:h,24:d,25:f,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){func
this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||d,"number"!=typeof t&&(t=r.symbols_[t]||t),t}var r=this,n=[0],i=[null],a=[],o=this.table,s="",u=0,c=0,l=0,h=2,d=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,w,x,A,k,E,D,C,T={};;){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:((null===b||"undefined"==typeof b)&&(b=e()),x=o[w]&&o[w][b]),"undefined"==typeof x||!x.length||!x[0]){var S="";C=[];for(k in o[w])this.terminals_[k]&&k>h&&C.push("'"+this.terminals_[k]+"'");S=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(S,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:C})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),i.push(p.yytext),a.push(p.yylloc),n.push(x[1]),b=null,_?(b=_,_=null):(c=p.yyleng,s=p.yytext,u=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[x[1]][1],T.$=i[i.length-E],T._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(T._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(T,[s,c,u,g.yy,x[1],i,a].concat(f)),"undefined"!=typeof A)return A;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[x[1]][0]),i.push(T.$),a.push(T._$),D=o[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0}},Ee=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.l
switch(i){case 1:return n.apply(a[o-1]),a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:this.$=a[o-1];break;case 12:a[o-1].unshift({type:"loopStart",loopText:a[o-2].actor,signalType:n.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:n.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 13:a[o-1].unshift({type:"optStart",optText:a[o-2].actor,signalType:n.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:a[o-2].actor,signalType:n.LINETYPE.OPT_END}),this.$=a[o-1];break;case 14:a[o-4].unshift({type:"altStart",altText:a[o-5].actor,signalType:n.LINETYPE.ALT_START}),a[o-4].push({type:"else",altText:a[o-2].actor,signalType:n.LINETYPE.ALT_ELSE}),a[o-4]=a[o-4].concat(a[o-1]),a[o-4].push({type:"altEnd",signalType:n.LINETYPE.ALT_END}),this.$=a[o-4];break;case 15:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 19:this.$=a[o];break;case 20:this.$=[a[o-2],a[o]];break;case 21:this.$=n.PLACEMENT.LEFTOF;break;case 22:this.$=n.PLACEMENT.RIGHTOF;break;case 23:this.$=[a[o-3],a[o-1],{type:"addMessage",from:a[o-3].actor,to:a[o-1].actor,signalType:a[o-2],msg:a[o]}];break;case 26:this.$={type:"addActor",actor:a[o]};break;case 27:this.$=n.LINETYPE.SOLID_OPEN;break;case 28:this.$=n.LINETYPE.DOTTED_OPEN;break;case 29:this.$=n.LINETYPE.SOLID;break;case 30:this.$=n.LINETYPE.DOTTED;break;case 31:this.$=n.LINETYPE.SOLID_CROSS;break;case 32:this.$=n.LINETYPE.DOTTED_CROSS;break;case 33:this.$=a[o].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:[1,2]},{1:[3]},e(r,n,{5:3}),{6:[1,4],7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:s,17:u,19:c,20:l,22:h,33:d},e(r,f,{1:[2,1]}),e(p,[2,3]),{9:19,11:o,12:16,13:10,14:11,15:s,17:u,19:c,20:l,22:h,33:d},e(p,[2,5]),e(p,[2,6]),{12:20,33:d},{10:[1,21]},{10:[1,22]},{8:[1,23]},{12:24,33:d},{12:25,33:d},{12:26,33:d},{31:27,34:[1,28],35:[1,29],36:[1,30],37:[1,31],38:[1,32],39:[1,33]},{23:34,25:[1,35],29:[1,36],30:[1,37]},e([6,8,10,11,15,17,18,19,20,21,22,28,33,34,35,36,37,38,39,40],[2,26]),e(p,[2,4]),{10:[1,38]},e(p,[2,9]),e(p,[2,10]),{16:[1,39]},e(g,n,{5:40}),e(g,n,{5:41}),e([6,8,10,11,15,17,19,20,21,22,33],n,{5:42}),{12:43,33:d},{33:[2,27]},{33:[2,28]},{33:[2,29]},{33:[2,30]},{33:[2,31]},{33:[2,32]},{12:44,33:d},{8:y,26:45},{33:[2,21]},{33:[2,22]},e(p,[2,8]),{10:[1,47]},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:s,17:u,18:[1,48],19:c,20:l,22:h,33:d},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:s,17:u,18:[1,50],19:c,20:l,22:h,33:d},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:s,17:u,19:c,20:l,21:[1,51],22:h,33:d},{24:52,40:v},{24:54,40:v},{12:56,27:55,33:d},{8:y,26:57,33:[2,18]},e(p,[2,11]),e(p,[2,12]),e(p,f),e(p,[2,13]),{12:58,33:d},{10:[2,23]},{10:[2,33]},{10:[2,15]},{12:59,33:d},{28:[1,60],33:[2,19]},{33:[2,17]},e(g,n,{5:61}),{10:[2,16]},{12:62,33:d},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:s,17:u,18:[1,63],19:c,20:l,22:h,33:d},{33:[2,20]},e(p,[2,14])],defaultActions:{28:[2,27],29:[2,28],30:[2,29],31:[2,30],32:[2,31],33:[2,32],36:[2,21],37:[2,22],52:[2,23],53:[2,33],54:[2,15],57:[2,17],59:[2,16],62:[2,20]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||d,"number"!=typeof t&&(t=r.symbols_[t]||t),t}var r=this,n=[0],i=[null],a=[],o=this.table,s="",u=0,c=0,l=0,h=2,d=1,f=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,w,x,A,k,E,D,C,T={};;){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:((null===b||"undefined"==typeof b)&&(b=e()),x=o[w]&&o[w][b]),"undefined"==typeof x||!x.length||!x[0]){var S="";C=[];for(k in o[w])this.terminals_[k]&&k>h&&C.push("'"+this.terminals_[k
e.exports.detectType=function(t){return t.match(/^\s*sequenceDiagram/)?"sequenceDiagram":t.match(/^\s*sequence/)?"sequence":t.match(/^\s*digraph/)?"dotGraph":t.match(/^\s*info/)?"info":t.match(/^\s*gantt/)?"gantt":"graph"},e.exports.cloneCssStyles=function(t,e){for(var r="",n=document.styleSheets,i=0;i<n.length;i++)if("mermaid-svg-internal-css"!==n[i].title)try{var a=n[i].cssRules;if(null!==a)for(var o=0;o<a.length;o++){var s=a[o];if("undefined"!=typeof s.style){var u;u=t.querySelectorAll(s.selectorText),u.length>0&&(r+=s.selectorText+" { "+s.style.cssText+" }\n")}}}catch(c){"undefined"!=typeof console&&"undefined"!==console.warn&&"undefined"!==s&&console.warn('Invalid CSS selector "'+s.selectorText+'"',c)}var l="",h="";for(var d in e)e.hasOwnProperty(d)&&"undefined"!=typeof d&&("default"===d?(e.default.styles instanceof Array&&(l+="#"+t.id.trim()+" .node>rect { "+e[d].styles.join("; ")+"; }\n"),e.default.nodeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .node text { "+e[d].nodeLabelStyles.join("; ")+"; }\n"),e.default.edgeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .edgeLabel text { "+e[d].edgeLabelStyles.join("; ")+"; }\n"),e.default.clusterStyles instanceof Array&&(l+="#"+t.id.trim()+" .cluster rect { "+e[d].clusterStyles.join("; ")+"; }\n")):e[d].styles instanceof Array&&(h+="#"+t.id.trim()+" ."+d+">rect { "+e[d].styles.join("; ")+"; }\n"));if(""!==r||""!==l||""!==h){var f=document.createElement("style");f.setAttribute("type","text/css"),f.setAttribute("title","mermaid-svg-internal-css"),f.innerHTML="/* <![CDATA[ */\n",""!==l&&(f.innerHTML+=l),""!==r&&(f.innerHTML+=r),""!==h&&(f.innerHTML+=h),f.innerHTML+="/* ]]> */\n",t.insertBefore(f,t.firstChild)}}},{"./logger":103}]},{},[102])(102)});