PageSourceSearch

https://motioncanvas.io/assets/js/1545.892b609c.js

js motioncanvas.io collected 2026-10-04 00:26:37 UTC 876,854 bytes, 11 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10/*! For license information please see 1545.892b609c.js.LICENSE.txt */
11(self.webpackChunk_motion_canvas_docs=self.webpackChunk_motion_canvas_docs||[]).push([[1545],{2659:(t,e)=>{"use strict";e.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,a=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|&colon;)/gim,o=[".","/"];e.N=function(t){var e,l=(e=t||"",e.replace(i,(function(t,e){return String.fromCharCode(e)}))).replace(r,"").replace(a,"").trim();if(!l)return"about:blank";if(function(t){return o.indexOf(t[0])>-1}(l))return l;var c=l.match(s);if(!c)return l;var h=c[0];return n.test(h)?"about:blank":l}},876:(t,e,n)=>{"use strict";n.d(e,{Zo:()=>h,kt:()=>p});var i=n(2784);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var l=i.createContext({}),c=function(t){var e=i.useContext(l),n=e;return t&&(n="function"==typeof t?t(e):s(s({},e),t)),n},h=function(t){var e=c(t.components);return i.createElement(l.Provider,{value:e},t.children)},u="mdxType",d={inlineCode:"code",wrapper:function(t){var e=t.children;return i.createElement(i.Fragment,{},e)}},f=i.forwardRef((function(t,e){var n=t.components,r=t.mdxType,a=t.originalType,l=t.parentName,h=o(t,["components","mdxType","originalType","parentName"]),u=c(n),f=r,p=u["".concat(l,".").concat(f)]||u[f]||d[f]||a;return n?i.createElement(p,s(s({ref:e},h),{},{components:n})):i.createElement(p,s({ref:e},h))}));function p(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var a=n.length,s=new Array(a);s[0]=f;var o={};for(var l in e)hasOwnProperty.call(e,l)&&(o[l]=e[l]);o.originalType=t,o[u]="string"==typeof t?t:r,s[1]=o;for(var c=2;c<a;c++)s[c]=n[c];return i.createElement.apply(null,s)}return i.createElement.apply(null,n)}f.displayName="MDXCreateElement"},9979:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(2784),r=n(9741);function a(t){let{children:e,fallback:n}=t;return(0,r.Z)()?i.createElement(i.Fragment,null,null==e?void 0:e()):n??null}},9055:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(2784),r=n(6277),a=n(211),s=n(1077);const o="admonition_qNG0",l="admonitionHeading_l909",c="admonitionIcon_UNbs",h="admonitionContent_oUmQ";const u={note:{infimaClassName:"secondary",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.
1169H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:i.createElement(s.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:i.createElement(s.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:i.createElement(s.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:i.createElement(s.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 16 16"},i.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:i.createElement(s.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},d={secondary:"note",important:"info",success:"tip",warning:"danger"};function f(t){const{mdxAdmonitionTitle:e,rest:n}=function(t){const e=i.Children.toArray(t),n=e.find((t=>{var e;return i.isValidElement(t)&&"mdxAdmonitionTitle"===(null==(e=t.props)?void 0:e.mdxType)})),r=i.createElement(i.Fragment,null,e.filter((t=>t!==n)));return{mdxAdmonitionTitle:n,rest:r}}(t.children);return{...t,title:t.title??e,children:n}}function p(t){const{children:e,type:n,title:s,icon:p}=f(t),g=function(t){const e=d[t]??t,n=u[e];return n||(console.warn(`No admonition config found for admonition type "${e}". Using Info as fallback.`),u.info)}(n),y=s??g.label,{iconComponent:m}=g,b=p??i.createElement(m,null);return i.createElement("div",{className:(0,r.Z)(a.k.common.admonition,a.k.common.admonitionType(t.type),"alert",`alert--${g.infimaClassName}`,o)},i.createElement("div",{className:l},i.createElement("span",{className:c},b),y),i.createElement("div",{className:h},e))}},4983:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(2784),r=n(1077),a=n(211),s=n(4141);function o(t){let{editUrl:e}=t;return i.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener",className:a.k.common.editThisPage},i.createElement(s.Z,null),i.createElement(r.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}},3851:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(7896),r=n(2784),a=n(6277),s=n(1077),o=n(7683),l=n(9817);const c="anchorWithStickyNavbar_fF9Z",h="anchorWithHideOnScrollNavbar_Yh18";function u(t){let{as:e,id:n,...u}=t;const{navbar:{hideOnScroll:d}}=(0,o.L)();if("h1"===e||!n)return r.createElement(e,(0,i.Z)({},u,{id:void 0}));const f=(0,s.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}
11",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return r.createElement(e,(0,i.Z)({},u,{className:(0,a.Z)("anchor",d?h:c,u.className),id:n}),u.children,r.createElement(l.Z,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f},"\u200b"))}},1031:(t,e,n)=>{"use strict";n.d(e,{Z:()=>tL});var i=n(2784),r=n(876),a=n(7896),s=n(9854);var o=n(8128);var l=n(9817);var h=n(6277),u=n(9741),d=n(8698);const f="details_B4FW",p="isBrowser_Cof9",g="collapsibleContent_VYua";function y(t){return!!t&&("SUMMARY"===t.tagName||y(t.parentElement))}function m(t,e){return!!t&&(t===e||m(t.parentElement,e))}function b(t){let{summary:e,children:n,...r}=t;const s=(0,u.Z)(),o=(0,i.useRef)(null),{collapsed:l,setCollapsed:c}=(0,d.u)({initialState:!r.open}),[b,_]=(0,i.useState)(r.open);return i.createElement("details",(0,a.Z)({},r,{ref:o,open:b,"data-collapsed":l,className:(0,h.Z)(f,s&&p,r.className),onMouseDown:t=>{y(t.target)&&t.detail>1&&t.preventDefault()},onClick:t=>{t.stopPropagation();const e=t.target;y(e)&&m(e,o.current)&&(t.preventDefault(),l?(c(!1),_(!0)):c(!0))}}),e??i.createElement("summary",null,"Details"),i.createElement(d.z,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:t=>{c(t),_(!t)}},i.createElement("div",{className:g},n)))}const _="details_SZgV";function x(t){let{...e}=t;return i.createElement(b,(0,a.Z)({},e,{className:(0,h.Z)("alert alert--info",_,e.className)}))}var v=n(3851);function k(t){return i.createElement(v.Z,t)}const w="containsTaskList__YnT";const T="img__Ss2";var C=n(6047),E=n(9979),S=n(7683),A=n(361),D=n(8475),L=n(2659);function N(t,e){let n;if(void 0===e)for(const i of t)null!=i&&(n<i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function O(t,e){let n;if(void 0===e)for(const i of t)null!=i&&(n>i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function M(t){return t}var B=1e-6;function I(t){return"translate("+t+",0)"}function F(t){return"translate(0,"+t+")"}function R(t){return e=>+t(e)}function $(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function P(){return!this.__axis}function Y(t,e){var n=[],i=null,r=null,a=6,s=6,o=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,h=4===t||2===t?"x":"y",u=1===t||3===t?I:F;function d(d){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,p=null==r?e.tickFormat?e.tickFormat.apply(e,n):M:r,g=Math.max(a,0)+o,y=e.range(),m=+y[0]+l,b=+y[y.length-1]+l,_=(e.bandwidth?$:R)(e.copy(),l),x=d.selection?d.selection():d,v=x.selectAll(".domain").data([null]),k=x.selectAll(".tick").data(f,e).order(),w=k.exit(),T=k.enter().append("g").attr("class","tick"),C=k.select("line"),E=k.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(h+"2",c*a)),E=E.merge(T.append("text").attr("fill","currentColor").attr(h,c*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),d!==x&&(v=v.transition(d),k=k.transition(d),C=C.transition(d),E=E.transition(d),w=w.transition(d).attr("opacity",B).attr("transform",(function(t){return isFinite(t=_(t))?u(t+l):this.getAttribute("transform")})),T.attr("opacity",B).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:_(t))+l)}))),w.remove(),v.attr("d",4===t||2===t?s?"M"+c*s+","+m+"H"+l+"V"+b+"H"+c*s:"M"+l+","+m+"V"+b:s?"M"+m+","+c*s+"V"+l+"H"+b+"V"+c*s:"M"+m+","+l+"H"+b),k.attr("opacity",1).attr("transform",(function(t){return u(_(t)+l)})),C.attr(h+"2",c*a),E.attr(h,c*g).text(p),x.filter(P).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=_}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),d):i&&i.slice()},d.tickFormat=function(t){return arguments.length?(r=t,d):r},d.tickSize=function(t){return arguments.length?(a=s=+t,d):a},d.tickSizeInner=function(t){return arguments.length?(a=+t,d):a},d.tickSizeOuter=function(t){return arguments.length?(s=+t,d):s},d.tickPadding=function(t){return arguments.length?(o=+t,d):o},d.offset=function(t){return arguments.length?(l=+t,d):l},d}function j(){}function z(t){return null==t?j:function(){return this.querySelector(t)}}function U(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function W(){return[]}function H(t){return null==t?W:function(){return this.querySelectorAll(t)}}function q(t){return function(){return this.matches(t)}}function V(t){return function(e){return e.matches(t)}}var G=Array.prototype.find;function X(){return this.firstElementChild}var Z=Array.prototype.filter;function Q(){return Array.from(this.children)}function K(t){return new Array(t.length)}function J(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function tt(t){return function(){return t}}function et(t,e,n,i,r,a){for(var s,o=0,l=e.length,c=a.length;o<c;++o)(s=e[o])?(s.__data__=a[o],i[o]=s):n[o]=new J(t,a[o]);for(;o<l;++o)(s=e[o])&&(r[o]=s)}function nt(t,e,n,i,r,a,s){var o,l,c,h=new Map,u=e.length,d=a.length,f=new Array(u);for(o=0;o<u;++o)(l=e[o])&&(f[o]=c=s.call(l,l.__data__,o,e)+"",h.has(c)?r[o]=l:h.set(c,l));for(o=0;o<d;++o)c=s.call(t,a[o],o,a)+"",(l=h.get(c))?(i[o]=l,l.__data__=a[o],h.delete(c)):n[o]=new J(t,a[o]);for(o=0;o<u;++o)(l=e[o])&&h.get(f[o])===l&&(r[o]=l)}function it(t){return t.__data__}function rt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function at(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}J.prototype={constructor:J,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var st="http://www.w3.org/1999/xhtml";const ot={svg:"http://www.w3.org/2000/svg",xhtml:st,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ot.hasOwnProperty(e)?{space:ot[e],local:t}:t}function ct(t){return function(){this.removeAttribute(t)}}function ht(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ut(t,e){return function(){this.setAttribute(t,e)}}function dt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ft(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function pt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function gt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yt(t){return function(){this.style.removeProperty(t)}}function mt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function bt(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function _t(t,e){return t.style.getPropertyValue(e)||gt(t).getComputedStyle(t,null).getPropertyValue(e)}function xt(t){return function(){delete this[t]}}function vt(t,e){return function(){this[t]=e}}function kt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function wt(t){return t.trim().split(/^|\s+/)}function Tt(t){return t.classList||new Ct(t)}function Ct(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}function Et(t,e){for(var n=Tt(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function St(t,e){for(var n=Tt(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function At(t){return function(){Et(this,t)}}function Dt(t){return function(){St(this,t)}}function Lt(t,e){return function(){(e.apply(this,arguments)?Et:St)(this,t)}}function Nt(){this.textContent=""}function Ot(t){return function(){this.textContent=t}}function Mt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Bt(){this.innerHTML=""}function It(t){return function(){this.innerHTML=t}}function Ft(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Rt(){this.nextSibling&&this.parentNode.appendChild(this)}function $t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===st&&e.documentElement.namespaceURI===st?e.createElement(t):e.createElementNS(n,t)}}function Yt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function jt(t){var e=lt(t);return(e.local?Yt:Pt)(e)}function zt(){return null}function Ut(){var t=this.parentNode;t&&t.removeChild(this)}function Wt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ht(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function qt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Vt(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Gt(t,e,n){return function(){var i,r=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,o=r.length;s<o;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),void(i.value=e);this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Xt(t,e,n){var i=gt(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dis
vendor: 4,506 bytes, line 11
11patchEvent(r)}function Zt(t,e){return function(){return Xt(this,t,e)}}function Qt(t,e){return function(){return Xt(this,t,e.apply(this,arguments))}}Ct.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Kt=[null];function Jt(t,e){this._groups=t,this._parents=e}function te(){return new Jt([[document.documentElement]],Kt)}Jt.prototype=te.prototype={constructor:Jt,select:function(t){"function"!=typeof t&&(t=z(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s,o=e[r],l=o.length,c=i[r]=new Array(l),h=0;h<l;++h)(a=o[h])&&(s=t.call(a,a.__data__,h,o))&&("__data__"in a&&(s.__data__=a.__data__),c[h]=s);return new Jt(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return U(t.apply(this,arguments))}}(t):H(t);for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var s,o=e[a],l=o.length,c=0;c<l;++c)(s=o[c])&&(i.push(t.call(s,s.__data__,c,o)),r.push(s));return new Jt(i,r)},selectChild:function(t){return this.select(null==t?X:function(t){return function(){return G.call(this.children,t)}}("function"==typeof t?t:V(t)))},selectChildren:function(t){return this.selectAll(null==t?Q:function(t){return function(){return Z.call(this.children,t)}}("function"==typeof t?t:V(t)))},filter:function(t){"function"!=typeof t&&(t=q(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s=e[r],o=s.length,l=i[r]=[],c=0;c<o;++c)(a=s[c])&&t.call(a,a.__data__,c,s)&&l.push(a);return new Jt(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,it);var n=e?nt:et,i=this._parents,r=this._groups;"function"!=typeof t&&(t=tt(t));for(var a=r.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],u=r[c],d=u.length,f=rt(t.call(h,h&&h.__data__,c,i)),p=f.length,g=o[c]=new Array(p),y=s[c]=new Array(p),m=l[c]=new Array(d);n(h,u,g,y,m,f,e);for(var b,_,x=0,v=0;x<p;++x)if(b=g[x]){for(x>=v&&(v=x+1);!(_=y[v])&&++v<p;);b._next=_||null}}return(s=new Jt(s,i))._enter=o,s._exit=l,s},enter:function(){return new Jt(this._enter||this._groups.map(K),this._parents)},exit:function(){return new Jt(this._exit||this._groups.map(K),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,a=i.length,s=Math.min(r,a),o=new Array(r),l=0;l<s;++l)for(var c,h=n[l],u=i[l],d=h.length,f=o[l]=new Array(d),p=0;p<d;++p)(c=h[p]||u[p])&&(f[p]=c);for(;l<r;++l)o[l]=n[l];return new Jt(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,s=r[a];--a>=0;)(i=r[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=at);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var s,o=n[a],l=o.length,c=r[a]=new Array(l),h=0;h<l;++h)(s=o[h])&&(c[h]=s);c.sort(e)}return new Jt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var s=i[r];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],s=0,o=a.length;s<o;++s)(r=a[s])&&t.call(r,r.__data__,s,a);return this},attr:function(t,e){var n=lt(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?ht:ct:"function"==typeof e?n.local?pt:ft:n.local?dt:ut)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?yt:"function"==typeof e?bt:mt)(t,e,null==n?"":n)):_t(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xt:"function"==typeof e?kt:vt)(t,e)):this.node()[t]},classed:function(t,e){var n=wt(t+"");
vendor: 12,018 bytes, line 11
11if(arguments.length<2){for(var i=Tt(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?Lt:e?At:Dt)(n,e))},text:function(t){return arguments.length?this.each(null==t?Nt:("function"==typeof t?Mt:Ot)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Bt:("function"==typeof t?Ft:It)(t)):this.node().innerHTML},raise:function(){return this.each(Rt)},lower:function(){return this.each($t)},append:function(t){var e="function"==typeof t?t:jt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:jt(t),i=null==e?zt:"function"==typeof e?e:z(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Ut)},clone:function(t){return this.select(t?Ht:Wt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=qt(t+""),s=a.length;if(!(arguments.length<2)){for(o=e?Gt:Vt,i=0;i<s;++i)this.each(o(a[i],e,n));return this}var o=this.node().__on;if(o)for(var l,c=0,h=o.length;c<h;++c)for(i=0,l=o[c];i<s;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Qt:Zt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],a=0,s=r.length;a<s;++a)(i=r[a])&&(yield i)}};const ee=te;var ne={value:()=>{}};function ie(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new re(i)}function re(t){this._=t}function ae(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function se(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function oe(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=ne,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}re.prototype=ie.prototype={constructor:re,on:function(t,e){var n,i=this._,r=ae(t+"",i),a=-1,s=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=r[a]).type)i[n]=oe(i[n],t.name,e);else if(null==e)for(n in i)i[n]=oe(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=r[a]).type)&&(n=se(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new re(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(i=this._[t]).length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};const le=ie;var ce,he,ue=0,de=0,fe=0,pe=0,ge=0,ye=0,me="object"==typeof performance&&performance.now?performance:Date,be="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function _e(){return ge||(be(xe),ge=me.now()+ye)}function xe(){ge=0}function ve(){this._call=this._time=this._next=null}function ke(t,e,n){var i=new ve;return i.restart(t,e,n),i}function we(){ge=(pe=me.now())+ye,ue=de=0;try{!function(){_e(),++ue;for(var t,e=ce;e;)(t=ge-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ue}()}finally{ue=0,function(){var t,e,n=ce,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ce=e);he=t,Ce(i)}(),ge=0}}function Te(){var t=me.now(),e=t-pe;e>1e3&&(ye-=e,pe=t)}function Ce(t){ue||(de&&(de=clearTimeout(de)),t-ge>24?(t<1/0&&(de=setTimeout(we,t-me.now()-ye)),fe&&(fe=clearInterval(fe))):(fe||(pe=me.now(),fe=setInterval(Te,1e3)),ue=1,be(we)))}function Ee(t,e,n){var i=new ve;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}ve.prototype=ke.prototype={constructor:ve,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?_e():+n)+(null==e?0:+e),this._next||he===this||(he?he._next=this:ce=this,he=this),this._call=t,this._time=n,Ce()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ce())}};var Se=le("start","end","cancel","interrupt"),Ae=[];function De(t,e,n,i,r,a){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(a){var c,h,u,d;if(1!==n.state)return l();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return Ee(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Ee((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(a))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,s=i.length;++a<s;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=ke(a,0,n.time)}(t,n,{name:e,index:i,group:r,on:Se,tween:Ae,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Le(t,e){var n=Oe(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ne(t,e){var n=Oe(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Oe(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Me(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Be,Ie=180/Math.PI,Fe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Re(t,e,n,i,r,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(o=Math.sqrt(n*n+i*i))&&(n/=o,i/=o,l/=o),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*Ie,skewX:Math.atan(l)*Ie,scaleX:s,scaleY:o}}function $e(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,s){var o=[],l=[];return a=t(a),s=t(s),function(t,i,r,a,s,o){if(t!==r||i!==a){var l=s.push("translate(",null,e,null,n);o.push({i:l-4,x:Me(t,r)},{i:l-2,x:Me(i,a)})}else(r||a)&&s.push("translate("+r+e+a+n)}(a.translateX,a.translateY,s.translateX,s.translateY,o,l),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Me(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,s.rotate,o,l),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Me(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,s.skewX,o,l),function(t,e,n,i,a,s){if(t!==n||e!==i){var o=a.push(r(a)+"scale(",null,",",null,")");s.push({i:o-4,x:Me(t,n)},{i:o-2,x:Me(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,o,l),a=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)o[(e=l[n]).i]=e.x(t);return o.join("")}}}var Pe=$e((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Fe:Re(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Ye=$e((function(t){return null==t?Fe:(Be||(Be=document.createElementNS("http://www.w3.org/2000/svg","g")),Be.setAttribute("transform",t),(t=Be.transform.baseVal.consolidate())?Re((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fe)}),", ",")",")");function je(t,e){var n,i;return function(){var r=Ne(this,t),a=r.tween;if(a!==n)for(var s=0,o=(i=n=a).length;s<o;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function ze(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=Ne(this,t),s=a.tween;if(s!==i){r=(i=s).slice();for(var o={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=o;break}l===c&&r.push(o)}a.tween=r}}function Ue(t,e,n){var i=t._id;return t.each((function(){var t=Ne(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Oe(t,i).value[e]}}function We(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function He(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function qe(){}var Ve=.7,Ge=1/Ve,Xe="\\s*([+-]?\\d+)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ke=/^#([0-9a-f]{3,8})$/,Je=new RegExp(`^rgb\\(${Xe},${Xe},${Xe}\\)$`),tn=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),en=new RegExp(`^rgba\\(${Xe},${Xe},${Xe},${Ze}\\)$`),nn=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${Ze}\\)$`),rn=new RegExp(`^hsl\\(${Ze},${Qe},${Qe}\\)$`),an=new RegExp(`^hsla\\(${Ze},${Qe},${Qe},${Ze}\\)$`),sn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function on(){return this.rgb().formatHex()}function ln(){return this.rgb().formatRgb()}function cn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ke.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?hn(e):3===n?
vendor: 7,360 bytes, line 11
11new pn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?un(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?un(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Je.exec(t))?new pn(e[1],e[2],e[3],1):(e=tn.exec(t))?new pn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=en.exec(t))?un(e[1],e[2],e[3],e[4]):(e=nn.exec(t))?un(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=rn.exec(t))?xn(e[1],e[2]/100,e[3]/100,1):(e=an.exec(t))?xn(e[1],e[2]/100,e[3]/100,e[4]):sn.hasOwnProperty(t)?hn(sn[t]):"transparent"===t?new pn(NaN,NaN,NaN,0):null}function hn(t){return new pn(t>>16&255,t>>8&255,255&t,1)}function un(t,e,n,i){return i<=0&&(t=e=n=NaN),new pn(t,e,n,i)}function dn(t){return t instanceof qe||(t=cn(t)),t?new pn((t=t.rgb()).r,t.g,t.b,t.opacity):new pn}function fn(t,e,n,i){return 1===arguments.length?dn(t):new pn(t,e,n,null==i?1:i)}function pn(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function gn(){return`#${_n(this.r)}${_n(this.g)}${_n(this.b)}`}function yn(){const t=mn(this.opacity);return`${1===t?"rgb(":"rgba("}${bn(this.r)}, ${bn(this.g)}, ${bn(this.b)}${1===t?")":`, ${t})`}`}function mn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function bn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _n(t){return((t=bn(t))<16?"0":"")+t.toString(16)}function xn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,i)}function vn(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof qe||(t=cn(t)),!t)return new kn;if(t instanceof kn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,o=a-r,l=(a+r)/2;return o?(s=e===a?(n-i)/o+6*(n<i):n===a?(i-e)/o+2:(e-n)/o+4,o/=l<.5?a+r:2-a-r,s*=60):o=l>0&&l<1?0:s,new kn(s,o,l,t.opacity)}function kn(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function wn(t){return(t=(t||0)%360)<0?t+360:t}function Tn(t){return Math.max(0,Math.min(1,t||0))}function Cn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function En(t,e,n,i,r){var a=t*t,s=a*t;return((1-3*t+3*a-s)*e+(4-6*a+3*s)*n+(1+3*t+3*a-3*s)*i+s*r)/6}We(qe,cn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:on,formatHex:on,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vn(this).formatHsl()},formatRgb:ln,toString:ln}),We(pn,fn,He(qe,{brighter(t){return t=null==t?Ge:Math.pow(Ge,t),new pn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ve:Math.pow(Ve,t),new pn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pn(bn(this.r),bn(this.g),bn(this.b),mn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gn,formatHex:gn,formatHex8:function(){return`#${_n(this.r)}${_n(this.g)}${_n(this.b)}${_n(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yn,toString:yn})),We(kn,(function(t,e,n,i){return 1===arguments.length?vn(t):new kn(t,e,n,null==i?1:i)}),He(qe,{brighter(t){return t=null==t?Ge:Math.pow(Ge,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ve:Math.pow(Ve,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new pn(Cn(t>=240?t-240:t+120,r,i),Cn(t,r,i),Cn(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new kn(wn(this.h),Tn(this.s),Tn(this.l),mn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=mn(this.opacity);return`${1===t?"hsl(":"hsla("}${wn(this.h)}, ${100*Tn(this.s)}%, ${100*Tn(this.l)}%${1===t?")":`, ${t})`}`}}));const Sn=t=>()=>t;function An(t,e){return function(n){return t+n*e}}function Dn(t){return 1==(t=+t)?Ln:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Sn(isNaN(e)?n:e)}}function Ln(t,e){var n=e-t;return n?An(t,n):Sn(isNaN(t)?e:t)}const Nn=function t(e){var n=Dn(e);function i(t,e){var i=n((t=fn(t)).r,(e=fn(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),s=Ln(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function On(t){return function(e){var n,i,r=e.length,a=new Array(r),s=new Array(r),o=new Array(r);for(n=0;n<r;++n)i=fn(e[n]),a[n]=i.r||0,s[n]=i.g||0,o[n]=i.b||0;return a=t(a),s=t(s),o=t(o),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=o(t),i+""}}}On((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],s=i>0?t[i-1]:2*r-a,o=i<e-1?t[i+2]:2*a-r;return En((n-i/e)*e,s,r,a,o)}})),On((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],o=t[(i+2)%e];return En((n-i/e)*e,r,a,s,o)}}));var Mn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bn=new RegExp(Mn.source,"g");function In(t,e){var n,i,r,a=Mn.lastIndex=Bn.lastIndex=0,s=-1,o=[],l=[];for(t+="",e+="";(n=Mn.exec(t))&&(i=Bn.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),o[s]?o[s]+=r:o[++s]=r),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Me(n,i)})),a=Bn.lastIndex;return a<e.length&&(r=e.slice(a),o[s]?o[s]+=r:o[++s]=r),o.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)o[(n=l[i]).i]=n.x(t);return o.join("")})}function Fn(t,e){var n;return("number"==typeof e?Me:e instanceof cn?Nn:(n=cn(e))?(e=n,Nn):In)(t,e)}function Rn(t){return function(){this.removeAttribute(t)}}function $n(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pn(t,e,n){var i,r,a=n+"";return function(){var s=this.getAttribute(t);return s===a?null:s===i?r:r=e(i=s,n)}}function Yn(t,e,n){var i,r,a=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===a?null:s===i?r:r=e(i=s,n)}}function jn(t,e,n){var i,r,a;return function(){var s,o,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(o=l+"")?null:s===i&&o===r?a:(r=o,a=e(i=s,l));this.removeAttribute(t)}}function zn(t,e,n){var i,r,a;return function(){var s,o,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:s===i&&o===r?a:(r=o,a=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function Un(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Wn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Hn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Wn(t,r)),n}return r._value=e,r}function qn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Un(t,r)),n}return r._value=e,r}function Vn(t,e){return function(){Le(this,t).delay=+e.apply(this,arguments)}}function Gn(t,e){return e=+e,function(){Le(this,t).delay=e}}function Xn(t,e){return function(){Ne(this,t).duration=+e.apply(this,arguments)}}function Zn(t,e){return e=+e,function(){Ne(this,t).duration=e}}function Qn(t,e){if("function"!=typeof e)throw new Error;return function(){Ne(this,t).ease=e}}function Kn(t,e,n){var i,r,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>
vendor: 5,610 bytes, line 11
11=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Le:Ne;return function(){var s=a(this,t),o=s.on;o!==i&&(r=(i=o).copy()).on(e,n),s.on=r}}var Jn=ee.prototype.constructor;function ti(t){return function(){this.style.removeProperty(t)}}function ei(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function ni(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&ei(t,a,n)),i}return a._value=e,a}function ii(t){return function(e){this.textContent=t.call(this,e)}}function ri(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&ii(i)),e}return i._value=t,i}var ai=0;function si(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function oi(){return++ai}var li=ee.prototype;si.prototype=function(t){return ee().transition(t)}.prototype={constructor:si,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=z(t));for(var i=this._groups,r=i.length,a=new Array(r),s=0;s<r;++s)for(var o,l,c=i[s],h=c.length,u=a[s]=new Array(h),d=0;d<h;++d)(o=c[d])&&(l=t.call(o,o.__data__,d,c))&&("__data__"in o&&(l.__data__=o.__data__),u[d]=l,De(u[d],e,n,d,u,Oe(o,n)));return new si(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=H(t));for(var i=this._groups,r=i.length,a=[],s=[],o=0;o<r;++o)for(var l,c=i[o],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=Oe(l,n),g=0,y=f.length;g<y;++g)(d=f[g])&&De(d,e,n,g,f,p);a.push(f),s.push(l)}return new si(a,s,e,n)},selectChild:li.selectChild,selectChildren:li.selectChildren,filter:function(t){"function"!=typeof t&&(t=q(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,s=e[r],o=s.length,l=i[r]=[],c=0;c<o;++c)(a=s[c])&&t.call(a,a.__data__,c,s)&&l.push(a);return new si(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),s=new Array(i),o=0;o<a;++o)for(var l,c=e[o],h=n[o],u=c.length,d=s[o]=new Array(u),f=0;f<u;++f)(l=c[f]||h[f])&&(d[f]=l);for(;o<i;++o)s[o]=e[o];return new si(s,this._parents,this._name,this._id)},selection:function(){return new Jn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=oi(),i=this._groups,r=i.length,a=0;a<r;++a)for(var s,o=i[a],l=o.length,c=0;c<l;++c)if(s=o[c]){var h=Oe(s,e);De(s,t,n,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new si(i,this._parents,t,n)},call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:function(t,e){var n=this._id;return arguments.length<2?Oe(this.node(),n).on.on(t):this.each(Kn(n,t,e))},attr:function(t,e){var n=lt(t),i="transform"===n?Ye:Fn;return this.attrTween(t,"function"==typeof e?(n.local?zn:jn)(n,i,Ue(this,"attr."+t,e)):null==e?(n.local?$n:Rn)(n):(n.local?Yn:Pn)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=lt(t);return this.tween(n,(i.local?Hn:qn)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Pe:Fn;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=_t(this,t),s=(this.style.removeProperty(t),_t(this,t));return a===s?null:a===n&&s===i?r:r=e(n=a,i=s)}}(t,i)).on("end.style."+t,ti(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var s=_t(this,t),o=n(this),l=o+"";return null==o&&(this.style.removeProperty(t),l=o=_t(this,t)),s===l?null:s===i&&l===r?a:(r=l,a=e(i=s,o))}}(t,i,Ue(this,"style."+t,e))).each(function(t,e){var n,i,r,a,s="style."+e,o="end."+s;return function(){var l=Ne(this,t),c=l.on,h=null==l.value[s]?a||(a=ti(e)):void 0;c===n&&r===h||(i=(n=c).copy()).on(o,r=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var s=_t(this,t);return s===a?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,ni(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ue(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,ri(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Oe(this.node(),n).tween,a=0,s=r.length;a<s;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?je:ze)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vn:Gn)(e,t)):Oe(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Xn:Zn)(e,t)):Oe(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Qn(e,t)):Oe(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Ne(this,t).ease=n}}(this._id,t))}
11,end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(a,s){var o={value:s},l={value:function(){0==--r&&a()}};n.each((function(){var n=Ne(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),n.on=e})),0===r&&a()}))},[Symbol.iterator]:li[Symbol.iterator]};var ci={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function hi(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}ee.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,i,r,a=t.__transition,s=!0;if(a){for(r in e=null==e?null:e+"",a)(n=a[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):s=!1;s&&delete t.__transition}}(this,t)}))},ee.prototype.transition=function(t){var e,n;t instanceof si?(e=t._id,t=t._name):(e=oi(),(n=ci).time=_e(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var s,o=i[a],l=o.length,c=0;c<l;++c)(s=o[c])&&De(s,t,e,c,o,n||hi(s,e));return new si(i,this._parents,t,e)};const{abs:ui,max:di,min:fi}=Math;function pi(t){return[+t[0],+t[1]]}function gi(t){return[pi(t[0]),pi(t[1])]}["w","e"].map(yi),["n","s"].map(yi),["n","w","e","s","nw","ne","sw","se"].map(yi);function yi(t){return{type:t}}function mi(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function bi(t){return(e,n)=>function(t,e){return fetch(t,e).then(mi)}(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}bi("application/xml");bi("text/html"),bi("image/svg+xml");const _i=Math.PI/180,xi=180/Math.PI,vi=.96422,ki=.82521,wi=4/29,Ti=6/29,Ci=3*Ti*Ti;function Ei(t){if(t instanceof Si)return new Si(t.l,t.a,t.b,t.opacity);if(t instanceof Bi)return Ii(t);t instanceof pn||(t=dn(t));var e,n,i=Ni(t.r),r=Ni(t.g),a=Ni(t.b),s=Ai((.2225045*i+.7168786*r+.0606169*a)/1);return i===r&&r===a?e=n=s:(e=Ai((.4360747*i+.3850649*r+.1430804*a)/vi),n=Ai((.0139322*i+.0971045*r+.7141733*a)/ki)),new Si(116*s-16,500*(e-s),200*(s-n),t.opacity)}function Si(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function Ai(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ci+wi}function Di(t){return t>Ti?t*t*t:Ci*(t-wi)}
11function Li(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ni(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Oi(t){if(t instanceof Bi)return new Bi(t.h,t.c,t.l,t.opacity);if(t instanceof Si||(t=Ei(t)),0===t.a&&0===t.b)return new Bi(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xi;return new Bi(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mi(t,e,n,i){return 1===arguments.length?Oi(t):new Bi(t,e,n,null==i?1:i)}function Bi(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function Ii(t){if(isNaN(t.h))return new Si(t.l,0,0,t.opacity);var e=t.h*_i;return new Si(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function Fi(t){return function(e,n){var i=t((e=Mi(e)).h,(n=Mi(n)).h),r=Ln(e.c,n.c),a=Ln(e.l,n.l),s=Ln(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=r(t),e.l=a(t),e.opacity=s(t),e+""}}}We(Si,(function(t,e,n,i){return 1===arguments.length?Ei(t):new Si(t,e,n,null==i?1:i)}),He(qe,{brighter(t){return new Si(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Si(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new pn(Li(3.1338561*(e=vi*Di(e))-1.6168667*(t=1*Di(t))-.4906146*(n=ki*Di(n))),Li(-.9787684*e+1.9161415*t+.033454*n),Li(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),We(Bi,Mi,He(qe,{brighter(t){return new Bi(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Bi(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Ii(this).rgb()}}));const Ri=Fi((function(t,e){var n=e-t;return n?An(t,n>180||n<-180?n-360*Math.round(n/360):n):Sn(isNaN(t)?e:t)}));Fi(Ln);const $i=Math.sqrt(50),Pi=Math.sqrt(10),Yi=Math.sqrt(2);function ji(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),s=a>=$i?10:a>=Pi?5:a>=Yi?2:1;let o,l,c;return r<0?(c=Math.pow(10,-r)/s,o=Math.round(t*c),l=Math.round(e*c),o/c<t&&++o,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*s,o=Math.round(t/c),l=Math.round(e/c),o*c<t&&++o,l*c>
vendor: 4,189 bytes, line 11
11e&&--l),l<o&&.5<=n&&n<2?ji(t,e,2*n):[o,l,c]}function zi(t,e,n){return ji(t=+t,e=+e,n=+n)[2]}function Ui(t,e,n){n=+n;const i=(e=+e)<(t=+t),r=i?zi(e,t,n):zi(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Wi(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hi(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qi(t){let e,n,i;function r(t,i,r=0,a=t.length){if(r<a){if(0!==e(i,i))return a;do{const e=r+a>>>1;n(t[e],i)<0?r=e+1:a=e}while(r<a)}return r}return 2!==t.length?(e=Wi,n=(e,n)=>Wi(t(e),n),i=(e,n)=>t(e)-n):(e=t===Wi||t===Hi?t:Vi,n=t,i=t),{left:r,center:function(t,e,n=0,a=t.length){const s=r(t,e,n,a-1);return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,r=0,a=t.length){if(r<a){if(0!==e(i,i))return a;do{const e=r+a>>>1;n(t[e],i)<=0?r=e+1:a=e}while(r<a)}return r}}}function Vi(){return 0}const Gi=qi(Wi),Xi=Gi.right,Zi=(Gi.left,qi((function(t){return null===t?NaN:+t})).center,Xi);function Qi(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,a=new Array(r),s=new Array(i);for(n=0;n<r;++n)a[n]=er(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<r;++n)s[n]=a[n](t);return s}}function Ki(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Ji(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=er(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}function tr(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;n<i;++n)r[n]=t[n]*(1-a)+e[n]*a;return r}}function er(t,e){var n,i,r=typeof e;return null==e||"boolean"===r?Sn(e):("number"===r?Me:"string"===r?(n=cn(e))?(e=n,Nn):In:e instanceof cn?Nn:e instanceof Date?Ki:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Qi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ji:Me:tr))(t,e)}function nr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ir(t){return+t}var rr=[0,1];function ar(t){return t}function sr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function or(t,e,n){var i=t[0],r=t[1],a=e[0],s=e[1];return r<i?(i=sr(r,i),a=n(s,a)):(i=sr(i,r),a=n(a,s)),function(t){return a(i(t))}}function lr(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=sr(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(e){var n=Zi(t,e,1,i)-1;return a[n](r[n](e))}}function cr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hr(){var t,e,n,i,r,a,s=rr,o=rr,l=er,c=ar;function h(){var t,e,n,l=Math.min(s.length,o.length);return c!==ar&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?lr:or,r=a=null,u}function u(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),o,l)))(t(c(e)))}return u.invert=function(n){return c(e((a||(a=i(o,s.map(t),Me)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,ir),h()):s.slice()},u.range=function(t){return arguments.length?(o=Array.from(t),h()):o.slice()},u.rangeRound=function(t){return o=Array.from(t),l=nr,h()},u.clamp=function(t){return arguments.length?(c=!!t||ar,h()):c!==ar},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}function ur(){return hr()(ar,ar)}function dr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var fr,pr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gr(t){if(!(e=pr.exec(t)))throw new Error("invalid format: "+t);var e;return new yr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
vendor: 6,408 bytes, line 11
11width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function mr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function br(t){return(t=mr(Math.abs(t)))?t[1]:NaN}function _r(t,e){var n=mr(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}gr.prototype=yr.prototype,yr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const xr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>_r(100*t,e),r:_r,s:function(t,e){var n=mr(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(fr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+mr(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function vr(t){return t}var kr,wr,Tr,Cr=Array.prototype.map,Er=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Sr(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?vr:(e=Cr.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],s=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),a.push(t.substring(r-=o,r+o)),!((l+=o+1)>i));)o=e[s=(s+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?vr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Cr.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=gr(t)).fill,n=t.align,u=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,b=t.type;"n"===b?(g=!0,b="g"):xr[b]||(void 0===y&&(y=12),m=!0,b="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var _="$"===d?r:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===d?a:/[%p]/.test(b)?l:"",v=xr[b],k=/[defgprs%]/.test(b);function w(t){var r,a,l,d=_,w=x;if("c"===b)w=v(t)+w,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:v(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==u&&(T=!1),d=(T?"("===u?u:c:"-"===u||"("===u?"":u)+d,w=("s"===b?Er[8+fr/3]:"")+w+(T&&"("===u?")":""),k)for(r=-1,a=t.length;++r<a;)if(48>(l=t.charCodeAt(r))||l>57){w=(46===l?s+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}g&&!f&&(t=i(t,1/0));var C=d.length+t.length+w.length,E=C<p?new Array(p-C+1).join(e):"";switch(g&&f&&(t=i(E+t,E.length?p-w.length:1/0),E=""),n){case"<":t=d+t+w+E;break;case"=":t=d+E+t+w;break;case"^":t=E.slice(0,C=E.length>>1)+d+t+w+E.slice(C);break;default:t=E+d+t+w}return o(t)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),w.toString=function(){return t+""},w}return{format:u,formatPrefix:function(t,e){var n=u(((t=gr(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(br(e)/3))),r=Math.pow(10,-i),a=Er[8+i/3];return function(t){return n(r*t)+a}}}}function Ar(t,e,n,i){var r,a=Ui(t,e,n);switch((i=gr(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(br(e)/3)))-br(Math.abs(t)))}(a,s))||(i.precision=r),Tr(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,br(e)-br(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-br(Math.abs(t)))}(a))||(i.precision=r-2*("%"===i.type))}return wr(i)}function Dr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const i=e<t,[r,a,s]=i?ji(e,t,n):ji(t,e,n);if(!(a>=r))return[];const o=a-r+1,l=new Array(o);if(i)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(r+c)/-s;else for(let c=0;c<o;++c)l[c]=(r+c)*s;return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return Ar(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,a=e(),s=0,o=a.length-1,l=a[s],c=a[o],h=10;for(c<l&&(r=l,l=c,c=r,r=s,s=o,o=r);h-- >0;){if((r=zi(l,c,n))===i)return a[s]=l,a[o]=c,e(a);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}function Lr(){var t=ur();return t.copy=function(){return cr(t,Lr())},dr.apply(t,arguments),Dr(t)}kr=Sr({thousands:",",grouping:[3],currency:["$",""]}),wr=kr.format,Tr=kr.formatPrefix;class Nr extends Map{constructor(t,e=Fr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Mr(this,t))}has(t){return super.has(Mr(this,t))}set(t,e){return super.set(Br(this,t),e)}delete(t){return super.delete(Ir(this,t))}}class Or extends Set{constructor(t,e=Fr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(Mr(this,t))}add(t){return super.add(Br(this,t))}delete(t){return super.delete(Ir(this,t))}}function Mr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Br({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Ir({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Fr(t){return null!==t&&"object"==typeof t?t.valueOf():t}
vendor: 4,741 bytes, line 11
11const Rr=Symbol("implicit");function $r(){var t=new Nr,e=[],n=[],i=Rr;function r(r){let a=t.get(r);if(void 0===a){if(i!==Rr)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Nr;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return $r(e,n).unknown(i)},dr.apply(r,arguments),r}const Pr=1e3,Yr=6e4,jr=36e5,zr=864e5,Ur=6048e5,Wr=2592e6,Hr=31536e6,qr=new Date,Vr=new Date;function Gr(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=e=>(t(e=new Date(+e)),e),r.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),r.round=t=>{const e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),r.range=(n,i,a)=>{const s=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return s;let o;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<i);return s},r.filter=n=>Gr((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})),n&&(r.count=(e,i)=>(qr.setTime(+e),Vr.setTime(+i),t(qr),t(Vr),Math.floor(n(qr,Vr))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?e=>i(e)%t==0:e=>r.count(0,e)%t==0):r:null)),r}const Xr=Gr((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Xr.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Gr((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Xr:null);Xr.range;const Zr=Gr((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Pr)}),((t,e)=>(e-t)/Pr),(t=>t.getUTCSeconds())),Qr=(Zr.range,Gr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pr)}),((t,e)=>{t.setTime(+t+e*Yr)}),((t,e)=>(e-t)/Yr),(t=>t.getMinutes()))),Kr=(Qr.range,Gr((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Yr)}),((t,e)=>(e-t)/Yr),(t=>t.getUTCMinutes()))),Jr=(Kr.range,Gr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pr-t.getMinutes()*Yr)}),((t,e)=>{t.setTime(+t+e*jr)}),((t,e)=>(e-t)/jr),(t=>t.getHours()))),ta=(Jr.range,Gr((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*jr)}),((t,e)=>(e-t)/jr),(t=>t.getUTCHours()))),ea=(ta.range,Gr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yr)/zr),(t=>t.getDate()-1))),na=(ea.range,Gr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/zr),(t=>t.getUTCDate()-1))),ia=(na.range,Gr((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/zr),(t=>Math.floor(t/zr))));ia.range;function ra(t){return Gr((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yr)/Ur))}const aa=ra(0),sa=ra(1),oa=ra(2),la=ra(3),ca=ra(4),ha=ra(5),ua=ra(6);aa.range,sa.range,oa.range,la.range,ca.range,ha.range,ua.range;function da(t){return Gr((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Ur))}const fa=da(0),pa=da(1),ga=da(2),ya=da(3),ma=da(4),ba=da(5),_a=da(6),xa=(fa.range,pa.range,ga.range,ya.range,ma.range,ba.range,_a.range,Gr((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),va=(xa.range,Gr((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),ka=(va.range,Gr((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));ka.every=t=>isFinite(t=Math.floor(t))&&t>0?Gr((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;ka.range;const wa=Gr((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));wa.every=t=>isFinite(t=Math.floor(t))&&t>0?Gr((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;wa.range;function Ta(t,e,n,i,r,a){const s=[[Zr,1,Pr],[Zr,5,5e3],[Zr,15,15e3],[Zr,30,3e4],[a,1,Yr],[a,5,3e5],[a,15,9e5],[a,30,18e5],[r,1,jr],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,zr],[i,2,1728e5],[n,1,Ur],[e,1,Wr],[e,3,7776e6],[t,1,Hr]
vendor: 5,650 bytes, line 11
11];function o(e,n,i){const r=Math.abs(n-e)/i,a=qi((([,,t])=>t)).right(s,r);if(a===s.length)return t.every(Ui(e/Hr,n/Hr,i));if(0===a)return Xr.every(Math.max(Ui(e,n,i),1));const[o,l]=s[r/s[a-1][2]<s[a][2]/r?a-1:a];return o.every(l)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:o(t,e,n),a=r?r.range(t,+e+1):[];return i?a.reverse():a},o]}const[Ca,Ea]=Ta(wa,va,fa,ia,ta,Kr),[Sa,Aa]=Ta(ka,xa,aa,ea,Jr,Qr);function Da(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function La(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Na(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Oa,Ma,Ba={"-":"",_:" ",0:"0"},Ia=/^\s*\d+/,Fa=/^%/,Ra=/[\\^$*+?|[\]().{}]/g;function $a(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function Pa(t){return t.replace(Ra,"\\$&")}function Ya(t){return new RegExp("^(?:"+t.map(Pa).join("|")+")","i")}function ja(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function za(t,e,n){var i=Ia.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Ua(t,e,n){var i=Ia.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Wa(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Ha(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function qa(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Va(t,e,n){var i=Ia.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Ga(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Xa(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Za(t,e,n){var i=Ia.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Qa(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ka(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ja(t,e,n){var i=Ia.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function ts(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function es(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function ns(t,e,n){var i=Ia.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function is(t,e,n){var i=Ia.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function rs(t,e,n){var i=Ia.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function as(t,e,n){var i=Fa.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function ss(t,e,n){var i=Ia.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function os(t,e,n){var i=Ia.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ls(t,e){return $a(t.getDate(),e,2)}function cs(t,e){return $a(t.getHours(),e,2)}function hs(t,e){return $a(t.getHours()%12||12,e,2)}function us(t,e){return $a(1+ea.count(ka(t),t),e,3)}function ds(t,e){return $a(t.getMilliseconds(),e,3)}function fs(t,e){return ds(t,e)+"000"}function ps(t,e){return $a(t.getMonth()+1,e,2)}function gs(t,e){return $a(t.getMinutes(),e,2)}function ys(t,e){return $a(t.getSeconds(),e,2)}function ms(t){var e=t.getDay();return 0===e?7:e}function bs(t,e){return $a(aa.count(ka(t)-1,t),e,2)}function _s(t){var e=t.getDay();return e>=4||0===e?ca(t):ca.ceil(t)}function xs(t,e){return t=_s(t),$a(ca.count(ka(t),t)+(4===ka(t).getDay()),e,2)}function vs(t){return t.getDay()}function ks(t,e){return $a(sa.count(ka(t)-1,t),e,2)}function ws(t,e){return $a(t.getFullYear()%100,e,2)}function Ts(t,e){return $a((t=_s(t)).getFullYear()%100,e,2)}function Cs(t,e){return $a(t.getFullYear()%1e4,e,4)}function Es(t,e){var n=t.getDay();return $a((t=n>=4||0===n?ca(t):ca.ceil(t)).getFullYear()%1e4,e,4)}function Ss(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$a(e/60|0,"0",2)+$a(e%60,"0",2)}function As(t,e){return $a(t.getUTCDate(),e,2)}function Ds(t,e){return $a(t.getUTCHours(),e,2)}function Ls(t,e){return $a(t.getUTCHours()%12||12,e,2)}function Ns(t,e){return $a(1+na.count(wa(t),t),e,3)}function Os(t,e){return $a(t.getUTCMilliseconds(),e,3)}function Ms(t,e){return Os(t,e)+"000"}function Bs(t,e){return $a(t.getUTCMonth()+1,e,2)}function Is(t,e){return $a(t.getUTCMinutes(),e,2)}function Fs(t,e){return $a(t.getUTCSeconds(),e,2)}function Rs(t){var e=t.getUTCDay();return 0===e?7:e}function $s(t,e){return $a(fa.count(wa(t)-1,t),e,2)}function Ps(t){var e=t.getUTCDay();return e>=4||0===e?ma(t):ma.ceil(t)}function Ys(t,e){return t=Ps(t),$a(ma.count(wa(t),t)+(4===wa(t).getUTCDay()),e,2)}function js(t){return t.getUTCDay()}function zs(t,e){return $a(pa.count(wa(t)-1,t),e,2)}function Us(t,e){return $a(t.getUTCFullYear()%100,e,2)}function Ws(t,e){return $a((t=Ps(t)).getUTCFullYear()%100,e,2)}function Hs(t,e){return $a(t.getUTCFullYear()%1e4,e,4)}function qs(t,e){var n=t.getUTCDay();return $a((t=n>=4||0===n?ma(t):ma.ceil(t)).getUTCFullYear()%1e4,e,4)}function Vs(){return"+0000"}function Gs(){return"%"}function Xs(t){return+t}function Zs(t){return Math.floor(+t/1e3)}function Qs(t){return new Date(t)}function Ks(t){return t instanceof Date?+t:+new Date(+t)}function Js(t,e,n,i,r,a,s,o,l,c){var h=ur(),u=h.invert,d=h.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),b=c("%b %d"),_=c("%B"),x=c("%Y");function v(t){return(l(t)<t?f:o(t)<t?p:s(t)<t?g:a(t)<t?y:i(t)<t?r(t)<t?m:b:n(t)<t?_:
vendor: 4,607 bytes, line 11
11x)(t)}return h.invert=function(t){return new Date(u(t))},h.domain=function(t){return arguments.length?d(Array.from(t,Ks)):d().map(Qs)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},h.tickFormat=function(t,e){return null==e?v:c(e)},h.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(function(t,e){var n,i=0,r=(t=t.slice()).length-1,a=t[i],s=t[r];return s<a&&(n=i,i=r,r=n,n=a,a=s,s=n),t[i]=e.floor(a),t[r]=e.ceil(s),t}(n,t)):h},h.copy=function(){return cr(h,Js(t,e,n,i,r,a,s,o,l,c))},h}function to(t){return"string"==typeof t?new Jt([[document.querySelector(t)]],[document.documentElement]):new Jt([[t]],Kt)}function eo(t){return"string"==typeof t?new Jt([document.querySelectorAll(t)],[document.documentElement]):new Jt([U(t)],Kt)}function no(t){return function(){return t}}!function(t){Oa=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,c=Ya(r),h=ja(r),u=Ya(a),d=ja(a),f=Ya(s),p=ja(s),g=Ya(o),y=ja(o),m=Ya(l),b=ja(l),_={a:function(t){return s[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:ls,e:ls,f:fs,g:Ts,G:Es,H:cs,I:hs,j:us,L:ds,m:ps,M:gs,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xs,s:Zs,S:ys,u:ms,U:bs,V:xs,w:vs,W:ks,x:null,X:null,y:ws,Y:Cs,Z:Ss,"%":Gs},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:As,e:As,f:Ms,g:Ws,G:qs,H:Ds,I:Ls,j:Ns,L:Os,m:Bs,M:Is,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xs,s:Zs,S:Fs,u:Rs,U:$s,V:Ys,w:js,W:zs,x:null,X:null,y:Us,Y:Hs,Z:Vs,"%":Gs},v={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=u.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=y.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return T(t,e,n,i)},d:Ka,e:Ka,f:rs,g:Ga,G:Va,H:ts,I:ts,j:Ja,L:is,m:Qa,M:es,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=h.get(i[0].toLowerCase()),n+i[0].length):-1},q:Za,Q:ss,s:os,S:ns,u:Ua,U:Wa,V:Ha,w:za,W:qa,x:function(t,e,i){return T(t,n,e,i)},X:function(t,e,n){return T(t,i,e,n)},y:Ga,Y:Va,Z:Xa,"%":as};function k(t,e){return function(n){var i,r,a,s=[],o=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===t.charCodeAt(o)&&(s.push(t.slice(l,o)),null!=(r=Ba[i=t.charAt(++o)])?i=t.charAt(++o):r="e"===i?" ":"0",(a=e[i])&&(i=a(n,r)),s.push(i),l=o+1);return s.push(t.slice(l,o)),s.join("")}}function w(t,e){return function(n){var i,r,a=Na(1900,void 0,1);if(T(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=La(Na(a.y,0,1))).getUTCDay(),i=r>4||0===r?pa.ceil(i):pa(i),i=na.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=Da(Na(a.y,0,1))).getDay(),i=r>4||0===r?sa.ceil(i):sa(i),i=ea.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?La(Na(a.y,0,1)).getUTCDay():Da(Na(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,La(a)):Da(a)}}function T(t,e,n,i){for(var r,a,s=0,o=e.length,l=n.length;s<o;){if(i>=l)return-1;if(37===(r=e.charCodeAt(s++))){if(r=e.charAt(s++),!(a=v[r in Ba?e.charAt(s++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return _.x=k(n,_),_.X=k(i,_),_.c=k(e,_),x.x=k(n,x),x.X=k(i,x),x.c=k(e,x),{format:function(t){var e=k(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}(t),Ma=Oa.format,Oa.parse,Oa.utcFormat,Oa.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
11ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const io=Math.abs,ro=Math.atan2,ao=Math.cos,so=Math.max,oo=Math.min,lo=Math.sin,co=Math.sqrt,ho=1e-12,uo=Math.PI,fo=uo/2,po=2*uo;function go(t){return t>1?0:t<-1?uo:Math.acos(t)}function yo(t){return t>=1?fo:t<=-1?-fo:Math.asin(t)}const mo=Math.PI,bo=2*mo,_o=1e-6,xo=bo-_o;function vo(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class ko{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?vo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return vo;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,r,a){this._append`C${+t},${+e},${+n},${+i},${this._x1=+r},${this._y1=+a}`}arcTo(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=this._x1,s=this._y1,o=n-t,l=i-e,c=a-t,h=s-e,u=c*c+h*h;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>_o)if(Math.abs(h*o-l*c)>_o&&r){let d=n-a,f=i-s,p=o*o+l*l,g=d*d+f*f,y=Math.sqrt(p),m=Math.sqrt(u),b=r*Math.tan((mo-Math.acos((p+u-g)/(2*y*m)))/2),_=b/m,x=b/y;Math.abs(_-1)>_o&&this._append`L${t+_*c},${e+_*h}`,this._append`A${r},${r},0,0,${+(h*d>c*f)},${this._x1=t+x*o},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),o=n*Math.sin(i),l=t+s,c=e+o,h=1^a,u=a?i-r:r-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>_o||Math.abs(this._y1-c)>_o)&&this._append`L${l},${c}`,n&&(u<0&&(u=u%bo+bo),u>xo?this._append`A${n},${n},0,1,${h},${t-s},${e-o}A${n},${n},0,1,${h},${this._x1=l},${this._y1=c}`:u>_o&&this._append`A${n},${n},0,${+(u>=mo)},${h},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function wo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new ko(e)}function To(t){return t.innerRadius}function Co(t){return t.outerRadius}function Eo(t){return t.startAngle}function So(t){return t.endAngle}function Ao(t){return t&&t.padAngle}function Do(t,e,n,i,r,a,s,o){var l=n-t,c=i-e,h=s-r,u=o-a,d=u*l-h*c;if(!(d*d<ho))return[t+(d=(h*(e-a)-u*(t-r))/d)*l,e+d*c]}function Lo(t,e,n,i,r,a,s){var o=t-n,l=e-i,c=(s?a:-a)/co(o*o+l*l),h=c*l,u=-c*o,d=t+h,f=e+u,p=n+h,g=i+u,y=(d+p)/2,m=(f+g)/2,b=p-d,_=g-f,x=b*b+_*_,v=r-a,k=d*g-p*f,w=(_<0?-1:1)*co(so(0,v*v*x-k*k)),T=(k*_-b*w)/x,C=(-k*b-_*w)/x,E=(k*_+b*w)/x,S=(-k*b+_*w)/x,A=T-y,D=C-m,L=E-y,N=S-m;return A*A+D*D>L*L+N*N&&(T=E,C=S),{cx:T,cy:C,x01:-h,y01:-u,x11:T*(r/v-1),y11:C*(r/v-1)}}function No(){var t=To,e=Co,n=no(0),i=null,r=Eo,a=So,s=Ao,o=null,l=wo(c);function c(){var c,h,u=+t.apply(this,arguments),d=+e.apply(this,arguments),f=r.apply(this,arguments)-fo,p=a.apply(this,arguments)-fo,g=io(p-f),y=p>f;if(o||(o=c=l()),d<u&&(h=d,d=u,u=h),d>ho)if(g>po-ho)o.moveTo(d*ao(f),d*lo(f)),o.arc(0,0,d,f,p,!y),u>ho&&(o.moveTo(u*ao(p),u*lo(p)),o.arc(0,0,u,p,f,y));else{var m,b,_=f,x=p,v=f,k=p,w=g,T=g,C=s.apply(this,arguments)/2,E=C>ho&&(i?+i.apply(this,arguments):co(u*u+d*d)),S=oo(io(d-u)/2,+n.apply(this,arguments)),A=S,D=S;if(E>ho){var L=yo(E/u*lo(C)),N=yo(E/d*lo(C));(w-=2*L)>ho?(v+=L*=y?1:-1,k-=L):(w=0,v=k=(f+p)/2),(T-=2*N)>ho?(_+=N*=y?1:-1,x-=N):(T=0,_=x=(f+p)/2)}var O=d*ao(_),M=d*lo(_),B=u*ao(k),I=u*lo(k);if(S>ho){var F,R=d*ao(x),$=d*lo(x),P=u*ao(v),Y=u*lo(v);if(g<uo)if(F=Do(O,M,P,Y,R,$,B,I)){var j=O-F[0],z=M-F[1],U=R-F[0],W=$-F[1],H=1/lo(go((j*U+z*W)/(co(j*j+z*z)*co(U*U+W*W)))/2),q=co(F[0]*F[0]+F[1]*F[1]);A=oo(S,(u-q)/(H-1)),D=oo(S,(d-q)/(H+1))}else A=D=0}T>ho?D>ho?(m=Lo(P,Y,O,M,d,D,y),b=Lo(R,$,B,I,d,D,y),o.moveTo(m.cx+m.x01,m.cy+m.y01),D<S?o.arc(m.cx,m.cy,D,ro(m.y01,m.x01),ro(b.y01,b.x01),!y):(o.arc(m.cx,m.cy,D,ro(m.y01,m.x01),ro(m.
11y11,m.x11),!y),o.arc(0,0,d,ro(m.cy+m.y11,m.cx+m.x11),ro(b.cy+b.y11,b.cx+b.x11),!y),o.arc(b.cx,b.cy,D,ro(b.y11,b.x11),ro(b.y01,b.x01),!y))):(o.moveTo(O,M),o.arc(0,0,d,_,x,!y)):o.moveTo(O,M),u>ho&&w>ho?A>ho?(m=Lo(B,I,R,$,u,-A,y),b=Lo(O,M,P,Y,u,-A,y),o.lineTo(m.cx+m.x01,m.cy+m.y01),A<S?o.arc(m.cx,m.cy,A,ro(m.y01,m.x01),ro(b.y01,b.x01),!y):(o.arc(m.cx,m.cy,A,ro(m.y01,m.x01),ro(m.y11,m.x11),!y),o.arc(0,0,u,ro(m.cy+m.y11,m.cx+m.x11),ro(b.cy+b.y11,b.cx+b.x11),y),o.arc(b.cx,b.cy,A,ro(b.y11,b.x11),ro(b.y01,b.x01),!y))):o.arc(0,0,u,k,v,y):o.lineTo(B,I)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-uo/2;return[ao(i)*n,lo(i)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:no(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:no(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:no(+t),c):n},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:no(+t),c):i},c.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:no(+t),c):r},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:no(+t),c):a},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:no(+t),c):s},c.context=function(t){return arguments.length?(o=null==t?null:t,c):o},c}Array.prototype.slice;function Oo(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Mo(t){this._context=t}function Bo(t){return new Mo(t)}function Io(t){return t[0]}function Fo(t){return t[1]}function Ro(t,e){var n=no(!0),i=null,r=Bo,a=null,s=wo(o);function o(o){var l,c,h,u=(o=Oo(o)).length,d=!1;for(null==i&&(a=r(h=s())),l=0;l<=u;++l)!(l<u&&n(c=o[l],l,o))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(c,l,o),+e(c,l,o));if(h)return a=null,h+""||null}return t="function"==typeof t?t:void 0===t?Io:no(t),e="function"==typeof e?e:void 0===e?Fo:no(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:no(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:no(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:no(!!t),o):n},o.curve=function(t){return arguments.length?(r=t,null!=i&&(a=r(i)),o):r},o.context=function(t){return arguments.length?(null==t?i=a=null:a=r(i=t),o):i},o}function $o(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Po(t){return t}function Yo(){}function jo(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function zo(t){this._context=t}function Uo(t){return new zo(t)}function Wo(t){this._context=t}function Ho(t){this._context=t}function qo(t){this._context=t}function Vo(t){return t<0?-1:1}function Go(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),o=(a*r+s*i)/(i+r);return(Vo(a)+Vo(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function Xo(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Zo(t,e,n){var i=t._x0,r=t._y0,a=t._x1,s=t._y1,o=(a-i)/3;t._context.bezierCurveTo(i+o,r+o*e,a-o,s-o*n,a,s)}function Qo(t){this._context=t}function Ko(t){this._context=new Jo(t)}function Jo(t){this._context=t}function tl(t){this._context=t}function el(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),s=new Array(i);for(r[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,a[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/a[e-1],a[e]-=n,s[e]-=n*s[e-1];for(r[i-1]=s[i-1]/a[i-1],e=i-2;e>=0;--e)r[e]=(s[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-r[e+1];return[r,a]}function nl(t,e){this._context=t,this._t=e}function il(t,e,n){this.k=t,this.x=e,this.y=n}Mo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},zo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Wo.prototype={areaStart:Yo,areaEnd:Yo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ho.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},qo.prototype={areaStart:Yo,areaEnd:Yo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Qo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zo(this,this._t0,Xo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Zo(this,Xo(this,n=Go(this,t,e)),n);break;default:Zo(this,this._t0,n=Go(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Ko.prototype=Object.create(Qo.prototype)).point=function(t,e){Qo.prototype.point.call(this,e,t)},Jo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,a){this._context.bezierCurveTo(e,t,i,n,a,r)}},tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=el(t),r=el(e),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(i[0][a],r[0][a],i[1][a],r[1][a],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},il.prototype={constructor:il,scale:function(t){return 1===t?this:new il(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new il(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new il(1,0,0);il.prototype;var rl=n(5368);const al={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const r=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-r;switch(i){case"r":return 255*al.hue2rgb(a,r,t+1/3);case"g":return 255*al.hue2rgb(a,r,t);case"b":return 255*al.hue2rgb(a,r,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),a=Math.min(t,e,n),s=(r+a)/2;if("l"===i)return 100*s;if(r===a)return 0;const o=r-a;if("s"===i)return 100*(s>.5?o/(2-r-a):o/(r+a));switch(r){case t:return 60*((e-n)/o+(e<n?6:0));case e:return 60*((n-t)/o+2);case n:return 60*((t-e)/o+4);default:return-1}}},sl={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},ol={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},ll={channel:al,lang:sl,unit:ol},cl={};for(let c=0;c<=255;c++)cl[c]=ll.unit.dec2hex(c);const hl=0,ul=1,dl=2;const fl=class{constructor(){this.type=hl}get(){return this.type}
11set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=hl}is(t){return this.type===t}};const pl=class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new fl}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=hl,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=ll.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=ll.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=ll.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=ll.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=ll.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=ll.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(dl)||void 0===e?(this._ensureHSL(),ll.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(dl)||void 0===e?(this._ensureHSL(),ll.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(dl)||void 0===e?(this._ensureHSL(),ll.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(ul)||void 0===e?(this._ensureRGB(),ll.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(ul)||void 0===e?(this._ensureRGB(),ll.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(ul)||void 0===e?(this._ensureRGB(),ll.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(ul),this.changed=!0,this.data.r=t}set g(t){this.type.set(ul),this.changed=!0,this.data.g=t}set b(t){this.type.set(ul),this.changed=!0,this.data.b=t}set h(t){this.type.set(dl),this.changed=!0,this.data.h=t}set s(t){this.type.set(dl),this.changed=!0,this.data.s=t}set l(t){this.type.set(dl),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},gl=new pl({r:0,g:0,b:0,a:0},"transparent"),yl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(yl.re);if(!e)return;const n=e[1],i=parseInt(n,16),r=n.length,a=r%4==0,s=r>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return gl.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`#${cl[Math.round(e)]}${cl[Math.round(n)]}${cl[Math.round(i)]}${cl[Math.round(255*r)]}`:`#${cl[Math.round(e)]}${cl[Math.round(n)]}${cl[Math.round(i)]}`}},ml=yl,bl={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(bl.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return ll.channel.clamp.h(.9*parseFloat(t));case"rad":return ll.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return ll.channel.clamp.h(360*parseFloat(t))}}return ll.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(bl.re);if(!n)return;const[,i,r,a,s,o]=n;return gl.set({h:bl._hue2deg(i),s:ll.channel.clamp.s(parseFloat(r)),l:ll.channel.clamp.l(parseFloat(a)),a:s?ll.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:n,l:i,a:r}=t;return r<1?`hsla(${ll.lang.round(e)}, ${ll.lang.round(n)}%, ${ll.lang.round(i)}%, ${r})`:`hsl(${ll.lang.round(e)}, ${ll.lang.round(n)}%, ${ll.lang.round(i)}%)`}},_l=bl,xl={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
11almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=xl.colors[t];if(e)return ml.parse(e)},stringify:t=>{const e=ml.stringify(t);for(const n in xl.colors)if(xl.colors[n]===e)return n}},vl=xl,kl={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(kl.re);if(!n)return;const[,i,r,a,s,o,l,c,h]=n;return gl.set({r:ll.channel.clamp.r(r?2.55*parseFloat(i):parseFloat(i)),g:ll.channel.clamp.g(s?2.55*parseFloat(a):parseFloat(a)),b:ll.channel.clamp.b(l?2.55*parseFloat(o):parseFloat(o)),a:c?ll.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`rgba(${ll.lang.round(e)}, ${ll.lang.round(n)}, ${ll.lang.round(i)}, ${ll.lang.round(r)})`:`rgb(${ll.lang.round(e)}, ${ll.lang.round(n)}, ${ll.lang.round(i)})`}},wl=kl,Tl={format:{keyword:vl,hex:ml,rgb:wl,rgba:wl,hsl:_l,hsla:_l},parse:t=>{if("string"!=typeof t)return t;const e=ml.parse(t)||wl.parse(t)||_l.parse(t)||vl.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(dl)||void 0===t.data.r?_l.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?wl.stringify(t):ml.stringify(t)},Cl=Tl,El=(t,e)=>{const n=Cl.parse(t);for(const i in e)n[i]=ll.channel.clamp[i](e[i]);return Cl.stringify(n)},Sl=(t,e)=>{const n=Cl.parse(t),i={};for(const r in e)e[r]&&(i[r]=n[r]+e[r]);return El(t,i)},Al=(t,e,n=0,i=1)=>{if("number"!=typeof t)return El(t,{a:e});const r=gl.set({r:ll.channel.clamp.r(t),g:ll.channel.clamp.g(e),b:ll.channel.clamp.b(n),a:ll.channel.clamp.a(i)});return Cl.stringify(r)},Dl=(t,e,n=50)=>{const{r:i,g:r,b:a,a:s}=Cl.parse(t),{r:o,g:l,b:c,a:h}=Cl.parse(e),u=n/100,d=2*u-1,f=s-h,p=((d*f==-1?d:(d+f)/(1+d*f))+1)/2,g=1-p;return Al(i*p+o*g,r*p+l*g,a*p+c*g,s*u+h*(1-u))},Ll=(t,e=100)=>{const n=Cl.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Dl(n,t,e)},Nl=(t,e,n)=>{const i=Cl.parse(t),r=i[e],a=ll.channel.clamp[e](r+n);return r!==a&&(i[e]=a),Cl.stringify(i)},Ol=(t,e)=>Nl(t,"l",-e),Ml=(t,e)=>Nl(t,"l",e);const Bl="object"==typeof global&&global&&global.Object===Object&&global;var Il="object"==typeof self&&self&&self.Object===Object&&self;const Fl=Bl||Il||Function("return this")();const Rl=Fl.Symbol;var $l=Object.prototype,Pl=$l.hasOwnProperty,Yl=$l.toString,jl=Rl?Rl.toStringTag:void 0;const zl=function(t){var e=Pl.call(t,jl),n=t[jl];try{t[jl]=void 0;var i=!0}catch(a){}var r=Yl.call(t);return i&&(e?t[jl]=n:delete t[jl]),r};var Ul=Object.prototype.toString;const Wl=function(t){return Ul.call(t)};var Hl=Rl?Rl.toStringTag:void 0;const ql=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Hl&&Hl in Object(t)?zl(t):Wl(t)};const Vl=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Gl=function(t){if(!Vl(t))return!1;var e=ql(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Xl=Fl["__core-js_shared__"];var Zl,Ql=(Zl=/[^.]+$/.exec(Xl&&Xl.keys&&Xl.keys.IE_PROTO||""))?"Symbol(src)_1."+Zl:"";const Kl=function(t){return!!Ql&&Ql in t};var Jl=Function.prototype.toString;const tc=function(t){if(null!=t){try{return Jl.call(t)}catch(e){}try{return t+""}catch(e){}}return""};var ec=/^\[object .+?Constructor\]$/,nc=Function.prototype,ic=Object.prototype,rc=nc.toString,ac=ic.hasOwnProperty,sc=RegExp("^"+rc.call(ac).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const oc=function(t){return!(!Vl(t)||Kl(t))&&(Gl(t)?sc:ec).test(tc(t))};const lc=function(t,e){return null==t?void 0:t[e]};const cc=function(t,e){var n=lc(t,e);return oc(n)?n:void 0};const hc=cc(Object,"create");const uc=function(){this.__data__=hc?hc(null):{},this.size=0};const dc=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var fc=Object.prototype.hasOwnProperty;const pc=function(t){var e=this.__data__;if(hc){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return fc.call(e,t)?e[t]:void 0};var gc=Object.prototype.hasOwnProperty;const yc=function(t){var e=this.__data__;return hc?void 0!==e[t]:gc.call(e,t)};const mc=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=hc&&void 0===e?"__lodash_hash_undefined__":e,this};function bc(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}bc.prototype.clear=uc,bc.prototype.delete=dc,bc.prototype.get=pc,bc.prototype.has=yc,bc.prototype.set=mc;const _c=bc;const xc=function(){this.__data__=[],this.size=0};const vc=function(t,e){return t===e||t!=t&&e!=e};const kc=function(t,e){for(var n=t.length;n--;)if(vc(t[n][0],e))return n;return-1};var wc=Array.prototype.splice;const Tc=function(t){var e=this.__data__,n=kc(e,t);return!(n<0)&&(n==e.length-1?e.pop():wc.call(e,n,1),--this.size,!0)};const Cc=function(t){var e=this.__data__,n=kc(e,t);return n<0?void 0:e[n][1]};const Ec=function(t){return kc(this.__data__,t)>-1}
11;const Sc=function(t,e){var n=this.__data__,i=kc(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function Ac(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ac.prototype.clear=xc,Ac.prototype.delete=Tc,Ac.prototype.get=Cc,Ac.prototype.has=Ec,Ac.prototype.set=Sc;const Dc=Ac;const Lc=cc(Fl,"Map");const Nc=function(){this.size=0,this.__data__={hash:new _c,map:new(Lc||Dc),string:new _c}};const Oc=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Mc=function(t,e){var n=t.__data__;return Oc(e)?n["string"==typeof e?"string":"hash"]:n.map};const Bc=function(t){var e=Mc(this,t).delete(t);return this.size-=e?1:0,e};const Ic=function(t){return Mc(this,t).get(t)};const Fc=function(t){return Mc(this,t).has(t)};const Rc=function(t,e){var n=Mc(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function $c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$c.prototype.clear=Nc,$c.prototype.delete=Bc,$c.prototype.get=Ic,$c.prototype.has=Fc,$c.prototype.set=Rc;const Pc=$c;function Yc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var s=t.apply(this,i);return n.cache=a.set(r,s)||a,s};return n.cache=new(Yc.Cache||Pc),n}Yc.Cache=Pc;const jc=Yc;var zc="comm",Uc="rule",Wc="decl",Hc=Math.abs,qc=String.fromCharCode;Object.assign;function Vc(t){return t.trim()}function Gc(t,e,n){return t.replace(e,n)}function Xc(t,e){return t.indexOf(e)}function Zc(t,e){return 0|t.charCodeAt(e)}function Qc(t,e,n){return t.slice(e,n)}function Kc(t){return t.length}function Jc(t){return t.length}function th(t,e){return e.push(t),t}function eh(t,e){for(var n="",i=Jc(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function nh(t,e,n,i){switch(t.type){case"@import":case Wc:return t.return=t.return||t.value;case zc:return"";case"@keyframes":return t.return=t.value+"{"+eh(t.children,i)+"}";case Uc:t.value=t.props.join(",")}return Kc(n=eh(t.children,i))?t.return=t.value+"{"+n+"}":""}var ih=1,rh=1,ah=0,sh=0,oh=0,lh="";function ch(t,e,n,i,r,a,s){return{value:t,root:e,parent:n,type:i,props:r,children:a,line:ih,column:rh,length:s,return:""}}function hh(){return oh=sh>0?Zc(lh,--sh):0,rh--,10===oh&&(rh=1,ih--),oh}function uh(){return oh=sh<ah?Zc(lh,sh++):0,rh++,10===oh&&(rh=1,ih++),oh}function dh(){return Zc(lh,sh)}function fh(){return sh}function ph(t,e){return Qc(lh,t,e)}function gh(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yh(t){return ih=rh=1,ah=Kc(lh=t),sh=0,[]}function mh(t){return lh="",t}function bh(t){return Vc(ph(sh-1,vh(91===t?t+2:40===t?t+1:t)))}function _h(t){for(;(oh=dh())&&oh<33;)uh();return gh(t)>2||gh(oh)>3?"":" "}function xh(t,e){for(;--e&&uh()&&!(oh<48||oh>102||oh>57&&oh<65||oh>70&&oh<97););return ph(t,fh()+(e<6&&32==dh()&&32==uh()))}function vh(t){for(;uh();)switch(oh){case t:return sh;case 34:case 39:34!==t&&39!==t&&vh(oh);break;case 40:41===t&&vh(t);break;case 92:uh()}return sh}function kh(t,e){for(;uh()&&t+oh!==57&&(t+oh!==84||47!==dh()););return"/*"+ph(e,sh-1)+"*"+qc(47===t?t:uh())}function wh(t){for(;!gh(dh());)uh();return ph(t,sh)}function Th(t){return mh(Ch("",null,null,null,[""],t=yh(t),0,[0],t))}function Ch(t,e,n,i,r,a,s,o,l){for(var c=0,h=0,u=s,d=0,f=0,p=0,g=1,y=1,m=1,b=0,_="",x=r,v=a,k=i,w=_;y;)switch(p=b,b=uh()){case 40:if(108!=p&&58==Zc(w,u-1)){-1!=Xc(w+=Gc(bh(b),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:w+=bh(b);break;case 9:case 10:case 13:case 32:w+=_h(p);break;case 92:w+=xh(fh()-1,7);continue;case 47:switch(dh()){case 42:case 47:th(Sh(kh(uh(),fh()),e,n),l);break;default:w+="/"}break;case 123*g:o[c++]=Kc(w)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:f>0&&Kc(w)-u&&th(f>32?Ah(w+";",i,n,u-1):Ah(Gc(w," ","")+";",i,n,u-2),l);break;case 59:w+=";";default:if(th(k=Eh(w,e,n,c,h,r,o,_,x=[],v=[],u),a),123===b)if(0===h)Ch(w,e,k,k,x,a,u,o,v);else switch(99===d&&110===Zc(w,3)?100:d){case 100:case 109:case 115:Ch(t,k,k,i&&th(Eh(t,k,k,0,0,r,o,_,r,x=[],u),v),r,v,u,o,i?x:v);break;default:Ch(w,k,k,k,[""],v,0,o,v)}}c=h=f=0,g=m=1,_=w="",u=s;break;case 58:u=1+Kc(w),f=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==hh())continue;switch(w+=qc(b),b*g){case 38:m=h>0?1:(w+="\f",-1);break;case 44:o[c++]=(Kc(w)-1)*m,m=1;break;case 64:45===dh()&&(w+=bh(uh())),d=dh(),h=u=Kc(_=w+=wh(fh())),b++;break;case 45:45===p&&2==Kc(w)&&(g=0)}}return a}function Eh(t,e,n,i,r,a,s,o,l,c,h){for(var u=r-1,d=0===r?a:[""],f=Jc(d),p=0,g=0,y=0;p<i;++p)for(var m=0,b=Qc(t,u+1,u=Hc(g=s[p])),_=t;m<f;++m)(_=Vc(g>0?d[m]+" "+b:Gc(b,/&\f/g,d[m])))&&(l[y++]=_);return ch(t,e,n,0===r?Uc:o,l,c,h)}function Sh(t,e,n){return ch(t,e,n,zc,qc(oh),Qc(t,2,-2),0)}function Ah(t,e,n,i){return ch(t,e,n,Wc,Qc(t,0,i),Qc(t,i+1,-1),i)}const Dh=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const Lh=function(t){return function(e,n,i){for(var r=-1,a=Object(e),s=i(e),o=s.length;o--;){var l=s[t?o:++r];if(!1===n(a[l],l,a))break}return e}};const Nh=Lh();const Oh=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const Mh=function(t){return null!=t&&"object"==typeof t};const Bh=function(t){return Mh(t)&&"[object Arguments]"==ql(t)};var Ih=Object.prototype,Fh=Ih.hasOwnProperty,Rh=Ih.propertyIsEnumerable,$h=Bh(function(){return arguments}())?Bh:function(t){return Mh(t)&&Fh.call(t,"callee")&&!Rh.call(t,"callee")};const Ph=$h;const Yh=Array.isArray;const jh=function(){return!1};var zh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Uh=zh&&"object"==typeof module&&module&&!module.nodeType&&module,Wh=Uh&&Uh.exports===zh?Fl.Buffer:void 0;const Hh=(Wh?Wh.isBuffer:void 0)||jh;var qh=/^(?:0|[1-9]\d*)$/;const Vh=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&qh.test(t))&&t>-1&&t%1==0&&t<e};const Gh=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Xh={};
11Xh["[object Float32Array]"]=Xh["[object Float64Array]"]=Xh["[object Int8Array]"]=Xh["[object Int16Array]"]=Xh["[object Int32Array]"]=Xh["[object Uint8Array]"]=Xh["[object Uint8ClampedArray]"]=Xh["[object Uint16Array]"]=Xh["[object Uint32Array]"]=!0,Xh["[object Arguments]"]=Xh["[object Array]"]=Xh["[object ArrayBuffer]"]=Xh["[object Boolean]"]=Xh["[object DataView]"]=Xh["[object Date]"]=Xh["[object Error]"]=Xh["[object Function]"]=Xh["[object Map]"]=Xh["[object Number]"]=Xh["[object Object]"]=Xh["[object RegExp]"]=Xh["[object Set]"]=Xh["[object String]"]=Xh["[object WeakMap]"]=!1;const Zh=function(t){return Mh(t)&&Gh(t.length)&&!!Xh[ql(t)]};const Qh=function(t){return function(e){return t(e)}};var Kh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jh=Kh&&"object"==typeof module&&module&&!module.nodeType&&module,tu=Jh&&Jh.exports===Kh&&Bl.process,eu=function(){try{var t=Jh&&Jh.require&&Jh.require("util").types;return t||tu&&tu.binding&&tu.binding("util")}catch(e){}}();const nu=eu;var iu=nu&&nu.isTypedArray;const ru=iu?Qh(iu):Zh;var au=Object.prototype.hasOwnProperty;const su=function(t,e){var n=Yh(t),i=!n&&Ph(t),r=!n&&!i&&Hh(t),a=!n&&!i&&!r&&ru(t),s=n||i||r||a,o=s?Oh(t.length,String):[],l=o.length;for(var c in t)!e&&!au.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Vh(c,l))||o.push(c);return o};var ou=Object.prototype;const lu=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ou)};const cu=function(t,e){return function(n){return t(e(n))}};const hu=cu(Object.keys,Object);var uu=Object.prototype.hasOwnProperty;const du=function(t){if(!lu(t))return hu(t);var e=[];for(var n in Object(t))uu.call(t,n)&&"constructor"!=n&&e.push(n);return e};const fu=function(t){return null!=t&&Gh(t.length)&&!Gl(t)};const pu=function(t){return fu(t)?su(t):du(t)};const gu=function(t,e){return t&&Nh(t,e,pu)};const yu=function(t,e){return function(n,i){if(null==n)return n;if(!fu(n))return t(n,i);for(var r=n.length,a=e?r:-1,s=Object(n);(e?a--:++a<r)&&!1!==i(s[a],a,s););return n}}(gu);const mu=function(t){return t};const bu=function(t){return"function"==typeof t?t:mu};const _u=function(t,e){return(Yh(t)?Dh:yu)(t,bu(e))};const xu=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};const vu=function(t){return"symbol"==typeof t||Mh(t)&&"[object Symbol]"==ql(t)};var ku=Rl?Rl.prototype:void 0,wu=ku?ku.toString:void 0;const Tu=function t(e){if("string"==typeof e)return e;if(Yh(e))return xu(e,t)+"";if(vu(e))return wu?wu.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const Cu=function(t){return null==t?"":Tu(t)};var Eu=0;const Su=function(t){var e=++Eu;return Cu(t)+e};var Au=Object.prototype.hasOwnProperty;const Du=function(t,e){return null!=t&&Au.call(t,e)};var Lu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nu=/^\w*$/;const Ou=function(t,e){if(Yh(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!vu(t))||(Nu.test(t)||!Lu.test(t)||null!=e&&t in Object(e))};var Mu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bu=/\\(\\)?/g,Iu=function(t){var e=jc(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Mu,(function(t,n,i,r){e.push(i?r.replace(Bu,"$1"):n||t)})),e}));const Fu=Iu;const Ru=function(t,e){return Yh(t)?t:Ou(t,e)?[t]:Fu(Cu(t))};const $u=function(t){if("string"==typeof t||vu(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Pu=function(t,e,n){for(var i=-1,r=(e=Ru(e,t)).length,a=!1;++i<r;){var s=$u(e[i]);if(!(a=null!=t&&n(t,s)))break;t=t[s]}return a||++i!=r?a:!!(r=null==t?0:t.length)&&Gh(r)&&Vh(s,r)&&(Yh(t)||Ph(t))};const Yu=function(t,e){return null!=t&&Pu(t,e,Du)};const ju=function(t){return function(){return t}};const zu=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};var Uu=Rl?Rl.isConcatSpreadable:void 0;const Wu=function(t){return Yh(t)||Ph(t)||!!(Uu&&t&&t[Uu])};const Hu=function t(e,n,i,r,a){var s=-1,o=e.length;for(i||(i=Wu),a||(a=[]);++s<o;){var l=e[s];n>0&&i(l)?n>1?t(l,n-1,i,r,a):zu(a,l):r||(a[a.length]=l)}return a};const qu=function(t){return(null==t?0:t.length)?Hu(t,1):[]};const Vu=function(){this.__data__=new Dc,this.size=0};const Gu=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Xu=function(t){return this.__data__.get(t)};const Zu=function(t){return this.__data__.has(t)};const Qu=function(t,e){var n=this.__data__;if(n instanceof Dc){var i=n.__data__;if(!Lc||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pc(i)}return n.set(t,e),this.size=n.size,this};function Ku(t){var e=this.__data__=new Dc(t);this.size=e.size}Ku.prototype.clear=Vu,Ku.prototype.delete=Gu,Ku.prototype.get=Xu,Ku.prototype.has=Zu,Ku.prototype.set=Qu;const Ju=Ku;const td=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const ed=function(t){return this.__data__.has(t)};
vendor: 3,881 bytes, line 11
11function nd(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Pc;++e<n;)this.add(t[e])}nd.prototype.add=nd.prototype.push=td,nd.prototype.has=ed;const id=nd;const rd=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ad=function(t,e){return t.has(e)};const sd=function(t,e,n,i,r,a){var s=1&n,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(t),h=a.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,f=2&n?new id:void 0;for(a.set(t,e),a.set(e,t);++u<o;){var p=t[u],g=e[u];if(i)var y=s?i(g,p,u,e,t,a):i(p,g,u,t,e,a);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!rd(e,(function(t,e){if(!ad(f,e)&&(p===t||r(p,t,n,i,a)))return f.push(e)}))){d=!1;break}}else if(p!==g&&!r(p,g,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d};const od=Fl.Uint8Array;const ld=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const cd=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var hd=Rl?Rl.prototype:void 0,ud=hd?hd.valueOf:void 0;const dd=function(t,e,n,i,r,a,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new od(t),new od(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return vc(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var o=ld;case"[object Set]":var l=1&i;if(o||(o=cd),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var h=sd(o(t),o(e),i,r,a,s);return s.delete(t),h;case"[object Symbol]":if(ud)return ud.call(t)==ud.call(e)}return!1};const fd=function(t,e,n){var i=e(t);return Yh(t)?i:zu(i,n(t))};const pd=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,a=[];++n<i;){var s=t[n];e(s,n,t)&&(a[r++]=s)}return a};const gd=function(){return[]};var yd=Object.prototype.propertyIsEnumerable,md=Object.getOwnPropertySymbols,bd=md?function(t){return null==t?[]:(t=Object(t),pd(md(t),(function(e){return yd.call(t,e)})))}:gd;const _d=bd;const xd=function(t){return fd(t,pu,_d)};var vd=Object.prototype.hasOwnProperty;const kd=function(t,e,n,i,r,a){var s=1&n,o=xd(t),l=o.length;if(l!=xd(e).length&&!s)return!1;for(var c=l;c--;){var h=o[c];if(!(s?h in e:vd.call(e,h)))return!1}var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var p=s;++c<l;){var g=t[h=o[c]],y=e[h];if(i)var m=s?i(y,g,h,e,t,a):i(g,y,h,t,e,a);if(!(void 0===m?g===y||r(g,y,n,i,a):m)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(f=!1)}return a.delete(t),a.delete(e),f};const wd=cc(Fl,"DataView");const Td=cc(Fl,"Promise");const Cd=cc(Fl,"Set");const Ed=cc(Fl,"WeakMap");var Sd="[object Map]",Ad="[object Promise]",Dd="[object Set]",Ld="[object WeakMap]",Nd="[object DataView]",Od=tc(wd),Md=tc(Lc),Bd=tc(Td),Id=tc(Cd),Fd=tc(Ed),Rd=ql;(wd&&Rd(new wd(new ArrayBuffer(1)))!=Nd||Lc&&Rd(new Lc)!=Sd||Td&&Rd(Td.resolve())!=Ad||Cd&&Rd(new Cd)!=Dd||Ed&&Rd(new Ed)!=Ld)&&(Rd=function(t){var e=ql(t),n="[object Object]"==e?t.constructor:void 0,i=n?tc(n):"";if(i)switch(i){case Od:return Nd;case Md:return Sd;case Bd:return Ad;case Id:return Dd;case Fd:return Ld}return e});const $d=Rd;var Pd="[object Arguments]",Yd="[object Array]",jd="[object Object]",zd=Object.prototype.hasOwnProperty;const Ud=function(t,e,n,i,r,a){var s=Yh(t),o=Yh(e),l=s?Yd:$d(t),c=o?Yd:$d(e),h=(l=l==Pd?jd:l)==jd,u=(c=c==Pd?jd:c)==jd,d=l==c;if(d&&Hh(t)){if(!Hh(e))return!1;s=!0,h=!1}if(d&&!h)return a||(a=new Ju),s||ru(t)?sd(t,e,n,i,r,a):dd(t,e,l,n,i,r,a);if(!(1&n)){var f=h&&zd.call(t,"__wrapped__"),p=u&&zd.call(e,"__wrapped__");
11if(f||p){var g=f?t.value():t,y=p?e.value():e;return a||(a=new Ju),r(g,y,n,i,a)}}return!!d&&(a||(a=new Ju),kd(t,e,n,i,r,a))};const Wd=function t(e,n,i,r,a){return e===n||(null==e||null==n||!Mh(e)&&!Mh(n)?e!=e&&n!=n:Ud(e,n,i,r,t,a))};const Hd=function(t,e,n,i){var r=n.length,a=r,s=!i;if(null==t)return!a;for(t=Object(t);r--;){var o=n[r];if(s&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++r<a;){var l=(o=n[r])[0],c=t[l],h=o[1];if(s&&o[2]){if(void 0===c&&!(l in t))return!1}else{var u=new Ju;if(i)var d=i(c,h,l,t,e,u);if(!(void 0===d?Wd(h,c,3,i,u):d))return!1}}return!0};const qd=function(t){return t==t&&!Vl(t)};const Vd=function(t){for(var e=pu(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,qd(r)]}return e};const Gd=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};const Xd=function(t){var e=Vd(t);return 1==e.length&&e[0][2]?Gd(e[0][0],e[0][1]):function(n){return n===t||Hd(n,t,e)}};const Zd=function(t,e){for(var n=0,i=(e=Ru(e,t)).length;null!=t&&n<i;)t=t[$u(e[n++])];return n&&n==i?t:void 0};const Qd=function(t,e,n){var i=null==t?void 0:Zd(t,e);return void 0===i?n:i};const Kd=function(t,e){return null!=t&&e in Object(t)};const Jd=function(t,e){return null!=t&&Pu(t,e,Kd)};const tf=function(t,e){return Ou(t)&&qd(e)?Gd($u(t),e):function(n){var i=Qd(n,t);return void 0===i&&i===e?Jd(n,t):Wd(e,i,3)}};const ef=function(t){return function(e){return null==e?void 0:e[t]}};const nf=function(t){return function(e){return Zd(e,t)}};const rf=function(t){return Ou(t)?ef($u(t)):nf(t)};const af=function(t){return"function"==typeof t?t:null==t?mu:"object"==typeof t?Yh(t)?tf(t[0],t[1]):Xd(t):rf(t)};const sf=function(t,e){var n=-1,i=fu(t)?Array(t.length):[];return yu(t,(function(t,r,a){i[++n]=e(t,r,a)})),i};const of=function(t,e){return(Yh(t)?xu:sf)(t,af(e,3))};var lf=Math.ceil,cf=Math.max;const hf=function(t,e,n,i){for(var r=-1,a=cf(lf((e-t)/(n||1)),0),s=Array(a);a--;)s[i?a:++r]=t,t+=n;return s};const uf=function(t,e,n){if(!Vl(n))return!1;var i=typeof e;return!!("number"==i?fu(n)&&Vh(e,n.length):"string"==i&&e in n)&&vc(n[e],t)};var df=/\s/;const ff=function(t){for(var e=t.length;e--&&df.test(t.charAt(e)););return e};var pf=/^\s+/;const gf=function(t){return t?t.slice(0,ff(t)+1).replace(pf,""):t};var yf=/^[-+]0x[0-9a-f]+$/i,mf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,_f=parseInt;const xf=function(t){if("number"==typeof t)return t;if(vu(t))return NaN;if(Vl(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vl(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=gf(t);var n=mf.test(t);return n||bf.test(t)?_f(t.slice(2),n?2:8):yf.test(t)?NaN:+t};var vf=1/0;const kf=function(t){return t?(t=xf(t))===vf||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const wf=function(t){return function(e,n,i){return i&&"number"!=typeof i&&uf(e,n,i)&&(n=i=void 0),e=kf(e),void 0===n?(n=e,e=0):n=kf(n),i=void 0===i?e<n?1:-1:kf(i),hf(e,n,i,t)}};const Tf=wf();const Cf=function(t,e){var n=[];return yu(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n};const Ef=function(t,e){return(Yh(t)?pd:Cf)(t,af(e,3))};var Sf=Object.prototype.hasOwnProperty;const Af=function(t){if(null==t)return!0;if(fu(t)&&(Yh(t)||"string"==typeof t||"function"==typeof t.splice||Hh(t)||ru(t)||Ph(t)))return!t.length;var e=$d(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(lu(t))return!du(t).length;for(var n in t)if(Sf.call(t,n))return!1;return!0};const Df=function(t){return void 0===t};const Lf=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var Nf=Math.max;const Of=function(t,e,n){return e=Nf(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,a=Nf(i.length-e,0),s=Array(a);++r<a;)s[r]=i[e+r];r=-1;for(var o=Array(e+1);++r<e;)o[r]=i[r];return o[e]=n(s),Lf(t,this,o)}};const Mf=function(){try{var t=cc(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();var Bf=Mf?function(t,e){return Mf(t,"toString",{configurable:!0,enumerable:!1,value:ju(e),writable:!0})}:mu;const If=Bf;var Ff=Date.now;const Rf=function(t){var e=0,n=0;
11return function(){var i=Ff(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(If);const $f=function(t,e){return Rf(Of(t,e,mu),t+"")};const Pf=function(t,e,n,i){for(var r=t.length,a=n+(i?1:-1);i?a--:++a<r;)if(e(t[a],a,t))return a;return-1};const Yf=function(t){return t!=t};const jf=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1};const zf=function(t,e,n){return e==e?jf(t,e,n):Pf(t,Yf,n)};const Uf=function(t,e){return!!(null==t?0:t.length)&&zf(t,e,0)>-1};const Wf=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1};const Hf=function(){};var qf=Cd&&1/cd(new Cd([,-0]))[1]==1/0?function(t){return new Cd(t)}:Hf;const Vf=qf;const Gf=function(t,e,n){var i=-1,r=Uf,a=t.length,s=!0,o=[],l=o;if(n)s=!1,r=Wf;else if(a>=200){var c=e?null:Vf(t);if(c)return cd(c);s=!1,r=ad,l=new id}else l=e?[]:o;t:for(;++i<a;){var h=t[i],u=e?e(h):h;if(h=n||0!==h?h:0,s&&u==u){for(var d=l.length;d--;)if(l[d]===u)continue t;e&&l.push(u),o.push(h)}else r(l,u,n)||(l!==o&&l.push(u),o.push(h))}return o};const Xf=function(t){return Mh(t)&&fu(t)};const Zf=$f((function(t){return Gf(Hu(t,1,Xf,!0))}));const Qf=function(t,e){return xu(e,(function(e){return t[e]}))};const Kf=function(t){return null==t?[]:Qf(t,pu(t))};const Jf=function(t,e,n,i){var r=-1,a=null==t?0:t.length;for(i&&a&&(n=t[++r]);++r<a;)n=e(n,t[r],r,t);return n};const tp=function(t,e,n,i,r){return r(t,(function(t,r,a){n=i?(i=!1,t):e(n,t,r,a)})),n};const ep=function(t,e,n){var i=Yh(t)?Jf:tp,r=arguments.length<3;return i(t,af(e,4),n,r,yu)};var np="\0";class ip{constructor(t={}){this._isDirected=!Yu(t,"directed")||t.directed,this._isMultigraph=!!Yu(t,"multigraph")&&t.multigraph,this._isCompound=!!Yu(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=ju(void 0),this._defaultEdgeLabelFn=ju(void 0),this._nodes={}
11,this._isCompound&&(this._parent={},this._children={},this._children[np]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Gl(t)||(t=ju(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return pu(this._nodes)}sources(){var t=this;return Ef(this.nodes(),(function(e){return Af(t._in[e])}))}sinks(){var t=this;return Ef(this.nodes(),(function(e){return Af(t._out[e])}))}setNodes(t,e){var n=arguments,i=this;return _u(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this}setNode(t,e){return Yu(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=np,this._children[t]={},this._children[np][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Yu(this._nodes,t)}removeNode(t){var e=this;if(Yu(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};
11delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],_u(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),_u(pu(this._in[t]),n),delete this._in[t],delete this._preds[t],_u(pu(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Df(e))e=np;else{for(var n=e+="";!Df(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==np)return e}}children(t){if(Df(t)&&(t=np),this._isCompound){var e=this._children[t];if(e)return pu(e)}else{if(t===np)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return pu(e)}successors(t){var e=this._sucs[t];if(e)return pu(e)}neighbors(t){var e=this.predecessors(t);if(e)return Zf(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;_u(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),_u(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function r(t){var a=n.parent(t);return void 0===a||e.hasNode(a)?(i[t]=a,a):a in i?i[a]:r(a)}return this._isCompound&&_u(e.nodes(),(function(t){e.setParent(t,r(t))})),e}setDefaultEdgeLabel(t){return Gl(t)||(t=ju(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Kf(this._edgeObjs)}setPath(t,e){var n=this,i=arguments;return ep(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this}setEdge(){var t,e,n,i,r=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],r=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),t=""+t,e=""+e,Df(n)||(n=""+n);var s=sp(this._isDirected,t,e,n);if(Yu(this._edgeLabels,s))return r&&(this._edgeLabels[s]=i),this;if(!Df(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=r?i:this._defaultEdgeLabelFn(t,e,n);var o=function(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var s=r;r=a,a=s}var o={v:r,w:a};i&&(o.name=i);return o}(this._isDirected,t,e,n);return t=o.v,e=o.w,Object.freeze(o),this._edgeObjs[s]=o,rp(this._preds[e],t),rp(this._sucs[t],e),this._in[e][s]=o,this._out[t][s]=o,this._edgeCount++,this}edge(t,e,n){var i=1===arguments.length?op(this._isDirected,arguments[0]):sp(this._isDirected,t,e,n);return this._edgeLabels[i]}hasEdge(t,e,n){var i=1===arguments.length?op(this._isDirected,arguments[0]):sp(this._isDirected,t,e,n);return Yu(this._edgeLabels,i)}removeEdge(t,e,n){var i=1===arguments.length?op(this._isDirected,arguments[0]):sp(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],ap(this._preds[e],t),ap(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var i=Kf(n);return e?Ef(i,(function(t){return t.v===e})):i}}outEdges(t,e){var n=this._out[t];if(n){var i=Kf(n);return e?Ef(i,(function(t){return t.w===e})):i}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function rp(t,e){t[e]?t[e]++:t[e]=1}function ap(t,e){--t[e]||delete t[e]}function sp(t,e,n,i){var r=""+e,a=""+n;if(!t&&r>a){var s=r;r=a,a=s}return r+"\x01"+a+"\x01"+(Df(i)?"\0":i)}function op(t,e){return sp(t,e.v,e.w,e.name)}ip.prototype._nodeCount=0,ip.prototype._edgeCount=0;class lp{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return cp(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&cp(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,hp)),n=n._prev;return"["+t.join(", ")+"]"}}function cp(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function hp(t,e){if("_next"!==t&&"_prev"!==t)return e}var up=ju(1);
11function dp(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new ip,i=0,r=0;_u(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),_u(t.edges(),(function(t){var a=n.edge(t.v,t.w)||0,s=e(t),o=a+s;n.setEdge(t.v,t.w,o),r=Math.max(r,n.node(t.v).out+=s),i=Math.max(i,n.node(t.w).in+=s)}));var a=Tf(r+i+3).map((function(){return new lp})),s=i+1;return _u(n.nodes(),(function(t){pp(a,s,n.node(t))})),{graph:n,buckets:a,zeroIdx:s}}(t,e||up),i=function(t,e,n){var i,r=[],a=e[e.length-1],s=e[0];for(;t.nodeCount();){for(;i=s.dequeue();)fp(t,e,n,i);for(;i=a.dequeue();)fp(t,e,n,i);if(t.nodeCount())for(var o=e.length-2;o>0;--o)if(i=e[o].dequeue()){r=r.concat(fp(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return qu(of(i,(function(e){return t.outEdges(e.v,e.w)})),!0)}function fp(t,e,n,i,r){var a=r?[]:void 0;return _u(t.inEdges(i.v),(function(i){var s=t.edge(i),o=t.node(i.v);r&&a.push({v:i.v,w:i.w}),o.out-=s,pp(e,n,o)})),_u(t.outEdges(i.v),(function(i){var r=t.edge(i),a=i.w,s=t.node(a);s.in-=r,pp(e,n,s)})),t.removeNode(i.v),a}function pp(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function gp(t){var e="greedy"===t.graph().acyclicer?dp(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function r(a){Yu(i,a)||(i[a]=!0,n[a]=!0,_u(t.outEdges(a),(function(t){Yu(n,t.w)?e.push(t):r(t.w)})),delete n[a])}return _u(t.nodes(),r),e}(t);_u(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,Su("rev"))}))}const yp=function(t,e,n){"__proto__"==e&&Mf?Mf(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};const mp=function(t,e,n){(void 0!==n&&!vc(t[e],n)||void 0===n&&!(e in t))&&yp(t,e,n)};var bp="object"==typeof exports&&exports&&!exports.nodeType&&exports,_p=bp&&"object"==typeof module&&module&&!module.nodeType&&module,xp=_p&&_p.exports===bp?Fl.Buffer:void 0,vp=xp?xp.allocUnsafe:void 0;const kp=function(t,e){if(e)return t.slice();var n=t.length,i=vp?vp(n):new t.constructor(n);return t.copy(i),i};const wp=function(t){var e=new t.constructor(t.byteLength);return new od(e).set(new od(t)),e};const Tp=function(t,e){var n=e?wp(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Cp=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};var Ep=Object.create,Sp=function(){function t(){}return function(e){if(!Vl(e))return{};if(Ep)return Ep(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Ap=Sp;const Dp=cu(Object.getPrototypeOf,Object);const Lp=function(t){return"function"!=typeof t.constructor||lu(t)?{}:Ap(Dp(t))};var Np=Function.prototype,Op=Object.prototype,Mp=Np.toString,Bp=Op.hasOwnProperty,Ip=Mp.call(Object);const Fp=function(t){if(!Mh(t)||"[object Object]"!=ql(t))return!1;var e=Dp(t);if(null===e)return!0;var n=Bp.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mp.call(n)==Ip};const Rp=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var $p=Object.prototype.hasOwnProperty;const Pp=function(t,e,n){var i=t[e];$p.call(t,e)&&vc(i,n)&&(void 0!==n||e in t)||yp(t,e,n)};const Yp=function(t,e,n,i){var r=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=i?i(n[o],t[o],o,n,t):void 0;void 0===l&&(l=t[o]),r?yp(n,o,l):Pp(n,o,l)}return n};const jp=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var zp=Object.prototype.hasOwnProperty;const Up=function(t){if(!Vl(t))return jp(t);var e=lu(t),n=[];for(var i in t)("constructor"!=i||!e&&zp.call(t,i))&&n.push(i);return n};const Wp=function(t){return fu(t)?su(t,!0):Up(t)};const Hp=function(t){return Yp(t,Wp(t))};const qp=function(t,e,n,i,r,a,s){var o=Rp(t,n),l=Rp(e,n),c=s.get(l);if(c)mp(t,n,c);else{var h=a?a(o,l,n+"",t,e,s):void 0,u=void 0===h;if(u){var d=Yh(l),f=!d&&Hh(l),p=!d&&!f&&ru(l);h=l,d||f||p?Yh(o)?h=o:Xf(o)?h=Cp(o):f?(u=!1,h=kp(l,!0)):p?(u=!1,h=Tp(l,!0)):h=[]:Fp(l)||Ph(l)?(h=o,Ph(o)?h=Hp(o):Vl(o)&&!Gl(o)||(h=Lp(l))):u=!1}u&&(s.set(l,h),r(h,l,i,a,s),s.delete(l)),mp(t,n,h)}};const Vp=function t(e,n,i,r,a){e!==n&&Nh(n,(function(s,o){if(a||(a=new Ju),Vl(s))qp(e,n,o,i,t,r,a);else{var l=r?r(Rp(e,o),s,o+"",e,n,a):void 0;void 0===l&&(l=s),mp(e,o,l)}}),Wp)};const Gp=function(t){return $f((function(e,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,s&&uf(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),e=Object(e);++i<r;){var o=n[i];o&&t(e,o,i,a)}return e}))};var Xp=Gp((function(t,e,n){Vp(t,e,n)}
11));const Zp=Xp;const Qp=function(t,e,n,i){if(!Vl(t))return t;for(var r=-1,a=(e=Ru(e,t)).length,s=a-1,o=t;null!=o&&++r<a;){var l=$u(e[r]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=s){var h=o[l];void 0===(c=i?i(h,l,o):void 0)&&(c=Vl(h)?h:Vh(e[r+1])?[]:{})}Pp(o,l,c),o=o[l]}return t};const Kp=function(t,e,n){for(var i=-1,r=e.length,a={};++i<r;){var s=e[i],o=Zd(t,s);n(o,s)&&Qp(a,Ru(s,t),o)}return a};const Jp=function(t,e){return Kp(t,e,(function(e,n){return Jd(t,n)}))};var tg=function(t){return Rf(Of(t,void 0,qu),t+"")}((function(t,e){return null==t?{}:Jp(t,e)}));const eg=tg;var ng=Object.prototype,ig=ng.hasOwnProperty,rg=$f((function(t,e){t=Object(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&uf(e[0],e[1],r)&&(i=1);++n<i;)for(var a=e[n],s=Wp(a),o=-1,l=s.length;++o<l;){var c=s[o],h=t[c];(void 0===h||vc(h,ng[c])&&!ig.call(t,c))&&(t[c]=a[c])}return t}));const ag=rg;const sg=function(t,e,n){for(var i=-1,r=t.length;++i<r;){var a=t[i],s=e(a);if(null!=s&&(void 0===o?s==s&&!vu(s):n(s,o)))var o=s,l=a}return l};const og=function(t,e){return t>e};const lg=function(t){return t&&t.length?sg(t,mu,og):void 0};const cg=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const hg=function(t,e){var n={};return e=af(e,3),gu(t,(function(t,i,r){yp(n,i,e(t,i,r))})),n};const ug=function(t,e){return t<e};const dg=function(t){return t&&t.length?sg(t,mu,ug):void 0};const fg=function(){return Fl.Date.now()};function pg(t,e,n,i){var r;do{r=Su(i)}while(t.hasNode(r));return n.dummy=e,t.setNode(r,n),r}function gg(t){var e=new ip({multigraph:t.isMultigraph()}).setGraph(t.graph());return _u(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),_u(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function yg(t,e){var n,i,r=t.x,a=t.y,s=e.x-r,o=e.y-a,l=t.width/2,c=t.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),n=c*s/o,i=c):(s<0&&(l=-l),n=l,i=l*o/s),{x:r+n,y:a+i}}function mg(t){var e=of(Tf(_g(t)+1),(function(){return[]}));return _u(t.nodes(),(function(n){var i=t.node(n),r=i.rank;Df(r)||(e[r][i.order]=n)})),e}function bg(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),pg(t,"border",r,e)}function _g(t){return lg(of(t.nodes(),(function(e){var n=t.node(e).rank;if(!Df(n))return n})))}function xg(t,e){var n=fg();try{return e()}finally{console.log(t+" time: "+(fg()-n)+"ms")}}function vg(t,e){return e()}function kg(t,e,n,i,r,a){var s={width:0,height:0,rank:a,borderType:e},o=r[e][a-1],l=pg(t,"border",s,n);r[e][a]=l,t.setParent(l,i),o&&t.setEdge(o,l,{weight:1})}function wg(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){_u(t.nodes(),(function(e){Eg(t.node(e))})),_u(t.edges(),(function(e){var n=t.edge(e);_u(n.points,Eg),Yu(n,"y")&&Eg(n)}))}(t),"lr"!==e&&"rl"!==e||(!function(t){_u(t.nodes(),(function(e){Sg(t.node(e))})),_u(t.edges(),(function(e){var n=t.edge(e);_u(n.points,Sg),Yu(n,"x")&&Sg(n)}))}(t),Tg(t))}function Tg(t){_u(t.nodes(),(function(e){Cg(t.node(e))})),_u(t.edges(),(function(e){Cg(t.edge(e))}))}function Cg(t){var e=t.width;t.width=t.height,t.height=e}function Eg(t){t.y=-t.y}function Sg(t){var e=t.x;t.x=t.y,t.y=e}function Ag(t){var e=pg(t,"root",{},"_root"),n=function(t){var e={};function n(i,r){var a=t.children(i);a&&a.length&&_u(a,(function(t){n(t,r+1)})),e[i]=r}return _u(t.children(),(function(t){n(t,1)})),e}(t),i=lg(Kf(n))-1,r=2*i+1;t.graph().nestingRoot=e,_u(t.edges(),(function(e){t.edge(e).minlen*=r}));var a=function(t){return ep(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;_u(t.children(),(function(s){Dg(t,e,r,a,i,n,s)})),t.graph().nodeRankFactor=r}function Dg(t,e,n,i,r,a,s){var o=t.children(s);if(o.length){var l=bg(t,"_bt"),c=bg(t,"_bb"),h=t.node(s);t.setParent(l,s),h.borderTop=l,t.setParent(c,s),h.borderBottom=c,_u(o,(function(o){Dg(t,e,n,i,r,a,o);var h=t.node(o),u=h.borderTop?h.borderTop:o,d=h.borderBottom?h.borderBottom:o,f=h.borderTop?i:2*i,p=u!==d?1:r-a[s]+1;t.setEdge(l,u,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(d,c,{weight:f,minlen:p,nestingEdge:!0})}
11)),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:r+a[s]})}else s!==e&&t.setEdge(e,s,{weight:0,minlen:n})}const Lg=function(t,e){return t&&Yp(e,pu(e),t)};const Ng=function(t,e){return t&&Yp(e,Wp(e),t)};const Og=function(t,e){return Yp(t,_d(t),e)};var Mg=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)zu(e,_d(t)),t=Dp(t);return e}:gd;const Bg=Mg;const Ig=function(t,e){return Yp(t,Bg(t),e)};const Fg=function(t){return fd(t,Wp,Bg)};var Rg=Object.prototype.hasOwnProperty;const $g=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Rg.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Pg=function(t,e){var n=e?wp(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var Yg=/\w*$/;const jg=function(t){var e=new t.constructor(t.source,Yg.exec(t));return e.lastIndex=t.lastIndex,e};var zg=Rl?Rl.prototype:void 0,Ug=zg?zg.valueOf:void 0;const Wg=function(t){return Ug?Object(Ug.call(t)):{}};const Hg=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return wp(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return Pg(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Tp(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return jg(t);case"[object Symbol]":return Wg(t)}};const qg=function(t){return Mh(t)&&"[object Map]"==$d(t)};var Vg=nu&&nu.isMap;const Gg=Vg?Qh(Vg):qg;const Xg=function(t){return Mh(t)&&"[object Set]"==$d(t)};var Zg=nu&&nu.isSet;const Qg=Zg?Qh(Zg):Xg;var Kg="[object Arguments]",Jg="[object Function]",ty="[object Object]",ey={};ey[Kg]=ey["[object Array]"]=ey["[object ArrayBuffer]"]=ey["[object DataView]"]=ey["[object Boolean]"]=ey["[object Date]"]=ey["[object Float32Array]"]=ey["[object Float64Array]"]=ey["[object Int8Array]"]=ey["[object Int16Array]"]=ey["[object Int32Array]"]=ey["[object Map]"]=ey["[object Number]"]=ey[ty]=ey["[object RegExp]"]=ey["[object Set]"]=ey["[object String]"]=ey["[object Symbol]"]=ey["[object Uint8Array]"]=ey["[object Uint8ClampedArray]"]=ey["[object Uint16Array]"]=ey["[object Uint32Array]"]=!0,ey["[object Error]"]=ey[Jg]=ey["[object WeakMap]"]=!1;const ny=function t(e,n,i,r,a,s){var o,l=1&n,c=2&n,h=4&n;if(i&&(o=a?i(e,r,a,s):i(e)),void 0!==o)return o;if(!Vl(e))return e;var u=Yh(e);if(u){if(o=$g(e),!l)return Cp(e,o)}else{var d=$d(e),f=d==Jg||"[object GeneratorFunction]"==d;if(Hh(e))return kp(e,l);if(d==ty||d==Kg||f&&!a){if(o=c||f?{}:Lp(e),!l)return c?Ig(e,Ng(o,e)):Og(e,Lg(o,e))}else{if(!ey[d])return a?e:{};o=Hg(e,d,l)}}s||(s=new Ju);var p=s.get(e);if(p)return p;s.set(e,o),Qg(e)?e.forEach((function(r){o.add(t(r,n,i,r,e,s))})):Gg(e)&&e.forEach((function(r,a){o.set(a,t(r,n,i,a,e,s))}));var g=u?void 0:(h?c?Fg:xd:c?Wp:pu)(e);return Dh(g||e,(function(r,a){g&&(r=e[a=r]),Pp(o,a,t(r,n,i,a,e,s))})),o};const iy=function(t){return ny(t,5)};function ry(t,e,n){var i=function(t){var e;for(;t.hasNode(e=Su("_root")););return e}(t),r=new ip({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return _u(t.nodes(),(function(a){var s=t.node(a),o=t.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(r.setNode(a),r.setParent(a,o||i),_u(t[n](a),(function(e){var n=e.v===a?e.w:e.v,i=r.edge(n,a),s=Df(i)?0:i.weight;r.setEdge(n,a,{weight:t.edge(e).weight+s})})),Yu(s,"minRank")&&r.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),r}const ay=function(t,e,n){for(var i=-1,r=t.length,a=e.length,s={};++i<r;){var o=i<a?e[i]:void 0;n(s,t[i],o)}return s};const sy=function(t,e){return ay(t||[],e||[],Pp)};const oy=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t};const ly=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,a=vu(t),s=void 0!==e,o=null===e,l=e==e,c=vu(e);if(!o&&!c&&!a&&t>e||a&&s&&l&&!o&&!c||i&&s&&l||!n&&l||!r)return 1;if(!i&&!a&&!c&&t<e||c&&n&&r&&!i&&!a||o&&n&&r||!s&&r||!l)return-1}return 0};const cy=function(t,e,n){for(var i=-1,r=t.criteria,a=e.criteria,s=r.length,o=n.length;++i<s;){var l=ly(r[i],a[i]);if(l)return i>=o?l:l*("desc"==n[i]?-1:1)}return t.index-e.index};const hy=function(t,e,n){e=e.length?xu(e,(function(t){return Yh(t)?function(e){return Zd(e,1===t.length?t[0]:t)}:t})):[mu];var i=-1;e=xu(e,Qh(af));var r=sf(t,(function(t,n,r){return{criteria:xu(e,(function(e){return e(t)})),index:++i,value:t}}));return oy(r,(function(t,e){return cy(t,e,n)}
11))};const uy=$f((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uf(t,e[0],e[1])?e=[]:n>2&&uf(e[0],e[1],e[2])&&(e=[e[0]]),hy(t,Hu(e,1),[])}));function dy(t,e){for(var n=0,i=1;i<e.length;++i)n+=fy(t,e[i-1],e[i]);return n}function fy(t,e,n){for(var i=sy(n,of(n,(function(t,e){return e}))),r=qu(of(e,(function(e){return uy(of(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var o=of(new Array(s),(function(){return 0})),l=0;return _u(r.forEach((function(t){var e=t.pos+a;o[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=o[e+1]),o[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}function py(t,e){var n={};return _u(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};Df(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),_u(e.edges(),(function(t){var e=n[t.v],i=n[t.w];Df(e)||Df(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(Df(e.barycenter)||Df(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var r=t.pop();e.push(r),_u(r.in.reverse(),n(r)),_u(r.out,i(r))}return of(Ef(e,(function(t){return!t.merged})),(function(t){return eg(t,["vs","i","barycenter","weight"])}))}(Ef(n,(function(t){return!t.indegree})))}function gy(t,e){var n,i=function(t,e){var n={lhs:[],rhs:[]};return _u(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}(t,(function(t){return Yu(t,"barycenter")})),r=i.lhs,a=uy(i.rhs,(function(t){return-t.i})),s=[],o=0,l=0,c=0;r.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),c=yy(s,a,c),_u(r,(function(t){c+=t.vs.length,s.push(t.vs),o+=t.barycenter*t.weight,l+=t.weight,c=yy(s,a,c)}));var h={vs:qu(s,!0)};return l&&(h.barycenter=o/l,h.weight=l),h}function yy(t,e,n){for(var i;e.length&&(i=cg(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}function my(t,e,n,i){var r=t.children(e),a=t.node(e),s=a?a.borderLeft:void 0,o=a?a.borderRight:void 0,l={};s&&(r=Ef(r,(function(t){return t!==s&&t!==o})));var c=function(t,e){return of(e,(function(e){var n=t.inEdges(e);if(n.length){var i=ep(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}(t,r);_u(c,(function(e){if(t.children(e.v).length){var r=my(t,e.v,n,i);l[e.v]=r,Yu(r,"barycenter")&&(s=r,Df((a=e).barycenter)?(a.barycenter=s.barycenter,a.weight=s.weight):(a.barycenter=(a.barycenter*a.weight+s.barycenter*s.weight)/(a.weight+s.weight),a.weight+=s.weight))}var a,s}));var h=py(c,n);!function(t,e){_u(t,(function(t){t.vs=qu(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(h,l);var u=gy(h,i);if(s&&(u.vs=qu([s,u.vs,o],!0),t.predecessors(s).length)){var d=t.node(t.predecessors(s)[0]),f=t.node(t.predecessors(o)[0]);Yu(u,"barycenter")||(u.barycenter=0,u.weight=0),u.barycenter=(u.barycenter*u.weight+d.order+f.order)/(u.weight+2),u.weight+=2}return u}function by(t){var e=_g(t),n=_y(t,Tf(1,e+1),"inEdges"),i=_y(t,Tf(e-1,-1,-1),"outEdges"),r=function(t){var e={},n=Ef(t.nodes(),(function(e){return!t.children(e).length})),i=lg(of(n,(function(e){return t.node(e).rank}))),r=of(Tf(i+1),(function(){return[]})),a=uy(n,(function(e){return t.node(e).rank}));return _u(a,(function n(i){if(!Yu(e,i)){e[i]=!0;var a=t.node(i);r[a.rank].push(i),_u(t.successors(i),n)}})),r}(t);vy(t,r);for(var a,s=Number.POSITIVE_INFINITY,o=0,l=0;l<4;++o,++l){xy(o%2?n:i,o%4>=2);var c=dy(t,r=mg(t));c<s&&(l=0,a=iy(r),s=c)}vy(t,a)}function _y(t,e,n){return of(e,(function(e){return ry(t,e,n)}))}function xy(t,e){var n=new ip;_u(t,(function(t){var i=t.graph().root,r=my(t,i,n,e);_u(r.vs,(function(e,n){t.node(e).order=n})),function(t,e,n){var i,r={};_u(n,(function(n){for(var a,s,o=t.parent(n);o;){if((a=t.parent(o))?(s=r[a],r[a]=o):(s=i,i=o),s&&s!==o)return void e.setEdge(s,o);o=a}}))}(t,n,r.vs)}))}function vy(t,e){_u(e,(function(e){_u(e,(function(e,n){t.node(e).order=n}))}
11))}function ky(t){var e=function(t){var e={},n=0;function i(r){var a=n;_u(t.children(r),i),e[r]={low:a,lim:n++}}return _u(t.children(),i),e}(t);_u(t.graph().dummyChains,(function(n){for(var i=t.node(n),r=i.edgeObj,a=function(t,e,n,i){var r,a,s=[],o=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),s.push(r)}while(r&&(e[r].low>l||c>e[r].lim));a=r,r=i;for(;(r=t.parent(r))!==a;)o.push(r);return{path:s.concat(o.reverse()),lca:a}}(t,e,r.v,r.w),s=a.path,o=a.lca,l=0,c=s[l],h=!0;n!==r.w;){if(i=t.node(n),h){for(;(c=s[l])!==o&&t.node(c).maxRank<i.rank;)l++;c===o&&(h=!1)}if(!h){for(;l<s.length-1&&t.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}t.setParent(n,c),n=t.successors(n)[0]}}))}const wy=function(t){return function(e,n,i){var r=Object(e);if(!fu(e)){var a=af(n,3);e=pu(e),n=function(t){return a(r[t],t,r)}}var s=t(e,n,i);return s>-1?r[a?e[s]:s]:void 0}};const Ty=function(t){var e=kf(t),n=e%1;return e==e?n?e-n:e:0};var Cy=Math.max;const Ey=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Ty(n);return r<0&&(r=Cy(i+r,0)),Pf(t,af(e,3),r)};const Sy=wy(Ey);const Ay=function(t,e){return t&&t.length?sg(t,af(e,2),ug):void 0};const Dy=function(t,e){return null==t?t:Nh(t,bu(e),Wp)};function Ly(t,e){var n={};return ep(e,(function(e,i){var r=0,a=0,s=e.length,o=cg(i);return _u(i,(function(e,l){var c=function(t,e){if(t.node(e).dummy)return Sy(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=c?t.node(c).order:s;(c||e===o)&&(_u(i.slice(a,l+1),(function(e){_u(t.predecessors(e),(function(i){var a=t.node(i),s=a.order;!(s<r||h<s)||a.dummy&&t.node(e).dummy||Ny(n,i,e)}))})),a=l+1,r=h)})),i})),n}function Ny(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function Oy(t,e,n){if(e>n){var i=e;e=n,n=i}return Yu(t[e],n)}function My(t,e,n,i,r){var a={},s=function(t,e,n,i){var r=new ip,a=t.graph(),s=function(t,e,n){return function(i,r,a){var s,o=i.node(r),l=i.node(a),c=0;if(c+=o.width/2,Yu(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2}if(s&&(c+=n?s:-s),s=0,c+=(o.dummy?e:t)/2,c+=(l.dummy?e:t)/2,c+=l.width/2,Yu(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(c+=n?s:-s),s=0,c}}(a.nodesep,a.edgesep,i);return _u(e,(function(e){var i;_u(e,(function(e){var a=n[e];if(r.setNode(a),i){var o=n[i],l=r.edge(o,a);r.setEdge(o,a,Math.max(s(t,e,i),l||0))}i=e}))})),r}(t,e,n,r),o=r?"borderLeft":"borderRight";function l(t,e){for(var n=s.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return l((function(t){a[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+s.edge(e))}),0)}),s.predecessors.bind(s)),l((function(e){var n=s.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);n!==Number.POSITIVE_INFINITY&&i.borderType!==o&&(a[e]=Math.max(a[e],n))}),s.successors.bind(s)),_u(i,(function(t){a[t]=a[n[t]]})),a}function By(t){var e,n=mg(t),i=Zp(Ly(t,n),function(t,e){var n={};function i(e,i,r,a,s){var o;_u(Tf(i,r),(function(i){o=e[i],t.node(o).dummy&&_u(t.predecessors(o),(function(e){var i=t.node(e);i.dummy&&(i.order<a||i.order>s)&&Ny(n,e,o)}))}))}return ep(e,(function(e,n){var r,a=-1,s=0;return _u(n,(function(o,l){if("border"===t.node(o).dummy){var c=t.predecessors(o);c.length&&(r=t.node(c[0]).order,i(n,s,l,a,r),s=l,a=r)}i(n,s,n.length,r,e.length)})),n})),n}(t,n)),r={};_u(["u","d"],(function(a){e="u"===a?n:Kf(n).reverse(),_u(["l","r"],(function(n){"r"===n&&(e=of(e,(function(t){return Kf(t).reverse()})));var s=("u"===a?t.predecessors:t.successors).bind(t),o=function(t,e,n,i){var r={},a={},s={};return _u(e,(function(t){_u(t,(function(t,e){r[t]=t,a[t]=t,s[t]=e}))})),_u(e,(function(t){var e=-1;_u(t,(function(t){var o=i(t);if(o.length){o=uy(o,(function(t){return s[t]}));for(var l=(o.length-1)/2,c=Math.floor(l),h=Math.ceil(l);c<=h;++c){var u=o[c];a[t]===t&&e<s[u]&&!Oy(n,t,u)&&(a[u]=t,a[t]=r[t]=r[u],e=s[u])}}}))})),{root:r,align:a}}(0,e,i,s),l=My(t,e,o.root,o.align,"r"===n);"r"===n&&(l=hg(l,(function(t){return-t}))),r[a+n]=l}))}));var a=function(t,e){return Ay(Kf(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Dy(e,(function(e,r){var a=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+a,n),i=Math.min(e-a,i)})),n-i}))}(t,r);return function(t,e){var n=Kf(e),i=dg(n),r=lg(n);_u(["u","d"],(function(n){_u(["l","r"],(function(a){var s,o=n+a,l=t[o];if(l!==e){var c=Kf(l);(s="l"===a?i-dg(c):r-lg(c))&&(t[o]=hg(l,(function(t){return t+s})))}}))}))}
11(r,a),function(t,e){return hg(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var r=uy(of(t,i));return(r[1]+r[2])/2}))}(r,t.graph().align)}function Iy(t){(function(t){var e=mg(t),n=t.graph().ranksep,i=0;_u(e,(function(e){var r=lg(of(e,(function(e){return t.node(e).height})));_u(e,(function(e){t.node(e).y=i+r/2})),i+=r+n}))})(t=gg(t)),_u(By(t),(function(e,n){t.node(n).x=e}))}function Fy(t,e){var n=e&&e.debugTiming?xg:vg;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return function(t){var e=new ip({multigraph:!0,compound:!0}),n=qy(t.graph());return e.setGraph(Zp({},$y,Hy(n,Ry),eg(n,Py))),_u(t.nodes(),(function(n){var i=qy(t.node(n));e.setNode(n,ag(Hy(i,Yy),jy)),e.setParent(n,t.parent(n))})),_u(t.edges(),(function(n){var i=qy(t.edge(n));e.setEdge(n,Zp({},Uy,Hy(i,zy),eg(i,Wy)))})),e}(t)}));n("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,_u(t.edges(),(function(n){var i=t.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}(t)})),e("    removeSelfEdges",(function(){!function(t){_u(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e("    acyclic",(function(){gp(t)})),e("    nestingGraph.run",(function(){Ag(t)})),e("    rank",(function(){!function(t){switch(t.graph().ranker){case"network-simplex":default:wm(t);break;case"tight-tree":!function(t){Vy(t),Xy(t)}(t);break;case"longest-path":km(t)}}(gg(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){_u(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var i=t.node(e.v),r={rank:(t.node(e.w).rank-i.rank)/2+i.rank,e:e};pg(t,"edge-proxy",r,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){!function(t){var e=dg(of(t.nodes(),(function(e){return t.node(e).rank}))),n=[];_u(t.nodes(),(function(i){var r=t.node(i).rank-e;n[r]||(n[r]=[]),n[r].push(i)}));var i=0,r=t.graph().nodeRankFactor;_u(n,(function(e,n){Df(e)&&n%r!=0?--i:i&&_u(e,(function(e){t.node(e).rank+=i}))}))}(t)})),e("    nestingGraph.cleanup",(function(){!function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,_u(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}(t)})),e("    normalizeRanks",(function(){!function(t){var e=dg(of(t.nodes(),(function(e){return t.node(e).rank})));_u(t.nodes(),(function(n){var i=t.node(n);Yu(i,"rank")&&(i.rank-=e)}))}(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;_u(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=lg(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){_u(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e("    normalize.run",(function(){!function(t){t.graph().dummyChains=[],_u(t.edges(),(function(e){!function(t,e){var n,i,r,a=e.v,s=t.node(a).rank,o=e.w,l=t.node(o).rank,c=e.name,h=t.edge(e),u=h.labelRank;if(l===s+1)return;for(t.removeEdge(e),r=0,++s;s<l;++r,++s)h.points=[],n=pg(t,"edge",i={width:0,height:0,edgeLabel:h,edgeObj:e,rank:s},"_d"),s===u&&(i.width=h.width,i.height=h.height,i.dummy="edge-label",i.labelpos=h.labelpos),t.setEdge(a,n,{weight:h.weight},c),0===r&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,o,{weight:h.weight},c)}(t,e)}))}(t)})),e("    parentDummyChains",(function(){ky(t)})),e("    addBorderSegments",(function(){!function(t){_u(t.children(),(function e(n){var i=t.children(n),r=t.node(n);if(i.length&&_u(i,e),Yu(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(var a=r.minRank,s=r.maxRank+1;a<s;++a)kg(t,"borderLeft","_bl",n,r,a),kg(t,"borderRight","_br",n,r,a)}}))}(t)})),e("    order",(function(){by(t)})),e("    insertSelfEdges",(function(){!function(t){var e=mg(t);_u(e,(function(e){var n=0;_u(e,(function(e,i){var r=t.node(e);r.order=i+n,_u(r.selfEdges,(function(e){pg(t,"selfedge",{width:e.label.width,height:e.label.height,rank:r.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete r.selfEdges}))}))}(t)})),e("    adjustCoordinateSystem",(function(){!function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Tg(t)}(t)})),e("    position",(function(){Iy(t)})),e("    positionSelfEdges",(function(){!function(t){_u(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var i=t.node(n.e.v),r=i.x+i.width/2,a=i.y,s=n.x-r,o=i.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*s/3,y:a-o},{x:r+5*s/6,y:a-o},{x:r+s,y:a},{x:r+5*s/6,y:a+o},{x:r+2*s/3,y:a+o}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e("    removeBorderNodes",(function(){!function(t){_u(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),r=t.no
11de(n.borderBottom),a=t.node(cg(n.borderLeft)),s=t.node(cg(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(r.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),_u(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){!function(t){_u(t.graph().dummyChains,(function(e){var n,i=t.node(e),r=i.edgeLabel;for(t.setEdge(i.edgeObj,r);i.dummy;)n=t.successors(e)[0],t.removeNode(e),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),e=n,i=t.node(e)}))}(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){_u(t.edges(),(function(e){var n=t.edge(e);if(Yu(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e("    undoCoordinateSystem",(function(){wg(t)})),e("    translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,r=0,a=t.graph(),s=a.marginx||0,o=a.marginy||0;function l(t){var a=t.x,s=t.y,o=t.width,l=t.height;e=Math.min(e,a-o/2),n=Math.max(n,a+o/2),i=Math.min(i,s-l/2),r=Math.max(r,s+l/2)}_u(t.nodes(),(function(e){l(t.node(e))})),_u(t.edges(),(function(e){var n=t.edge(e);Yu(n,"x")&&l(n)})),e-=s,i-=o,_u(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),_u(t.edges(),(function(n){var r=t.edge(n);_u(r.points,(function(t){t.x-=e,t.y-=i})),Yu(r,"x")&&(r.x-=e),Yu(r,"y")&&(r.y-=i)})),a.width=n-e+s,a.height=r-i+o}(t)})),e("    assignNodeIntersects",(function(){!function(t){_u(t.edges(),(function(e){var n,i,r=t.edge(e),a=t.node(e.v),s=t.node(e.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=a),r.points.unshift(yg(a,n)),r.points.push(yg(s,i))}))}(t)})),e("    reversePoints",(function(){!function(t){_u(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){!function(t){_u(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}(t)}))}(e,n)})),n("  updateInputGraph",(function(){!function(t,e){_u(t.nodes(),(function(n){var i=t.node(n),r=e.node(n);i&&(i.x=r.x,i.y=r.y,e.children(n).length&&(i.width=r.width,i.height=r.height))})),_u(t.edges(),(function(n){var i=t.edge(n),r=e.edge(n);i.points=r.points,Yu(r,"x")&&(i.x=r.x,i.y=r.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))}var Ry=["nodesep","edgesep","ranksep","marginx","marginy"],$y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Py=["acyclicer","ranker","rankdir","align"],Yy=["width","height"],jy={width:0,height:0},zy=["minlen","weight","width","height","labeloffset"],Uy={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Wy=["labelpos"];function Hy(t,e){return hg(eg(t,e),Number)}function qy(t){var e={};return _u(t,(function(t,n){e[n.toLowerCase()]=t})),e}function Vy(t){var e={};_u(t.sources(),(function n(i){var r=t.node(i);if(Yu(e,i))return r.rank;e[i]=!0;var a=dg(of(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),r.rank=a}))}function Gy(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function Xy(t){var e,n,i=new ip({directed:!1}),r=t.nodes()[0],a=t.nodeCount();for(i.setNode(r,{});Zy(i,t)<a;)e=Qy(i,t),n=i.hasNode(e.v)?Gy(t,e):-Gy(t,e),Ky(i,t,n);return i}function Zy(t,e){return _u(t.nodes(),(function n(i){_u(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||Gy(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function Qy(t,e){return Ay(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return Gy(e,n)}))}function Ky(t,e,n){_u(t.nodes(),(function(t){e.node(t).rank+=n}))}ju(1);ju(1);ef("length");RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Jy="\\ud800-\\udfff",tm="["+Jy+"]",em="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nm="\\ud83c[\\udffb-\\udfff]",im="[^"+Jy+"]",rm="(?:\\ud83c[\\udde6-\\uddff]){2}",am="[\\ud800-\\udbff][\\udc00-\\udfff]",sm="(?:"+em+"|"+nm+")"+"?",om="[\\ufe0e\\ufe0f]?",lm=om+sm+("(?:\\u200d(?:"+[im,rm,am].join("|")+")"+om+sm+")*"),cm="(?:"+[im+em+"?",em,rm,am,tm].join("|")+")";RegExp(nm+"(?="+nm+")|"+cm+lm,"g");function hm(){}function um(t,e,n){Yh(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),r=[],a={};return _u(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);dm(t,e,"post"===n,a,i,r)})),r}function dm(t,e,n,i,r,a){Yu(i,e)||(i[e]=!0,n||a.push(e),_u(r(e),(function(e){dm(t,e,n,i,r,a)})),n&&a.push(e))}function fm(t){t=function(t){var e=(new ip).setGraph(t.graph());
11return _u(t.nodes(),(function(n){e.setNode(n,t.node(n))})),_u(t.edges(),(function(n){var i=e.edge(n.v,n.w)||{weight:0,minlen:1},r=t.edge(n);e.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),e}(t),Vy(t);var e,n=Xy(t);for(ym(n),pm(n,t);e=bm(n);)xm(n,t,e,_m(n,t,e))}function pm(t,e){var n=function(t,e){return um(t,e,"post")}(t,t.nodes());n=n.slice(0,n.length-1),_u(n,(function(n){!function(t,e,n){var i=t.node(n),r=i.parent;t.edge(n,r).cutvalue=gm(t,e,n)}(t,e,n)}))}function gm(t,e,n){var i=t.node(n).parent,r=!0,a=e.edge(n,i),s=0;return a||(r=!1,a=e.edge(i,n)),s=a.weight,_u(e.nodeEdges(n),(function(a){var o,l,c=a.v===n,h=c?a.w:a.v;if(h!==i){var u=c===r,d=e.edge(a).weight;if(s+=u?d:-d,o=n,l=h,t.hasEdge(o,l)){var f=t.edge(n,h).cutvalue;s+=u?-f:f}}})),s}function ym(t,e){arguments.length<2&&(e=t.nodes()[0]),mm(t,{},1,e)}function mm(t,e,n,i,r){var a=n,s=t.node(i);return e[i]=!0,_u(t.neighbors(i),(function(r){Yu(e,r)||(n=mm(t,e,n,r,i))})),s.low=a,s.lim=n++,r?s.parent=r:delete s.parent,n}function bm(t){return Sy(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function _m(t,e,n){var i=n.v,r=n.w;e.hasEdge(i,r)||(i=n.w,r=n.v);var a=t.node(i),s=t.node(r),o=a,l=!1;a.lim>s.lim&&(o=s,l=!0);var c=Ef(e.edges(),(function(e){return l===vm(t,t.node(e.v),o)&&l!==vm(t,t.node(e.w),o)}));return Ay(c,(function(t){return Gy(e,t)}))}function xm(t,e,n,i){var r=n.v,a=n.w;t.removeEdge(r,a),t.setEdge(i.v,i.w,{}),ym(t),pm(t,e),function(t,e){var n=Sy(t.nodes(),(function(t){return!e.node(t).parent})),i=function(t,e){return um(t,e,"pre")}(t,n);i=i.slice(1),_u(i,(function(n){var i=t.node(n).parent,r=e.edge(n,i),a=!1;r||(r=e.edge(i,n),a=!0),e.node(n).rank=e.node(i).rank+(a?r.minlen:-r.minlen)}))}(t,e)}function vm(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}hm.prototype=new Error,fm.initLowLimValues=ym,fm.initCutValues=pm,fm.calcCutValue=gm,fm.leaveEdge=bm,fm.enterEdge=_m,fm.exchangeEdges=xm;var km=Vy;function wm(t){fm(t)}const Tm=function(t){return ny(t,4)};function Cm(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Em(t),edges:Sm(t)};return Df(t.graph())||(e.value=Tm(t.graph())),e}function Em(t){return of(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),r={v:e};return Df(n)||(r.value=n),Df(i)||(r.parent=i),r}))}function Sm(t){return of(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return Df(e.name)||(i.name=e.name),Df(n)||(i.value=n),i}))}const Am={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Dm;const Lm=new Uint8Array(16);function Nm(){if(!Dm&&(Dm="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Dm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Dm(Lm)}const Om=[];for(let c=0;c<256;++c)Om.push((c+256).toString(16).slice(1));function Mm(t,e=0){return(Om[t[e+0]]+Om[t[e+1]]+Om[t[e+2]]+Om[t[e+3]]+"-"+Om[t[e+4]]+Om[t[e+5]]+"-"+Om[t[e+6]]+Om[t[e+7]]+"-"+Om[t[e+8]]+Om[t[e+9]]+"-"+Om[t[e+10]]+Om[t[e+11]]+Om[t[e+12]]+Om[t[e+13]]+Om[t[e+14]]+Om[t[e+15]]).toLowerCase()}const Bm=function(t,e,n){if(Am.randomUUID&&!e&&!t)return Am.randomUUID();const i=(t=t||{}).random||(t.rng||Nm)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return Mm(i)};function Im(t,e){e&&t.attr("style",e)}function Fm(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var r=e.label;switch(typeof r){case"function":i.insert(r);break;case"object":i.insert((function(){return r}));break;default:i.html(r)}Im(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}var Rm=Object.defineProperty,$m=(t,e,n)=>(((t,e,n)=>{e in t?Rm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);const Pm={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Ym={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},jm=function(t="fatal"){let e=Pm.fatal;"string"==typeof t?(t=t.toLowerCase())in Pm&&(e=Pm[t]):"number"==typeof t&&(e=t),Ym.trace=()=>{},Ym.debug=()=>{},Ym.info=()=>{},Ym.warn=()=>{},Ym.error=()=>{},Ym.fatal=()=>{},e<=Pm.fatal&&(Ym.fatal=console.error?console.error.bind(console,zm("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",zm("FATAL"))),e<=Pm.error&&(Ym.error=console.error?console.error.bind(console,zm("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",zm("ERROR"))),e<=Pm.warn&&(Ym.warn=console.warn?console.warn.bind(console,zm("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",zm("WARN"))),e<=Pm.info&&(Ym.info=console.info?console.info.bind(console,zm("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",zm("INFO"))),e<=Pm.debug&&(Ym.debug=console.debug?console.debug.bind(console,zm("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",zm("DEBUG"))),e<=Pm.trace&&(Ym.trace=console.debug?console.debug.bind(console,zm("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",zm("TRACE")))},zm=t=>`%c${D().format("ss.SSS")} : ${t} : `,Um=t=>rl.sanitize(t),Wm=(t,e)=>{var n;
11if(!1!==(null==(n=e.flowchart)?void 0:n.htmlLabels)){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=Um(t):"loose"!==n&&(t=(t=(t=Gm(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Vm(t))}return t},Hm=(t,e)=>t?t=e.dompurifyConfig?rl.sanitize(Wm(t,e),e.dompurifyConfig).toString():rl.sanitize(Wm(t,e),{FORBID_TAGS:["style"]}).toString():t,qm=/<br\s*\/?>/gi,Vm=t=>t.replace(/#br#/g,"<br/>"),Gm=t=>t.replace(qm,"#br#"),Xm=t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),Zm=function(t){let e=t;return t.includes("~")?(e=e.replace(/~([^~].*)/,"<$1"),e=e.replace(/~([^~]*)$/,">$1"),Zm(e)):e},Qm={getRows:t=>{if(!t)return[""];return Gm(t).replace(/\\n/g,"#br#").split("#br#")},sanitizeText:Hm,sanitizeTextOrArray:(t,e)=>"string"==typeof t?Hm(t,e):t.flat().map((t=>Hm(t,e))),hasBreaks:t=>qm.test(t),splitBreaks:t=>t.split(qm),lineBreakRegex:qm,removeScript:Um,getUrl:t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},evaluate:Xm},Km=(t,e)=>Sl(t,e?{s:-40,l:10}:{s:-40,l:-10}),Jm="#ffffff",tb="#f2f2f2";class eb{constructor(){this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Sl(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Sl(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Km(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Km(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Km(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Km(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ll(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ll(this.tertiaryColor),this.lineColor=this.lineColor||Ll(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ol(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ol
vendor: 5,333 bytes, line 11
11(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ll(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ml(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Sl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Sl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Sl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Sl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Sl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Sl(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Sl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Sl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Sl(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ol(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ol(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Ll(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Ml(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Ol(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Sl(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Sl(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Sl(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Sl(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Sl(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Sl(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Sl(this.primaryColor,{l:-10}),this.pie5=this.pie5||Sl(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Sl(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Sl(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Sl(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Sl(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Sl(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Sl(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Sl(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackgroun
11d=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ol(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Sl(this.primaryColor,{h:-30}),this.git4=this.git4||Sl(this.primaryColor,{h:-60}),this.git5=this.git5||Sl(this.primaryColor,{h:-90}),this.git6=this.git6||Sl(this.primaryColor,{h:60}),this.git7=this.git7||Sl(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ml(this.git0,25),this.git1=Ml(this.git1,25),this.git2=Ml(this.git2,25),this.git3=Ml(this.git3,25),this.git4=Ml(this.git4,25),this.git5=Ml(this.git5,25),this.git6=Ml(this.git6,25),this.git7=Ml(this.git7,25)):(this.git0=Ol(this.git0,25),this.git1=Ol(this.git1,25),this.git2=Ol(this.git2,25),this.git3=Ol(this.git3,25),this.git4=Ol(this.git4,25),this.git5=Ol(this.git5,25),this.git6=Ol(this.git6,25),this.git7=Ol(this.git7,25)),this.gitInv0=this.gitInv0||Ll(this.git0),this.gitInv1=this.gitInv1||Ll(this.git1),this.gitInv2=this.gitInv2||Ll(this.git2),this.gitInv3=this.gitInv3||Ll(this.git3),this.gitInv4=this.gitInv4||Ll(this.git4),this.gitInv5=this.gitInv5||Ll(this.git5),this.gitInv6=this.gitInv6||Ll(this.git6),this.gitInv7=this.gitInv7||Ll(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tb}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}class nb{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ml(this.primaryColor,16),this.tertiaryColor=Sl(this.primaryColor,{h:-160}),this.primaryBorderColor=Ll(this.background),this.secondaryBorderColor=Km(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Km(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ll(this.primaryColor),this.secondaryTextColor=Ll(this.secondaryColor),this.tertiaryTextColor=Ll(this.tertiaryColor),this.lineColor=Ll(this.background),this.textColor=Ll(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ml(Ll("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Al(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackgroun
vendor: 5,853 bytes, line 11
11d="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Ol("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Al(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Al(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Ml(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ml(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ml(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Sl(this.primaryColor,{h:64}),this.fillType3=Sl(this.secondaryColor,{h:64}),this.fillType4=Sl(this.primaryColor,{h:-64}),this.fillType5=Sl(this.secondaryColor,{h:-64}),this.fillType6=Sl(this.primaryColor,{h:128}),this.fillType7=Sl(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Sl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Sl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Sl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Sl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Sl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Sl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Sl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Sl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Sl(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Ll(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Ml(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackgroun
11d=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ol(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ml(this.secondaryColor,20),this.git1=Ml(this.pie2||this.secondaryColor,20),this.git2=Ml(this.pie3||this.tertiaryColor,20),this.git3=Ml(this.pie4||Sl(this.primaryColor,{h:-30}),20),this.git4=Ml(this.pie5||Sl(this.primaryColor,{h:-60}),20),this.git5=Ml(this.pie6||Sl(this.primaryColor,{h:-90}),10),this.git6=Ml(this.pie7||Sl(this.primaryColor,{h:60}),10),this.git7=Ml(this.pie8||Sl(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ll(this.git0),this.gitInv1=this.gitInv1||Ll(this.git1),this.gitInv2=this.gitInv2||Ll(this.git2),this.gitInv3=this.gitInv3||Ll(this.git3),this.gitInv4=this.gitInv4||Ll(this.git4),this.gitInv5=this.gitInv5||Ll(this.git5),this.gitInv6=this.gitInv6||Ll(this.git6),this.gitInv7=this.gitInv7||Ll(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ml(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ml(this.background,2)}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}class ib{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Sl(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Sl(this.primaryColor,{h:-160}),this.primaryBorderColor=Km(this.primaryColor,this.darkMode),this.secondaryBorderColor=Km(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Km(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ll(this.primaryColor),this.secondaryTextColor=Ll(this.secondaryColor),this.tertiaryTextColor=Ll(this.tertiaryColor),this.lineColor=Ll(this.background),this.textColor=Ll(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Al(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Sl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Sl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Sl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Sl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Sl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Sl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Sl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Sl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Sl(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ol(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ol(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ol(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Ol(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Sl(this["cScale"+t],{h:180});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||Ll(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ll(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
vendor: 5,102 bytes, line 11
11d=this.labelBackground,this.actorBorder=Ml(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Sl(this.primaryColor,{h:64}),this.fillType3=Sl(this.secondaryColor,{h:64}),this.fillType4=Sl(this.primaryColor,{h:-64}),this.fillType5=Sl(this.secondaryColor,{h:-64}),this.fillType6=Sl(this.primaryColor,{h:128}),this.fillType7=Sl(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Sl(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Sl(this.primaryColor,{l:-10}),this.pie5=this.pie5||Sl(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Sl(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Sl(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Sl(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Sl(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Sl(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Sl(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Sl(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Sl(this.primaryColor,{h:-30}),this.git4=this.git4||Sl(this.primaryColor,{h:-60}),this.git5=this.git5||Sl(this.primaryColor,{h:-90}),this.git6=this.git6||Sl(this.primaryColor,{h:60}),this.git7=this.git7||Sl(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ml(this.git0,25),this.git1=Ml(this.git1,25),this.git2=Ml(this.git2,25),this.git3=Ml(this.git3,25),this.git4=Ml(this.git4,25),this.git5=Ml(this.git5,25),this.git6=Ml(this.git6,25),this.git7=Ml(this.git7,25)):(this.git0=Ol(this.git0,25),this.git1=Ol(this.git1,25),this.git2=Ol(this.git2,25),this.git3=Ol(this.git3,25),this.git4=Ol(this.git4,25),this.git5=Ol(this.git5,25),this.git6=Ol(this.git6,25),this.git7=Ol(this.git7,25)),this.gitInv0=this.gitInv0||Ol(Ll(this.git0),25),this.gitInv1=this.gitInv1||Ll(this.git1),this.gitInv2=this.gitInv2||Ll(this.git2),this.gitInv3=this.gitInv3||Ll(this.git3),this.gitInv4=this.gitInv4||Ll(this.git4),this.gitInv5=this.gitInv5||Ll(this.git5),this.gitInv6=this.gitInv6||Ll(this.git6),this.gitInv7=this.gitInv7||Ll(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ll(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ll(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
11d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tb}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}class rb{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ml("#cde498",10),this.primaryBorderColor=Km(this.primaryColor,this.darkMode),this.secondaryBorderColor=Km(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Km(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ll(this.primaryColor),this.secondaryTextColor=Ll(this.secondaryColor),this.tertiaryTextColor=Ll(this.primaryColor),this.lineColor=Ll(this.background),this.textColor=Ll(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Sl(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Sl(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Sl(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Sl(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Sl(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Sl(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Sl(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Sl(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Sl(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ol(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ol(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ol(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Ol(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Sl(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Ol(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,120 bytes, line 11
11dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Sl(this.primaryColor,{h:64}),this.fillType3=Sl(this.secondaryColor,{h:64}),this.fillType4=Sl(this.primaryColor,{h:-64}),this.fillType5=Sl(this.secondaryColor,{h:-64}),this.fillType6=Sl(this.primaryColor,{h:128}),this.fillType7=Sl(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Sl(this.primaryColor,{l:-30}),this.pie5=this.pie5||Sl(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Sl(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Sl(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Sl(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Sl(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Sl(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Sl(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Sl(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Sl(this.primaryColor,{h:-30}),this.git4=this.git4||Sl(this.primaryColor,{h:-60}),this.git5=this.git5||Sl(this.primaryColor,{h:-90}),this.git6=this.git6||Sl(this.primaryColor,{h:60}),this.git7=this.git7||Sl(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ml(this.git0,25),this.git1=Ml(this.git1,25),this.git2=Ml(this.git2,25),this.git3=Ml(this.git3,25),this.git4=Ml(this.git4,25),this.git5=Ml(this.git5,25),this.git6=Ml(this.git6,25),this.git7=Ml(this.git7,25)):(this.git0=Ol(this.git0,25),this.git1=Ol(this.git1,25),this.git2=Ol(this.git2,25),this.git3=Ol(this.git3,25),this.git4=Ol(this.git4,25),this.git5=Ol(this.git5,25),this.git6=Ol(this.git6,25),this.git7=Ol(this.git7,25)),this.gitInv0=this.gitInv0||Ll(this.git0),this.gitInv1=this.gitInv1||Ll(this.git1),this.gitInv2=this.gitInv2||Ll(this.git2),this.gitInv3=this.gitInv3||Ll(this.git3),this.gitInv4=this.gitInv4||Ll(this.git4),this.gitInv5=this.gitInv5||Ll(this.git5),this.gitInv6=this.gitInv6||Ll(this.git6),this.gitInv7=this.gitInv7||Ll(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackgroun
11d||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tb}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}class ab{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ml(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Sl(this.primaryColor,{h:-160}),this.primaryBorderColor=Km(this.primaryColor,this.darkMode),this.secondaryBorderColor=Km(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Km(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ll(this.primaryColor),this.secondaryTextColor=Ll(this.secondaryColor),this.tertiaryTextColor=Ll(this.tertiaryColor),this.lineColor=Ll(this.background),this.textColor=Ll(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Ml(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Ll(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Ml(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Ol(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Ml(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=Ml(this.contrast,30),this.sectionBkgColor2=Ml(this.contrast,30),this.taskBorderColor=Ol(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Ml(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ol(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
11dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Sl(this.primaryColor,{h:64}),this.fillType3=Sl(this.secondaryColor,{h:64}),this.fillType4=Sl(this.primaryColor,{h:-64}),this.fillType5=Sl(this.secondaryColor,{h:-64}),this.fillType6=Sl(this.primaryColor,{h:128}),this.fillType7=Sl(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ol(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Sl(this.primaryColor,{h:-30}),this.git4=this.pie5||Sl(this.primaryColor,{h:-60}),this.git5=this.pie6||Sl(this.primaryColor,{h:-90}),this.git6=this.pie7||Sl(this.primaryColor,{h:60}),this.git7=this.pie8||Sl(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ll(this.git0),this.gitInv1=this.gitInv1||Ll(this.git1),this.gitInv2=this.gitInv2||Ll(this.git2),this.gitInv3=this.gitInv3||Ll(this.git3),this.gitInv4=this.gitInv4||Ll(this.git4),this.gitInv5=this.gitInv5||Ll(this.git5),this.gitInv6=this.gitInv6||Ll(this.git6),this.gitInv7=this.gitInv7||Ll(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tb}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const sb={base:{getThemeVariables:t=>{const e=new eb;return e.calculate(t),e}},dark:{getThemeVariables:t=>{const e=new nb;return e.calculate(t),e}},default:{getThemeVariables:t=>{const e=new ib;return e.calculate(t),e}},forest:{getThemeVariables:t=>{const e=new rb;return e.calculate(t),e}},neutral:{getThemeVariables:t=>{const e=new ab;return e.calculate(t),e}}},ob={theme:"default",themeVariables:sb.default.getThemeVariables(),theme
11CSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};ob.class&&(ob.class.arrowMarkerAbsolute=ob.arrowMarkerAbsolute),ob.gitGraph&&(ob.gitGraph.arrowMarkerAbsolute=ob.arrowMarkerAbsolute);const lb=(t,e="")=>Object.keys(t).reduce(((n,i)=>Array.isArray(t[i])?n:"object"==typeof t[i]&&null!==t[i]?[...n,e+i,...lb(t[i],"")]:[...n,e+i]),[]),cb=lb(ob,""),hb=ob;function ub(t){return null==t}var db=function(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i},fb=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},pb={isNothing:ub,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:ub(t)?[]:[t]},repeat:db,isNegativeZero:fb,extend:function(t,e){var n,i,r,a;if(e)for(n=0,i=(a=Object.keys(e)).length;n<i;n+=1)t[r=a[n]]=e[r];return t}};function gb(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}function yb(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=gb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}yb.prototype=Object.create(Error.prototype),yb.prototype.constructor=yb,yb.prototype.toString=function(t){return this.name+": "+gb(this,t)};var mb=yb;function bb(t,e,n,i,r){var a="",s="",o=Math.floor(r/2)-1;return i-e>o&&(e=i-o+(a=" ... ").length),n-i>o&&(n=i+o-(s=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"\u2192")+s,pos:i-e+a.length}}function _b(t,e){return pb.repeat(" ",e-t.length)+t}var xb=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],a=[],s=-1;n=i.exec(t.buffer);)a.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var o,l,c="",h=Math.min(t.line+e.linesAfter,a.length).toString().length,u=e.maxLength-(e.indent+h+3);for(o=1;o<=e.linesBefore&&!(s-o<0);
vendor: 19,350 bytes, line 11
11o++)l=bb(t.buffer,r[s-o],a[s-o],t.position-(r[s]-r[s-o]),u),c=pb.repeat(" ",e.indent)+_b((t.line-o+1).toString(),h)+" | "+l.str+"\n"+c;for(l=bb(t.buffer,r[s],a[s],t.position,u),c+=pb.repeat(" ",e.indent)+_b((t.line+1).toString(),h)+" | "+l.str+"\n",c+=pb.repeat("-",e.indent+h+3+l.pos)+"^\n",o=1;o<=e.linesAfter&&!(s+o>=a.length);o++)l=bb(t.buffer,r[s+o],a[s+o],t.position-(r[s]-r[s+o]),u),c+=pb.repeat(" ",e.indent)+_b((t.line+o+1).toString(),h)+" | "+l.str+"\n";return c.replace(/\n$/,"")},vb=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kb=["scalar","sequence","mapping"];var wb=function(t,e){var n,i;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===vb.indexOf(e))throw new mb('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=(n=e.styleAliases||null,i={},null!==n&&Object.keys(n).forEach((function(t){n[t].forEach((function(e){i[String(e)]=t}))})),i),-1===kb.indexOf(this.kind))throw new mb('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function Tb(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function Cb(t){return this.extend(t)}Cb.prototype.extend=function(t){var e=[],n=[];if(t instanceof wb)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new mb("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof wb))throw new mb("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new mb("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new mb("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof wb))throw new mb("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(Cb.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Tb(i,"implicit"),i.compiledExplicit=Tb(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var Eb=Cb,Sb=new wb("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),Ab=new wb("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),Db=new wb("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),Lb=new Eb({explicit:[Sb,Ab,Db]});var Nb=new wb("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var Ob=new wb("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Mb(t){return 48<=t&&t<=55}function Bb(t){return 48<=t&&t<=57}var Ib=new wb("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=t.length,r=0,a=!1;if(!i)return!1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===i)return!0;if("b"===(e=t[++r])){for(r++;r<i;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!(48<=(n=t.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;a=!0}return a&&"_"!==e}if("o"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!Mb(t.charCodeAt(r)))return!1;a=!0}return a&&"_"!==e}}if("_"===e)return!1;for(;r<i;r++)if("_"!==(e=t[r])){if(!Bb(t.charCodeAt(r)))return!1;a=!0}return!(!a||"_"===e)},construct:function(t){var e,n=t,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!pb.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Fb=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Rb=/^[-+]?[0-9]+e/;var $b=new wb("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!Fb.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||pb.isNegativeZero(t))},represent:function(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pb.isNegativeZero(t))return"-0.0";return n=t.toString(10),Rb.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),Pb=Lb.extend({implicit:[Nb,Ob,Ib,$b]}),Yb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var zb=new wb("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==Yb.exec(t)||null!==jb.exec(t))},construct:function(t){var e,n,i,r,a,s,o,l,c=0,h=null;if(null===(e=Yb.exec(t))&&(e=jb.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(h=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(h=-h)),l=new Date(Date.UTC(n,i,r,a,s,o,c)),h&&l.setTime(l.getTime()-h),l},instanceOf:Date,represent:function(t){return t.toISOString()}});var Ub=new wb("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),Wb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Hb=new wb("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=0,r=t.length,a=Wb;for(n=0;n<r;n++)if(!((e=a.indexOf(t.charAt(n)))>64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,a=Wb,s=0,o=[];for(e=0;e<r;e++)e%4==0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)),s=s<<6|a.indexOf(i.charAt(e));return 0===(n=r%4*6)?(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)):18===n?(o.push(s>>10&255),o.push(s>>2&255)):12===n&&o.push(s>>4&255),new Uint8Array(o)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,a=t.length,s=Wb;for(e=0;e<a;e++)e%3==0&&e&&(i+=s[r>>18&63],i+=s[r>>12&63],i+=s[r>>6&63],i+=s[63&r]),r=(r<<8)+t[e];return 0===(n=a%3)?(i+=s[r>>18&63],i+=s[r>>12&63],i+=s[r>>6&63],i+=s[63&r]):2===n?(i+=s[r>>10&63],i+=s[r>>4&63],i+=s[r<<2&63],i+=s[64]):1===n&&(i+=s[r>>2&63],i+=s[r<<4&63],i+=s[64],i+=s[64]),i}}),qb=Object.prototype.hasOwnProperty,Vb=Object.prototype.toString;var Gb=new wb("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,a,s=[],o=t;for(e=0,n=o.length;e<n;e+=1){if(i=o[e],a=!1,"[object Object]"!==Vb.call(i))return!1;for(r in i)if(qb.call(i,r)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==s.indexOf(r))return!1;s.push(r)}return!0},construct:function(t){return null!==t?t:[]}}),Xb=Object.prototype.toString;var Zb=new wb("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,a,s=t;for(a=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(i=s[e],"[object Object]"!==Xb.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;a[e]=[r[0],i[r[0]]]}return!0},construct:function(t){if(null===t)return[];var e,n,i,r,a,s=t;for(a=new Array(s.length),e=0,n=s.length;e<n;e+=1)i=s[e],r=Object.keys(i),a[e]=[r[0],i[r[0]]];return a}}),Qb=Object.prototype.hasOwnProperty;var Kb=new wb("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,n=t;for(e in n)if(Qb.call(n,e)&&null!==n[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),Jb=Pb.extend({implicit:[zb,Ub],explicit:[Hb,Gb,Zb,Kb]}),t_=Object.prototype.hasOwnProperty,e_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n_=/[\x85\u2028\u2029]/,i_=/[,\[\]\{\}]/,r_=/^(?:!|!!|![a-z\-]+!)$/i,a_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function s_(t){return Object.prototype.toString.call(t)}function o_(t){return 10===t||13===t}function l_(t){return 9===t||32===t}function c_(t){return 9===t||32===t||10===t||13===t}function h_(t){return 44===t||91===t||93===t||123===t||125===t}function u_(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function d_(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function f_(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var p_=new Array(256),g_=new Array(256),y_=0;y_<256;y_++)p_[y_]=d_(y_)?1:0,g_[y_]=d_(y_);function m_(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Jb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function b_(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=xb(n),new mb(e,n)}function __(t,e){throw b_(t,e)}function x_(t,e){t.onWarning&&t.onWarning.call(null,b_(t,e))}var v_={YAML:function(t,e,n){var i,r,a;null!==t.version&&__(t,"duplication of %YAML directive"),1!==n.length&&__(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&__(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),a=parseInt(i[2],10),1!==r&&__(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&x_(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&__(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],r_.test(i)||__(t,"ill-formed tag handle (first argument) of the TAG directive"),t_.call(t.tagMap,i)&&__(t,'there is a previously declared suffix for "'+i+'" tag handle'),a_.test(r)||__(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(a){__(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function k_(t,e,n,i){var r,a,s,o;if(e<n){if(o=t.input.slice(e,n),i)for(r=0,a=o.length;r<a;r+=1)9===(s=o.charCodeAt(r))||32<=s&&s<=1114111||__(t,"expected valid JSON character");else e_.test(o)&&__(t,"the stream contains non-printable characters");t.result+=o}}function w_(t,e,n,i){var r,a,s,o;for(pb.isObject(n)||__(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(r=Object.keys(n)).length;s<o;s+=1)a=r[s],t_.call(e,a)||(e[a]=n[a],i[a]=!0)}function T_(t,e,n,i,r,a,s,o,l){var c,h;if(Array.isArray(r))for(c=0,h=(r=Array.prototype.slice.call(r)).length;c<h;c+=1)Array.isArray(r[c])&&__(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===s_(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===s_(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)w_(t,e,a[c],n);else w_(t,e,a,n);else t.json||t_.call(n,r)||!t_.call(e,r)||(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,__(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[r]=a,delete n[r];return e}function C_(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):__(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function E_(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);0!==r;){for(;l_(r);)9===r&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&35===r)do{r=t.input.charCodeAt(++t.position)}while(10!==r&&13!==r&&0!==r);if(!o_(r))break;for(C_(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position)}return-1!==n&&0!==i&&t.lineIndent<n&&x_(t,"deficient indentation"),i}function S_(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!c_(e)))}function A_(t,e){1===e?t.result+=" ":e>1&&(t.result+=pb.repeat("\n",e-1))}function D_(t,e){var n,i,r=t.tag,a=t.anchor,s=[],o=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,__(t,"tab characters must not be used in indentation")),45===i)&&c_(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,E_(t,!0,-1)&&t.lineIndent<=e)s.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,O_(t,e,3,!1,!0),s.push(t.result),E_(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)__(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=r,t.anchor=a,t.kind="sequence",t.result=s,!0)}function L_(t){var e,n,i,r,a=!1,s=!1;if(33!==(r=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&__(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(a=!0,r=t.input.charCodeAt(++t.position)):33===r?(s=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,a){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):__(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!c_(r);)33===r&&(s?__(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),r_.test(n)||__(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),i_.test(i)&&__(t,"tag suffix cannot contain flow indicator characters")}i&&!a_.test(i)&&__(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(o){__(t,"tag name is malformed: "+i)}return a?t.tag=i:t_.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:__(t,'undeclared tag handle "'+n+'"'),!0}function N_(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&__(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!c_(n)&&!h_(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&__(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function O_(t,e,n,i,r){var a,s,o,l,c,h,u,d,f,p=1,g=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=4===n||3===n,i&&E_(t,!0,-1)&&(g=!0,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)),1===p)for(;L_(t)||N_(t);)E_(t,!0,-1)?(g=!0,o=a,t.lineIndent>e?p=1:t.lineIndent===e?p=0:t.lineIndent<e&&(p=-1)):o=!1;if(o&&(o=g||r),1!==p&&4!==n||(d=1===n||2===n?e:e+1,f=t.position-t.lineStart,1===p?o&&(D_(t,f)||function(t,e,n){var i,r,a,s,o,l,c,h=t.tag,u=t.anchor,d={},f=Object.create(null),p=null,g=null,y=null,m=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,__(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!c_(i)){if(s=t.line,o=t.lineStart,l=t.position,!O_(t,n,2,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);l_(c);)c=t.input.charCodeAt(++t.position);if(58===c)c_(c=t.input.charCodeAt(++t.position))||__(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(T_(t,d,f,p,g,null,s,o,l),p=g=y=null),b=!0,m=!1,r=!1,p=t.tag,g=t.result;else{if(!b)return t.tag=h,t.anchor=u,!0;__(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=h,t.anchor=u,!0;__(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(T_(t,d,f,p,g,null,s,o,l),p=g=y=null),b=!0,m=!0,r=!0):m?(m=!1,r=!0):__(t,"incomplete explicit mapping pair; a key node is missed;
11 or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===a||t.lineIndent>e)&&(m&&(s=t.line,o=t.lineStart,l=t.position),O_(t,e,4,!0,r)&&(m?g=t.result:y=t.result),m||(T_(t,d,f,p,g,y,s,o,l),p=g=y=null),E_(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)__(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&T_(t,d,f,p,g,null,s,o,l),b&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),b}(t,f,d))||function(t,e){var n,i,r,a,s,o,l,c,h,u,d,f,p=!0,g=t.tag,y=t.anchor,m=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))s=93,c=!1,a=[];else{if(123!==f)return!1;s=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),f=t.input.charCodeAt(++t.position);0!==f;){if(E_(t,!0,e),(f=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===f&&__(t,"expected the node content, but found ','"):__(t,"missed comma between flow collection entries"),d=null,o=l=!1,63===f&&c_(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,E_(t,!0,e)),n=t.line,i=t.lineStart,r=t.position,O_(t,e,1,!1,!0),u=t.tag,h=t.result,E_(t,!0,e),f=t.input.charCodeAt(t.position),!l&&t.line!==n||58!==f||(o=!0,f=t.input.charCodeAt(++t.position),E_(t,!0,e),O_(t,e,1,!1,!0),d=t.result),c?T_(t,a,m,u,h,d,n,i,r):o?a.push(T_(t,null,m,u,h,d,n,i,r)):a.push(h),E_(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(p=!0,f=t.input.charCodeAt(++t.position)):p=!1}__(t,"unexpected end of the stream within a flow collection")}(t,d)?y=!0:(s&&function(t,e){var n,i,r,a,s,o=1,l=!1,c=!1,h=e,u=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===o?o=43===a?3:2:__(t,"repeat of a chomping mode identifier");else{if(!((r=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===r?__(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?__(t,"repeat of an indentation width identifier"):(h=e+r-1,c=!0)}if(l_(a)){do{a=t.input.charCodeAt(++t.position)}while(l_(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!o_(a)&&0!==a)}for(;0!==a;){for(C_(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!c||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>h&&(h=t.lineIndent),o_(a))u++;else{if(t.lineIndent<h){3===o?t.result+=pb.repeat("\n",l?1+u:u):1===o&&l&&(t.result+="\n");break}for(i?l_(a)?(d=!0,t.result+=pb.repeat("\n",l?1+u:u)):d?(d=!1,t.result+=pb.repeat("\n",u+1)):0===u?l&&(t.result+=" "):t.result+=pb.repeat("\n",u):t.result+=pb.repeat("\n",l?1+u:u),l=!0,c=!0,u=0,n=t.position;!o_(a)&&0!==a;)a=t.input.charCodeAt(++t.position);k_(t,n,t.position,!1)}}return!0}(t,d)||function(t,e){var n,i,r;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(k_(t,i,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,r=t.position}else o_(n)?(k_(t,i,r,!0),A_(t,E_(t,!1,e)),i=r=t.position):t.position===t.lineStart&&S_(t)?__(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);__(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var n,i,r,a,s,o,l;if(34!==(o=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return k_(t,n,t.position,!0),t.position++,!0;if(92===o){if(k_(t,n,t.position,!0),o_(o=t.input.charCodeAt(++t.position)))E_(t,!1,e);
11else if(o<256&&p_[o])t.result+=g_[o],t.position++;else if((s=120===(l=o)?2:117===l?4:85===l?8:0)>0){for(r=s,a=0;r>0;r--)(s=u_(o=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+s:__(t,"expected hexadecimal character");t.result+=f_(a),t.position++}else __(t,"unknown escape sequence");n=i=t.position}else o_(o)?(k_(t,n,i,!0),A_(t,E_(t,!1,e)),n=i=t.position):t.position===t.lineStart&&S_(t)?__(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}__(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?y=!0:!function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!c_(i)&&!h_(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&__(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),t_.call(t.anchorMap,n)||__(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],E_(t,!0,-1),!0}(t)?function(t,e,n){var i,r,a,s,o,l,c,h,u=t.kind,d=t.result;if(c_(h=t.input.charCodeAt(t.position))||h_(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h)return!1;if((63===h||45===h)&&(c_(i=t.input.charCodeAt(t.position+1))||n&&h_(i)))return!1;for(t.kind="scalar",t.result="",r=a=t.position,s=!1;0!==h;){if(58===h){if(c_(i=t.input.charCodeAt(t.position+1))||n&&h_(i))break}else if(35===h){if(c_(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&S_(t)||n&&h_(h))break;if(o_(h)){if(o=t.line,l=t.lineStart,c=t.lineIndent,E_(t,!1,-1),t.lineIndent>=e){s=!0,h=t.input.charCodeAt(t.position);continue}t.position=a,t.line=o,t.lineStart=l,t.lineIndent=c;break}}s&&(k_(t,r,a,!1),A_(t,t.line-o),r=a=t.position,s=!1),l_(h)||(a=t.position+1),h=t.input.charCodeAt(++t.position)}return k_(t,r,a,!1),!!t.result||(t.kind=u,t.result=d,!1)}(t,d,1===n)&&(y=!0,null===t.tag&&(t.tag="?")):(y=!0,null===t.tag&&null===t.anchor||__(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===p&&(y=o&&D_(t,f))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&__(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;l+=1)if((u=t.implicitTypes[l]).resolve(t.result)){t.result=u.construct(t.result),t.tag=u.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(t_.call(t.typeMap[t.kind||"fallback"],t.tag))u=t.typeMap[t.kind||"fallback"][t.tag];else for(u=null,l=0,c=(h=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,h[l].tag.length)===h[l].tag){u=h[l];break}u||__(t,"unknown tag !<"+t.tag+">"),null!==t.result&&u.kind!==t.kind&&__(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):__(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function M_(t){var e,n,i,r,a=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(E_(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(s=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!c_(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&__(t,"directive name must not be less than one character in length");0!==r;){for(;l_(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!o_(r));break}if(o_(r))break;for(e=t.position;0!==r&&!c_(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&C_(t),t_.call(v_,n)?v_[n](t,n,i):x_(t,'unknown document directive "'+n+'"')}E_(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,E_(t,!0,-1)):s&&__(t,"directives end mark is expected"),O_(t,t.lineIndent-1,4,!1,!0),E_(t,!0,-1),t.checkLineBreaks&&n_.test(t.input.slice(a,t.position))&&x_(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&S_(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,E_(t,!0,-1)):t.position<t.length-1&&__(t,"end of the stream or a document separator is expected")}function B_(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new m_(t,e),i=t.indexOf("\0");for(-1!==i&&(n.position=i,__(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)M_(n);return n.documents}var I_=Lb,F_={loadAll:function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var i=B_(t,n);if("function"!=typeof e)return i;for(var r=0,a=i.length;r<a;r+=1)e(i[r])},load:function(t,e){var n=B_(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new mb("expected a single document in the stream, but found more")}}}.load;const R_=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;const $_=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P_=/\s*%%.*\n/gm,Y_={},j_=function(t,e){t=t.replace(R_,"").replace($_,"").replace(P_,"\n");for(const[n,{detector:i}]of Object.entries(Y_)){if(i(t,e))return n}throw new Error(`No diagram type detected for text: ${t}`)},z_=(t,e,n)=>{if(Y_[t])throw new Error(`Detector with key ${t} already exists`);Y_[t]={detector:e,loader:n},Ym.debug(`Detector with key ${t} added${n?" with loader":""}`)},U_=function(t,e,n){const{depth:i,clobber:r}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>U_(t,e,n))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||i<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((n=>{"object"!=typeof e[n]||void 0!==t[n]&&"object"!=typeof t[n]?(r||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n]):(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=U_(t[n],e[n],{depth:i-1,clobber:r}))})),t)},W_=U_,H_={curveBasis:Uo,curveBasisClosed:function(t){return new Wo(t)},curveBasisOpen:function(t){return new Ho(t)},curveLinear:Bo,curveLinearClosed:function(t){return new qo(t)},curveMonotoneX:function(t){return new Qo(t)},curveMonotoneY:function(t){return new Ko(t)},curveNatural:function(t){return new tl(t)},curveStep:function(t){return new nl(t,.5)},curveStepAfter:function(t){return new nl(t,1)},curveStepBefore:function(t){return new nl(t,0)}},q_=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,V_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,G_=function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${V_.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(n,"").replace(/'/gm,'"'),Ym.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const r=[];for(;null!==(i=q_.exec(t));)if(i.index===q_.lastIndex&&q_.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;r.push({type:t,args:e})}return 0===r.length&&r.push({type:t,args:null}),1===r.length?r[0]:r}catch(n){return Ym.error(`ERROR: ${n.message} - Unable to parse directive\n      ${null!==e?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}};function X_(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return H_[n]||e}function Z_(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function Q_(t){let e="",n="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":e=e+i+";");return{style:e,labelStyle:n}}let K_=0;const J_=()=>(K_++,"id-"+Math.random().toString(36).substr(2,12)+"-"+K_);const tx=t=>function(t){let e="";const n="0123456789abcdef",i=n.length;for(let r=0;r<t;r++)e+=n.charAt(Math.floor(Math.random()*i));return e}(t.length),ex=function(t,e){const n=e.text.replace(Qm.lineBreakRegex," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",e.fontSize),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.attr("fill",e.fill),r.text(n),i}
11,nx=jc(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Qm.lineBreakRegex.test(t))return t;const i=t.split(" "),r=[];let a="";return i.forEach(((t,s)=>{const o=ax(`${t} `,n),l=ax(a,n);if(o>e){const{hyphenatedStrings:i,remainingWord:s}=ix(t,e,"-",n);r.push(a,...i),a=s}else l+o>=e?(r.push(a),a=t):a=[a,t].filter(Boolean).join(" ");s+1===i.length&&r.push(a)})),r.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),ix=jc(((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...t],a=[];let s="";return r.forEach(((t,o)=>{const l=`${s}${t}`;if(ax(l,i)>=e){const t=o+1,e=r.length===t,i=`${l}${n}`;a.push(e?l:i),s=""}else s=l})),{hyphenatedStrings:a,remainingWord:s}}),((t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function rx(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),sx(t,e).height}function ax(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),sx(t,e).width}const sx=jc(((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:n,fontFamily:i,fontWeight:r}=e;if(!t)return{width:0,height:0};const a=["sans-serif",i],s=t.split(Qm.lineBreakRegex),o=[],l=to("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const c=l.append("svg");for(const h of a){let t=0;const e={width:0,height:0,lineHeight:0};for(const i of s){const a={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};a.text=i;const s=ex(c,a).style("font-size",n).style("font-weight",r).style("font-family",h),o=(s._groups||s)[0][0].getBBox();e.width=Math.round(Math.max(e.width,o.width)),t=Math.round(o.height),e.height+=t,e.lineHeight=Math.round(Math.max(e.lineHeight,t))}o.push(e)}c.remove();return o[isNaN(o[1].height)||isNaN(o[1].width)||isNaN(o[1].lineHeight)||o[0].height>o[1].height&&o[0].width>o[1].width&&o[0].lineHeight>o[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));let ox;const lx=t=>{if(Ym.debug("directiveSanitizer called with",t),"object"==typeof t&&(t.length?t.forEach((t=>lx(t))):Object.keys(t).forEach((e=>{Ym.debug("Checking key",e),e.startsWith("__")&&(Ym.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(Ym.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(Ym.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(Ym.debug("sanitizing themeCss option"),t[e]=cx(t[e])),e.includes("fontFamily")&&(Ym.debug("sanitizing fontFamily option"),t[e]=cx(t[e])),e.includes("altFontFamily")&&(Ym.debug("sanitizing altFontFamily option"),t[e]=cx(t[e])),cb.includes(e)?"object"==typeof t[e]&&(Ym.debug("sanitize deleting object",e),lx(t[e])):(Ym.debug("sanitize deleting option",e),delete t[e])}))),t.themeVariables){const e=Object.keys(t.themeVariables);for(const n of e){const e=t.themeVariables[n];e&&e.match&&!e.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[n]="")}}Ym.debug("After sanitization",t)},cx=t=>{let e=0,n=0;for(const i of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t};function hx(t){return"str"in t}const ux={assignWithDepth:W_,wrapLabel:nx,calculateTextHeight:rx,calculateTextWidth:ax,calculateTextDimensions:sx,detectInit:function(t,e){const n=G_(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));lx(t),i=W_(i,[...t])}else i=n.args;if(i){let n=j_(t,e);["config"].forEach((t=>{void 0!==i[t]&&("flowchart-v2"===n&&(n="flowchart"),i[n]=i[t],delete i[t])}))}return i},detectDirective:G_,isSubstringInArray:function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1},interpolateToCurve:X_,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,n=0;t.forEach((t=>{n+=Z_(t,e),e=t}));let i,r=n/2;return e=void 0,t.forEach((t=>{if(e&&!i){const n=Z_(t,e);if(n<r)r-=n;else{const a=r/n;a<=0&&(i=e),a>=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:(t,e,n)=>{let i;Ym.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());let r,a=25;i=void 0,e.forEach((t=>{if(i&&!r){const e=Z_(t,i);if(e<a)a-=e;else{const n=a/e;n<=0&&(r=i),n>=1&&(r={x:t.x,y:t.y}),n>0&&n<1&&(r={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const s=t?10:5,o=Math.atan2(e[0].y-r.y,e[0].x-r.x),l={x:0,y:0};return l.x=Math.sin(o)*s+(e[0].x+r.x)/2,l.y=-Math.cos(o)*s+(e[0].y+r.y)/2,l}
11,calcTerminalLabelPosition:function(t,e,n){let i,r=JSON.parse(JSON.stringify(n));Ym.info("our points",r),"start_left"!==e&&"start_right"!==e&&(r=r.reverse()),r.forEach((t=>{i=t}));let a,s=25+t;i=void 0,r.forEach((t=>{if(i&&!a){const e=Z_(t,i);if(e<s)s-=e;else{const n=s/e;n<=0&&(a=i),n>=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const o=10+.5*t,l=Math.atan2(r[0].y-a.y,r[0].x-a.x),c={x:0,y:0};return c.x=Math.sin(l)*o+(r[0].x+a.x)/2,c.y=-Math.cos(l)*o+(r[0].y+a.y)/2,"start_left"===e&&(c.x=Math.sin(l+Math.PI)*o+(r[0].x+a.x)/2,c.y=-Math.cos(l+Math.PI)*o+(r[0].y+a.y)/2),"end_right"===e&&(c.x=Math.sin(l-Math.PI)*o+(r[0].x+a.x)/2-5,c.y=-Math.cos(l-Math.PI)*o+(r[0].y+a.y)/2-5),"end_left"===e&&(c.x=Math.sin(l)*o+(r[0].x+a.x)/2-5,c.y=-Math.cos(l)*o+(r[0].y+a.y)/2-5),c},formatUrl:function(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?(0,L.N)(n):n},getStylesFromArray:Q_,generateId:J_,random:tx,runFunc:(t,...e)=>{const n=t.split("."),i=n.length-1,r=n[i];let a=window;for(let s=0;s<i;s++)if(a=a[n[s]],!a)return;a[r](...e)},entityDecode:function(t){return ox=ox||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ox.innerHTML=t,unescape(ox.textContent)},initIdGenerator:class{constructor(t,e){this.deterministic=t,this.seed=e,this.count=e?e.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:lx,sanitizeCss:cx,insertTitle:(t,e,n,i)=>{if(!i)return;const r=t.node().getBBox();t.append("text").text(i).attr("x",r.x+r.width/2).attr("y",-n).attr("class",e)}},dx="9.3.0",fx=Object.freeze(hb);let px,gx=W_({},fx),yx=[],mx=W_({},fx);const bx=(t,e)=>{let n=W_({},t),i={};for(const r of e)kx(r),i=W_(i,r);if(n=W_(n,i),i.theme&&i.theme in sb){const t=W_({},px),e=W_(t.themeVariables||{},i.themeVariables);n.theme&&n.theme in sb&&(n.themeVariables=sb[n.theme].getThemeVariables(e))}return mx=n,Sx(mx),mx},_x=()=>W_({},gx),xx=t=>(Sx(t),W_(mx,t),vx()),vx=()=>W_({},mx),kx=t=>{var e;["secure",...null!=(e=gx.secure)?e:[]].forEach((e=>{void 0!==t[e]&&(Ym.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{0===e.indexOf("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&kx(t[e])}))},wx=t=>{t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),yx.push(t),bx(gx,yx)},Tx=(t=gx)=>{yx=[],bx(t,yx)};var Cx=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(Cx||{});const Ex={},Sx=t=>{var e;t&&((t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&(Ex[e="LAZY_LOAD_DEPRECATED"]||(Ym.warn(Cx[e]),Ex[e]=!0)))},Ax=function(t,e,n,i){const r=function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i}(e,n,i);!function(t,e){for(let n of e)t.attr(n[0],n[1])}(t,r)},Dx=function(t,e,n,i){const r=e.node().getBBox(),a=r.width,s=r.height;Ym.info(`SVG bounds: ${a}x${s}`,r);let o=0,l=0;Ym.info(`Graph bounds: ${o}x${l}`,t),o=a+2*n,l=s+2*n,Ym.info(`Calculated bounds: ${o}x${l}`),Ax(e,l,o,i);const c=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",c)},Lx=t=>`g.classGroup text {\n  fill: ${t.nodeBorder};\n  fill: ${t.classText};\n  stroke: none;\n  font-family: ${t.fontFamily};\n  font-size: 10px;\n\n  .title {\n    font-weight: bolder;\n  }\n\n}\n\n.nodeLabel, .edgeLabel {\n  color: ${t.classText};\n}\n.edgeLabel .label rect {\n  fill: ${t.mainBkg};\n}\n.label text {\n  fill: ${t.classText};\n}\n.edgeLabel .label span {\n  background: ${t.mainBkg};\n}\n\n.classTitle {\n  font-weight: bolder;\n}\n.node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${t.mainBkg};\n    stroke: ${t.nodeBorder};\n    stroke-width: 1px;\n  }\n\n\n.divider {\n  stroke: ${t.nodeBorder};\n  stroke: 1;\n}\n\ng.clickable {\n  cursor: pointer;\n}\n\ng.classGroup rect {\n  fill: ${t.mainBkg};\n  stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n  stroke: ${t.nodeBorder};\n  stroke-width: 1;\n}\n\n.classLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ${t.mainBkg};\n  opacity: 0.5;\n}\n\n.classLabel .label {\n  fill: ${t.nodeBorder};\n  font-size: 10px;\n}\n\n.relation {\n  stroke: ${t.lineColor};\n  stroke-width: 1;\n  fill: none;\n}\n\n.dashed-line{\n  stroke-dasharray: 3;\n}\n\n.dotted-line{\n  stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n  fill: ${t.lineColor} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n  fill: ${t.lineColor} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n  fill: ${t.lineColor} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n  fill: ${t.lineColor} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#extensionStart, .extension {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n  fill: ${t.mainBkg} !important;\n  stroke: ${t.lineColor} !important;\n  stroke-width: 1;\n}\n\n.edgeTerminals {\n  font-size: 11px;\n}\n\n.classTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ${t.textColor};\n}\n`,Nx=t=>
11`\n  .entityBox {\n    fill: ${t.mainBkg};\n    stroke: ${t.nodeBorder};\n  }\n\n  .attributeBoxOdd {\n    fill: ${t.attributeBackgroundColorOdd};\n    stroke: ${t.nodeBorder};\n  }\n\n  .attributeBoxEven {\n    fill:  ${t.attributeBackgroundColorEven};\n    stroke: ${t.nodeBorder};\n  }\n\n  .relationshipLabelBox {\n    fill: ${t.tertiaryColor};\n    opacity: 0.7;\n    background-color: ${t.tertiaryColor};\n      rect {\n        opacity: 0.5;\n      }\n  }\n\n    .relationshipLine {\n      stroke: ${t.lineColor};\n    }\n\n  .entityTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${t.textColor};\n  }    \n`,Ox=()=>"",Mx=t=>`.label {\n    font-family: ${t.fontFamily};\n    color: ${t.nodeTextColor||t.textColor};\n  }\n  .cluster-label text {\n    fill: ${t.titleColor};\n  }\n  .cluster-label span {\n    color: ${t.titleColor};\n  }\n\n  .label text,span {\n    fill: ${t.nodeTextColor||t.textColor};\n    color: ${t.nodeTextColor||t.textColor};\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${t.mainBkg};\n    stroke: ${t.nodeBorder};\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ${t.arrowheadColor};\n  }\n\n  .edgePath .path {\n    stroke: ${t.lineColor};\n    stroke-width: 2.0px;\n  }\n\n  .flowchart-link {\n    stroke: ${t.lineColor};\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ${t.edgeLabelBackground};\n    rect {\n      opacity: 0.5;\n      background-color: ${t.edgeLabelBackground};\n      fill: ${t.edgeLabelBackground};\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n    fill: ${t.clusterBkg};\n    stroke: ${t.clusterBorder};\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ${t.titleColor};\n  }\n\n  .cluster span {\n    color: ${t.titleColor};\n  }\n  /* .cluster div {\n    color: ${t.titleColor};\n  } */\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ${t.fontFamily};\n    font-size: 12px;\n    background: ${t.tertiaryColor};\n    border: 1px solid ${t.border2};\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .flowchartTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${t.textColor};\n  }\n`,Bx=t=>`\n  .mermaid-main-font {\n    font-family: "trebuchet ms", verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  .exclude-range {\n    fill: ${t.excludeBkgColor};\n  }\n\n  .section {\n    stroke: none;\n    opacity: 0.2;\n  }\n\n  .section0 {\n    fill: ${t.sectionBkgColor};\n  }\n\n  .section2 {\n    fill: ${t.sectionBkgColor2};\n  }\n\n  .section1,\n  .section3 {\n    fill: ${t.altSectionBkgColor};\n    opacity: 0.2;\n  }\n\n  .sectionTitle0 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle1 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle2 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle3 {\n    fill: ${t.titleColor};\n  }\n\n  .sectionTitle {\n    text-anchor: start;\n    // font-size: ${t.ganttFontSize};\n    // text-height: 14px;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n\n  }\n\n\n  /* Grid and axis */\n\n  .grid .tick {\n    stroke: ${t.gridColor};\n    opacity: 0.8;\n    shape-rendering: crispEdges;\n    text {\n      font-family: ${t.fontFamily};\n      fill: ${t.textColor};\n    }\n  }\n\n  .grid path {\n    stroke-width: 0;\n  }\n\n\n  /* Today line */\n\n  .today {\n    fill: none;\n    stroke: ${t.todayLineColor};\n    stroke-width: 2px;\n  }\n\n\n  /* Task styling */\n\n  /* Default task */\n\n  .task {\n    stroke-width: 2;\n  }\n\n  .taskText {\n    text-anchor: middle;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n\n  // .taskText:not([font-size]) {\n  //   font-size: ${t.ganttFontSize};\n  // }\n\n  .taskTextOutsideRight {\n    fill: ${t.taskTextDarkColor};\n    text-anchor: start;\n    // font-size: ${t.ganttFontSize};\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n\n  }\n\n  .taskTextOutsideLeft {\n    fill: ${t.taskTextDarkColor};\n    text-anchor: end;\n    // font-size: ${t.ganttFontSize};\n  }\n\n  /* Special case clickable */\n  .task.clickable {\n    cursor: pointer;\n  }\n  .taskText.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideLeft.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideRight.clickable {\n    cursor: pointer;\n    fill: ${t.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  /* Specific task settings for the sections*/\n\n  .taskText0,\n  .taskText1,\n  .taskText2,\n  .taskText3 {\n    fill: ${t.taskTextColor};\n  }\n\n  .task0,\n  .task1,\n  .task2,\n  .task3 {\n    fill: ${t.taskBkgColor};\n    stroke: ${t.taskBorderColor};\n  }\n\n  .taskTextOutside0,\n  .taskTextOutside2\n  {\n    fill: ${t.taskTextOutsideColor};\n  }\n\n  .taskTextOutside1,\n  .taskTextOutside3 {\n    fill: ${t.taskTextOutsideColor};\n  }\n\n\n  /* Active task */\n\n  .active0,\n  .active1,\n  .active2,\n  .active3 {\n    fill: ${t.activeTaskBkgColor};\n    stroke: ${t.activeTaskBorderColor};\n  }\n\n  .activeText0,\n  .activeText1,\n  .activeText2,\n  .activeText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n\n  /* Completed task */\n\n  .done0,\n  .done1,\n  .done2,\n  .done3 {\n    stroke: ${t.doneTaskBorderColor};\n    fill: ${t.doneTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneText0,\n  .doneText1,\n  .doneText2,\n  .doneText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n\n  /* Tasks on the critical line */\n\n  .crit0,\n  .crit1,\n  .crit2,\n  .crit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.critBkgColor};\n    stroke-width: 2;\n  }\n\n  .activeCrit0,\n  .activeCrit1,\n  .activeCrit2,\n  .activeCrit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.activeTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneCrit0,\n  .doneCrit1,\n  .doneCrit2,\n  .doneCrit3 {\n    stroke: ${t.critBorderColor};\n    fill: ${t.doneTaskBkgColor};\n    stroke-width: 2;\n    cursor: pointer;\n    shape-rendering: crispEdges;\n  }\n\n  .milestone {\n    transform: rotate(45deg) scale(0.8,0.8);\n  }\n\n  .milestoneText {\n    font-style: italic;\n  }\n  .doneCritText0,\n  .doneCritText1,\n  .doneCritText2,\n  .doneCritText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n  .activeCritText0,\n  .activeCritText1,\n  .activeCritText2,\n  .activeCritText3 {\n    fill: ${t.taskTextDarkColor} !important;\n  }\n\n  .titleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${t.textColor}    ;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n`,Ix=()=>"",Fx=t=>
11`\n  .pieCircle{\n    stroke: ${t.pieStrokeColor};\n    stroke-width : ${t.pieStrokeWidth};\n    opacity : ${t.pieOpacity};\n  }\n  .pieTitleText {\n    text-anchor: middle;\n    font-size: ${t.pieTitleTextSize};\n    fill: ${t.pieTitleTextColor};\n    font-family: ${t.fontFamily};\n  }\n  .slice {\n    font-family: ${t.fontFamily};\n    fill: ${t.pieSectionTextColor};\n    font-size:${t.pieSectionTextSize};\n    // fill: white;\n  }\n  .legend text {\n    fill: ${t.pieLegendTextColor};\n    font-family: ${t.fontFamily};\n    font-size: ${t.pieLegendTextSize};\n  }\n`,Rx=t=>`\n\n  marker {\n    fill: ${t.relationColor};\n    stroke: ${t.relationColor};\n  }\n\n  marker.cross {\n    stroke: ${t.lineColor};\n  }\n\n  svg {\n    font-family: ${t.fontFamily};\n    font-size: ${t.fontSize};\n  }\n\n  .reqBox {\n    fill: ${t.requirementBackground};\n    fill-opacity: 100%;\n    stroke: ${t.requirementBorderColor};\n    stroke-width: ${t.requirementBorderSize};\n  }\n  \n  .reqTitle, .reqLabel{\n    fill:  ${t.requirementTextColor};\n  }\n  .reqLabelBox {\n    fill: ${t.relationLabelBackground};\n    fill-opacity: 100%;\n  }\n\n  .req-title-line {\n    stroke: ${t.requirementBorderColor};\n    stroke-width: ${t.requirementBorderSize};\n  }\n  .relationshipLine {\n    stroke: ${t.relationColor};\n    stroke-width: 1;\n  }\n  .relationshipLabel {\n    fill: ${t.relationLabelColor};\n  }\n\n`,$x=t=>`.actor {\n    stroke: ${t.actorBorder};\n    fill: ${t.actorBkg};\n  }\n\n  text.actor > tspan {\n    fill: ${t.actorTextColor};\n    stroke: none;\n  }\n\n  .actor-line {\n    stroke: ${t.actorLineColor};\n  }\n\n  .messageLine0 {\n    stroke-width: 1.5;\n    stroke-dasharray: none;\n    stroke: ${t.signalColor};\n  }\n\n  .messageLine1 {\n    stroke-width: 1.5;\n    stroke-dasharray: 2, 2;\n    stroke: ${t.signalColor};\n  }\n\n  #arrowhead path {\n    fill: ${t.signalColor};\n    stroke: ${t.signalColor};\n  }\n\n  .sequenceNumber {\n    fill: ${t.sequenceNumberColor};\n  }\n\n  #sequencenumber {\n    fill: ${t.signalColor};\n  }\n\n  #crosshead path {\n    fill: ${t.signalColor};\n    stroke: ${t.signalColor};\n  }\n\n  .messageText {\n    fill: ${t.signalTextColor};\n    stroke: none;\n  }\n\n  .labelBox {\n    stroke: ${t.labelBoxBorderColor};\n    fill: ${t.labelBoxBkgColor};\n  }\n\n  .labelText, .labelText > tspan {\n    fill: ${t.labelTextColor};\n    stroke: none;\n  }\n\n  .loopText, .loopText > tspan {\n    fill: ${t.loopTextColor};\n    stroke: none;\n  }\n\n  .loopLine {\n    stroke-width: 2px;\n    stroke-dasharray: 2, 2;\n    stroke: ${t.labelBoxBorderColor};\n    fill: ${t.labelBoxBorderColor};\n  }\n\n  .note {\n    //stroke: #decc93;\n    stroke: ${t.noteBorderColor};\n    fill: ${t.noteBkgColor};\n  }\n\n  .noteText, .noteText > tspan {\n    fill: ${t.noteTextColor};\n    stroke: none;\n  }\n\n  .activation0 {\n    fill: ${t.activationBkgColor};\n    stroke: ${t.activationBorderColor};\n  }\n\n  .activation1 {\n    fill: ${t.activationBkgColor};\n    stroke: ${t.activationBorderColor};\n  }\n\n  .activation2 {\n    fill: ${t.activationBkgColor};\n    stroke: ${t.activationBorderColor};\n  }\n\n  .actorPopupMenu {\n    position: absolute;\n  }\n\n  .actorPopupMenuPanel {\n    position: absolute;\n    fill: ${t.actorBkg};\n    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n  .actor-man line {\n    stroke: ${t.actorBorder};\n    fill: ${t.actorBkg};\n  }\n  .actor-man circle, line {\n    stroke: ${t.actorBorder};\n    fill: ${t.actorBkg};\n    stroke-width: 2px;\n  }\n`,Px=t=>`\ndefs #statediagram-barbEnd {\n    fill: ${t.transitionColor};\n    stroke: ${t.transitionColor};\n  }\ng.stateGroup text {\n  fill: ${t.nodeBorder};\n  stroke: none;\n  font-size: 10px;\n}\ng.stateGroup text {\n  fill: ${t.textColor};\n  stroke: none;\n  font-size: 10px;\n\n}\ng.stateGroup .state-title {\n  font-weight: bolder;\n  fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n  fill: ${t.mainBkg};\n  stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n  stroke: ${t.lineColor};\n  stroke-width: 1;\n}\n\n.transition {\n  stroke: ${t.transitionColor};\n  stroke-width: 1;\n  fill: none;\n}\n\n.stateGroup .composit {\n  fill: ${t.background};\n  border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n  fill: #e0e0e0;\n  border-bottom: 1px\n}\n\n.state-note {\n  stroke: ${t.noteBorderColor};\n  fill: ${t.noteBkgColor};\n\n  text {\n    fill: ${t.noteTextColor};\n    stroke: none;\n    font-size: 10px;\n  }\n}\n\n.stateLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ${t.mainBkg};\n  opacity: 0.5;\n}
11\n\n.edgeLabel .label rect {\n  fill: ${t.labelBackgroundColor};\n  opacity: 0.5;\n}\n.edgeLabel .label text {\n  fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n  color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n  fill: ${t.stateLabelColor};\n  font-size: 10px;\n  font-weight: bold;\n}\n\n.node circle.state-start {\n  fill: ${t.specialStateColor};\n  stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n  fill: ${t.specialStateColor};\n  stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n  fill: ${t.innerEndBackground};\n  stroke: ${t.background};\n  stroke-width: 1.5\n}\n.end-state-inner {\n  fill: ${t.compositeBackground||t.background};\n  // stroke: ${t.background};\n  stroke-width: 1.5\n}\n\n.node rect {\n  fill: ${t.stateBkg||t.mainBkg};\n  stroke: ${t.stateBorder||t.nodeBorder};\n  stroke-width: 1px;\n}\n.node polygon {\n  fill: ${t.mainBkg};\n  stroke: ${t.stateBorder||t.nodeBorder};;\n  stroke-width: 1px;\n}\n#statediagram-barbEnd {\n  fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n  fill: ${t.compositeTitleBackground};\n  stroke: ${t.stateBorder||t.nodeBorder};\n  stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n  color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state .divider {\n  stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n  fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n  fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n  rx:0;\n  ry:0;\n}\n\n.statediagram-state rect.basic {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state rect.divider {\n  stroke-dasharray: 10,10;\n  fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n  stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n  fill: ${t.noteBkgColor};\n  stroke: ${t.noteBorderColor};\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n.statediagram-note rect {\n  fill: ${t.noteBkgColor};\n  stroke: ${t.noteBorderColor};\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n\n.statediagram-note text {\n  fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n  color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n  color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n  fill: ${t.lineColor};\n  stroke: ${t.lineColor};\n  stroke-width: 1;\n}\n\n.statediagramTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ${t.textColor};\n}\n`,Yx=t=>`.label {\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n    color: ${t.textColor};\n  }\n  .mouth {\n    stroke: #666;\n  }\n\n  line {\n    stroke: ${t.textColor}\n  }\n\n  .legend {\n    fill: ${t.textColor};\n  }\n\n  .label text {\n    fill: #333;\n  }\n  .label {\n    color: ${t.textColor}\n  }\n\n  .face {\n    ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n    stroke: #999;\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${t.mainBkg};\n    stroke: ${t.nodeBorder};\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ${t.arrowheadColor};\n  }\n\n  .edgePath .path {\n    stroke: ${t.lineColor};\n    stroke-width: 1.5px;\n  }\n\n  .flowchart-link {\n    stroke: ${t.lineColor};\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ${t.edgeLabelBackground};\n    rect {\n      opacity: 0.5;\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n  }\n\n  .cluster text {\n    fill: ${t.titleColor};\n  }\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n    font-size: 12px;\n    background: ${t.tertiaryColor};\n    border: 1px solid ${t.border2};\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .task-type-0, .section-type-0  {\n    ${t.fillType0?`fill: ${t.fillType0}`:""};\n  }\n  .task-type-1, .section-type-1  {\n    ${t.fillType0?`fill: ${t.fillType1}`:""};\n  }\n  .task-type-2, .section-type-2  {\n    ${t.fillType0?`fill: ${t.fillType2}`:""};\n  }\n  .task-type-3, .section-type-3  {\n    ${t.fillType0?`fill: ${t.fillType3}`:""};\n  }\n  .task-type-4, .section-type-4  {\n    ${t.fillType0?`fill: ${t.fillType4}`:""};\n  }\n  .task-type-5, .section-type-5  {\n    ${t.fillType0?`fill: ${t.fillType5}`:""};\n  }\n  .task-type-6, .section-type-6  {\n    ${t.fillType0?`fill: ${t.fillType6}`:""};\n  }\n  .task-type-7, .section-type-7  {\n    ${t.fillType0?`fill: ${t.fillType7}`:""};\n  }\n\n  .actor-0 {\n    ${t.actor0?`fill: ${t.actor0}`:""};\n  }\n  .actor-1 {\n    ${t.actor1?`fill: ${t.actor1}`:""};\n  }\n  .actor-2 {\n    ${t.actor2?`fill: ${t.actor2}`:""};\n  }\n  .actor-3 {\n    ${t.actor3?`fill: ${t.actor3}`:""};\n  }\n  .actor-4 {\n    ${t.actor4?`fill: ${t.actor4}`:""};\n  }\n  .actor-5 {\n    ${t.actor5?`fill: ${t.actor5}`:""};\n  }\n`,jx=t=>`.person {\n    stroke: ${t.personBorder};\n    fill: ${t.personBkg};\n  }
11\n`,zx={flowchart:Mx,"flowchart-v2":Mx,sequence:$x,gantt:Bx,classDiagram:Lx,"classDiagram-v2":Lx,class:Lx,stateDiagram:Px,state:Px,info:Ix,pie:Fx,er:Nx,error:Ox,journey:Yx,requirement:Rx,c4:jx},Ux=(t,e,n)=>{let i="";return t in zx&&zx[t]?i=zx[t](n):Ym.warn(`No theme found for ${t}`),` & {\n    font-family: ${n.fontFamily};\n    font-size: ${n.fontSize};\n    fill: ${n.textColor}\n  }\n\n  /* Classes common for multiple diagrams */\n\n  & .error-icon {\n    fill: ${n.errorBkgColor};\n  }\n  & .error-text {\n    fill: ${n.errorTextColor};\n    stroke: ${n.errorTextColor};\n  }\n\n  & .edge-thickness-normal {\n    stroke-width: 2px;\n  }\n  & .edge-thickness-thick {\n    stroke-width: 3.5px\n  }\n  & .edge-pattern-solid {\n    stroke-dasharray: 0;\n  }\n\n  & .edge-pattern-dashed{\n    stroke-dasharray: 3;\n  }\n  .edge-pattern-dotted {\n    stroke-dasharray: 2;\n  }\n\n  & .marker {\n    fill: ${n.lineColor};\n    stroke: ${n.lineColor};\n  }\n  & .marker.cross {\n    stroke: ${n.lineColor};\n  }\n\n  & svg {\n    font-family: ${n.fontFamily};\n    font-size: ${n.fontSize};\n  }\n\n  ${i}\n\n  ${e}\n`},Wx=Ym,Hx=jm,qx=vx,Vx=t=>Hm(t,qx()),Gx=Dx,Xx={},Zx=(t,e,n)=>{if(Xx[t])throw new Error(`Diagram ${t} already registered.`);var i,r;Xx[t]=e,n&&z_(t,n),i=t,r=e.styles,zx[i]=r,e.injectUtils&&e.injectUtils(Wx,Hx,qx,Vx,Gx)},Qx=t=>{if(t in Xx)return Xx[t];throw new Error(`Diagram ${t} not found.`)};var Kx=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,4],i=[1,7],r=[1,5],a=[1,9],s=[1,6],o=[2,6],l=[1,16],c=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],h=[8,14,20,22,24,25,27,29,32,37,40],u=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],f=[6,8,14,50,55],p=[8,14,55],g=[1,53],y=[1,52],m=[8,14,30,33,35,38,55],b=[1,67],_=[1,68],x=[1,69],v=[8,14,33,35,42,55],k={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 3:return a[o];case 4:return a[o-1];case 5:return i.setDirection(a[o-3]),a[o-1];case 7:i.setOptions(a[o-1]),this.$=a[o];break;case 8:a[o-1]+=a[o],this.$=a[o-1];break;case 10:this.$=[];break;case 11:a[o-1].push(a[o]),this.$=a[o-1];break;case 12:this.$=a[o-1];break;case 17:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 22:i.checkout(a[o]);break;case 23:i.branch(a[o]);break;case 24:i.branch(a[o-2],a[o]);break;case 25:i.cherryPick(a[o],"",void 0);break;case 26:i.cherryPick(a[o-2],"",a[o]);break;case 27:case 29:i.cherryPick(a[o-2],"","");break;case 28:i.cherryPick(a[o],"",a[o-2]);break;
11case 30:i.merge(a[o],"","","");break;case 31:i.merge(a[o-2],a[o],"","");break;case 32:i.merge(a[o-2],"",a[o],"");break;case 33:i.merge(a[o-2],"","",a[o]);break;case 34:i.merge(a[o-4],a[o],"",a[o-2]);break;case 35:i.merge(a[o-4],"",a[o],a[o-2]);break;case 36:i.merge(a[o-4],"",a[o-2],a[o]);break;case 37:i.merge(a[o-4],a[o-2],a[o],"");break;case 38:i.merge(a[o-4],a[o-2],"",a[o]);break;case 39:i.merge(a[o-4],a[o],a[o-2],"");break;case 40:i.merge(a[o-6],a[o-4],a[o-2],a[o]);break;case 41:i.merge(a[o-6],a[o],a[o-4],a[o-2]);break;case 42:i.merge(a[o-6],a[o-4],a[o],a[o-2]);break;case 43:i.merge(a[o-6],a[o-2],a[o-4],a[o]);break;case 44:i.merge(a[o-6],a[o],a[o-2],a[o-4]);break;case 45:i.merge(a[o-6],a[o-2],a[o],a[o-4]);break;case 46:i.commit(a[o]);break;case 47:i.commit("","",i.commitType.NORMAL,a[o]);break;case 48:i.commit("","",a[o],"");break;case 49:i.commit("","",a[o],a[o-2]);break;case 50:i.commit("","",a[o-2],a[o]);break;case 51:i.commit("",a[o],i.commitType.NORMAL,"");break;case 52:i.commit("",a[o-2],i.commitType.NORMAL,a[o]);break;case 53:i.commit("",a[o],i.commitType.NORMAL,a[o-2]);break;case 54:i.commit("",a[o-2],a[o],"");break;case 55:i.commit("",a[o],a[o-2],"");break;case 56:i.commit("",a[o-4],a[o-2],a[o]);break;case 57:i.commit("",a[o-4],a[o],a[o-2]);break;case 58:i.commit("",a[o-2],a[o-4],a[o]);break;case 59:i.commit("",a[o],a[o-4],a[o-2]);break;case 60:i.commit("",a[o],a[o-2],a[o-4]);break;case 61:i.commit("",a[o-2],a[o],a[o-4]);break;case 62:i.commit(a[o],"",i.commitType.NORMAL,"");break;case 63:i.commit(a[o],"",i.commitType.NORMAL,a[o-2]);break;case 64:i.commit(a[o-2],"",i.commitType.NORMAL,a[o]);break;case 65:i.commit(a[o-2],"",a[o],"");break;case 66:i.commit(a[o],"",a[o-2],"");break;case 67:i.commit(a[o],a[o-2],i.commitType.NORMAL,"");break;case 68:i.commit(a[o-2],a[o],i.commitType.NORMAL,"");break;case 69:i.commit(a[o-4],"",a[o-2],a[o]);break;case 70:i.commit(a[o-4],"",a[o],a[o-2]);break;case 71:i.commit(a[o-2],"",a[o-4],a[o]);break;case 72:i.commit(a[o],"",a[o-4],a[o-2]);break;case 73:i.commit(a[o],"",a[o-2],a[o-4]);break;case 74:i.commit(a[o-2],"",a[o],a[o-4]);break;case 75:i.commit(a[o-4],a[o],a[o-2],"");break;case 76:i.commit(a[o-4],a[o-2],a[o],"");break;case 77:i.commit(a[o-2],a[o],a[o-4],"");break;case 78:i.commit(a[o],a[o-2],a[o-4],"");break;case 79:i.commit(a[o],a[o-4],a[o-2],"");break;case 80:i.commit(a[o-2],a[o-4],a[o],"");break;case 81:i.commit(a[o-4],a[o],i.commitType.NORMAL,a[o-2]);break;case 82:i.commit(a[o-4],a[o-2],i.commitType.NORMAL,a[o]);break;case 83:i.commit(a[o-2],a[o],i.commitType.NORMAL,a[o-4]);break;case 84:i.commit(a[o],a[o-2],i.commitType.NORMAL,a[o-4]);break;case 85:i.commit(a[o],a[o-4],i.commitType.NORMAL,a[o-2]);break;case 86:i.commit(a[o-2],a[o-4],i.commitType.NORMAL,a[o]);break;case 87:i.commit(a[o-6],a[o-4],a[o-2],a[o]);break;case 88:i.commit(a[o-6],a[o-4],a[o],a[o-2]);break;case 89:i.commit(a[o-6],a[o-2],a[o-4],a[o]);break;case 90:i.commit(a[o-6],a[o],a[o-4],a[o-2]);break;case 91:i.commit(a[o-6],a[o-2],a[o],a[o-4]);break;case 92:i.commit(a[o-6],a[o],a[o-2],a[o-4]);break;case 93:i.commit(a[o-4],a[o-6],a[o-2],a[o]);break;case 94:i.commit(a[o-4],a[o-6],a[o],a[o-2]);break;case 95:i.commit(a[o-2],a[o-6],a[o-4],a[o]);break;case 96:i.commit(a[o],a[o-6],a[o-4],a[o-2]);break;case 97:i.commit(a[o-2],a[o-6],a[o],a[o-4]);break;case 98:i.commit(a[o],a[o-6],a[o-2],a[o-4]);break;case 99:i.commit(a[o],a[o-4],a[o-2],a[o-6]);break;case 100:i.commit(a[o-2],a[o-4],a[o],a[o-6]);break;case 101:i.commit(a[o],a[o-2],a[o-4],a[o-6]);break;case 102:i.commit(a[o-2],a[o],a[o-4],a[o-6]);break;case 103:i.commit(a[o-4],a[o-2],a[o],a[o-6]);break;case 104:i.commit(a[o-4],a[o],a[o-2],a[o-6]);break;case 105:i.commit(a[o-2],a[o-4],a[o-6],a[o]);break;case 106:i.commit(a[o],a[o-4],a[o-6],a[o-2]);break;case 107:i.commit(a[o-2],a[o],a[o-6],a[o-4]);break;case 108:i.commit(a[o],a[o-2],a[o-6],a[o-4]);break;case 109:i.commit(a[o-4],a[o-2],a[o-6],a[o]);break;case 110:i.commit(a[o-4],a[o],a[o-6],a[o-2]);break;case 111:this.$="";break;case 112:this.$=a[o];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(a[o],"type_directive");break;case 120:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:n,8:i,14:r,46:8,50:a,55:s},{1:[3]},{3:10,4:2,5:3,6:n,8:i,14:r,46:8,50:a,55:s},{3:11,4:2,5:3,6:n,8:i,14:r,46:8,50:a,55:s},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:l},e(c,[2,124]),e(c,[2,125]),e(c,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:l},{9:[1,21]},e(h,[2,10],{12:22,13:[1,23]}),e(u,[2,9]),{9:[1,25],48:24,53:d},e([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:l}
vendor: 4,349 bytes, line 11
11,{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},e(u,[2,8]),e(f,[2,116]),{49:45,52:[1,46]},e(f,[2,121]),{1:[2,4]},{8:[1,47]},e(h,[2,11]),{4:48,8:i,14:r,55:s},e(h,[2,13]),e(p,[2,14]),e(p,[2,15]),e(p,[2,16]),{21:[1,49]},{23:[1,50]},e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),{28:51,34:g,54:y},e(p,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:g,54:y},{33:[1,61],35:[1,62]},{28:63,34:g,54:y},{48:64,53:d},{53:[2,120]},{1:[2,5]},e(h,[2,12]),e(p,[2,17]),e(p,[2,18]),e(p,[2,22]),e(m,[2,122]),e(m,[2,123]),e(p,[2,46]),{34:[1,65]},{39:66,43:b,44:_,45:x},{34:[1,70]},{34:[1,71]},e(p,[2,112]),e(p,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},e(p,[2,23],{30:[1,78]}),e(f,[2,117]),e(p,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),e(p,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),e(v,[2,113]),e(v,[2,114]),e(v,[2,115]),e(p,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),e(p,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:b,44:_,45:x},{34:[1,93]},e(p,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:b,44:_,45:x},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:b,44:_,45:x},{34:[1,106]},{34:[1,107]},{39:108,43:b,44:_,45:x},{34:[1,109]},e(p,[2,31],{35:[1,111],38:[1,110]}),e(p,[2,32],{33:[1,113],35:[1,112]}),e(p,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},e(p,[2,24]),e(p,[2,49],{33:[1,120],42:[1,121]}),e(p,[2,53],{38:[1,122],42:[1,123]}),e(p,[2,63],{33:[1,125],38:[1,124]}),e(p,[2,50],{33:[1,126],42:[1,127]}),e(p,[2,55],{35:[1,128],42:[1,129]}),e(p,[2,66],{33:[1,131],35:[1,130]}),e(p,[2,52],{38:[1,132],42:[1,133]}),e(p,[2,54],{35:[1,134],42:[1,135]}),e(p,[2,67],{35:[1,137],38:[1,136]}),e(p,[2,64],{33:[1,139],38:[1,138]}),e(p,[2,65],{33:[1,141],35:[1,140]}),e(p,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:b,44:_,45:x},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:b,44:_,45:x},e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:b,44:_,45:x},{34:[1,153]},{39:154,43:b,44:_,45:x},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:b,44:_,45:x},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:b,44:_,45:x},{34:[1,167]},{39:168,43:b,44:_,45:x},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:b,44:_,45:x},{34:[1,173]},e(p,[2,37],{35:[1,174]}),e(p,[2,38],{38:[1,175]}),e(p,[2,36],{33:[1,176]}),e(p,[2,39],{35:[1,177]}),e(p,[2,34],{38:[1,178]}),e(p,[2,35],{33:[1,179]}),e(p,[2,60],{42:[1,180]}),e(p,[2,73],{33:[1,181]}),e(p,[2,61],{42:[1,182]}),e(p,[2,84],{38:[1,183]}),e(p,[2,74],{33:[1,184]}),e(p,[2,83],{38:[1,185]}),e(p,[2,59],{42:[1,186]}),e(p,[2,72],{33:[1,187]}),e(p,[2,58],{42:[1,188]}),e(p,[2,78],{35:[1,189]}),e(p,[2,71],{33:[1,190]}),e(p,[2,77],{35:[1,191]}),e(p,[2,57],{42:[1,192]}),e(p,[2,85],{38:[1,193]}),e(p,[2,56],{42:[1,194]}),e(p,[2,79],{35:[1,195]}),e(p,[2,80],{35:[1,196]}),e(p,[2,86],{38:[1,197]}),e(p,[2,70],{33:[1,198]}),e(p,[2,81],{38:[1,199]}),e(p,[2,69],{33:[1,200]}),e(p,[2,75],{35:[1,201]}),e(p,[2,76],{35:[1,202]}),e(p,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:b,44:_,45:x},{34:[1,206]},{34:[1,207]},{39:208,43:b,44:_,45:x},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:b,44:_,45:x},{34:[1,214]},{39:215,43:b,44:_,45:x},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:b,44:_,45:x},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:b,44:_,45:x},{34:[1,228]},{39:229,43:b,44:_,45:x},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:b,44:_,45:x},e(p,[2,40]),e(p,[2,42]),e(p,[2,41]),e(p,[2,43]),e(p,[2,45]),e(p,[2,44]),e(p,[2,101]),e(p,[2,102]),e(p,[2,99]),e(p,[2,100]),e(p,[2,104]),e(p,[2,103]),e(p,[2,108]),e(p,[2,107]),e(p,[2,106]),e(p,[2,105]),e(p,[2,110]),e(p,[2,109]),e(p,[2,98]),e(p,[2,97]),e(p,[2,96]),e(p,[2,95]),e(p,[2,93]),e(p,[2,94]),e(p,[2,92]),e(p,[2,91]),e(p,[2,90]),e(p,[2,89]),e(p,[2,87]),e(p,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1
vendor: 7,729 bytes, line 11
11),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},w=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;
11case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}},t);function T(){this.yy={}}return k.lexer=w,T.prototype=k,k.Parser=T,new T}();Kx.parser=Kx;const Jx=Kx,tv=t=>null!==t.match(/^\s*gitGraph/);let ev="",nv="",iv="";const rv=t=>Hm(t,vx()),av=function(){ev="",iv="",nv=""},sv=function(t){ev=rv(t).replace(/^\s+/g,"")},ov=function(){return ev||nv},lv=function(t){iv=rv(t).replace(/\n\s+/g,"\n")},cv=function(){return iv},hv=function(t){nv=rv(t)},uv=function(){return nv};let dv=vx().gitGraph.mainBranchName,fv=vx().gitGraph.mainBranchOrder,pv={},gv=null,yv={};yv[dv]={name:dv,order:fv};let mv={};mv[dv]=gv;let bv=dv,_v="LR",xv=0;function vv(){return tx({length:7})}let kv={};const wv=function(t){if(t=Qm.sanitizeText(t,vx()),void 0===mv[t]){let e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}{bv=t;const e=mv[bv];gv=pv[e]}};function Tv(t,e,n){const i=t.indexOf(e);-1===i?t.push(n):t.splice(i,1,n)}function Cv(t){const e=t.reduce(((t,e)=>t.seq>e.seq?t:e),t[0]);let n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));const i=[n,e.id,e.seq];for(let r in mv)mv[r]===e.id&&i.push(r);if(Ym.debug(i.join(" ")),e.parents&&2==e.parents.length){const n=pv[e.parents[0]];Tv(t,e,n),t.push(pv[e.parents[1]])}else{if(0==e.parents.length)return;{const n=pv[e.parents];Tv(t,e,n)}}Cv(t=function(t,e){const n=Object.create(null);return t.reduce(((t,i)=>{const r=e(i);return n[r]||(n[r]=!0,t.push(i)),t}),[])}(t,(t=>t.id)))}const Ev=function(){const t=Object.keys(pv).map((function(t){return pv[t]}));return t.forEach((function(t){Ym.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},Sv={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Av={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().gitGraph,setDirection:function(t){_v=t},setOptions:function(t){Ym.debug("options str",t),t=(t=t&&t.trim())||"{}";try{kv=JSON.parse(t)}catch(e){Ym.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return kv},commit:function(t,e,n,i){Ym.debug("Entering commit:",t,e,n,i),e=Qm.sanitizeText(e,vx()),t=Qm.sanitizeText(t,vx()),i=Qm.sanitizeText(i,vx());const r={id:e||xv+"-"+vv(),message:t,seq:xv++,type:n||Sv.NORMAL,tag:i||"",parents:null==gv?[]:[gv.id],branch:bv};gv=r,pv[r.id]=r,mv[bv]=r.id,Ym.debug("in pushCommit "+r.id)},branch:function(t,e){if(t=Qm.sanitizeText(t,vx()),void 0!==mv[t]){let e=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}mv[t]=null!=gv?gv.id:null,yv[t]={name:t,order:e?parseInt(e,10):null},wv(t),Ym.debug("in createBranch")},merge:function(t,e,n,i){t=Qm.sanitizeText(t,vx()),e=Qm.sanitizeText(e,vx());const r=pv[mv[bv]],a=pv[mv[t]];if(bv===t){let e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(void 0===r||!r){let e=new Error('Incorrect usage of "merge". Current branch ('+bv+")has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},e}if(void 0===mv[t]){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},e}if(void 0===a||!a){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},e}if(r===a){let e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(e&&void 0!==pv[e]){let r=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw r.hash={text:"merge "+t+e+n+i,token:"merge "+t+e+n+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+i]},r}const s={id:e||xv+"-"+vv(),message:"merged branch "+t+" into "+bv,seq:xv++,parents:[null==gv?null:gv.id,mv[t]],branch:bv,type:Sv.MERGE,customType:n,customId:!!e,tag:i||""};gv=s,pv[s.id]=s,mv[bv]=s.id,Ym.debug(mv),Ym.debug("in mergeBranch")},cherryPick:function(t,e,n){if(Ym.debug("Entering cherryPick:",t,e,n),t=Qm.sanitizeText(t,vx()),e=Qm.sanitizeText(e,vx()),n=Qm.s
11anitizeText(n,vx()),!t||void 0===pv[t]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let i=pv[t],r=i.branch;if(i.type===Sv.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!e||void 0===pv[e]){if(r===bv){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const a=pv[mv[bv]];if(void 0===a||!a){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+bv+")has no commits");throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const s={id:xv+"-"+vv(),message:"cherry-picked "+i+" into "+bv,seq:xv++,parents:[null==gv?null:gv.id,i.id],branch:bv,type:Sv.CHERRY_PICK,tag:null!=n?n:"cherry-pick:"+i.id};gv=s,pv[s.id]=s,mv[bv]=s.id,Ym.debug(mv),Ym.debug("in cherryPick")}},checkout:wv,prettyPrint:function(){Ym.debug(pv);Cv([Ev()[0]])},clear:function(){pv={},gv=null;let t=vx().gitGraph.mainBranchName,e=vx().gitGraph.mainBranchOrder;mv={},mv[t]=null,yv={},yv[t]={name:t,order:e},bv=t,xv=0,av()},getBranchesAsObjArray:function(){const t=Object.values(yv).map(((t,e)=>null!==t.order?t:{...t,order:parseFloat(`0.${e}`,10)})).sort(((t,e)=>t.order-e.order)).map((({name:t})=>({name:t})));return t},getBranches:function(){return mv},getCommits:function(){return pv},getCommitsArray:Ev,getCurrentBranch:function(){return bv},getDirection:function(){return _v},getHead:function(){return gv},setAccTitle:sv,getAccTitle:ov,getAccDescription:cv,setAccDescription:lv,setDiagramTitle:hv,getDiagramTitle:uv,commitType:Sv};let Dv={};const Lv=0,Nv=1,Ov=2,Mv=3,Bv=4;let Iv={},Fv={},Rv=[],$v=0;const Pv=(t,e,n)=>{const i=qx().gitGraph,r=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let s=0;Object.keys(e).sort(((t,n)=>e[t].seq-e[n].seq)).forEach((t=>{const o=e[t],l=Iv[o.branch].pos,c=s+10;if(n){let t,e=void 0!==o.customType&&""!==o.customType?o.customType:o.type;switch(e){case Lv:t="commit-normal";break;case Nv:t="commit-reverse";break;case Ov:t="commit-highlight";break;case Mv:t="commit-merge";break;case Bv:t="commit-cherry-pick";break;default:t="commit-normal"}if(e===Ov){const e=r.append("rect");e.attr("x",c-10),e.attr("y",l-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${o.id} commit-highlight${Iv[o.branch].index%8} ${t}-outer`),r.append("rect").attr("x",c-6).attr("y",l-6).attr("height",12).attr("width",12).attr("class",`commit ${o.id} commit${Iv[o.branch].index%8} ${t}-inner`)}else if(e===Bv)r.append("circle").attr("cx",c).attr("cy",l).attr("r",10).attr("class",`commit ${o.id} ${t}`),r.append("circle").attr("cx",c-3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${o.id} ${t}`),r.append("circle").attr("cx",c+3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${o.id} ${t}`),r.append("line").attr("x1",c+3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${o.id} ${t}`),r.append("line").attr("x1",c-3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${o.id} ${t}`);else{const n=r.append("circle");if(n.attr("cx",c),n.attr("cy",l),n.attr("r",o.type===Mv?9:10),n.attr("class",`commit ${o.id} commit${Iv[o.branch].index%8}`),e===Mv){const e=r.append("circle");e.attr("cx",c),e.attr("cy",l),e.attr("r",6),e.attr("class",`commit ${t} ${o.id} commit${Iv[o.branch].index%8}`)}if(e===Nv){r.append("path").attr("d",`M ${c-5},${l-5}L${c+5},${l+5}
11M${c-5},${l+5}L${c+5},${l-5}`).attr("class",`commit ${t} ${o.id} commit${Iv[o.branch].index%8}`)}}}if(Fv[o.id]={x:s+10,y:l},n){const t=4,e=2;if(o.type!==Bv&&(o.customId&&o.type===Mv||o.type!==Mv)&&i.showCommitLabel){const t=a.append("g"),n=t.insert("rect").attr("class","commit-label-bkg"),r=t.append("text").attr("x",s).attr("y",l+25).attr("class","commit-label").text(o.id);let c=r.node().getBBox();if(n.attr("x",s+10-c.width/2-e).attr("y",l+13.5).attr("width",c.width+2*e).attr("height",c.height+2*e),r.attr("x",s+10-c.width/2),i.rotateCommitLabel){let e=-7.5-(c.width+10)/25*9.5,n=10+c.width/25*8.5;t.attr("transform","translate("+e+", "+n+") rotate("+"-45, "+s+", "+l+")")}}if(o.tag){const n=a.insert("polygon"),i=a.append("circle"),r=a.append("text").attr("y",l-16).attr("class","tag-label").text(o.tag);let c=r.node().getBBox();r.attr("x",s+10-c.width/2);const h=c.height/2,u=l-19.2;n.attr("class","tag-label-bkg").attr("points",`\n          ${s-c.width/2-t/2},${u+e}\n          ${s-c.width/2-t/2},${u-e}\n          ${s+10-c.width/2-t},${u-h-e}\n          ${s+10+c.width/2+t},${u-h-e}\n          ${s+10+c.width/2+t},${u+h+e}\n          ${s+10-c.width/2-t},${u+h+e}`),i.attr("cx",s-c.width/2+t/2).attr("cy",u).attr("r",1.5).attr("class","tag-hole")}}s+=50,s>$v&&($v=s)}))},Yv=(t,e,n=0)=>{const i=t+Math.abs(t-e)/2;if(n>5)return i;if(Rv.every((t=>Math.abs(t-i)>=10)))return Rv.push(i),i;const r=Math.abs(t-e);return Yv(t,e-r/5,n+1)},jv=(t,e,n,i)=>{const r=Fv[e.id],a=Fv[n.id],s=((t,e,n)=>Object.keys(n).filter((i=>n[i].branch===e.branch&&n[i].seq>t.seq&&n[i].seq<e.seq)).length>0)(e,n,i);let o,l="",c="",h=0,u=0,d=Iv[n.branch].index;if(s){l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,d=Iv[n.branch].index;const t=r.y<a.y?Yv(r.y,a.y):Yv(a.y,r.y);o=r.y<a.y?`M ${r.x} ${r.y} L ${r.x} ${t-h} ${l} ${r.x+u} ${t} L ${a.x-h} ${t} ${c} ${a.x} ${t+u} L ${a.x} ${a.y}`:`M ${r.x} ${r.y} L ${r.x} ${t+h} ${c} ${r.x+u} ${t} L ${a.x-h} ${t} ${l} ${a.x} ${t-u} L ${a.x} ${a.y}`}else r.y<a.y&&(l="A 20 20, 0, 0, 0,",h=20,u=20,d=Iv[n.branch].index,o=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${l} ${r.x+u} ${a.y} L ${a.x} ${a.y}`),r.y>a.y&&(l="A 20 20, 0, 0, 0,",h=20,u=20,d=Iv[e.branch].index,o=`M ${r.x} ${r.y} L ${a.x-h} ${r.y} ${l} ${a.x} ${r.y-u} L ${a.x} ${a.y}`),r.y===a.y&&(d=Iv[e.branch].index,o=`M ${r.x} ${r.y} L ${r.x} ${a.y-h} ${l} ${r.x+u} ${a.y} L ${a.x} ${a.y}`);t.append("path").attr("d",o).attr("class","arrow arrow"+d%8)},zv=(t,e)=>{const n=qx().gitGraph,i=t.append("g");e.forEach(((t,e)=>{const r=e%8,a=Iv[t.name].pos,s=i.append("line");s.attr("x1",0),s.attr("y1",a),s.attr("x2",$v),s.attr("y2",a),s.attr("class","branch branch"+r),Rv.push(a);const o=(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(t)?t:[];for(const i of n){const t=document.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","0"),t.setAttribute("class","row"),t.textContent=i.trim(),e.appendChild(t)}return e})(t.name),l=i.insert("rect"),c=i.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+r);c.node().appendChild(o);let h=o.getBBox();l.attr("class","branchLabelBkg label"+r).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),c.attr("transform","translate("+(-h.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(a-h.height/2-1)+")"),l.attr("transform","translate(-19, "+(a-h.height/2)+")")}))},Uv={draw:function(t,e,n,i){var r;Iv={},Fv={},Dv={},$v=0,Rv=[];const a=qx(),s=a.gitGraph;Ym.debug("in gitgraph renderer",t+"\n","id:",e,n),Dv=i.db.getCommits();const o=i.db.getBranchesAsObjArray();let l=0;o.forEach(((t,e)=>{Iv[t.name]={pos:l,index:e},l+=50+(s.rotateCommitLabel?40:0)}));const c=to(`[id="${e}"]`);Pv(c,Dv,!1),s.showBranches&&zv(c,o),((t,e)=>{const n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const i=e[t];i.parents&&i.parents.length>
110&&i.parents.forEach((t=>{jv(n,e[t],i,e)}))}))})(c,Dv),Pv(c,Dv,!0),ux.insertTitle(c,"gitTitleText",s.titleTopMargin,i.db.getDiagramTitle()),Gx(void 0,c,s.diagramPadding,null!=(r=s.useMaxWidth)?r:a.useMaxWidth)}},Wv=t=>`\n  .commit-id,\n  .commit-msg,\n  .branch-label {\n    fill: lightgrey;\n    color: lightgrey;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  ${[0,1,2,3,4,5,6,7].map((e=>`\n        .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n        .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n        .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n        .label${e}  { fill: ${t["git"+e]}; }\n        .arrow${e} { stroke: ${t["git"+e]}; }\n        `)).join("\n")}\n\n  .branch {\n    stroke-width: 1;\n    stroke: ${t.lineColor};\n    stroke-dasharray: 2;\n  }\n  .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n  .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n  .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n  .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n  .tag-hole { fill: ${t.textColor}; }\n\n  .commit-merge {\n    stroke: ${t.primaryColor};\n    fill: ${t.primaryColor};\n  }\n  .commit-reverse {\n    stroke: ${t.primaryColor};\n    fill: ${t.primaryColor};\n    stroke-width: 3;\n  }\n  .commit-highlight-outer {\n  }\n  .commit-highlight-inner {\n    stroke: ${t.primaryColor};\n    fill: ${t.primaryColor};\n  }\n\n  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n  .gitTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${t.textColor};\n  }\n  }\n`;var Hv=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,6],i=[1,7],r=[1,8],a=[1,9],s=[1,16],o=[1,11],l=[1,12],h=[1,13],u=[1,14],d=[1,15],f=[1,27],p=[1,33],g=[1,34],y=[1,35],m=[1,36],b=[1,37],_=[1,72],x=[1,73],v=[1,74],k=[1,75],w=[1,76],T=[1,77],C=[1,78],E=[1,38],S=[1,39],A=[1,40],D=[1,41],L=[1,42],N=[1,43],O=[1,44],M=[1,45],B=[1,46],I=[1,47],F=[1,48],R=[1,49],$=[1,50],P=[1,51],Y=[1,52],j=[1,53],z=[1,54],U=[1,55],W=[1,56],H=[1,57],q=[1,59],V=[1,60],G=[1,61],X=[1,62],Z=[1,63],Q=[1,64],K=[1,65],J=[1,66],tt=[1,67],et=[1,68],nt=[1,69],it=[24,52],rt=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],at=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],st=[1,94],ot=[1,95],lt=[1,96],ct=[1,97],ht=[15,24,52],ut=[7,8,9,10,18,22,25,26,27,28],dt=[15,24,43,52],ft=[15,24,43,52,86,87,89,90],pt=[15,43],gt=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],yt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boun
11daryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:i.setC4Type(a[o-3]);break;case 26:i.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 27:i.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 28:this.$=a[o].trim(),i.setTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 35:case 36:a[o].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 37:i.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 38:a[o].splice(2,0,"CONTAINER"),i.addContainerBoundary(...a[o]),this.$=a[o];break;case 39:i.addDeploymentNode("node",...a[o]),this.$=a[o];break;case 40:i.addDeploymentNode("nodeL",...a[o]),this.$=a[o];break;case 41:i.addDeploymentNode("nodeR",...a[o]),this.$=a[o];break;case 42:i.popBoundaryParseStack();break;case 46:i.addPersonOrSystem("person",...a[o]),this.$=a[o];break;case 47:i.addPersonOrSystem("external_person",...a[o]),this.$=a[o];break;case 48:i.addPersonOrSystem("system",...a[o]),this.$=a[o];break;case 49:i.addPersonOrSystem("system_db",...a[o]),this.$=a[o];break;case 50:i.addPersonOrSystem("system_queue",...a[o]),this.$=a[o];break;case 51:i.addPersonOrSystem("external_system",...a[o]),this.$=a[o];break;case 52:i.addPersonOrSystem("external_system_db",...a[o]),this.$=a[o];break;case 53:i.addPersonOrSystem("external_system_queue",...a[o]),this.$=a[o];break;case 54:i.addContainer("container",...a[o]),this.$=a[o];break;case 55:i.addContainer("container_db",...a[o]),this.$=a[o];break;case 56:i.addContainer("container_queue",...a[o]),this.$=a[o];break;case 57:i.addContainer("external_container",...a[o]),this.$=a[o];break;case 58:i.addContainer("external_container_db",...a[o]),this.$=a[o];break;case 59:i.addContainer("external_container_queue",...a[o]),this.$=a[o];break;case 60:i.addComponent("component",...a[o]),this.$=a[o];break;case 61:i.addComponent("component_db",...a[o]),this.$=a[o];break;case 62:i.addComponent("component_queue",...a[o]),this.$=a[o];break;case 63:i.addComponent("external_component",...a[o]),this.$=a[o];break;case 64:i.addComponent("external_component_db",...a[o]),this.$=a[o];break;case 65:i.addComponent("external_component_queue",...a[o]),this.$=a[o];break;case 67:i.addRel("rel",...a[o]),this.$=a[o];break;case 68:i.addRel("birel",...a[o]),this.$=a[o];break;case 69:i.addRel("rel_u",...a[o]),this.$=a[o];break;case 70:i.addRel("rel_d",...a[o]),this.$=a[o];break;case 71:i.addRel("rel_l",...a[o]),this.$=a[o];break;case 72:i.addRel("rel_r",...a[o]),this.$=a[o];break;case 73:i.addRel("rel_b",...a[o]),this.$=a[o];break;case 74:a[o].splice(0,1),i.addRel("rel",...a[o]),this.$=a[o];break;
vendor: 5,990 bytes, line 11
11case 75:i.updateElStyle("update_el_style",...a[o]),this.$=a[o];break;case 76:i.updateRelStyle("update_rel_style",...a[o]),this.$=a[o];break;case 77:i.updateLayoutConfig("update_layout_config",...a[o]),this.$=a[o];break;case 78:this.$=[a[o]];break;case 79:a[o].unshift(a[o-1]),this.$=a[o];break;case 80:case 82:this.$=a[o].trim();break;case 81:let t={};t[a[o-1].trim()]=a[o].trim(),this.$=t;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:n,8:i,9:r,10:a,11:5,12:10,18:s,22:o,25:l,26:h,27:u,28:d},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:n,8:i,9:r,10:a,11:5,12:10,18:s,22:o,25:l,26:h,27:u,28:d},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:f},e([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:g,34:y,36:m,38:b,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{23:79,29:29,30:30,31:31,32:p,33:g,34:y,36:m,38:b,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{23:80,29:29,30:30,31:31,32:p,33:g,34:y,36:m,38:b,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{23:81,29:29,30:30,31:31,32:p,33:g,34:y,36:m,38:b,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{23:82,29:29,30:30,31:31,32:p,33:g,34:y,36:m,38:b,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},e(it,[2,20],{53:32,39:58,40:70,42:71,30:87,44:_,46:x,47:v,48:k,49:w,50:T,51:C,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt}),e(it,[2,21]),e(rt,[2,23],{15:[1,88]}),e(it,[2,43],{15:[1,89]}),e(at,[2,26]),e(at,[2,27]),{35:[1,90]},{37:[1,91]},e(at,[2,30]),{45:92,85:93,86:st,87:ot,89:lt,90:ct},{45:98,85:93,86:st,87:ot,89:lt,90:ct},{45:99,85:93,86:st,87:ot,89:lt,90:ct},{45:100,85:93,86:st,87:ot,89:lt,90:ct},{45:101,85:93,86:st,87:ot,89:lt,90:ct},{45:102,85:93,86:st,87:ot,89:lt,90:ct},{45:103,85:93,86:st,87:ot,89:lt,90:ct},{45:104,85:93,86:st,87:ot,89:lt,90:ct},{45:105,85:93,86:st,87:ot,89:lt,90:ct},{45:106,85:93,86:st,87:ot,89:lt,90:ct},{45:107,85:93,86:st,87:ot,89:lt,90:ct},{45:108,85:93,86:st,87:ot,89:lt,90:ct},{45:109,85:93,86:st,87:ot,89:lt,90:ct},{45:110,85:93,86:st,87:ot,89:lt,90:ct},{45:111,85:93,86:st,87:ot,89:lt,90:ct},{45:112,85:93,86:st,87:ot,89:lt,90:ct},{45:113,85:93,86:st,87:ot,89:lt,90:ct},{45:114,85:93,86:st,87:ot,89:lt,90:ct},{45:115,85:93,86:st,87:ot,89:lt,90:ct},{45:116,85:93,86:st,87:ot,89:lt,90:ct},e(ht,[2,66]),{45:117,85:93,86:st,87:ot,89:lt,90:ct},{45:118,85:93,86:st,87:ot,89:lt,90:ct},{45:119,85:93,86:st,87:ot,89:lt,90:ct},{45:120,85:93,86:st,87:ot,89:lt,90:ct},{45:121,85:93,86:st,87:ot,89:lt,90:ct},{45:122,85:93,86:st,87:ot,89:lt,90:ct},{45:123,85:93,86:st,87:ot,89:lt,90:ct},{45:124,85:93,86:st,87:ot,89:lt,90:ct},{45:125,85:93,86:st,87:ot,89:lt,90:ct},{45:126,85:93,86:st,87:ot,89:lt,90:ct},{45:127,85:93,86:st,87:ot,89:lt,90:ct},{30:128,39:58,40:70,42:71,44:_,46:x,47:v,48:k,49:w,50:T,51:C,53:32,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt},{15:[1,130],43:[1,129]},{45:131,85:93,86:st,87:ot,89:lt,90:ct},{45:132,85:93,86:st,87:ot,89:lt,90:ct},{45:133,85:93,86:st,87:ot,89:lt,90:ct},{45:134,85:93,86:st,87:ot,89:lt,90:ct},{45:135,85:93,86:st,87:ot,89:lt,90:ct},{45:136,85:93,86:st,87:ot,89:lt,90:ct},{45:137,85:93,86:st,87:ot,89:lt,90:ct},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},e(ut,[2,9]),{14:142,21:f},{21:[2,13]},{1:[2,15]},e(it,[2,22]),e(rt,[2,24],{31:31,29:143,32:p,33:g,34:y,36:m,38:b}),e(it,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:g,34:y,36:m,38:b,44:_,46:x,47:v,48:k,49:w,50:T,51:C,54:E,55:S,56:A,57:D,58:L,59:N,60:O,61:M,62:B,63:I,64:F,65:R,66:$,67:P,68:Y,69:j,70:z,71:U,72:W,73:H,74:q,75:V,76:G,77:X,78:Z,79:Q,80:K,81:J,82:tt,83:et,84:nt}),e(at,[2,28]),e(at,[2,29]),e(ht,[2,46]),e(dt,[2,78],{85:93,45:145,86:st,87:ot,89:lt,90:ct}),e(ft,[2,80]),{88:[1,146]},e(ft,[2,82]),e(ft,[2,83]),e(ht,[2,47]),e(ht,[2,48]),e(ht,[2,49]),e(ht,[2,50]),e(ht,[2,51]),e(ht,[2,52]),e(ht,[2,53]),e(ht,[2,54]),e(ht,[2,55]),e(ht,[2,56]),e(ht,[2,57]),e(ht,[2,58]),e(ht,[2,59]),e(ht,[2,60]),e(ht,[2,61]),e(ht,[2,62]),e(ht,[2,63]),e(ht,[2,64]),e(ht,[2,65]),e(ht,[2,67]),e(ht,[2,68]),e(ht,[2,69]),e(ht,[2,70]),e(ht,[2,71]),e(ht,[2,72]),e(ht,[2,73]),e(ht,[2,74]),e(ht,[2,75]),e(ht,[2,76]),e(ht,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},e(pt,[2,35]),e(pt,[2,36]),e(pt,[2,37]),e(pt,[2,38]),e(pt,[2,39]),e(pt,[2,40]),e(pt,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},e(rt,[2,25]),e(it,[2,45]),e(dt,[2,79]),e(ft,[2,81]),e(ht,[2,31]),e(ht,[2,42]),e(gt,[2,32]),e(gt,[2,33],{15:[1,152]}),e(ut,[2,10]),e(gt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1
vendor: 6,938 bytes, line 11
11),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},mt=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;
11case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 78:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:case 75:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:case 84:this.popState(),this.popState();break;case 74:case 76:return 90;case 77:this.begin("string");break;case 79:case 85:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}},t);function bt(){this.yy={}}return yt.lexer=mt,bt.prototype=yt,yt.Parser=bt,new bt}();Hv.parser=Hv;const qv=Hv,Vv=t=>null!==t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/);let Gv=[],Xv=[""],Zv="global",Qv="",Kv=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Jv=[],tk="",ek=!1,nk=4,ik=2;var rk;const ak=function(t){return null==t?Gv:Gv.filter((e=>e.parentBoundary===t))},sk=function(){return ek},ok={addPersonOrSystem:function(t,e,n,i,r,a,s){if(null===e||null===n)return;let o={};const l=Gv.find((t=>t.alias===e));if(l&&e===l.alias?o=l:(o.alias=e,Gv.push(o)),o.label=null==n?{text:""}:{text:n},null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.sprite=r;if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]=e}else o.tags=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=Zv,o.wrap=sk()},addPersonOrSystemBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const s=Kv.find((e=>e.alias===t));if(s&&t===s.alias?a=s:(a.alias=t,Kv.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=Zv,a.wrap=sk(),Qv=Zv,Zv=t,Xv.push(Qv)},addContainer:function(t,e,n,i,r,a,s,o){if(null===e||null===n)return;let l={};const c=Gv.find((t=>t.alias===e));if(c&&e===c.alias?l=c:(l.alias=e,Gv.push(l)),l.label=null==n?{text:""}:{text:n},null==i)l.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]={text:e}}else l.techn={text:i};if(null==r)l.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else l.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.sprite=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;
11if("object"==typeof o){let[t,e]=Object.entries(o)[0];l[t]=e}else l.link=o;l.wrap=sk(),l.typeC4Shape={text:t},l.parentBoundary=Zv},addContainerBoundary:function(t,e,n,i,r){if(null===t||null===e)return;let a={};const s=Kv.find((e=>e.alias===t));if(s&&t===s.alias?a=s:(a.alias=t,Kv.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];a[t]={text:e}}else a.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.link=r;a.parentBoundary=Zv,a.wrap=sk(),Qv=Zv,Zv=t,Xv.push(Qv)},addComponent:function(t,e,n,i,r,a,s,o){if(null===e||null===n)return;let l={};const c=Gv.find((t=>t.alias===e));if(c&&e===c.alias?l=c:(l.alias=e,Gv.push(l)),l.label=null==n?{text:""}:{text:n},null==i)l.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]={text:e}}else l.techn={text:i};if(null==r)l.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else l.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.sprite=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof o){let[t,e]=Object.entries(o)[0];l[t]=e}else l.link=o;l.wrap=sk(),l.typeC4Shape={text:t},l.parentBoundary=Zv},addDeploymentNode:function(t,e,n,i,r,a,s,o){if(null===e||null===n)return;let l={};const c=Kv.find((t=>t.alias===e));if(c&&e===c.alias?l=c:(l.alias=e,Kv.push(l)),l.label=null==n?{text:""}:{text:n},null==i)l.type={text:"node"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]={text:e}}else l.type={text:i};if(null==r)l.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else l.descr={text:r};if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof o){let[t,e]=Object.entries(o)[0];l[t]=e}else l.link=o;l.nodeType=t,l.parentBoundary=Zv,l.wrap=sk(),Qv=Zv,Zv=e,Xv.push(Qv)},popBoundaryParseStack:function(){Zv=Qv,Xv.pop(),Qv=Xv.pop(),Xv.push(Qv)},addRel:function(t,e,n,i,r,a,s,o,l){if(null==t||null==e||null==n||null==i)return;let c={};const h=Jv.find((t=>t.from===e&&t.to===n));if(h?c=h:Jv.push(c),c.type=t,c.from=e,c.to=n,c.label={text:i},null==r)c.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.techn={text:r};if(null==a)c.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]={text:e}}else c.descr={text:a};if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.sprite=s;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.tags=o;if("object"==typeof l){let[t,e]=Object.entries(l)[0];c[t]=e}else c.link=l;c.wrap=sk()},updateElStyle:function(t,e,n,i,r,a,s,o,l,c,h){let u=Gv.find((t=>t.alias===e));if(void 0!==u||(u=Kv.find((t=>t.alias===e)),void 0!==u)){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];u[t]=e}else u.bgColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];u[t]=e}else u.fontColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];u[t]=e}else u.borderColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];u[t]=e}else u.shadowing=a;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];u[t]=e}else u.shape=s;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];u[t]=e}else u.sprite=o;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];u[t]=e}else u.techn=l;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];u[t]=e}else u.legendText=c;if(null!=h)if("object"==typeof h){let[t,e]=Object.entries(h)[0];u[t]=e}else u.legendSprite=h}},updateRelStyle:function(t,e,n,i,r,a,s){const o=Jv.find((t=>t.from===e&&t.to===n));if(void 0!==o){if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]=e}else o.textColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.lineColor=r;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]=parseInt(e)}else o.offsetX=parseInt(a);if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=parseInt(e)}else o.offsetY=parseInt(s)}},updateLayoutConfig:function(t,e,n){let i=nk,r=ik;
11if("object"==typeof e){const t=Object.values(e)[0];i=parseInt(t)}else i=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];r=parseInt(t)}else r=parseInt(n);i>=1&&(nk=i),r>=1&&(ik=r)},autoWrap:sk,setWrap:function(t){ek=t},getC4ShapeArray:ak,getC4Shape:function(t){return Gv.find((e=>e.alias===t))},getC4ShapeKeys:function(t){return Object.keys(ak(t))},getBoundarys:function(t){return null==t?Kv:Kv.filter((e=>e.parentBoundary===t))},getCurrentBoundaryParse:function(){return Zv},getParentBoundaryParse:function(){return Qv},getRels:function(){return Jv},getTitle:function(){return tk},getC4Type:function(){return rk},getC4ShapeInRow:function(){return nk},getC4BoundaryInRow:function(){return ik},setAccTitle:sv,getAccTitle:ov,getAccDescription:cv,setAccDescription:lv,parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().c4,clear:function(){Gv=[],Kv=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Qv="",Zv="global",Xv=[""],Jv=[],Xv=[""],tk="",ek=!1,nk=4,ik=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){let e=Hm(t,vx());tk=e},setC4Type:function(t){let e=Hm(t,vx());rk=e}},lk=function(t,e){const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let i in e.attrs)n.attr(i,e.attrs[i]);return"undefined"!==e.class&&n.attr("class",e.class),n},ck=function(t,e,n,i,r,a){const s=t.append("image");s.attr("width",e),s.attr("height",n),s.attr("x",i),s.attr("y",r);let o=a.startsWith("data:image/png;base64")?a:(0,L.N)(a);s.attr("xlink:href",o)},hk=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},uk=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),dk=function(){function t(t,e,n,r,a,s,o){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,l){const{fontSize:c,fontFamily:h,fontWeight:u}=l,d=t.split(Qm.lineBreakRegex);for(let f=0;f<d.length;f++){const t=f*c-c*(d.length-1)/2,s=e.append("text").attr("x",n+a/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",u).style("font-family",h);s.append("tspan").attr("dy",t).text(d[f]).attr("alignment-baseline","mathematical"),i(s,o)}}function n(t,n,r,a,s,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,0,l,c),i(u,l)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),fk=function(t,e,n){const i=t.append("g");let r=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});let l={x:e.x,y:e.y,fill:r,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};lk(i,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=s,dk(n)(e.label.text,i,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=n.boundaryFont(),c.fontColor=s,dk(n)(e.type.text,i,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=s,dk(n)(e.descr.text,i,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))},pk=function(t,e,n){let i=e.bgColor?e.bgColor:n[e.typeC4Shape.text+"_bg_color"],r=e.borderColor?e.borderColor:n[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4Q
11HgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const o=t.append("g");o.attr("class","person-man");const l=hk();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=i,l.width=e.width,l.height=e.height,l.style="stroke:"+r+";stroke-width:0.5;",l.rx=2.5,l.ry=2.5,lk(o,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}let c=uk(n,e.typeC4Shape.text);switch(o.append("text").attr("fill",a).attr("font-family",c.fontFamily).attr("font-size",c.fontSize-2).attr("font-style","
11italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":ck(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}let h=n[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=a,dk(n)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},h),h=n[e.typeC4Shape.text+"Font"](),h.fontColor=a,e.thchn&&""!==e.thchn.text?dk(n)(e.thchn.text,o,e.x,e.y+e.thchn.Y,e.width,e.height,{fill:a,"font-style":"italic"},h):e.type&&""!==e.type.text&&dk(n)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&(h=n.personFont(),h.fontColor=a,dk(n)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},h)),e.height},gk=(t,e,n)=>{const i=t.append("g");let r=0;for(let a of e){let t=a.textColor?a.textColor:"#444444",e=a.lineColor?a.lineColor:"#444444",s=a.offsetX?parseInt(a.offsetX):0,o=a.offsetY?parseInt(a.offsetY):0,l="";if(0===r){let t=i.append("line");t.attr("x1",a.startPoint.x),t.attr("y1",a.startPoint.y),t.attr("x2",a.endPoint.x),t.attr("y2",a.endPoint.y),t.attr("stroke-width","1"),t.attr("stroke",e),t.style("fill","none"),"rel_b"!==a.type&&t.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==a.type&&"rel_b"!==a.type||t.attr("marker-start","url("+l+"#arrowend)"),r=-1}else{let t=i.append("path");t.attr("fill","none").attr("stroke-width","1").attr("stroke",e).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),"rel_b"!==a.type&&t.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==a.type&&"rel_b"!==a.type||t.attr("marker-start","url("+l+"#arrowend)")}let c=n.messageFont();dk(n)(a.label.text,i,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+s,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+o,a.label.width,a.label.height,{fill:t},c),a.techn&&""!==a.techn.text&&(c=n.messageFont(),dk(n)("["+a.techn.text+"]",i,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+s,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+n.messageFontSize+5+o,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:t,"font-style":"italic"},c))}},yk=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},mk=function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},bk=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},_k=function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},xk=function(t){t
vendor: 3,704 bytes, line 11
11.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.
vendor: 9,601 bytes, line 11
11127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},
11vk=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},kk=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")};L.N;let wk=0,Tk=0,Ck=4,Ek=2;Hv.yy=ok;let Sk={};class Ak{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Dk(t.db.getConfig())}setData(t,e,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,i=this.nextData.starty+2*t.margin,r=i+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Ck)&&(e=this.nextData.startx+t.margin+Sk.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=i+t.height,this.nextData.cnt=1),t.x=e,t.y=i,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Dk(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}
11const Dk=function(t){W_(Sk,t),t.fontFamily&&(Sk.personFontFamily=Sk.systemFontFamily=Sk.messageFontFamily=t.fontFamily),t.fontSize&&(Sk.personFontSize=Sk.systemFontSize=Sk.messageFontSize=t.fontSize),t.fontWeight&&(Sk.personFontWeight=Sk.systemFontWeight=Sk.messageFontWeight=t.fontWeight)},Lk=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),Nk=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight});function Ok(t,e,n,i,r){if(!e[t].width)if(n)e[t].text=nx(e[t].text,r,i),e[t].textLines=e[t].text.split(Qm.lineBreakRegex).length,e[t].width=r,e[t].height=rx(e[t].text,i);else{let n=e[t].text.split(Qm.lineBreakRegex);e[t].textLines=n.length;let r=0;e[t].height=0,e[t].width=0;for(const a of n)e[t].width=Math.max(ax(a,i),e[t].width),r=rx(a,i),e[t].height=e[t].height+r}}const Mk=function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=Sk.c4ShapeMargin-35;let i=e.wrap&&Sk.wrap,r=Nk(Sk);r.fontSize=r.fontSize+2,r.fontWeight="bold",Ok("label",e,i,r,ax(e.label.text,r)),fk(t,e,Sk)},Bk=function(t,e,n,i){let r=0;for(const a of i){r=0;const i=n[a];let s=Lk(Sk,i.typeC4Shape.text);switch(s.fontSize=s.fontSize-2,i.typeC4Shape.width=ax("<<"+i.typeC4Shape.text+">>",s),i.typeC4Shape.height=s.fontSize+2,i.typeC4Shape.Y=Sk.c4ShapePadding,r=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height);let o=i.wrap&&Sk.wrap,l=Sk.width-2*Sk.c4ShapePadding,c=Lk(Sk,i.typeC4Shape.text);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ok("label",i,o,c,l),i.label.Y=r+8,r=i.label.Y+i.label.height,i.type&&""!==i.type.text){i.type.text="["+i.type.text+"]",Ok("type",i,o,Lk(Sk,i.typeC4Shape.text),l),i.type.Y=r+5,r=i.type.Y+i.type.height}else if(i.techn&&""!==i.techn.text){i.techn.text="["+i.techn.text+"]",Ok("techn",i,o,Lk(Sk,i.techn.text),l),i.techn.Y=r+5,r=i.techn.Y+i.techn.height}let h=r,u=i.label.width;if(i.descr&&""!==i.descr.text){Ok("descr",i,o,Lk(Sk,i.typeC4Shape.text),l),i.descr.Y=r+20,r=i.descr.Y+i.descr.height,u=Math.max(i.label.width,i.descr.width),h=r-5*i.descr.textLines}u+=Sk.c4ShapePadding,i.width=Math.max(i.width||Sk.width,u,Sk.width),i.height=Math.max(i.height||Sk.height,h,Sk.height),i.margin=i.margin||Sk.c4ShapeMargin,t.insert(i),pk(e,i,Sk)}t.bumpLastMargin(Sk.c4ShapeMargin)};class Ik{constructor(t,e){this.x=t,this.y=e}}let Fk=function(t,e){let n=t.x,i=t.y,r=e.x,a=e.y,s=n+t.width/2,o=i+t.height/2,l=Math.abs(n-r),c=Math.abs(i-a),h=c/l,u=t.height/t.width,d=null;return i==a&&n<r?d=new Ik(n+t.width,o):i==a&&n>r?d=new Ik(n,o):n==r&&i<a?d=new Ik(s,i+t.height):n==r&&i>a&&(d=new Ik(s,i)),n>r&&i<a?d=u>=h?new Ik(n,o+h*t.width/2):new Ik(s-l/c*t.height/2,i+t.height):n<r&&i<a?d=u>=h?new Ik(n+t.width,o+h*t.width/2):new Ik(s+l/c*t.height/2,i+t.height):n<r&&i>a?d=u>=h?new Ik(n+t.width,o-h*t.width/2):new Ik(s+t.height/2*l/c,i):n>r&&i>a&&(d=u>=h?new Ik(n,o-t.width/2*h):new Ik(s-t.height/2*l/c,i)),d},Rk=function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let i=Fk(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:i,endPoint:Fk(e,n)}};function $k(t,e,n,i,r){let a=new Ak(r);a.data.widthLimit=n.data.widthLimit/Math.min(Ek,i.length);for(let[s,o]of i.entries()){let i=0;o.image={width:0,height:0,Y:0},o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height);let l=o.wrap&&Sk.wrap,c=Nk(Sk);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Ok("label",o,l,c,a.data.widthLimit),o.label.Y=i+8,i=o.label.Y+o.label.height,o.type&&""!==o.type.text){o.type.text="["+o.type.text+"]",Ok("type",o,l,Nk(Sk),a.data.widthLimit),o.type.Y=i+5,i=o.type.Y+o.type.height}if(o.descr&&""!==o.descr.text){let t=Nk(Sk);t.fontSize=t.fontSize-2,Ok("descr",o,l,t,a.data.widthLimit),o.descr.Y=i+20,i=o.descr.Y+o.descr.height}if(0==s||s%Ek==0){let t=n.data.startx+Sk.diagramMarginX,e=n.data.stopy+Sk.diagramMarginY+i;a.setData(t,t,e,e)}else{let t=a.data.stopx!==a.data.startx?a.data.stopx+Sk.diagramMarginX:a.data.startx,e=a.data.starty;a.setData(t,t,e,e)}
11a.name=o.alias;let h=r.db.getC4ShapeArray(o.alias),u=r.db.getC4ShapeKeys(o.alias);u.length>0&&Bk(a,t,h,u),e=o.alias;let d=r.db.getBoundarys(e);d.length>0&&$k(t,e,a,d,r),"global"!==o.alias&&Mk(t,o,a),n.data.stopy=Math.max(a.data.stopy+Sk.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+Sk.c4ShapeMargin,n.data.stopx),wk=Math.max(wk,n.data.stopx),Tk=Math.max(Tk,n.data.stopy)}}const Pk={drawPersonOrSystemArray:Bk,drawBoundary:Mk,setConf:Dk,draw:function(t,e,n,i){Sk=vx().c4;const r=vx().securityLevel;let a;"sandbox"===r&&(a=to("#i"+e));const s=to("sandbox"===r?a.nodes()[0].contentDocument.body:"body");let o=i.db;i.db.setWrap(Sk.wrap),Ck=o.getC4ShapeInRow(),Ek=o.getC4BoundaryInRow(),Ym.debug(`C:${JSON.stringify(Sk,null,2)}`);const l="sandbox"===r?s.select(`[id="${e}"]`):to(`[id="${e}"]`);vk(l),xk(l),kk(l);let c=new Ak(i);c.setData(Sk.diagramMarginX,Sk.diagramMarginX,Sk.diagramMarginY,Sk.diagramMarginY),c.data.widthLimit=screen.availWidth,wk=Sk.diagramMarginX,Tk=Sk.diagramMarginY;const h=i.db.getTitle();$k(l,"",c,i.db.getBoundarys(""),i),yk(l),mk(l),_k(l),bk(l),function(t,e,n,i){let r=0;for(let s of e){r+=1;let t=s.wrap&&Sk.wrap,e={fontFamily:(a=Sk).messageFontFamily,fontSize:a.messageFontSize,fontWeight:a.messageFontWeight};"C4Dynamic"===i.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let o=ax(s.label.text,e);Ok("label",s,t,e,o),s.techn&&""!==s.techn.text&&(o=ax(s.techn.text,e),Ok("techn",s,t,e,o)),s.descr&&""!==s.descr.text&&(o=ax(s.descr.text,e),Ok("descr",s,t,e,o));let l=n(s.from),c=n(s.to),h=Rk(l,c);s.startPoint=h.startPoint,s.endPoint=h.endPoint}var a;gk(t,e,Sk)}(l,i.db.getRels(),i.db.getC4Shape,i),c.data.stopx=wk,c.data.stopy=Tk;const u=c.data;let d=u.stopy-u.starty+2*Sk.diagramMarginY;const f=u.stopx-u.startx+2*Sk.diagramMarginX;h&&l.append("text").text(h).attr("x",(u.stopx-u.startx)/2-4*Sk.diagramMarginX).attr("y",u.starty+Sk.diagramMarginY),Ax(l,d,f,Sk.useMaxWidth);const p=h?60:0;l.attr("viewBox",u.startx-Sk.diagramMarginX+" -"+(Sk.diagramMarginY+p)+" "+f+" "+(d+p)),Ym.debug("models:",u)}};var Yk=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,3],i=[1,7],r=[1,8],a=[1,9],s=[1,10],o=[1,13],l=[1,12],c=[1,16,25],h=[1,20],u=[1,32],d=[1,33],f=[1,34],p=[1,36],g=[1,39],y=[1,37],m=[1,38],b=[1,44],_=[1,45],x=[1,40],v=[1,41],k=[1,42],w=[1,43],T=[1,48],C=[1,49],E=[1,50],S=[1,51],A=[16,25],D=[1,65],L=[1,66],N=[1,67],O=[1,68],M=[1,69],B=[1,70],I=[1,71],F=[1,80],R=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],$=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],P=[5,8,9,10,11,16,19,23,25],Y=[54,88,89,90,91],j=[54,65,66,88,89,90,91],z=[54,60,61,62,63,64,88,89,90,91],U=[16,25,32],W=[1,107],H={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 5:i.setDirection("TB");break;case 6:i.setDirection("BT");break;case 7:i.setDirection("RL");break;case 8:i.setDirection("LR");break;case 12:i.parseDirective("%%{","open_directive");break;case 13:i.parseDirective(a[o],"type_directive");break;case 14:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 15:i.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=a[o];break;case 22:this.$=a[o-1]+a[o];break;case 23:case 24:this.$=a[o-1]+"~"+a[o];break;case 25:i.addRelation(a[o]);break;case 26:a[o-1].title=i.cleanupLabel(a[o]),i.addRelation(a[o-1]);break;case 35:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 36:case 37:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 38:i.addClass(a[o]);break;case 39:i.addClass(a[o-2]),i.setCssClass(a[o-2],a[o]);break;case 40:i.addClass(a[o-3]),i.addMembers(a[o-3],a[o-1]);break;case 41:i.addClass(a[o-5]),i.setCssClass(a[o-5],a[o-3]),i.addMembers(a[o-5],a[o-1]);break;case 42:i.addAnnotation(a[o],a[o-2]);break;case 43:this.$=[a[o]];break;case 44:a[o].push(a[o-1]),this.$=a[o];break;case 45:case 47:case 48:break;case 46:i.addMember(a[o-1],i.cleanupLabel(a[o]));break;case 49:this.$={id1:a[o-2],id2:a[o],relation:a[o-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:a[o-3],id2:a[o],relation:a[o-1],relationTitle1:a[o-2],relationTitle2:"none"};break;case 51:this.$={id1:a[o-3],id2:a[o],relation:a[o-2],relationTitle1:"none",relationTitle2:a[o-1]};break;case 52:this.$={id1:a[o-4],id2:a[o],relation:a[o-2],relationTitle1:a[o-3],relationTitle2:a[o-1]};break;case 53:i.addNote(a[o],a[o-1]);break;case 54:i.addNote(a[o]);break;case 55:this.$={type1:a[o-2],type2:a[o],lineType:a[o-1]};break;case 56:this.$={type1:"none",type2:a[o],lineType:a[o-1]};break;case 57:this.$={type1:a[o-1],type2:"none",lineType:a[o]};break;case 58:this.$={type1:"none",type2:"none",lineType:a[o]};break;case 59:this.$=i.relationType.AGGREGATION;break;case 60:this.$=i.relationType.EXTENSION;break;case 61:this.$=i.relationType.COMPOSITION;break;case 62:this.$=i.relationType.DEPENDENCY;break;case 63:this.$=i.relationType.LOLLIPOP;break;case 64:this.$=i.lineType.LINE;break;case 65:this.$=i.lineType.DOTTED_LINE;break;case 66:case 72:this.$=a[o-2],i.setClickEvent(a[o-1],a[o]);break;case 67:case 73:this.$=a[o-3],i.setClickEvent(a[o-2],a[o-1]),i.setTooltip(a[o-2],a[o]);break;case 68:case 76:this.$=a[o-2],i.setLink(a[o-1],a[o]);break;case 69:case 77:this.$=a[o-3],i.setLink(a[o-2],a[o-1],a[o]);break;case 70:case 78:this.$=a[o-3],i.setLink(a[o-2],a[o-1]),i.setTooltip(a[o-2],a[o]);break;case 71:case 79:this.$=a[o-4],i.setLink(a[o-3],a[o-2],a[o]),i.setTooltip(a[o-3],a[o-1]);break;case 74:this.$=a[o-3],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 75:this.$=a[o-4],i.setClickEvent(a[o-3],a[o-2],a[o-1]),i.setTooltip(a[o-3],a[o]);break;case 80:i.setCssClass(a[o-1],a[o])}}
11,table:[{3:1,4:2,5:n,6:4,7:5,8:i,9:r,10:a,11:s,12:6,13:11,19:o,23:l},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:n,6:4,7:5,8:i,9:r,10:a,11:s,12:6,13:11,19:o,23:l},{1:[2,9]},e(c,[2,5]),e(c,[2,6]),e(c,[2,7]),e(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:h},e([17,22],[2,13]),{6:31,7:30,8:i,9:r,10:a,11:s,13:11,19:o,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:d,43:f,44:p,49:g,51:y,52:m,55:b,57:_,67:x,68:v,70:k,74:w,88:T,89:C,90:E,91:S},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},e(A,[2,25],{32:[1,57]}),e(A,[2,27]),e(A,[2,28]),e(A,[2,29]),e(A,[2,30]),e(A,[2,31]),e(A,[2,32]),e(A,[2,33]),e(A,[2,34]),{40:[1,58]},{42:[1,59]},e(A,[2,37]),e(A,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:D,61:L,62:N,63:O,64:M,65:B,66:I}),{27:72,28:46,29:47,88:T,89:C,90:E,91:S},e(A,[2,47]),e(A,[2,48]),{28:73,88:T,89:C,90:E},{27:74,28:46,29:47,88:T,89:C,90:E,91:S},{27:75,28:46,29:47,88:T,89:C,90:E,91:S},{27:76,28:46,29:47,88:T,89:C,90:E,91:S},{54:[1,77]},{27:78,28:46,29:47,88:T,89:C,90:E,91:S},{54:F,56:79},e(R,[2,20],{28:46,29:47,27:81,30:[1,82],88:T,89:C,90:E,91:S}),e(R,[2,21],{30:[1,83]}),e($,[2,94]),e($,[2,95]),e($,[2,96]),e([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),e(P,[2,10]),{15:84,22:h},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:i,9:r,10:a,11:s,13:11,19:o,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:d,43:f,44:p,49:g,51:y,52:m,55:b,57:_,67:x,68:v,70:k,74:w,88:T,89:C,90:E,91:S},e(A,[2,26]),e(A,[2,35]),e(A,[2,36]),{27:86,28:46,29:47,54:[1,87],88:T,89:C,90:E,91:S},{53:88,58:63,59:64,60:D,61:L,62:N,63:O,64:M,65:B,66:I},e(A,[2,46]),{59:89,65:B,66:I},e(Y,[2,58],{58:90,60:D,61:L,62:N,63:O,64:M}),e(j,[2,59]),e(j,[2,60]),e(j,[2,61]),e(j,[2,62]),e(j,[2,63]),e(z,[2,64]),e(z,[2,65]),e(A,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:T,89:C,90:E},{54:F,56:99},e(A,[2,54]),e(A,[2,98]),e(R,[2,22]),e(R,[2,23]),e(R,[2,24]),{16:[1,100]},{25:[2,19]},e(U,[2,49]),{27:101,28:46,29:47,88:T,89:C,90:E,91:S},{27:102,28:46,29:47,54:[1,103],88:T,89:C,90:E,91:S},e(Y,[2,57],{58:104,60:D,61:L,62:N,63:O,64:M}),e(Y,[2,56]),{28:105,88:T,89:C,90:E},{47:106,51:W},{27:108,28:46,29:47,88:T,89:C,90:E,91:S},e(A,[2,66],{54:[1,109]}),e(A,[2,68],{54:[1,111],69:[1,110]}),e(A,[2,72],{54:[1,112],72:[1,113]}),e(A,[2,76],{54:[1,115],69:[1,114]}),e(A,[2,80]),e(A,[2,53]),e(P,[2,11]),e(U,[2,51]),e(U,[2,50]),{27:116,28:46,29:47,88:T,89:C,90:E,91:S},e(Y,[2,55]),e(A,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:W},e(A,[2,42]),e(A,[2,67]),e(A,[2,69]),e(A,[2,70],{69:[1,120]}),e(A,[2,73]),e(A,[2,74],{54:[1,121]}),e(A,[2,77]),e(A,[2,78],{69:[1,122]}),e(U,[2,52]),{47:123,51:W},e(A,[2,40]),{48:[2,44]},e(A,[2,71]),e(A,[2,75]),e(A,[2,79]),{48:[1,124]},e(A,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},q=(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}
vendor: 4,545 bytes, line 11
11,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;
11case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 39:case 42:case 45:case 48:case 51:case 54:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 43:return"STR";case 44:this.begin("bqstring");break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 49:return 73;case 50:this.begin("callback_name");break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 55:return 72;case 56:case 57:case 58:case 59:return 69;case 60:case 61:return 61;case 62:case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D
11]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}},t);function V(){this.yy={}}return H.lexer=q,V.prototype=H,H.Parser=V,new V}();Yk.parser=Yk;const jk=Yk,zk=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*classDiagram/)},Uk=(t,e)=>{var n;return null!==t.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)||null!==t.match(/^\s*classDiagram-v2/)},Wk="classid-";let Hk=[],qk={},Vk=[],Gk=0,Xk=[];const Zk=t=>Qm.sanitizeText(t,vx()),Qk=function(t){let e="",n=t;if(t.indexOf("~")>0){let i=t.split("~");n=i[0],e=Qm.sanitizeText(i[1],vx())}return{className:n,type:e}},Kk=function(t){let e=Qk(t);void 0===qk[e.className]&&(qk[e.className]={id:e.className,type:e.type,cssClasse
11s:[],methods:[],members:[],annotations:[],domId:Wk+e.className+"-"+Gk},Gk++)},Jk=function(t){const e=Object.keys(qk);for(const n of e)if(qk[n].id===t)return qk[n].domId},tw=function(t,e){const n=Qk(t).className,i=qk[n];if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(Zk(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(Zk(t)):t&&i.members.push(Zk(t))}},ew=function(t,e){t.split(",").forEach((function(t){let n=t;t[0].match(/\d/)&&(n=Wk+n),void 0!==qk[n]&&qk[n].cssClasses.push(e)}))},nw=function(t,e,n){const i=vx();let r=t,a=Jk(r);if("loose"===i.securityLevel&&void 0!==e&&void 0!==qk[r]){let t=[];if("string"==typeof n){t=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let n=t[e].trim();'"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),t[e]=n}}0===t.length&&t.push(a),Xk.push((function(){const n=document.querySelector(`[id="${a}"]`);null!==n&&n.addEventListener("click",(function(){ux.runFunc(e,...t)}),!1)}))}},iw=function(t){let e=to(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=to("body").append("div").attr("class","mermaidTooltip").style("opacity",0));to(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=to(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);to(this).classed("hover",!1)}))};Xk.push(iw);let rw="TB";const aw={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},setAccTitle:sv,getAccTitle:ov,getAccDescription:cv,setAccDescription:lv,getConfig:()=>vx().class,addClass:Kk,bindFunctions:function(t){Xk.forEach((function(e){e(t)}))},clear:function(){Hk=[],qk={},Vk=[],Xk=[],Xk.push(iw),av()},getClass:function(t){return qk[t]},getClasses:function(){return qk},getNotes:function(){return Vk},addAnnotation:function(t,e){const n=Qk(t).className;qk[n].annotations.push(e)},addNote:function(t,e){const n={id:`note${Vk.length}`,class:e,text:t};Vk.push(n)},getRelations:function(){return Hk},addRelation:function(t){Ym.debug("Adding relation: "+JSON.stringify(t)),Kk(t.id1),Kk(t.id2),t.id1=Qk(t.id1).className,t.id2=Qk(t.id2).className,t.relationTitle1=Qm.sanitizeText(t.relationTitle1.trim(),vx()),t.relationTitle2=Qm.sanitizeText(t.relationTitle2.trim(),vx()),Hk.push(t)},getDirection:()=>rw,setDirection:t=>{rw=t},addMember:tw,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>tw(t,e))))},cleanupLabel:function(t){return":"===t.substring(0,1)?Qm.sanitizeText(t.substr(1).trim(),vx()):Zk(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){nw(t,e,n),qk[t].haveCallback=!0})),ew(t,"clickable")},setCssClass:ew,setLink:function(t,e,n){const i=vx();t.split(",").forEach((function(t){let r=t;t[0].match(/\d/)&&(r=Wk+r),void 0!==qk[r]&&(qk[r].link=ux.formatUrl(e,i),"sandbox"===i.securityLevel?qk[r].linkTarget="_top":qk[r].linkTarget="string"==typeof n?Zk(n):"_blank")})),ew(t,"clickable")},getTooltip:function(t){return qk[t].tooltip},setTooltip:function(t,e){const n=vx();t.split(",").forEach((function(t){void 0!==e&&(qk[t].tooltip=Qm.sanitizeText(e,n))}))},lookUpDomId:Jk,setDiagramTitle:hv,getDiagramTitle:uv};let sw=0;const ow=function(t){let e=t.match(/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/),n=t.match(/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/);return e&&!n?lw(e):n?cw(n):hw(t)},lw=function(t){let e="",n="";try{let i=t[1]?t[1].trim():"",r=t[2]?t[2].trim():"",a=t[3]?Zm(t[3].trim()):"",s=t[4]?t[4].trim():"",o=t[5]?t[5].trim():"";n=i+r+a+" "+s,e=dw(o)}catch(i){n=t}return{displayText:n,cssStyle:e}},cw=function(t){let e="",n="";try{let i=t[1]?t[1].trim():"",r=t[2]?t[2].trim():"",a=t[3]?Zm(t[3].trim()):"",s=t[4]?t[4].trim():"";n=i+r+"("+a+")"+(t[5]?" : "+Zm(t[5]).trim():""),e=dw(s)}catch(i){n=t}return{displayText:n,cssStyle:e}},hw=function(t){let e="",n="",i="",r=t.indexOf("("),a=t.indexOf(")");if(r>1&&a>r&&a<=t.length){let s="",o="",l=t.substring(0,1);l.match(/\w/)?o=t.substring(0,r).trim():(l.match(/[#+~-]/)&&(s=l),o=t.substring(1,r).trim());const c=t.substring(r+1,a);t.substring(a+1,1),n=dw(t.substring(a+1,a+2)),e=s+o+"("+Zm(c.trim())+")",a<t.length&&(i=t.substring(a+2).trim(),""!==i&&(i=" : "+Zm(i),e+=i))}else e=Zm(t);return{displayText:e,cssStyle:n}},uw=function(t,e,n,i){let r=ow(e);const a=t.append("tspan").attr("x",i.padding).text(r.displayText);""!==r.cssStyle&&a.attr("style",r.cssStyle),n||a.attr("dy",i.textHeight)},dw=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},fw=function(t,e,n,i){Ym.debug("Rendering class ",e,n);const r=e.id,a={id:r,label:e.id,width:0,height:0},s=t.append("g").attr("id",i.db.lookUpDomId(r)).attr("class","classGroup");let o;o=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);let l=!0;e.annotations.forEach((function(t){const e=o.append("tspan").text("\xab"+t+"\xbb");l||e.attr("dy",n.textHeight),l=!1}));let c=e.id;void 0!==e.type&&""!==e.type&&(c+="<"+e.type+">");const h=o.append("tspan").text(c).attr("class","title");l||h.attr("dy",n.textHeight);const u=o.node().getBBox().height,d=s.append("line").attr("x1",0).attr("y1",n.padding+u+n.dividerMargin/2).attr("y2",n.padding+u+n.dividerMargin/2),f=s.append("text").attr("x",
11n.padding).attr("y",u+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.members.forEach((function(t){uw(f,t,l,n),l=!1}));const p=f.node().getBBox(),g=s.append("line").attr("x1",0).attr("y1",n.padding+u+n.dividerMargin+p.height).attr("y2",n.padding+u+n.dividerMargin+p.height),y=s.append("text").attr("x",n.padding).attr("y",u+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.methods.forEach((function(t){uw(y,t,l,n),l=!1}));const m=s.node().getBBox();var b=" ";e.cssClasses.length>0&&(b+=e.cssClasses.join(" "));const _=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*n.padding).attr("height",m.height+n.padding+.5*n.dividerMargin).attr("class",b).node().getBBox().width;return o.node().childNodes.forEach((function(t){t.setAttribute("x",(_-t.getBBox().width)/2)})),e.tooltip&&o.insert("title").text(e.tooltip),d.attr("x2",_),g.attr("x2",_),a.width=_,a.height=m.height+n.padding+.5*n.dividerMargin,a},pw=function(t,e,n,i,r){const a=function(t){switch(t){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const s=e.points,o=Ro().x((function(t){return t.x})).y((function(t){return t.y})).curve(Uo),l=t.append("path").attr("d",o(s)).attr("id","edge"+sw).attr("class","relation");let c,h,u="";i.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),1==n.relation.lineType&&l.attr("class","relation dashed-line"),10==n.relation.lineType&&l.attr("class","relation dotted-line"),"none"!==n.relation.type1&&l.attr("marker-start","url("+u+"#"+a(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&l.attr("marker-end","url("+u+"#"+a(n.relation.type2)+"End)");const d=e.points.length;let f,p,g,y,m=ux.calcLabelPosition(e.points);if(c=m.x,h=m.y,d%2!=0&&d>1){let t=ux.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),i=ux.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[d-1]);Ym.debug("cardinality_1_point "+JSON.stringify(t)),Ym.debug("cardinality_2_point "+JSON.stringify(i)),f=t.x,p=t.y,g=i.x,y=i.y}if(void 0!==n.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",c).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=r;const a=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",a.x-i.padding/2).attr("y",a.y-i.padding/2).attr("width",a.width+i.padding).attr("height",a.height+i.padding)}if(Ym.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1){t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",f).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1)}if(void 0!==n.relationTitle2&&"none"!==n.relationTitle2){t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",g).attr("y",y).attr("fill","black").attr("font-size","6").text(n.relationTitle2)}sw++},gw=function(t,e,n,i){Ym.debug("Rendering note ",e,n);const r=e.id,a={id:r,text:e.text,width:0,height:0},s=t.append("g").attr("id",r).attr("class","classGroup");let o=s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const l=JSON.parse(`"${e.text}"`).split("\n");l.forEach((function(t){Ym.debug(`Adding line: ${t}`),o.append("tspan").text(t).attr("class","title").attr("dy",n.textHeight)}));const c=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",c.width+2*n.padding).attr("height",c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return o.node().childNodes.forEach((function(t){t.setAttribute("x",(h-t.getBBox().width)/2)})),a.width=h,a.height=c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin,a};let yw={};const mw=function(t){const e=Object.entries(yw).find((e=>e[1].label===t));if(e)return e[0]},bw={draw:function(t,e,n,i){const r=vx().class;yw={},Ym.info("Rendering diagram "+t);const a=vx().securityLevel;let s;"sandbox"===a&&(s=to("#i"+e));const o=to("sandbox"===a?s.nodes()[0].contentDocument.body:"body"),l=o.select(`[id='${e}']`);var c;(c=l).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),
11c.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),c.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");const h=new ip({multigraph:!0});h.setGraph({isMultiGraph:!0}),h.setDefaultEdgeLabel((function(){return{}}));const u=i.db.getClasses(),d=Object.keys(u);for(const m of d){const t=u[m],e=fw(l,t,r,i);yw[e.id]=e,h.setNode(e.id,e),Ym.info("Org height: "+e.height)}i.db.getRelations().forEach((function(t){Ym.info("tjoho"+mw(t.id1)+mw(t.id2)+JSON.stringify(t)),h.setEdge(mw(t.id1),mw(t.id2),{relation:t},t.title||"DEFAULT")}));
11i.db.getNotes().forEach((function(t){Ym.debug(`Adding note: ${JSON.stringify(t)}`);const e=gw(l,t,r,i);yw[e.id]=e,h.setNode(e.id,e),t.class&&t.class in u&&h.setEdge(t.id,mw(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),Fy(h),h.nodes().forEach((function(t){void 0!==t&&void 0!==h.node(t)&&(Ym.debug("Node "+t+": "+JSON.stringify(h.node(t))),o.select("#"+(i.db.lookUpDomId(t)||t)).attr("transform","translate("+(h.node(t).x-h.node(t).width/2)+","+(h.node(t).y-h.node(t).height/2)+" )"))})),h.edges().forEach((function(t){void 0!==t&&void 0!==h.edge(t)&&(Ym.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(h.edge(t))),pw(l,h.edge(t),h.edge(t).relation,r,i))}));const f=l.node().getBBox(),p=f.width+40,g=f.height+40;Ax(l,g,p,r.useMaxWidth);const y=`${f.x-20} ${f.y-20} ${p} ${g}`;Ym.debug(`viewBox ${y}`),l.attr("viewBox",y)}},_w={extension:(t,e,n)=>{Ym.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:(t,e)=>{t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(t,e)=>{t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e)=>{t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},xw=(t,e,n,i)=>{e.forEach((e=>{_w[e](t,n,i)}))};const vw=(t,e,n,i)=>{let r=t||"";
11if("object"==typeof r&&(r=r[0]),Xm(vx().flowchart.htmlLabels)){r=r.replace(/\\n|\n/g,"<br />"),Ym.info("vertexText"+r);let t=function(t){const e=to(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),i=t.label,r=t.isNode?"nodeLabel":"edgeLabel";var a,s;return n.html('<span class="'+r+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),a=n,(s=t.labelStyle)&&a.attr("style",s),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:i,label:AD(r).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e.replace("fill:","color:")});return t}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?r:[];for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),n?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},kw=(t,e,n,i)=>{let r;r=n||"node default";const a=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",e.labelStyle);let o;o=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const l=s.node().appendChild(vw(Hm(AD(o),vx()),e.labelStyle,!1,i));let c=l.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=l.children[0],e=to(l);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}const h=e.padding/2;return s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),{shapeSvg:a,bbox:c,halfPadding:h,label:s}},ww=(t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height};function Tw(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}let Cw={},Ew={},Sw={};const Aw=(t,e)=>(Ym.trace("In isDecendant",e," ",t," = ",Ew[e].includes(t)),!!Ew[e].includes(t)),Dw=(t,e,n,i)=>{Ym.warn("Copying children of ",t,"root",i,"data",e.node(t),i);const r=e.children(t)||[];t!==i&&r.push(t),Ym.warn("Copying (nodes) clusterId",t,"nodes",r),r.forEach((r=>{if(e.children(r).length>0)Dw(r,e,n,i);else{const a=e.node(r);Ym.info("cp ",r," to ",i," with parent ",t),n.setNode(r,a),i!==e.parent(r)&&(Ym.warn("Setting parent",r,e.parent(r)),n.setParent(r,e.parent(r))),t!==i&&r!==t?(Ym.debug("Setting parent",r,t),n.setParent(r,t)):(Ym.info("In copy ",t,"root",i,"data",e.node(t),i),Ym.debug("Not Setting parent for node=",r,"cluster!==rootId",t!==i,"node!==clusterId",r!==t));const s=e.edges(r);Ym.debug("Copying Edges",s),s.forEach((r=>{Ym.info("Edge",r);const a=e.edge(r.v,r.w,r.name);Ym.info("Edge data",a,i);try{((t,e)=>(Ym.info("Decendants of ",e," is ",Ew[e]),Ym.info("Edge is ",t),t.v!==e&&t.w!==e&&(Ew[e]?Ew[e].includes(t.v)||Aw(t.v,e)||Aw(t.w,e)||Ew[e].includes(t.w):(Ym.debug("Tilt, ",e,",not in decendants"),!1))))(r,i)?(Ym.info("Copying as ",r.v,r.w,a,r.name),n.setEdge(r.v,r.w,a,r.name),Ym.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):Ym.info("Skipping copy of edge ",r.v,"--\x3e",r.w," rootId: ",i," clusterId:",t)}catch(s){Ym.error(s)}}))}Ym.debug("Removing node",r),e.removeNode(r)}))},Lw=(t,e)=>{const n=e.children(t);let i=[...n];for(const r of n)Sw[r]=t,i=[...i,...Lw(r,e)];return i},Nw=(t,e)=>{Ym.trace("Searching",t);const n=e.children(t);if(Ym.trace("Searching children of id ",t,n),n.length<1)return Ym.trace("This is a valid node",t),t;for(const i of n){const n=Nw(i,e);if(n)return Ym.trace("Found replacement for",t," => ",n),n}},Ow=t=>Cw[t]&&Cw[t].externalConnections&&Cw[t]?Cw[t].id:t,Mw=(t,e)=>{if(Ym.warn("extractor - ",e,Cm(t),t.children("D")),e>10)return void Ym.error("Bailing out");let n=t.nodes(),i=!1;for(const r of n){const e=t.children(r);i=i||e.length>0}if(i){Ym.debug("Nodes = ",n,e);for(const i of n)if(Ym.debug("Extracting node",i,Cw,Cw[i]&&!Cw[i].externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),Cw[i])if(!Cw[i].externalConnections&&t.children(i)&&t.children(i).length>
110){Ym.warn("Cluster without external connections, without a parent and with children",i,e);let n="TB"===t.graph().rankdir?"LR":"TB";Cw[i]&&Cw[i].clusterData&&Cw[i].clusterData.dir&&(n=Cw[i].clusterData.dir,Ym.warn("Fixing dir",Cw[i].clusterData.dir,n));const r=new ip({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));Ym.warn("Old graph before copy",Cm(t)),Dw(i,t,r,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Cw[i].clusterData,labelText:Cw[i].labelText,graph:r}),Ym.warn("New graph after copy node: (",i,")",Cm(r)),Ym.debug("Old graph after copy",Cm(t))}else Ym.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Cw[i].externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),Ym.debug(Cw);else Ym.debug("Not a cluster",i,e);n=t.nodes(),Ym.warn("New list of nodes",n);for(const i of n){const n=t.node(i);Ym.warn(" Now next level",i,n),n.clusterNode&&Mw(n.graph,e+1)}}else Ym.debug("Done, no node has children",t.nodes())},Bw=(t,e)=>{if(0===e.length)return[];let n=Object.assign(e);return e.forEach((e=>{const i=t.children(e),r=Bw(t,i);n=[...n,...r]})),n};function Iw(t,e,n,i){var r=t.x,a=t.y,s=r-i.x,o=a-i.y,l=Math.sqrt(e*e*o*o+n*n*s*s),c=Math.abs(e*n*s/l);i.x<r&&(c=-c);var h=Math.abs(e*n*o/l);return i.y<a&&(h=-h),{x:r+c,y:a+h}}function Fw(t,e,n,i){var r,a,s,o,l,c,h,u,d,f,p,g,y;if(r=e.y-t.y,s=t.x-e.x,l=e.x*t.y-t.x*e.y,d=r*n.x+s*n.y+l,f=r*i.x+s*i.y+l,!(0!==d&&0!==f&&Rw(d,f)||(a=i.y-n.y,o=n.x-i.x,c=i.x*n.y-n.x*i.y,h=a*t.x+o*t.y+c,u=a*e.x+o*e.y+c,0!==h&&0!==u&&Rw(h,u)||0==(p=r*o-a*s))))return g=Math.abs(p/2),{x:(y=s*c-o*l)<0?(y-g)/p:(y+g)/p,y:(y=a*l-r*c)<0?(y-g)/p:(y+g)/p}}function Rw(t,e){return t*e>0}const $w=(t,e)=>{var n,i,r=t.x,a=t.y,s=e.x-r,o=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),n=0===o?0:c*s/o,i=c):(s<0&&(l=-l),n=l,i=0===s?0:l*o/s),{x:r+n,y:a+i}},Pw={node:function(t,e){return t.intersect(e)},circle:function(t,e,n){return Iw(t,e,e,n)},ellipse:Iw,polygon:function(t,e,n){var i=t.x,r=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){s=Math.min(s,t.x),o=Math.min(o,t.y)})):(s=Math.min(s,e.x),o=Math.min(o,e.y));for(var l=i-t.width/2-s,c=r-t.height/2-o,h=0;h<e.length;h++){var u=e[h],d=e[h<e.length-1?h+1:0],f=Fw(t,n,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort((function(t,e){var i=t.x-n.x,r=t.y-n.y,a=Math.sqrt(i*i+r*r),s=e.x-n.x,o=e.y-n.y,l=Math.sqrt(s*s+o*o);return a<l?-1:a===l?0:1})),a[0]):t},rect:$w},Yw=(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=kw(t,e,"node "+e.classes,!0);Ym.info("Classes = ",e.classes);const a=n.insert("rect",":first-child");return a.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),ww(e,a),e.intersect=function(t){return Pw.rect(e,t)},n};function jw(t,e,n,i){const r=[],a=t=>{r.push(t,0)},s=t=>{r.push(0,t)};e.includes("t")?(Ym.debug("add top border"),a(n)):s(n),e.includes("r")?(Ym.debug("add right border"),a(i)):s(i),e.includes("b")?(Ym.debug("add bottom border"),a(n)):s(n),e.includes("l")?(Ym.debug("add left border"),a(i)):s(i),t.attr("stroke-dasharray",r.join(" "))}const zw=(t,e,n)=>{const i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let r=70,a=10;"LR"===n&&(r=10,a=70);const s=i.append("rect").attr("x",-1*r/2).attr("y",-1*a/2).attr("width",r).attr("height",a).attr("class","fork-join");return ww(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Pw.rect(e,t)},i},Uw={question:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding+(i.height+e.padding),a=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];Ym.info("Question main (Circle)");const s=Tw(n,r,r,a);return s.attr("style",e.style),ww(e,s),e.intersect=function(t){return Ym.warn("Intersect called"),Pw.polygon(e,a,t)},n},rect:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=kw(t,e,"node "+e.classes,!0);Ym.trace("Classes = ",e.classes);const a=n.insert("rect",":first-child"),s=i.width+e.padding,o=i.height+e.padding;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",s).attr("height",o),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(jw(a,e.props.borders,s,o),t.delete("borders")),t.forEach((t=>{Ym.warn(`Unknown node property ${t}`)}))}return ww(e,a),e.intersect=function(t){return Pw.rect(e,t)},n},labelRect:(t,e)=>{const{shapeSvg:n}=kw(t,e,"label",!0);Ym.trace("Classes = ",e.classes);const i=n.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(jw(i,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{Ym.warn(`Unknown node property ${t}`)}))}return ww(e,i),e.intersect=function(t){return Pw.rect(e,t)},n},rectWithTitle:(t,e)=>{let n;n=e.classes?"node "+e.classes:"node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),r=i.insert("rect",":first-child"),a=i.insert("line"),s=i.insert("g").attr("class","label"),o=e.labelText.flat?e.labelText.flat():e.labelText;let l="";l="object"==typeof o?o[0]:o,Ym.info("Label text abc79",l,o,"object"==typeof o);const c=s.node().appendChild(vw(l,e.labelStyle,!0,!0));let h={width:0,height:0};
11if(Xm(vx().flowchart.htmlLabels)){const t=c.children[0],e=to(c);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}Ym.info("Text 2",o);const u=o.slice(1,o.length);let d=c.getBBox();const f=s.node().appendChild(vw(u.join?u.join("<br/>"):u,e.labelStyle,!0,!0));if(Xm(vx().flowchart.htmlLabels)){const t=f.children[0],e=to(f);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}const p=e.padding/2;return to(f).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+p+5)+")"),to(c).attr("transform","translate( "+(h.width<d.width?0:-(d.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-p+3)+")"),r.attr("class","outer title-state").attr("x",-h.width/2-p).attr("y",-h.height/2-p).attr("width",h.width+e.padding).attr("height",h.height+e.padding),a.attr("class","divider").attr("x1",-h.width/2-p).attr("x2",h.width/2+p).attr("y1",-h.height/2-p+d.height+p).attr("y2",-h.height/2-p+d.height+p),ww(e,r),e.intersect=function(t){return Pw.rect(e,t)},i},choice:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return n.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Pw.circle(e,14,t)},n},circle:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=kw(t,e,void 0,!0),a=n.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Ym.info("Circle main"),ww(e,a),e.intersect=function(t){return Ym.info("Circle intersect",e,i.width/2+r,t),Pw.circle(e,i.width/2+r,t)},n},doublecircle:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=kw(t,e,void 0,!0),a=n.insert("g",":first-child"),s=a.insert("circle"),o=a.insert("circle");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),Ym.info("DoubleCircle main"),ww(e,s),e.intersect=function(t){return Ym.info("DoubleCircle intersect",e,i.width/2+r+5,t),Pw.circle(e,i.width/2+r+5,t)},n},stadium:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.height+e.padding,a=i.width+r/4+e.padding,s=n.insert("rect",":first-child").attr("style",e.style).attr("rx",r/2).attr("ry",r/2).attr("x",-a/2).attr("y",-r/2).attr("width",a).attr("height",r);return ww(e,s),e.intersect=function(t){return Pw.rect(e,t)},n},hexagon:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.height+e.padding,a=r/4,s=i.width+2*a+e.padding,o=[{x:a,y:0},{x:s-a,y:0},{x:s,y:-r/2},{x:s-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}],l=Tw(n,s,r,o);return l.attr("style",e.style),ww(e,l),e.intersect=function(t){return Pw.polygon(e,o,t)},n},rect_left_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:-a/2,y:0},{x:r,y:0},{x:r,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Tw(n,r,a,s).attr("style",e.style),e.width=r+a,e.height=a,e.intersect=function(t){return Pw.polygon(e,s,t)},n},lean_right:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:-2*a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:a/6,y:-a}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},lean_left:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:2*a/6,y:0}
11,{x:r+a/6,y:0},{x:r-2*a/6,y:-a},{x:-a/6,y:-a}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},trapezoid:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:-2*a/6,y:0},{x:r+2*a/6,y:0},{x:r-a/6,y:-a},{x:a/6,y:-a}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},inv_trapezoid:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:-2*a/6,y:-a}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},rect_right_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:0,y:0},{x:r+a/2,y:0},{x:r,y:-a/2},{x:r+a/2,y:-a},{x:0,y:-a}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},cylinder:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=r/2,s=a/(2.5+r/50),o=i.height+s+e.padding,l="M 0,"+s+" a "+a+","+s+" 0,0,0 "+r+" 0 a "+a+","+s+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+a+","+s+" 0,0,0 "+r+" 0 l 0,"+-o,c=n.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-r/2+","+-(o/2+s)+")");return ww(e,c),e.intersect=function(t){const n=Pw.rect(e,t),i=n.x-e.x;if(0!=a&&(Math.abs(i)<e.width/2||Math.abs(i)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-s)){let r=s*s*(1-i*i/(a*a));0!=r&&(r=Math.sqrt(r)),r=s-r,t.y-e.y>0&&(r=-r),n.y+=r}return n},n},start:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ww(e,i),e.intersect=function(t){return Pw.circle(e,7,t)},n},end:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child"),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ww(e,r),e.intersect=function(t){return Pw.circle(e,7,t)},n},note:Yw,subroutine:(t,e)=>{const{shapeSvg:n,bbox:i}=kw(t,e,void 0,!0),r=i.width+e.padding,a=i.height+e.padding,s=[{x:0,y:0},{x:r,y:0},{x:r,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],o=Tw(n,r,a,s);return o.attr("style",e.style),ww(e,o),e.intersect=function(t){return Pw.polygon(e,s,t)},n},fork:zw,join:zw,class_box:(t,e)=>{const n=e.padding/2;let i;i=e.classes?"node "+e.classes:"node default";const r=t.insert("g").attr("class",i).attr("id",e.domId||e.id),a=r.insert("rect",":first-child"),s=r.insert("line"),o=r.insert("line");let l=0,c=4;const h=r.insert("g").attr("class","label");let u=0;const d=e.classData.annotations&&e.classData.annotations[0],f=e.classData.annotations[0]?"\xab"+e.classData.annotations[0]+"\xbb":"",p=h.node().appendChild(vw(f,e.labelStyle,!0,!0));let g=p.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=p.children[0],e=to(p);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}e.classData.annotations[0]&&(c+=g.height+4,l+=g.width);let y=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(vx().flowchart.htmlLabels?y+="&lt;"+e.classData.type+"&gt;":y+="<"+e.classData.type+">");const m=h.node().appendChild(vw(y,e.labelStyle,!0,!0));to(m).attr("class","classTitle");let b=m.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=m.children[0],e=to(m);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}c+=b.height+4,b.width>l&&(l=b.width);const _=[];e.classData.members.forEach((t=>{const n=ow(t);let i=n.displayText;vx().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const r=h.node().appendChild(vw(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=r.children[0],e=to(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>l&&(l=a.width),c+=a.height+4,_.push(r)})),c+=8;const x=[];if(e.classData.methods.forEach((t=>{const n=ow(t);let i=n.displayText;vx().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const r=h.node().appendChild(vw(i,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=r.getBBox();
11if(Xm(vx().flowchart.htmlLabels)){const t=r.children[0],e=to(r);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>l&&(l=a.width),c+=a.height+4,x.push(r)})),c+=8,d){let t=(l-g.width)/2;to(p).attr("transform","translate( "+(-1*l/2+t)+", "+-1*c/2+")"),u=g.height+4}let v=(l-b.width)/2;return to(m).attr("transform","translate( "+(-1*l/2+v)+", "+(-1*c/2+u)+")"),u+=b.height+4,s.attr("class","divider").attr("x1",-l/2-n).attr("x2",l/2+n).attr("y1",-c/2-n+8+u).attr("y2",-c/2-n+8+u),u+=8,_.forEach((t=>{to(t).attr("transform","translate( "+-l/2+", "+(-1*c/2+u+4)+")"),u+=b.height+4})),u+=8,o.attr("class","divider").attr("x1",-l/2-n).attr("x2",l/2+n).attr("y1",-c/2-n+8+u).attr("y2",-c/2-n+8+u),u+=8,x.forEach((t=>{to(t).attr("transform","translate( "+-l/2+", "+(-1*c/2+u)+")"),u+=b.height+4})),a.attr("class","outer title-state").attr("x",-l/2-n).attr("y",-c/2-n).attr("width",l+e.padding).attr("height",c+e.padding),ww(e,a),e.intersect=function(t){return Pw.rect(e,t)},r}};let Ww={};const Hw=t=>{const e=Ww[t.id];Ym.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},qw={rect:(t,e)=>{Ym.trace("Creating subgraph rect for ",e.id,e);const n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),i=n.insert("rect",":first-child"),r=n.insert("g").attr("class","cluster-label"),a=r.node().appendChild(vw(e.labelText,e.labelStyle,void 0,!0));let s=a.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=a.children[0],e=to(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}const o=0*e.padding,l=o/2,c=e.width<=s.width+o?s.width+o:e.width;e.width<=s.width+o?e.diff=(s.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,Ym.trace("Data ",e,JSON.stringify(e)),i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-c/2).attr("y",e.y-e.height/2-l).attr("width",c).attr("height",e.height+o),r.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2)+")");const h=i.node().getBBox();return e.width=h.width,e.height=h.height,e.intersect=function(t){return $w(e,t)},n},roundedWithTitle:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),s=r.node().appendChild(vw(e.labelText,e.labelStyle,void 0,!0));let o=s.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=s.children[0],e=to(s);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}o=s.getBBox();const l=0*e.padding,c=l/2,h=e.width<=o.width+e.padding?o.width+e.padding:e.width;e.width<=o.width+e.padding?e.diff=(o.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,i.attr("class","outer").attr("x",e.x-h/2-c).attr("y",e.y-e.height/2-c).attr("width",h+l).attr("height",e.height+l),a.attr("class","inner").attr("x",e.x-h/2-c).attr("y",e.y-e.height/2-c+o.height-1).attr("width",h+l).attr("height",e.height+l-o.height-3),r.attr("transform","translate("+(e.x-o.width/2)+", "+(e.y-e.height/2-e.padding/3+(Xm(vx().flowchart.htmlLabels)?5:3))+")");const u=i.node().getBBox();return e.height=u.height,e.intersect=function(t){return $w(e,t)},n},noteGroup:(t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");const s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return $w(e,t)},n},divider:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,a=r/2;i.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+r).attr("height",e.height+r);const s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.diff=-e.padding/2,e.intersect=function(t){return $w(e,t)},n}};let Vw={};let Gw={},Xw={};function Zw(t,e){vx().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}const Qw=(t,e)=>{Ym.warn("abc88 cutPathAtIntersect",t,e);let n=[],i=t[0],r=!1;return t.forEach((t=>{if(Ym.info("abc88 checking point",t,e),((t,e)=>{const n=t.x,i=t.y,r=Math.abs(e.x-n),a=Math.abs(e.y-i),s=t.width/2,o=t.height/2;return r>=s||a>=o})(e,t)||r)Ym.warn("abc88 outside",t,i),i=t,r||n.push(t);else{const a=((t,e,n)=>{Ym.warn(`intersection calc abc89:\n  outsidePoint: ${JSON.stringify(e)}\n  insidePoint : ${JSON.stringify(n)}\n  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,r=t.y,a=Math.abs(i-n.x),s=t.width/2;let o=n.x<e.x?s-a:s+a;const l=t.height/2,c=Math.abs(e.y-n.y),h=Math.abs(e.x-n.x);if(Math.abs(r-e.y)*s>Math.abs(i-e.x)*l){let t=n.y<e.y?e.y-l-r:r-l-e.y;o=h*t/c;const i={x:n.x<e.x?n.x+o:n.x-h+o,y:n.y<e.y?n.y+c-t:n.y-c+t};return 0===o&&(i.x=e.x,i.y=e.y),0===h&&(i.x=e.x),0===c&&(i.y=e.y),Ym.warn(`abc89 topp/bott calc, Q ${c}, q ${t}, R ${h}, r ${o}`,i),i}{o=n.x<e.x?e.x-s-i:i-s-e.x;
11let t=c*o/h,r=n.x<e.x?n.x+h-o:n.x-h+o,a=n.y<e.y?n.y+t:n.y-t;return Ym.warn(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r ${o}`,{_x:r,_y:a}),0===o&&(r=e.x,a=e.y),0===h&&(r=e.x),0===c&&(a=e.y),{x:r,y:a}}})(e,i,t);Ym.warn("abc88 inside",t,i,a),Ym.warn("abc88 intersection",a);let s=!1;n.forEach((t=>{s=s||t.x===a.x&&t.y===a.y})),n.some((t=>t.x===a.x&&t.y===a.y))?Ym.warn("abc88 no intersect",a,n):n.push(a),r=!0}})),Ym.warn("abc88 returning points",n),n},Kw=(t,e,n,i)=>{Ym.info("Graph in recursive render: XXX",Cm(e),i);const r=e.graph().rankdir;Ym.trace("Dir in recursive render - dir:",r);const a=t.insert("g").attr("class","root");e.nodes()?Ym.info("Recursive render XXX",e.nodes()):Ym.info("No nodes found for",e),e.edges().length>0&&Ym.trace("Recursive edges",e.edge(e.edges()[0]));const s=a.insert("g").attr("class","clusters"),o=a.insert("g").attr("class","edgePaths"),l=a.insert("g").attr("class","edgeLabels"),c=a.insert("g").attr("class","nodes");e.nodes().forEach((function(t){const a=e.node(t);if(void 0!==i){const n=JSON.parse(JSON.stringify(i.clusterData));Ym.info("Setting data for cluster XXX (",t,") ",n,i),e.setNode(i.id,n),e.parent(t)||(Ym.trace("Setting parent",t,i.id),e.setParent(t,i.id,n))}if(Ym.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),a&&a.clusterNode){Ym.info("Cluster identified",t,a.width,e.node(t));const i=Kw(c,a.graph,n,e.node(t)),r=i.elem;ww(a,r),a.diff=i.diff||0,Ym.info("Node bounds (abc123)",t,a,a.width,a.x,a.y),((t,e)=>{Ww[e.id]=t})(r,a),Ym.warn("Recursive render complete ",r,a)}else e.children(t).length>0?(Ym.info("Cluster - the non recursive path XXX",t,a.id,a,e),Ym.info(Nw(a.id,e)),Cw[a.id]={id:Nw(a.id,e),node:a}):(Ym.info("Node - the non recursive path",t,a.id,a),((t,e,n)=>{let i,r;if(e.link){let a;"sandbox"===vx().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),r=Uw[e.shape](i,e,n)}else r=Uw[e.shape](t,e,n),i=r;e.tooltip&&r.attr("title",e.tooltip),e.class&&r.attr("class","node default "+e.class),Ww[e.id]=i,e.haveCallback&&Ww[e.id].attr("class",Ww[e.id].attr("class")+" clickable")})(c,e.node(t),r))}
11)),e.edges().forEach((function(t){const n=e.edge(t.v,t.w,t.name);Ym.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),Ym.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),Ym.info("Fix",Cw,"ids:",t.v,t.w,"Translateing: ",Cw[t.v],Cw[t.w]),((t,e)=>{const n=vw(e.label,e.labelStyle),i=t.insert("g").attr("class","edgeLabel"),r=i.insert("g").attr("class","label");r.node().appendChild(n);let a,s=n.getBBox();if(Xm(vx().flowchart.htmlLabels)){const t=n.children[0],e=to(n);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}if(r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Gw[e.id]=i,e.width=s.width,e.height=s.height,e.startLabelLeft){const n=vw(e.startLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");a=r.node().appendChild(n);const s=n.getBBox();r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Xw[e.id]||(Xw[e.id]={}),Xw[e.id].startLeft=i,Zw(a,e.startLabelLeft)}if(e.startLabelRight){const n=vw(e.startLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");a=i.node().appendChild(n),r.node().appendChild(n);const s=n.getBBox();r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Xw[e.id]||(Xw[e.id]={}),Xw[e.id].startRight=i,Zw(a,e.startLabelRight)}if(e.endLabelLeft){const n=vw(e.endLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");a=r.node().appendChild(n);const s=n.getBBox();r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.node().appendChild(n),Xw[e.id]||(Xw[e.id]={}),Xw[e.id].endLeft=i,Zw(a,e.endLabelLeft)}if(e.endLabelRight){const n=vw(e.endLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");a=r.node().appendChild(n);const s=n.getBBox();r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.node().appendChild(n),Xw[e.id]||(Xw[e.id]={}),Xw[e.id].endRight=i,Zw(a,e.endLabelRight)}})(l,n)}
11)),e.edges().forEach((function(t){Ym.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),Ym.info("#############################################"),Ym.info("###                Layout                 ###"),Ym.info("#############################################"),Ym.info(e),Fy(e),Ym.info("Graph after layout:",Cm(e));let h=0;return(t=>Bw(t,t.children()))(e).forEach((function(t){const n=e.node(t);Ym.info("Position "+t+": "+JSON.stringify(e.node(t))),Ym.info("Position "+t+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?Hw(n):e.children(t).length>0?(((t,e)=>{Ym.trace("Inserting cluster");const n=e.shape||"rect";Vw[e.id]=qw[n](t,e)})(s,n),Cw[n.id].node=n):Hw(n)})),e.edges().forEach((function(t){const i=e.edge(t);Ym.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(i),i);const r=function(t,e,n,i,r,a){let s=n.points,o=!1;const l=a.node(e.v);var c=a.node(e.w);Ym.info("abc88 InsertEdge: ",n),c.intersect&&l.intersect&&(s=s.slice(1,n.points.length-1),s.unshift(l.intersect(s[0])),Ym.info("Last point",s[s.length-1],c,c.intersect(s[s.length-1])),s.push(c.intersect(s[s.length-1]))),n.toCluster&&(Ym.info("to cluster abc88",i[n.toCluster]),s=Qw(n.points,i[n.toCluster].node),o=!0),n.fromCluster&&(Ym.info("from cluster abc88",i[n.fromCluster]),s=Qw(s.reverse(),i[n.fromCluster].node).reverse(),o=!0);const h=s.filter((t=>!Number.isNaN(t.y)));let u;u=("graph"===r||"flowchart"===r)&&n.curve||Uo;const d=Ro().x((function(t){return t.x})).y((function(t){return t.y})).curve(u);let f;switch(n.thickness){case"normal":f="edge-thickness-normal";break;case"thick":f="edge-thickness-thick";break;default:f=""}switch(n.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed"}const p=t.append("path").attr("d",d(h)).attr("id",n.id).attr("class"," "+f+(n.classes?" "+n.classes:"")).attr("style",n.style);let g="";switch((vx().flowchart.arrowMarkerAbsolute||vx().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),Ym.info("arrowTypeStart",n.arrowTypeStart),Ym.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+g+"#"+r+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+g+"#"+r+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+g+"#"+r+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+g+"#"+r+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+g+"#"+r+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+g+"#"+r+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+g+"#"+r+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+g+"#"+r+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+g+"#"+r+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+g+"#"+r+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+g+"#"+r+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+g+"#"+r+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+g+"#"+r+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+g+"#"+r+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+g+"#"+r+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+g+"#"+r+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+g+"#"+r+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+g+"#"+r+"-lollipopEnd)")}let y={};return o&&(y.updatedPath=s),y.originalPath=n.points,y}(o,t,i,Cw,n,e);((t,e)=>{Ym.info("Moving label abc78 ",t.id,t.label,Gw[t.id]);let n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){const i=Gw[t.id];let r=t.x,a=t.y;if(n){const i=ux.calcLabelPosition(n);Ym.info("Moving label "+t.label+" from (",r,",",a,") to (",i.x,",",i.y,") abc78"),e.updatedPath&&(r=i.x,a=i.y)}i.attr("transform","translate("+r+", "+a+")")}if(t.startLabelLeft){const e=Xw[t.id].startLeft;let i=t.x,r=t.y;if(n){const e=ux.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.startLabelRight){const e=Xw[t.id].startRight;let i=t.x,r=t.y;if(n){const e=ux.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelLeft){const e=Xw[t.id].endLeft;let i=t.x,r=t.y;if(n){const e=ux.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelRight){const e=Xw[t.id].endRight;let i=t.x,r=t.y;if(n){const e=ux.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}})(i,r)}
11)),e.nodes().forEach((function(t){const n=e.node(t);Ym.info(t,n.type,n.diff),"group"===n.type&&(h=n.diff)})),{elem:a,diff:h}},Jw=(t,e,n,i,r)=>{xw(t,n,i,r),Ww={},Gw={},Xw={},Vw={},Ew={},Sw={},Cw={},Ym.warn("Graph at first:",Cm(e)),((t,e)=>{!t||e>10?Ym.debug("Opting out, no graph "):(Ym.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(Ym.warn("Cluster identified",e," Replacement id in edges: ",Nw(e,t)),Ew[e]=Lw(e,t),Cw[e]={id:Nw(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){const n=t.children(e),i=t.edges();n.length>0?(Ym.debug("Cluster identified",e,Ew),i.forEach((t=>{t.v!==e&&t.w!==e&&Aw(t.v,e)^Aw(t.w,e)&&(Ym.warn("Edge: ",t," leaves cluster ",e),Ym.warn("Decendants of XXX ",e,": ",Ew[e]),Cw[e].externalConnections=!0)}))):Ym.debug("Not a cluster ",e,Ew)})),t.edges().forEach((function(e){const n=t.edge(e);Ym.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),Ym.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,r=e.w;if(Ym.warn("Fix XXX",Cw,"ids:",e.v,e.w,"Translating: ",Cw[e.v]," --- ",Cw[e.w]),Cw[e.v]&&Cw[e.w]&&Cw[e.v]===Cw[e.w]){Ym.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),Ym.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=Ow(e.v),r=Ow(e.w),t.removeEdge(e.v,e.w,e.name);const a=e.w+"---"+e.v;t.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const s=JSON.parse(JSON.stringify(n)),o=JSON.parse(JSON.stringify(n));s.label="",s.arrowTypeEnd="none",o.label="",s.fromCluster=e.v,o.toCluster=e.v,t.setEdge(i,a,s,e.name+"-cyclic-special"),t.setEdge(a,r,o,e.name+"-cyclic-special")}else(Cw[e.v]||Cw[e.w])&&(Ym.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=Ow(e.v),r=Ow(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v&&(n.fromCluster=e.v),r!==e.w&&(n.toCluster=e.w),Ym.warn("Fix Replacing with XXX",i,r,e.name),t.setEdge(i,r,n,e.name))})),Ym.warn("Adjusted Graph",Cm(t)),Mw(t,0),Ym.trace(Cw))})(e),Ym.warn("Graph after:",Cm(e)),Kw(t,e,i)},tT=t=>Qm.sanitizeText(t,vx());let eT={dividerMargin:10,padding:5,textHeight:10};function nT(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const iT={setConf:function(t){Object.keys(t).forEach((function(e){eT[e]=t[e]}))},draw:function(t,e,n,i){Ym.info("Drawing class - ",e);const r=vx().flowchart,a=vx().securityLevel;Ym.info("config:",r);const s=r.nodeSpacing||50,o=r.rankSpacing||50,l=new ip({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:s,ranksep:o,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),c=i.db.getClasses(),h=i.db.getRelations(),u=i.db.getNotes();let d;Ym.info(h),function(t,e,n,i){const r=Object.keys(t);Ym.info("keys:",r),Ym.info(t),r.forEach((function(n){const r=t[n];let a="";r.cssClasses.length>0&&(a=a+" "+r.cssClasses.join(" "));const s={labelStyle:""};let o=void 0!==r.text?r.text:r.id,l="";r.type,l="class_box",e.setNode(r.id,{labelStyle:s.labelStyle,shape:l,labelText:tT(o),classData:r,rx:0,ry:0,class:a,style:s.style,id:r.id,domId:r.domId,tooltip:i.db.getTooltip(r.id)||"",haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:vx().flowchart.padding}),Ym.info("setNode",{labelStyle:s.labelStyle,shape:l,labelText:o,rx:0,ry:0,class:a,style:s.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:vx().flowchart.padding})}))}(c,l,0,i),function(t,e){const n=vx().flowchart;let i=0;t.forEach((function(r){i++;const a={classes:"relation"};a.pattern=1==r.relation.lineType?"dashed":"solid",a.id="id"+i,"arrow_open"===r.type?a.arrowhead="none":a.arrowhead="normal",Ym.info(a,r),a.startLabelRight="none"===r.relationTitle1?"":r.relationTitle1,a.endLabelLeft="none"===r.relationTitle2?"":r.relationTitle2,a.arrowTypeStart=nT(r.relation.type1),a.arrowTypeEnd=nT(r.relation.type2);let s="",o="";if(void 0!==r.style){const t=Q_(r.style);s=t.style,o=t.labelStyle}else s="fill:none";a.style=s,a.labelStyle=o,void 0!==r.interpolate?a.curve=X_(r.interpolate,Bo):void 0!==t.defaultInterpolate?a.curve=X_(t.defaultInterpolate,Bo):a.curve=X_(n.curve,Bo),r.text=r.title,void 0===r.text?void 0!==r.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",vx().flowchart.htmlLabels?(a.labelType="html",a.label='<span class="edgeLabel">'+r.text+"</span>"):(a.labelType="text",a.label=r.text.replace(Qm.lineBreakRegex,"\n"),void 0===r.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(r.id1,r.id2,a,i)}))}(h,l),function(t,e,n,i){Ym.info(t),t.forEach((function(t,r){const a=t,s="",o="";let l=a.text,c="note";if(e.setNode(a.id,{labelStyle:s,shape:c,labelText:tT(l),noteData:a,rx:0,ry:0,class:"",style:o,id:a.id,domId:a.id,tooltip:"",type:"note",padding:vx().flowchart.padding}),Ym.info("setNode",{labelStyle:s,shape:c,labelText:l,rx:0,ry:0,style:o,id:a.id,type:"note",padding:vx().flowchart.padding}),!a.class||!(a.class in i))return;const h=n+r,u={classes:"relation",pattern:"dotted"};u.id=`edgeNote${h}`,u.arrowhead="none",Ym.info(`Note edge: ${JSON.stringify(u)}, ${JSON.stringify(a)}`),u.startLabelRight="",u.endLabelLeft="",u.arrowTypeStart="none",u.arrowTypeEnd="none",u.style="fill:none",u.labelStyle="",u.curve=X_(eT.curve,Bo),e.setEdge(a.id,a.class,u,h)}))}(u,l,h.length+1,c),"sandbox"===a&&(d=to("#i"+e));const f=to("sandbox"===a?d.nodes()[0].contentDocument.body:"body"),p=f.select(`[id="${e}"]`),g=f.select("#"+e+" g");if(Jw(g,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),ux.insertTitle(p,"classTitleText",r.titleTopMargin,i.db.getDiagramTitle()),Dx(l,p,r.diagramPadding,r.useMaxWidth),!r.htmlLabels){const t="sandbox"===a?d.nodes()[0].contentDocument:document,n=t.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of n){const n=e.getBBox(),i=t.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("rx",0),i.setAttribute("ry",0),i.setAttribute("width",n.width),i.setAttribute("height",n.height),e.insertBefore(i,e.firstChild)}}}};var rT=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,2],i=[1,5],r=[6,9,11,23,25,27,29,30,31,49],a=[1,17],s=[1,18],o=[1,19],l=[1,20],c=[1,21],h=[1,22],u=[1,25],d=[1,30],f=[1,31],p=[1,32],g=[1,33],y=[6,9,11,15,20,23,25,27,29,30,31,42,43,44,45,49],m=[1,45],b=[30,31,46,47],_=[4,6,9,11,23,25,27,29,30,31,49],x=[42,43,44,45],v=[22,37],k=[1,64],w={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;
11case 5:case 6:case 20:case 41:case 28:case 29:case 30:this.$=a[o];break;case 12:i.addEntity(a[o-4]),i.addEntity(a[o-2]),i.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 13:i.addEntity(a[o-3]),i.addAttributes(a[o-3],a[o-1]);break;case 14:i.addEntity(a[o-2]);break;case 15:i.addEntity(a[o]);break;case 16:case 17:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 21:case 39:case 40:case 31:this.$=a[o].replace(/"/g,"");break;case 22:this.$=[a[o]];break;case 23:a[o].push(a[o-1]),this.$=a[o];break;case 24:this.$={attributeType:a[o-1],attributeName:a[o]};break;case 25:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeKeyType:a[o]};break;case 26:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeComment:a[o]};break;case 27:this.$={attributeType:a[o-3],attributeName:a[o-2],attributeKeyType:a[o-1],attributeComment:a[o]};break;case 32:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 33:this.$=i.Cardinality.ZERO_OR_ONE;break;case 34:this.$=i.Cardinality.ZERO_OR_MORE;break;case 35:this.$=i.Cardinality.ONE_OR_MORE;break;case 36:this.$=i.Cardinality.ONLY_ONE;break;case 37:this.$=i.Identification.NON_IDENTIFYING;break;case 38:this.$=i.Identification.IDENTIFYING;break;case 42:i.parseDirective("%%{","open_directive");break;case 43:i.parseDirective(a[o],"type_directive");break;case 44:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 45:i.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:n,7:3,12:4,49:i},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:n,7:3,12:4,49:i},{13:8,50:[1,9]},{50:[2,42]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:a,25:s,27:o,29:l,30:c,31:h,49:i},{1:[2,2]},{14:23,15:[1,24],52:u},e([15,52],[2,43]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:15,10:26,12:4,17:16,23:a,25:s,27:o,29:l,30:c,31:h,49:i},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),e(r,[2,15],{18:27,40:29,20:[1,28],42:d,43:f,44:p,45:g}),{24:[1,34]},{26:[1,35]},{28:[1,36]},e(r,[2,19]),e(y,[2,20]),e(y,[2,21]),{11:[1,37]},{16:38,51:[1,39]},{11:[2,45]},e(r,[2,5]),{17:40,30:c,31:h},{21:41,22:[1,42],32:43,33:44,37:m},{41:46,46:[1,47],47:[1,48]},e(b,[2,33]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(r,[2,16]),e(r,[2,17]),e(r,[2,18]),e(_,[2,9]),{14:49,52:u},{52:[2,44]},{15:[1,50]},{22:[1,51]},e(r,[2,14]),{21:52,22:[2,22],32:43,33:44,37:m},{34:53,37:[1,54]},{37:[2,28]},{40:55,42:d,43:f,44:p,45:g},e(x,[2,37]),e(x,[2,38]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],48:[1,58]},e(r,[2,13]),{22:[2,23]},e(v,[2,24],{35:61,36:62,38:[1,63],39:k}),e([22,37,38,39],[2,29]),e([30,31],[2,32]),e(_,[2,10]),e(r,[2,12]),e(r,[2,39]),e(r,[2,40]),e(r,[2,41]),e(v,[2,25],{36:65,39:k}),e(v,[2,26]),e([22,37,39],[2,30]),e(v,[2,31]),e(v,[2,27])],defaultActions:{5:[2,42],7:[2,2],25:[2,45],39:[2,44],45:[2,28],52:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},T=(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}
vendor: 5,085 bytes, line 11
11,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 21:case 26:break;case 14:return 11;case 16:return 9;
11case 17:return 31;case 18:return 48;case 19:return 4;case 20:return this.begin("block"),20;case 22:return 38;case 23:case 24:return 37;case 25:return 39;case 27:return this.popState(),22;case 28:case 57:return e.yytext[0];case 29:case 33:case 34:case 47:return 42;case 30:case 31:case 32:case 40:case 42:case 49:return 44;case 35:case 36:case 37:case 38:case 39:case 41:case 48:return 43;case 43:case 44:case 45:case 46:return 45;case 50:case 53:case 54:case 55:return 46;case 51:case 52:return 47;case 56:return 30;case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z][A-Za-z0-9\-_\[\]]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],inclusive:!0}}},t);function C(){this.yy={}}return w.lexer=T,C.prototype=w,w.Parser=C,new C}();rT.parser=rT;const aT=rT,sT=t=>null!==t.match(/^\s*erDiagram/);let oT={},lT=[];const cT=function(t){return void 0===oT[t]&&(oT[t]={attributes:[]},Ym.info("Added new entity :",t)),oT[t]},hT={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().er,addEntity:cT,addAttributes:function(t,e){let n,i=cT(t);for(n=e.length-1;n>=0;n--)i.attributes.push(e[n]),Ym.debug("Added attribute ",e[n].attributeName)},getEntities:()=>oT,addRelationship:function(t,e,n,i){let r={entityA:t,roleA:e,entityB:n,relSpec:i};lT.push(r),Ym.debug("Added new relationship :",r)},getRelationships:()=>lT,clear:function(){oT={},lT=[],av()},setAccTitle:sv,getAccTitle:ov,setAccDescription:lv,getAccDescription:cv,setDiagramTitle:hv,getDiagramTitle:uv},uT={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},dT=uT,fT=function(t,e){let n;t.append("defs").append("marker").attr("id",uT.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",uT.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",uT.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",uT.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",uT.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",uT.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=t.append("defs").append("marker").attr("id",uT.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=t.append("defs").append("marker").attr("id",uT.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},pT=/[^\dA-Za-z](\W)*/g;let gT={},yT=new Map;const mT=function(t,e,n){let i;return Object.keys(e).forEach((function(r){const a=function(t="",e=""){const n=t.replace(pT,"");return`${xT(e)}${xT(n)}${Bm()}`}(r,"entity");yT.set(r,a);const s=t.append("g").attr("id",a);i=void 0===i?a:i;const o="text-"+a,l=s.append("text").classed("er entityLabel",!0).attr("id",o).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",vx().fontFamily).style("font-size",gT.fontSize+"px").text(r),{width:c,height:h}=((t,e,n)=>{const i=gT.entityPadding/3,r=gT.entityPadding/3,a=.85*gT.fontSize,s=e.node().getBBox(),o=[];let l=!1,c=!1,h=0,u=0,d=0,f=0,p=s.height+2*i,g=1;
11n.forEach((t=>{void 0!==t.attributeKeyType&&(l=!0),void 0!==t.attributeComment&&(c=!0)})),n.forEach((n=>{const r=`${e.node().id}-attr-${g}`;let s=0;const y=Zm(n.attributeType),m=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",vx().fontFamily).style("font-size",a+"px").text(y),b=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",vx().fontFamily).style("font-size",a+"px").text(n.attributeName),_={};_.tn=m,_.nn=b;const x=m.node().getBBox(),v=b.node().getBBox();if(h=Math.max(h,x.width),u=Math.max(u,v.width),s=Math.max(x.height,v.height),l){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",vx().fontFamily).style("font-size",a+"px").text(n.attributeKeyType||"");_.kn=e;const i=e.node().getBBox();d=Math.max(d,i.width),s=Math.max(s,i.height)}if(c){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",vx().fontFamily).style("font-size",a+"px").text(n.attributeComment||"");_.cn=e;const i=e.node().getBBox();f=Math.max(f,i.width),s=Math.max(s,i.height)}_.height=s,o.push(_),p+=s+2*i,g+=1}));let y=4;l&&(y+=2),c&&(y+=2);const m=h+u+d+f,b={width:Math.max(gT.minEntityWidth,Math.max(s.width+2*gT.entityPadding,m+r*y)),height:n.length>0?p:Math.max(gT.minEntityHeight,s.height+2*gT.entityPadding)};if(n.length>0){const n=Math.max(0,(b.width-m-r*y)/(y/2));e.attr("transform","translate("+b.width/2+","+(i+s.height/2)+")");let a=s.height+2*i,p="attributeBoxOdd";o.forEach((e=>{const s=a+i+e.height/2;e.tn.attr("transform","translate("+r+","+s+")");const o=t.insert("rect","#"+e.tn.node().id).classed(`er ${p}`,!0).attr("x",0).attr("y",a).attr("width",h+2*r+n).attr("height",e.height+2*i),g=parseFloat(o.attr("x"))+parseFloat(o.attr("width"));e.nn.attr("transform","translate("+(g+r)+","+s+")");const y=t.insert("rect","#"+e.nn.node().id).classed(`er ${p}`,!0).attr("x",g).attr("y",a).attr("width",u+2*r+n).attr("height",e.height+2*i);let m=parseFloat(y.attr("x"))+parseFloat(y.attr("width"));if(l){e.kn.attr("transform","translate("+(m+r)+","+s+")");const o=t.insert("rect","#"+e.kn.node().id).classed(`er ${p}`,!0).attr("x",m).attr("y",a).attr("width",d+2*r+n).attr("height",e.height+2*i);m=parseFloat(o.attr("x"))+parseFloat(o.attr("width"))}c&&(e.cn.attr("transform","translate("+(m+r)+","+s+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${p}`,"true").attr("x",m).attr("y",a).attr("width",f+2*r+n).attr("height",e.height+2*i)),a+=e.height+2*i,p="attributeBoxOdd"===p?"attributeBoxEven":"attributeBoxOdd"}))}else b.height=Math.max(gT.minEntityHeight,p),e.attr("transform","translate("+b.width/2+","+b.height/2+")");return b})(s,l,e[r].attributes),u=s.insert("rect","#"+o).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",c).attr("height",h).node().getBBox();n.setNode(a,{width:u.width,height:u.height,shape:"rect",id:a})})),i},bT=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let _T=0;function xT(t=""){return t.length>0?`${t}-`:""}const vT={setConf:function(t){const e=Object.keys(t);for(const n of e)gT[n]=t[n]},draw:function(t,e,n,i){gT=vx().er,Ym.info("Drawing ER diagram");const r=vx().securityLevel;let a;"sandbox"===r&&(a=to("#i"+e));const s=to("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let o;fT(s,gT),o=new ip({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:gT.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const l=mT(s,i.db.getEntities(),o),c=function(t,e){return t.forEach((function(t){e.setEdge(yT.get(t.entityA),yT.get(t.entityB),{relationship:t},bT(t))})),t}(i.db.getRelationships(),o);
11Fy(o),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))}(s,o),c.forEach((function(t){!function(t,e,n,i,r){_T++;const a=n.edge(yT.get(e.entityA),yT.get(e.entityB),bT(e)),s=Ro().x((function(t){return t.x})).y((function(t){return t.y})).curve(Uo),o=t.insert("path","#"+i).classed("er relationshipLine",!0).attr("d",s(a.points)).style("stroke",gT.stroke).style("fill","none");e.relSpec.relType===r.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let l="";switch(gT.arrowMarkerAbsolute&&(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,l=l.replace(/\(/g,"\\("),l=l.replace(/\)/g,"\\)")),e.relSpec.cardA){case r.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+l+"#"+dT.ZERO_OR_ONE_END+")");break;case r.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+l+"#"+dT.ZERO_OR_MORE_END+")");break;case r.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+l+"#"+dT.ONE_OR_MORE_END+")");break;case r.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+l+"#"+dT.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case r.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+l+"#"+dT.ZERO_OR_ONE_START+")");break;case r.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+l+"#"+dT.ZERO_OR_MORE_START+")");break;case r.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+l+"#"+dT.ONE_OR_MORE_START+")");break;case r.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+l+"#"+dT.ONLY_ONE_START+")")}const c=o.node().getTotalLength(),h=o.node().getPointAtLength(.5*c),u="rel"+_T,d=t.append("text").classed("er relationshipLabel",!0).attr("id",u).attr("x",h.x).attr("y",h.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",vx().fontFamily).style("font-size",gT.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+u).classed("er relationshipLabelBox",!0).attr("x",h.x-d.width/2).attr("y",h.y-d.height/2).attr("width",d.width).attr("height",d.height)}(s,t,o,l,i)}));const h=gT.diagramPadding;ux.insertTitle(s,"entityTitleText",gT.titleTopMargin,i.db.getDiagramTitle());const u=s.node().getBBox(),d=u.width+2*h,f=u.height+2*h;Ax(s,f,d,gT.useMaxWidth),s.attr("viewBox",`${u.x-h} ${u.y-h} ${d} ${f}`)}};var kT=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,9],i=[1,7],r=[1,6],a=[1,8],s=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],o=[2,10],l=[1,20],c=[1,21],h=[1,22],u=[1,23],d=[1,30],f=[1,32],p=[1,33],g=[1,34],y=[1,62],m=[1,48],b=[1,52],_=[1,36],x=[1,37],v=[1,38],k=[1,39],w=[1,40],T=[1,56],C=[1,63],E=[1,51],S=[1,53],A=[1,55],D=[1,59],L=[1,60],N=[1,41],O=[1,42],M=[1,43],B=[1,44],I=[1,61],F=[1,50],R=[1,54],$=[1,57],P=[1,58],Y=[1,49],j=[1,66],z=[1,71],U=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],W=[1,75],H=[1,74],q=[1,76],V=[20,21,23,81,82],G=[1,99],X=[1,104],Z=[1,107],Q=[1,108],K=[1,101],J=[1,106],tt=[1,109],et=[1,102],nt=[1,114],it=[1,113],rt=[1,103],at=[1,105],st=[1,110],ot=[1,111],lt=[1,112],ct=[1,115],ht=[20,21,22,23,81,82],ut=[20,21,22,23,53,81,82],dt=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],ft=[20,21,23],pt=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],gt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],yt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],mt=[1,149],bt=[1,157],_t=[1,158],xt=[1,159],vt=[1,160],kt=[1,144],wt=[1,145],Tt=[1,141],Ct=[1,152],Et=[1,153],St=[1,154],At=[1,155],Dt=[1,156],Lt=[1,161],Nt=[1,162],Ot=[1,147],Mt=[1,150],Bt=[1,146],It=[1,143],Ft=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Rt=[1,165],$t=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Pt=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Yt=[12,21,22,24],jt=[22,106],zt=[1,250],Ut=[1,245],Wt=[1,246],Ht=[1,254],qt=[1,251],Vt=[1,248],Gt=[1,247],Xt=[1,249],Zt=[1,252],Qt=[1,253],Kt=[1,255],Jt=[1,273],te=[20,21,23,106],ee=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alph
11aNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 5:i.parseDirective("%%{","open_directive");break;case 6:i.parseDirective(a[o],"type_directive");break;case 7:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 8:i.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:(!Array.isArray(a[o])||a[o].length>0)&&a[o-1].push(a[o]),this.$=a[o-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=a[o];break;case 19:i.setDirection("TB"),this.$="TB";break;case 20:i.setDirection(a[o-1]),this.$=a[o-1];break;case 35:this.$=a[o-1].nodes;break;case 41:this.$=i.addSubGraph(a[o-6],a[o-1],a[o-4]);break;case 42:this.$=i.addSubGraph(a[o-3],a[o-1],a[o-3]);break;case 43:this.$=i.addSubGraph(void 0,a[o-1],void 0);break;case 45:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 46:case 47:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 51:i.addLink(a[o-2].stmt,a[o],a[o-1]),this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 52:i.addLink(a[o-3].stmt,a[o-1],a[o-2]),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 53:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 54:this.$={stmt:a[o],nodes:a[o]};break;case 55:case 123:case 125:this.$=[a[o]];break;case 56:this.$=a[o-4].concat(a[o]);break;case 57:this.$=[a[o-2]],i.setClass(a[o-2],a[o]);break;case 58:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"square");break;case 59:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"doublecircle");break;case 60:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"circle");break;case 61:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"ellipse");break;case 62:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"stadium");break;
vendor: 4,126 bytes, line 11
11case 63:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"subroutine");break;case 64:this.$=a[o-7],i.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]]));break;case 65:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"cylinder");break;case 66:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"round");break;case 67:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"diamond");break;case 68:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"hexagon");break;case 69:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"odd");break;case 70:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"trapezoid");break;case 71:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"inv_trapezoid");break;case 72:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_right");break;case 73:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_left");break;case 74:this.$=a[o],i.addVertex(a[o]);break;case 75:a[o-1].text=a[o],this.$=a[o-1];break;case 76:case 77:a[o-2].text=a[o-1],this.$=a[o-2];break;case 79:var l=i.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1]};break;case 80:l=i.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 81:this.$=a[o-1];break;case 83:case 97:case 153:case 151:this.$=a[o-1]+""+a[o];break;case 98:case 99:this.$=a[o-4],i.addClass(a[o-2],a[o]);break;case 100:this.$=a[o-4],i.setClass(a[o-2],a[o]);break;case 101:case 109:this.$=a[o-1],i.setClickEvent(a[o-1],a[o]);break;case 102:case 110:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 103:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 104:this.$=a[o-4],i.setClickEvent(a[o-4],a[o-3],a[o-2]),i.setTooltip(a[o-4],a[o]);break;case 105:case 111:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 106:case 112:this.$=a[o-3],i.setLink(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 107:case 113:this.$=a[o-3],i.setLink(a[o-3],a[o-2],a[o]);break;case 108:case 114:this.$=a[o-5],i.setLink(a[o-5],a[o-4],a[o]),i.setTooltip(a[o-5],a[o-2]);break;case 115:this.$=a[o-4],i.addVertex(a[o-2],void 0,void 0,a[o]);break;case 116:case 118:this.$=a[o-4],i.updateLink(a[o-2],a[o]);break;case 117:this.$=a[o-4],i.updateLink([a[o-2]],a[o]);break;case 119:this.$=a[o-8],i.updateLinkInterpolate([a[o-6]],a[o-2]),i.updateLink([a[o-6]],a[o]);break;case 120:this.$=a[o-8],i.updateLinkInterpolate(a[o-6],a[o-2]),i.updateLink(a[o-6],a[o]);break;case 121:this.$=a[o-6],i.updateLinkInterpolate([a[o-4]],a[o]);break;case 122:this.$=a[o-6],i.updateLinkInterpolate(a[o-4],a[o]);break;case 124:case 126:a[o-2].push(a[o]),this.$=a[o-2];break;case 128:this.$=a[o-1]+a[o];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:n,16:4,21:i,22:r,24:a},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:n,16:4,21:i,22:r,24:a},e(s,o,{17:11}),{7:12,13:[1,13]},{16:14,21:i,22:r,24:a},{16:15,21:i,22:r,24:a},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:l,21:c,22:h,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,43:31,44:f,46:p,48:g,50:35,51:45,52:y,54:46,66:m,67:b,86:_,87:x,88:v,89:k,90:w,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,118:N,119:O,120:M,121:B,122:I,123:F,124:R,125:$,126:P,127:Y},{8:64,10:[1,65],15:j},e([10,15],[2,6]),e(s,[2,17]),e(s,[2,18]),e(s,[2,19]),{20:[1,68],21:[1,69],22:z,27:67,30:70},e(U,[2,11]),e(U,[2,12]),e(U,[2,13]),e(U,[2,14]),e(U,[2,15]),e(U,[2,16]),{9:72,20:W,21:H,23:q,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:W,21:H,23:q},{9:81,20:W,21:H,23:q},{9:82,20:W,21:H,23:q},{9:83,20:W,21:H,23:q},{9:84,20:W,21:H,23:q},{9:86,20:W,21:H,22:[1,85],23:q},e(U,[2,44]),{45:[1,87]},{47:[1,88]},e(U,[2,47]),e(V,[2,54],{30:89,22:z}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:G,52:X,66:Z,67:Q,84:[1,97],91:K,97:96,98:[1,94],100:[1,95],105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(U,[2,158]),e(U,[2,159]),e(U,[2,160]),e(U,[2,161]),e(ht,[2,55],{53:[1,116]}),e(ut,[2,74],{116:129,40:[1,117],52:y,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[
vendor: 13,129 bytes, line 11
111,122],65:[1,123],66:m,67:b,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:T,95:C,105:E,106:S,109:A,111:D,112:L,122:I,123:F,124:R,125:$,126:P,127:Y}),e(dt,[2,150]),e(dt,[2,175]),e(dt,[2,176]),e(dt,[2,177]),e(dt,[2,178]),e(dt,[2,179]),e(dt,[2,180]),e(dt,[2,181]),e(dt,[2,182]),e(dt,[2,183]),e(dt,[2,184]),e(dt,[2,185]),e(dt,[2,186]),e(dt,[2,187]),e(dt,[2,188]),e(dt,[2,189]),e(dt,[2,190]),{9:130,20:W,21:H,23:q},{11:131,14:[1,132]},e(ft,[2,8]),e(s,[2,20]),e(s,[2,26]),e(s,[2,27]),{21:[1,133]},e(pt,[2,34],{30:134,22:z}),e(U,[2,35]),{50:135,51:45,52:y,54:46,66:m,67:b,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,122:I,123:F,124:R,125:$,126:P,127:Y},e(gt,[2,48]),e(gt,[2,49]),e(gt,[2,50]),e(yt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:mt,24:bt,26:_t,38:xt,39:139,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),e(U,[2,36]),e(U,[2,37]),e(U,[2,38]),e(U,[2,39]),e(U,[2,40]),{22:mt,24:bt,26:_t,38:xt,39:163,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(Ft,o,{17:164}),e(U,[2,45]),e(U,[2,46]),e(V,[2,53],{52:Rt}),{26:G,52:X,66:Z,67:Q,91:K,97:166,102:[1,167],105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{95:[1,168],103:169,105:[1,170]},{26:G,52:X,66:Z,67:Q,91:K,95:[1,171],97:172,105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{26:G,52:X,66:Z,67:Q,91:K,97:173,105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ft,[2,101],{22:[1,174],99:[1,175]}),e(ft,[2,105],{22:[1,176]}),e(ft,[2,109],{115:100,117:178,22:[1,177],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,122:rt,123:at,124:st,125:ot,126:lt,127:ct}),e(ft,[2,111],{22:[1,179]}),e($t,[2,152]),e($t,[2,154]),e($t,[2,155]),e($t,[2,156]),e($t,[2,157]),e(Pt,[2,162]),e(Pt,[2,163]),e(Pt,[2,164]),e(Pt,[2,165]),e(Pt,[2,166]),e(Pt,[2,167]),e(Pt,[2,168]),e(Pt,[2,169]),e(Pt,[2,170]),e(Pt,[2,171]),e(Pt,[2,172]),e(Pt,[2,173]),e(Pt,[2,174]),{52:y,54:180,66:m,67:b,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,122:I,123:F,124:R,125:$,126:P,127:Y},{22:mt,24:bt,26:_t,38:xt,39:181,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:182,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:184,42:vt,52:X,57:[1,183],66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:185,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:186,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:187,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{66:[1,188]},{22:mt,24:bt,26:_t,38:xt,39:189,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:190,42:vt,52:X,66:Z,67:Q,71:[1,191],73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:192,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:193,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:194,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(dt,[2,151]),e(Yt,[2,3]),{8:195,15:j},{15:[2,7]},e(s,[2,28]),e(pt,[2,33]),e(V,[2,51],{30:196,22:z}),e(yt,[2,75],{22:[1,197]}),{22:[1,198]},{22:mt,24:bt,26:_t,38:xt,39:199,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,82:[1,200],83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(Pt,[2,82]),e(Pt,[2,84]),e(Pt,[2,140]),e(Pt,[2,141]),e(Pt,[2,142]),e(Pt,[2,143]),e(Pt,[2,144]),e(Pt,[2,145]),e(Pt,[2,146]),e(Pt,[2,147]),e(Pt,[2,148]),e(Pt,[2,149]),e(Pt,[2,85]),e(Pt,[2,86]),e(Pt,[2,87]),e(Pt,[2,88]),e(Pt,[2,89]),e(Pt,[2,90]),e(Pt,[2,91]),e(Pt,[2,92]),e(Pt,[2,93]),e(Pt,[2,94]),e(Pt,[2,95]),{9:203,20:W,21:H,22:mt,23:q,24:bt,26:_t,38:xt,40:[1,202],42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{18:18,19:19,20:l,21:c,22:h,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,204],43:31,44:f,46:p,48:g,50:35,51:45,52:y,54:46,66:m,67:b,86:_,87:x,88:v,89:k,90:w,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,118:N,119:O,120:M,121:B,122:I,123:F,124:R,125:$,126:P,127:Y},{22:z,30:205},{22:[1,206],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,115:100,117:178,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},e(jt,[2,123]),{22:[1,211]},{22:[1,212],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,115:100,117:178,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:[1,213],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,115:100,117:178,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{84:[1,214]},e(ft,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},e($t,[2,153]),{84:[1,219],101:[1,220]},e(ht,[2,57],{116:129,52:y,66:m,67:b,91:T,95:C,105:E,106:S,109:A,111:D,112:L,122:I,123:F,124:R,125:$,126:P,127:Y}),{22:mt,24:bt,26:_t,38:xt,41:[1,221],42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,56:[1,222],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:223,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,58:[1,224],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,60:[1,225],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,62:[1,226],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,64:[1,227],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{67:[1,228]},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,70:[1,229],73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,72:[1,230],73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,39:231,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,41:[1,232],42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,73:kt,75:[1,233],77:[1,234],81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,73:kt,75:[1,236],77:[1,235],81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{9:237,20:W,21:H,23:q},e(V,[2,52],{52:Rt}),e(yt,[2,77]),e(yt,[2,76]),{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,68:[1,238],73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(yt,[2,79]),e(Pt,[2,83]),{22:mt,24:bt,26:_t,38:xt,39:239,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(Ft,o,{17:240}),e(U,[2,43]),{51:241,52:y,54:46,66:m,67:b,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,122:I,123:F,124:R,125:$,126:P,127:Y},{22:zt,66:Ut,67:Wt,86:Ht,96:242,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{22:zt,66:Ut,67:Wt,86:Ht,96:256,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{22:zt,66:Ut,67:Wt,86:Ht,96:257,102:qt,104:[1,258],105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{22:zt,66:Ut,67:Wt,86:Ht,96:259,102:qt,104:[1,260],105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{105:[1,261]},{22:zt,66:Ut,67:Wt,86:Ht,96:262,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{22:zt,66:Ut,67:Wt,86:Ht,96:263,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{26:G,52:X,66:Z,67:Q,91:K,97:264,105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ft,[2,102]),{84:[1,265]},e(ft,[2,106],{22:[1,266]}),e(ft,[2,107]),e(ft,[2,110]),e(ft,[2,112],{22:[1,267]}),e(ft,[2,113]),e(ut,[2,58]),e(ut,[2,59]),{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,58:[1,268],66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ut,[2,66]),e(ut,[2,61]),e(ut,[2,62]),e(ut,[2,63]),{66:[1,269]},e(ut,[2,65]),e(ut,[2,67]),{22:mt,24:bt,26:_t,38:xt,42:vt,52:X,66:Z,67:Q,72:[1,270],73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ut,[2,69]),e(ut,[2,70]),e(ut,[2,72]),e(ut,[2,71]),e(ut,[2,73]),e(Yt,[2,4]),e([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:mt,24:bt,26:_t,38:xt,41:[1,271],42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{18:18,19:19,20:l,21:c,22:h,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,272],43:31,44:f,46:p,48:g,50:35,51:45,52:y,54:46,66:m,67:b,86:_,87:x,88:v,89:k,90:w,9
111:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,118:N,119:O,120:M,121:B,122:I,123:F,124:R,125:$,126:P,127:Y},e(ht,[2,56]),e(ft,[2,115],{106:Jt}),e(te,[2,125],{108:274,22:zt,66:Ut,67:Wt,86:Ht,102:qt,105:Vt,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt}),e(ee,[2,127]),e(ee,[2,129]),e(ee,[2,130]),e(ee,[2,131]),e(ee,[2,132]),e(ee,[2,133]),e(ee,[2,134]),e(ee,[2,135]),e(ee,[2,136]),e(ee,[2,137]),e(ee,[2,138]),e(ee,[2,139]),e(ft,[2,116],{106:Jt}),e(ft,[2,117],{106:Jt}),{22:[1,275]},e(ft,[2,118],{106:Jt}),{22:[1,276]},e(jt,[2,124]),e(ft,[2,98],{106:Jt}),e(ft,[2,99],{106:Jt}),e(ft,[2,100],{115:100,117:178,26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,122:rt,123:at,124:st,125:ot,126:lt,127:ct}),e(ft,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:W,21:H,23:q},e(U,[2,42]),{22:zt,66:Ut,67:Wt,86:Ht,102:qt,105:Vt,107:283,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},e(ee,[2,128]),{26:G,52:X,66:Z,67:Q,91:K,97:284,105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{26:G,52:X,66:Z,67:Q,91:K,97:285,105:J,106:tt,109:et,111:nt,112:it,115:100,117:98,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ft,[2,108]),e(ft,[2,114]),e(ut,[2,60]),{22:mt,24:bt,26:_t,38:xt,39:286,42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:140,84:Tt,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},e(ut,[2,68]),e(Ft,o,{17:287}),e(te,[2,126],{108:274,22:zt,66:Ut,67:Wt,86:Ht,102:qt,105:Vt,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt}),e(ft,[2,121],{115:100,117:178,22:[1,288],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,122:rt,123:at,124:st,125:ot,126:lt,127:ct}),e(ft,[2,122],{115:100,117:178,22:[1,289],26:G,52:X,66:Z,67:Q,91:K,105:J,106:tt,109:et,111:nt,112:it,122:rt,123:at,124:st,125:ot,126:lt,127:ct}),{22:mt,24:bt,26:_t,38:xt,41:[1,290],42:vt,52:X,66:Z,67:Q,73:kt,81:wt,83:201,85:151,86:Ct,87:Et,88:St,89:At,90:Dt,91:Lt,92:Nt,94:142,95:Ot,105:J,106:tt,109:Mt,111:nt,112:it,113:Bt,114:It,115:148,122:rt,123:at,124:st,125:ot,126:lt,127:ct},{18:18,19:19,20:l,21:c,22:h,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,291],43:31,44:f,46:p,48:g,50:35,51:45,52:y,54:46,66:m,67:b,86:_,87:x,88:v,89:k,90:w,91:T,95:C,105:E,106:S,109:A,111:D,112:L,116:47,118:N,119:O,120:M,121:B,122:I,123:F,124:R,125:$,126:P,127:Y},{22:zt,66:Ut,67:Wt,86:Ht,96:292,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},{22:zt,66:Ut,67:Wt,86:Ht,96:293,102:qt,105:Vt,107:243,108:244,109:Gt,110:Xt,111:Zt,112:Qt,113:Kt},e(ut,[2,64]),e(U,[2,41]),e(ft,[2,119],{106:Jt}),e(ft,[2,120],{106:Jt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},ie=(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}
vendor: 4,686 bytes, line 11
11,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;
11case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return t.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;
11case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)
11/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
11D3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}},t);function re(){this.yy={}}return ne.lexer=ie,re.prototype=ne,ne.Parser=re,new re}();kT.parser=kT;const wT=kT,TT=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*graph/)},CT=(t,e)=>{var n;return"dagre-wrapper"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*graph/)||null!==t.match(/^\s*flowchart/)};let ET,ST,AT=0,DT=vx(),LT={},NT=[],OT={},MT=[],BT={},IT={},FT=0,RT=!0,$T=[];const PT=t=>Qm.sanitizeText(t,DT),YT=function(t){const e=Object.keys(LT);for(const n of e)if(LT[n].id===t)return LT[n].domId;return t},jT=function(t,e,n,i){const r={start:t,end:e,type:void 0,text:""};void 0!==(i=n.text)&&(r.text=PT(i.trim()),'"'===r.text[0]&&'"'===r.text[r.text.length-1]&&(r.text=r.text.substring(1,r.text.length-1))),void 0!==n&&(r.type=n.type,r.stroke=n.stroke,r.length=n.length),NT.push(r)},zT=function(t,e){t.split(",").forEach((function(t){let n=t;void 0!==LT[n]&&LT[n].classes.push(e),void 0!==BT[n]&&BT[n].classes.push(e)}))},UT=function(t){let e=to(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=to("body").append("div").attr("class","mermaidTooltip").style("opacity",0));to(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=to(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);to(this).classed("hover",!1)}))};$T.push(UT);const WT=function(t){for(const[e,n]of MT.entries())if(n.id===t)return e;return-1};let HT=-1;const qT=[],VT=function(t,e){const n=MT[e].nodes;if(HT+=1,HT>2e3)return;if(qT[HT]=e,MT[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i<n.length;){const e=WT(n[i]);if(e>=0){const n=VT(t,e);if(n.result)return{result:!0,count:r+n.count};r+=n.count}i+=1}return{result:!1,count:r}},GT=(t,e)=>{let n=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(n=!0)})),n},XT=(t,e)=>{const n=[];return t.nodes.forEach(((i,r)=>{GT(e,i)||n.push(t.nodes[r])})),{nodes:n}},ZT={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},defaultConfig:()=>fx.flowchart,setAccTitle:sv,getAccTitle:ov,getAccDescription:cv,setAccDescription:lv,addVertex:function(t,e,n,i,r,a,s={}){let o,l=t;void 0!==l&&0!==l.trim().length&&(void 0===LT[l]&&(LT[l]={id:l,domId:"flowchart-"+l+"-"+AT,styles:[],classes:[]}),AT++,void 0!==e?(DT=vx(),o=PT(e.trim()),'"'===o[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),LT[l].text=o):void 0===LT[l].text&&(LT[l].text=t),void 0!==n&&(LT[l].type=n),null!=i&&i.forEach((function(t){LT[l].styles.push(t)})),null!=r&&r.forEach((function(t){LT[l].classes.push(t)})),void 0!==a&&(LT[l].dir=a),void 0===LT[l].props?LT[l].props=s:void 0!==s&&Object.assign(LT[l].props,s))},lookUpDomId:YT,addLink:function(t,e,n,i){let r,a;for(r=0;r<t.length;r++)for(a=0;a<e.length;a++)jT(t[r],e[a],n,i)},updateLinkInterpolate:function(t,e){t.forEach((function(t){"default"===t?NT.defaultInterpolate=e:NT[t].interpolate=e}))},updateLink:function(t,e){t.forEach((function(t){"default"===t?NT.defaultStyle=e:(-1===ux.isSubstringInArray("fill",e)&&e.push("fill:none"),NT[t].style=e)}))},addClass:function(t,e){void 0===OT[t]&&(OT[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){const n=e.replace("fill","bgFill").replace("color","fill");OT[t].textStyles.push(n)}OT[t].styles.push(e)}))},setDirection:function(t){ET=t,ET.match(/.*</)&&(ET="RL"),ET.match(/.*\^/)&&(ET="BT"),ET.match(/.*>/)&&(ET="LR"),ET.match(/.*v/)&&(ET="TB")},setClass:zT,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(IT["gen-1"===ST?YT(t):t]=PT(e))}))},getTooltip:function(t){return IT[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){let i=YT(t);if("loose"!==vx().securityLevel)return;if(void 0===e)return;let r=[];
11if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==LT[t]&&(LT[t].haveCallback=!0,$T.push((function(){const t=document.querySelector(`[id="${i}"]`);null!==t&&t.addEventListener("click",(function(){ux.runFunc(e,...r)}),!1)})))}(t,e,n)})),zT(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){void 0!==LT[t]&&(LT[t].link=ux.formatUrl(e,DT),LT[t].linkTarget=n)})),zT(t,"clickable")},bindFunctions:function(t){$T.forEach((function(e){e(t)}))},getDirection:function(){return ET.trim()},getVertices:function(){return LT},getEdges:function(){return NT},getClasses:function(){return OT},clear:function(t="gen-1"){LT={},OT={},NT=[],$T=[UT],MT=[],BT={},FT=0,IT=[],RT=!0,ST=t,av()},setGen:t=>{ST=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){let i=t.trim(),r=n;t===n&&n.match(/\s/)&&(i=void 0);let a=[];const{nodeList:s,dir:o}=function(t){const e={boolean:{},number:{},string:{}},n=[];let i;return{nodeList:t.filter((function(t){const r=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!n.includes(t)&&n.push(t))})),dir:i}}(a.concat.apply(a,e));if(a=s,"gen-1"===ST)for(let c=0;c<a.length;c++)a[c]=YT(a[c]);i=i||"subGraph"+FT,r=r||"",r=PT(r),FT+=1;const l={id:i,nodes:a,title:r.trim(),classes:[],dir:o};return Ym.info("Adding",l.id,l.nodes,l.dir),l.nodes=XT(l,MT).nodes,MT.push(l),BT[i]=l,i},getDepthFirstPos:function(t){return qT[t]},indexNodes:function(){HT=-1,MT.length>0&&VT("none",MT.length-1)},getSubGraphs:function(){return MT},destructLink:(t,e)=>{const n=(t=>{const e=t.trim();let n=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross","x"===e[0]&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point","<"===e[0]&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle","o"===e[0]&&(i="double_"+i,n=n.slice(1))}let r="normal",a=n.length-1;"="===n[0]&&(r="thick");let s=((t,e)=>{const n=e.length;let i=0;for(let r=0;r<n;++r)e[r]===t&&++i;return i})(".",n);return s&&(r="dotted",a=s),{type:i,stroke:r,length:a}})(t);let i;if(e){if(i=(t=>{let e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:n,stroke:i}})(e),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=n.length,i}return n},lex:{firstGraph:()=>!!RT&&(RT=!1,!0)},exists:GT,makeUniq:XT,setDiagramTitle:hv,getDiagramTitle:uv};const QT={},KT=function(t){const e=Object.keys(t);for(const n of e)QT[n]=t[n]},JT={},tC=function(t,e,n,i,r,a){const s=i.select(`[id="${n}"]`);Object.keys(t).forEach((function(n){const i=t[n];let o="default";i.classes.length>0&&(o=i.classes.join(" "));const l=Q_(i.styles);let c,h=void 0!==i.text?i.text:i.id;if(Xm(vx().flowchart.htmlLabels)){const t={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};c=Fm(s,t).node(),c.parentNode.removeChild(c)}else{const t=r.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",l.labelStyle.replace("color:","fill:"));const e=h.split(Qm.lineBreakRegex);for(const n of e){const e=r.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}c=t}let u=0,d="";switch(i.type){case"round":u=5,d="rect";break;case"square":case"group":default:d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"odd":case"odd_right":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;
11case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"doublecircle":d="doublecircle"}e.setNode(i.id,{labelStyle:l.labelStyle,shape:d,labelText:h,rx:u,ry:u,class:o,style:l.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:a.db.getTooltip(i.id)||"",domId:a.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:vx().flowchart.padding}),Ym.info("setNode",{labelStyle:l.labelStyle,shape:d,labelText:h,rx:u,ry:u,class:o,style:l.style,id:i.id,domId:a.db.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:vx().flowchart.padding})}))},eC=function(t,e,n){Ym.info("abc78 edges = ",t);let i,r,a=0,s={};if(void 0!==t.defaultStyle){const e=Q_(t.defaultStyle);i=e.style,r=e.labelStyle}t.forEach((function(n){a++;var o="L-"+n.start+"-"+n.end;void 0===s[o]?(s[o]=0,Ym.info("abc78 new entry",o,s[o])):(s[o]++,Ym.info("abc78 new entry",o,s[o]));let l=o+"-"+s[o];Ym.info("abc78 new link id to be used is",o,l,s[o]);var c="LS-"+n.start,h="LE-"+n.end;const u={style:"",labelStyle:""};switch(u.minlen=n.length||1,"arrow_open"===n.type?u.arrowhead="none":u.arrowhead="normal",u.arrowTypeStart="arrow_open",u.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":u.arrowTypeStart="arrow_cross";case"arrow_cross":u.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":u.arrowTypeStart="arrow_point";case"arrow_point":u.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":u.arrowTypeStart="arrow_circle";case"arrow_circle":u.arrowTypeEnd="arrow_circle"}let d="",f="";switch(n.stroke){case"normal":d="fill:none;",void 0!==i&&(d=i),void 0!==r&&(f=r),u.thickness="normal",u.pattern="solid";break;case"dotted":u.thickness="normal",u.pattern="dotted",u.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":u.thickness="thick",u.pattern="solid",u.style="stroke-width: 3.5px;fill:none;"}if(void 0!==n.style){const t=Q_(n.style);d=t.style,f=t.labelStyle}u.style=u.style+=d,u.labelStyle=u.labelStyle+=f,void 0!==n.interpolate?u.curve=X_(n.interpolate,Bo):void 0!==t.defaultInterpolate?u.curve=X_(t.defaultInterpolate,Bo):u.curve=X_(JT.curve,Bo),void 0===n.text?void 0!==n.style&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c"),u.labelType="text",u.label=n.text.replace(Qm.lineBreakRegex,"\n"),void 0===n.style&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),u.labelStyle=u.labelStyle.replace("color:","fill:"),u.id=l,u.classes="flowchart-link "+c+" "+h,e.setEdge(n.start,n.end,u,a)}))},nC={setConf:function(t){const e=Object.keys(t);for(const n of e)JT[n]=t[n]},addVertices:tC,addEdges:eC,getClasses:function(t,e){Ym.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(n){return}},draw:function(t,e,n,i){Ym.info("Drawing flowchart"),i.db.clear(),ZT.setGen("gen-2"),i.parser.parse(t);let r=i.db.getDirection();void 0===r&&(r="TD");const{securityLevel:a,flowchart:s}=vx(),o=s.nodeSpacing||50,l=s.rankSpacing||50;let c;"sandbox"===a&&(c=to("#i"+e));const h=to("sandbox"===a?c.nodes()[0].contentDocument.body:"body"),u="sandbox"===a?c.nodes()[0].contentDocument:document,d=new ip({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:o,ranksep:l,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let f;const p=i.db.getSubGraphs();Ym.info("Subgraphs - ",p);for(let x=p.length-1;x>=0;x--)f=p[x],Ym.info("Subgraph - ",f),i.db.addVertex(f.id,f.title,"group",void 0,f.classes,f.dir);const g=i.db.getVertices(),y=i.db.getEdges();Ym.info(y);let m=0;for(m=p.length-1;m>=0;m--){f=p[m],eo("cluster").append("text");for(let t=0;t<f.nodes.length;t++)Ym.info("Setting up subgraphs",f.nodes[t],f.id),d.setParent(f.nodes[t],f.id)}tC(g,d,e,h,u,i),eC(y,d);const b=h.select(`[id="${e}"]`),_=h.select("#"+e+" g");if(Jw(_,d,["point","circle","cross"],"flowchart",e),ux.insertTitle(b,"flowchartTitleText",s.titleTopMargin,i.db.getDiagramTitle()),Dx(d,b,s.diagramPadding,s.useMaxWidth),i.db.indexNodes("subGraph"+m),!s.htmlLabels){const t=u.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of t){const t=e.getBBox(),n=u.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",t.width),n.setAttribute("height",t.height),e.insertBefore(n,e.firstChild)}}Object.keys(g).forEach((function(t){const n=g[t];if(n.link){const i=to("#"+e+' [id="'+t+'"]');
11if(i){const t=u.createElementNS("http://www.w3.org/2000/svg","a");t.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),t.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),t.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===a?t.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&t.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const e=i.insert((function(){return t}),":first-child"),r=i.select(".label-container");r&&e.append((function(){return r.node()}));const s=i.select(".label");s&&e.append((function(){return s.node()}))}}}))}};var iC=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,3],i=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],a=[1,15],s=[1,16],o=[1,17],l=[1,18],c=[1,19],h=[1,20],u=[1,21],d=[1,22],f=[1,23],p=[1,24],g=[1,25],y=[1,26],m=[1,27],b=[1,29],_=[1,31],x=[1,34],v=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],k={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 2:return a[o-1];case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;case 5:case 6:this.$=a[o];break;case 9:i.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 10:i.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 11:i.TopAxis(),this.$=a[o].substr(8);break;case 12:i.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 13:i.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 14:i.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 15:i.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 16:i.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 17:i.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 18:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 19:case 20:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 21:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 23:i.addTask(a[o-1],a[o]),this.$="task";break;case 27:this.$=a[o-1],i.setClickEvent(a[o-1],a[o],null);break;case 28:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 29:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],null),i.setLink(a[o-2],a[o]);break;case 30:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2],a[o-1]),i.setLink(a[o-3],a[o]);break;case 31:this.$=a[o-2],i.setClickEvent(a[o-2],a[o],null),i.setLink(a[o-2],a[o-1]);break;case 32:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-1],a[o]),i.setLink(a[o-3],a[o-2]);break;case 33:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 34:case 40:this.$=a[o-1]+" "+a[o];break;case 35:case 36:case 38:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 37:case 39:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o];break;case 41:i.parseDirective("%%{","open_directive");break;case 42:i.parseDirective(a[o],"type_directive");break;case 43:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 44:i.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:n,30:4,40:i},{1:[3]},{3:6,4:2,5:n,30:4,40:i},e(r,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:a,13:s,14:o,15:l,16:c,17:h,18:u,19:d,20:f,21:p,23:g,25:y,26:m,27:28,28:b,30:4,35:_,40:i},{32:32,33:[1,33],43:x},e([33,43],[2,42]),e(r,[2,8],{1:[2,2]}
11),e(r,[2,4]),{4:30,10:35,12:a,13:s,14:o,15:l,16:c,17:h,18:u,19:d,20:f,21:p,23:g,25:y,26:m,27:28,28:b,30:4,35:_,40:i},e(r,[2,6]),e(r,[2,7]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),e(r,[2,17]),{22:[1,36]},{24:[1,37]},e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),{29:[1,38]},e(r,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},e(r,[2,5]),e(r,[2,18]),e(r,[2,19]),e(r,[2,23]),e(r,[2,27],{37:[1,44],38:[1,45]}),e(r,[2,33],{36:[1,46]}),e(v,[2,25]),{32:47,43:x},{43:[2,43]},e(r,[2,28],{38:[1,48]}),e(r,[2,29]),e(r,[2,31],{37:[1,49]}),{11:[1,50]},e(r,[2,30]),e(r,[2,32]),e(v,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},w=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 38;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 27:return 37;case 28:this.begin("click");break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}},t);function T(){this.yy={}}return k.lexer=w,T.prototype=k,k.Parser=T,new T}();iC.parser=iC;const rC=iC,aC=t=>null!==t.match(/^\s*gantt/);let sC,oC="",lC="",cC="",hC=[],uC=[],dC={},fC=[],pC=[],gC="";const yC=["active","done","crit","milestone"];let mC=[],bC=!1,_C=!1,xC=0;const vC=function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends"))||(!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim()))))},kC=function(t,e,n,i){if(!n.length||t.manualEndTime)return;let r=D(t.startTime,e,!0);r.add(1,"d");let a=D(t.endTime,e,!0),s=wC(r,a,e,n,i);t.endTime=a.toDate(),t.renderEndTime=s},wC=function(t,e,n,i,r){let a=!1,s=null;for(;t<=e;)a||(s=e.toDate()),a=vC(t,n,i,r),a&&e.add(1,"d"),t.add(1,"d");return s},TC=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==i){let t=null;if(i[1].split(" ").forEach((function(e){let n=MC(e);void 0!==n&&(t?n.endTime>t.endTime&&(t=n):t=n)})),t)return t.endTime;{const t=new Date;return t.setHours(0,0,0,0),t}}let r=D(n,e.trim(),!0);if(r.isValid())return r.toDate();{Ym.debug("Invalid date:"+n),Ym.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime()))throw new Error("Invalid date:"+n);return t}},CC=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?D.duration(Number.parseFloat(e[1]),e[2]):D.duration.invalid()},EC=function(t,e,n,i=!1){n=n.trim();let r=D(n,e.trim(),!0);if(r.isValid())return i&&r.add(1,"d"),r.toDate();const a=D(t),s=CC(n);return s.isValid()&&a.add(s),a.toDate()};let SC=0;const AC=function(t){return void 0===t?(SC+=1,"task"+SC):t};let DC,LC,NC=[];const OC={},MC=function(t){const e=OC[t];return NC[e]},BC=function(){const t=function(t){const e=NC[t];let n="";switch(NC[t].raw.startTime.type){case"prevTaskEnd":{const t=MC(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=TC(0,oC,NC[t].raw.startTime.startData),n&&(NC[t].startTime=n)}return NC[t].startTime&&(NC[t].endTime=EC(NC[t].startTime,oC,NC[t].raw.endTime.data,bC),NC[t].endTime&&(NC[t].processed=!0,NC[t].manualEndTime=D(NC[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),kC(NC[t],oC,uC,hC))),NC[t].processed};let e=!0;for(const[n,i]of NC.entries())t(n),e=e&&i.processed;return e},IC=function(t,e){t.split(",").forEach((function(t){let n=MC(t);void 0!==n&&n.classes.push(e)}))},FC=function(t,e){mC.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))},RC={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().gantt,clear:function(){fC=[],pC=[],gC="",mC=[],SC=0,DC=void 0,LC=void 0,NC=[],oC="",lC="",sC=void 0,cC="",hC=[],uC=[],bC=!1,_C=!1,xC=0,dC={},av()},setDateFormat:function(t){oC=t},getDateFormat:function(){return oC},enableInclusiveEndDates:function(){bC=!0},endDatesAreInclusive:function(){return bC},enableTopAxis:function(){_C=!0},topAxisEnabled:function(){return _C},setAxisFormat:function(t){lC=t},getAxisFormat:function(){return lC},setTickInterval:function(t){sC=t},getTickInterval:function(){return sC},setTodayMarker:function(t){cC=t},getTodayMarker:function(){return cC},setAccTitle:sv,getAccTitle:ov,setDiagramTitle:hv,getDiagramTitle:uv,setAccDescription:lv,getAccDescription:cv,addSection:function(t){gC=t,fC.push(t)},getSections:function(){return fC},getTasks:function(){let t=BC();let e=0;for(;!t&&e<10;)t=BC(),e++;return pC=NC,pC},addTask:function(t,e){const n={section:gC,type:gC,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};$C(i,r,yC);for(let a=0;a<i.length;a++)i[a]=i[a].trim();switch(i.length){case 1:r.id=AC(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:i[0]};break;case 2:r.id=AC(),r.startTime={type:"getStartDate",startData:i[0]},r.endTime={data:i[1]};break;case 3:r.id=AC(i[0]),r.startTime={type:"getStartDate",startData:i[1]},r.endTime={data:i[2]}}return r}(LC,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=LC,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=xC,xC++;const r=NC.push(n);LC=n.id,OC[n.id]=r-1},findTaskById:MC,addTaskOrg:function(t,e){const n={section:gC,type:gC,description:t,task:t,classes:[]},i=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};$C(i,r,yC);for(let s=0;s<i.length;s++)i[s]=i[s].trim();let a="";switch(i.length){case 1:r.id=AC(),r.startTime=t.endTime,a=i[0];break;case 2:r.id=AC(),r.startTime=TC(0,oC,i[0]),a=i[1];break;case 3:r.id=AC(i[0]),r.startTime=TC(0,oC,i[1]),a=i[2]}return a&&(r.endTime=EC(r.startTime,oC,a,bC),r.manualEndTime=D(a,"YYYY-MM-DD",!0).isValid(),kC(r,oC,uC,hC)),r}(DC,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,DC=n,pC.push(n)},setIncludes:function(t){hC=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return hC},setExcludes:function(t){uC=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return uC},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){if("loose"!==vx().securityLevel)return;if(void 0===e)return;let i=[];
11if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t),void 0!==MC(t)&&FC(t,(()=>{ux.runFunc(e,...i)}))}(t,e,n)})),IC(t,"clickable")},setLink:function(t,e){let n=e;"loose"!==vx().securityLevel&&(n=(0,L.N)(e)),t.split(",").forEach((function(t){void 0!==MC(t)&&(FC(t,(()=>{window.open(n,"_self")})),dC[t]=n)})),IC(t,"clickable")},getLinks:function(){return dC},bindFunctions:function(t){mC.forEach((function(e){e(t)}))},parseDuration:CC,isInvalidDate:vC};function $C(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const r=new RegExp("^\\s*"+n+"\\s*$");t[0].match(r)&&(e[n]=!0,t.shift(1),i=!0)}))}let PC;const YC={setConf:function(){Ym.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,i){const r=vx().gantt,a=vx().securityLevel;let s;"sandbox"===a&&(s=to("#i"+e));const o=to("sandbox"===a?s.nodes()[0].contentDocument.body:"body"),l="sandbox"===a?s.nodes()[0].contentDocument:document,c=l.getElementById(e);PC=c.parentElement.offsetWidth,void 0===PC&&(PC=1200),void 0!==r.useWidth&&(PC=r.useWidth);const h=i.db.getTasks(),u=h.length*(r.barHeight+r.barGap)+2*r.topPadding;c.setAttribute("viewBox","0 0 "+PC+" "+u);const d=o.select(`[id="${e}"]`),f=function(){return dr.apply(Js(Sa,Aa,ka,xa,aa,ea,Jr,Qr,Zr,Ma).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([O(h,(function(t){return t.startTime})),N(h,(function(t){return t.endTime}))]).rangeRound([0,PC-r.leftPadding-r.rightPadding]);let p=[];for(const m of h)p.push(m.type);const g=p;function y(t,e){return function(t){let e=t.length;const n={};for(;e;)n[t[--e]]=(n[t[e]]||0)+1;return n}(e)[t]||0}p=function(t){const e={},n=[];for(let i=0,r=t.length;i<r;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}(p),h.sort((function(t,e){const n=t.startTime,i=e.startTime;let r=0;return n>i?r=1:n<i&&(r=-1),r})),function(t,n,a){const s=r.barHeight,o=s+r.barGap,c=r.topPadding,h=r.leftPadding;Lr().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(Ri);(function(t,e,n,a,s,o,l,c){const h=o.reduce(((t,{startTime:e})=>t?Math.min(t,e):e),0),u=o.reduce(((t,{endTime:e})=>t?Math.max(t,e):e),0),p=i.db.getDateFormat();if(!h||!u)return;const g=[];let y=null,m=D(h);for(;m.valueOf()<=u;)i.db.isInvalidDate(m,p,l,c)?y?y.end=m.clone():y={start:m.clone(),end:m.clone()}:y&&(g.push(y),y=null),m.add(1,"d");d.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return f(t.start)+n})).attr("y",r.gridLineStartPadding).attr("width",(function(t){const e=t.end.clone().add(1,"day");return f(e)-f(t.start)})).attr("height",s-e-r.gridLineStartPadding).attr("transform-origin",(function(e,i){return(f(e.start)+n+.5*(f(e.end)-f(e.start))).toString()+"px "+(i*t+.5*s).toString()+"px"})).attr("class","exclude-range")})(o,c,h,0,a,t,i.db.getExcludes(),i.db.getIncludes()),function(t,e,n,a){let s=(o=f,Y(3,o)).tickSize(-a+e+r.gridLineStartPadding).tickFormat(Ma(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));var o;const l=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||r.tickInterval);if(null!==l){const t=l[1];switch(l[2]){case"minute":s.ticks(Qr.every(t));break;case"hour":s.ticks(Jr.every(t));break;case"day":s.ticks(ea.every(t));break;case"week":s.ticks(aa.every(t));break;case"month":s.ticks(xa.every(t))}}if(d.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||r.topAxis){let n=function(t){return Y(1,t)}(f).tickSize(-a+e+r.gridLineStartPadding).tickFormat(Ma(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(null!==l){const t=l[1];switch(l[2]){case"minute":n.ticks(Qr.every(t));break;case"hour":n.ticks(Jr.every(t));break;case"day":n.ticks(ea.every(t));break;case"week":n.ticks(aa.every(t));break;case"month":n.ticks(xa.every(t))}}d.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(h,c,0,a),function(t,n,a,s,o,l,c){d.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return c-r.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of p.entries())if(t.type===n)return"section section"+e%r.numberSectionStyles;return"section section0"}));const h=d.append("g").selectAll("rect").data(t).enter(),u=i.db.getLinks();h.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?f(t.startTime)+s+.5*(f(t.endTime)-f(t.startTime))-.5*o:f(t.startTime)+s}
11)).attr("y",(function(t,e){return t.order*n+a})).attr("width",(function(t){return t.milestone?o:f(t.renderEndTime||t.endTime)-f(t.startTime)})).attr("height",o).attr("transform-origin",(function(t,e){return e=t.order,(f(t.startTime)+s+.5*(f(t.endTime)-f(t.startTime))).toString()+"px "+(e*n+a+.5*o).toString()+"px"})).attr("class",(function(t){const e="task";let n="";t.classes.length>0&&(n=t.classes.join(" "));let i=0;for(const[s,o]of p.entries())t.type===o&&(i=s%r.numberSectionStyles);let a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),a+=i,a+=" "+n,e+a})),h.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",r.fontSize).attr("x",(function(t){let e=f(t.startTime),n=f(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(f(t.endTime)-f(t.startTime))-.5*o),t.milestone&&(n=e+o);const i=this.getBBox().width;return i>n-e?n+i+1.5*r.leftPadding>c?e+s-5:n+s+5:(n-e)/2+e+s})).attr("y",(function(t,e){return t.order*n+r.barHeight/2+(r.fontSize/2-2)+a})).attr("text-height",o).attr("class",(function(t){const e=f(t.startTime);let n=f(t.endTime);t.milestone&&(n=e+o);const i=this.getBBox().width;let a="";t.classes.length>0&&(a=t.classes.join(" "));let s=0;for(const[o,c]of p.entries())t.type===c&&(s=o%r.numberSectionStyles);let l="";return t.active&&(l=t.crit?"activeCritText"+s:"activeText"+s),t.done?l=t.crit?l+" doneCritText"+s:l+" doneText"+s:t.crit&&(l=l+" critText"+s),t.milestone&&(l+=" milestoneText"),i>n-e?n+i+1.5*r.leftPadding>c?a+" taskTextOutsideLeft taskTextOutside"+s+" "+l:a+" taskTextOutsideRight taskTextOutside"+s+" "+l+" width-"+i:a+" taskText taskText"+s+" "+l+" width-"+i}));if("sandbox"===vx().securityLevel){let t;t=to("#i"+e);const n=t.nodes()[0].contentDocument;h.filter((function(t){return void 0!==u[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const r=e.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",u[t.id]),a.setAttribute("target","_top"),r.appendChild(a),a.appendChild(e),a.appendChild(i)}))}}(t,o,c,h,s,0,n),function(t,e){const n=[];let i=0;for(const[r,a]of p.entries())n[r]=[a,y(a,g)];d.append("g").selectAll("text").data(n).enter().append((function(t){const e=t[0].split(Qm.lineBreakRegex),n=-(e.length-1)/2,i=l.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[r,a]of e.entries()){const t=l.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),r>0&&t.setAttribute("dy","1em"),t.textContent=a,i.appendChild(t)}return i})).attr("x",10).attr("y",(function(r,a){if(!(a>0))return r[1]*t/2+e;for(let s=0;s<a;s++)return i+=n[a-1][1],r[1]*t/2+i*t+e})).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",(function(t){for(const[e,n]of p.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%r.numberSectionStyles;return"sectionTitle"}))}(o,c),function(t,e,n,a){const s=i.db.getTodayMarker();if("off"===s)return;const o=d.append("g").attr("class","today"),l=new Date,c=o.append("line");c.attr("x1",f(l)+t).attr("x2",f(l)+t).attr("y1",r.titleTopMargin).attr("y2",a-r.titleTopMargin).attr("class","today"),""!==s&&c.attr("style",s.replace(/,/g,";"))}(h,0,0,a)}(h,PC,u),Ax(d,u,PC,r.useMaxWidth),d.append("text").text(i.db.getDiagramTitle()).attr("x",PC/2).attr("y",r.titleTopMargin).attr("class","titleText")}};var jC=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[6,9,10],i={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,i,r,a,s){switch(a.length,r){case 1:return i;case 4:break;case 6:i.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1
vendor: 6,896 bytes, line 11
11),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},r=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 4;case 1:return 9;
11case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}},t);function a(){this.yy={}}return i.lexer=r,a.prototype=i,i.Parser=a,new a}();jC.parser=jC;const zC=jC;var UC="",WC=!1;const HC={setMessage:t=>{Ym.debug("Setting message to: "+t),UC=t},getMessage:()=>UC,setInfo:t=>{WC=t},getInfo:()=>WC,clear:av},qC={draw:(t,e,n)=>{try{Ym.debug("Rendering info diagram\n"+t);const i=vx().securityLevel;let r;"sandbox"===i&&(r=to("#i"+e));const a=to("sandbox"===i?r.nodes()[0].contentDocument.body:"body").select("#"+e);a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),a.attr("height",100),a.attr("width",400)}catch(i){Ym.error("Error while rendering info diagram"),Ym.error(i.message)}}},VC=t=>null!==t.match(/^\s*info/);var GC=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,4],i=[1,5],r=[1,6],a=[1,7],s=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],l=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],h=[26,27,28],u=[2,8],d=[1,18],f=[1,19],p=[1,20],g=[1,21],y=[1,22],m=[1,23],b=[1,28],_=[6,26,27,28,29],x={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 4:i.setShowData(!0);break;case 7:this.$=a[o-1];break;case 9:i.addSection(a[o-1],i.cleanupValue(a[o]));break;case 10:this.$=a[o].trim(),i.setDiagramTitle(this.$);break;case 11:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 12:case 13:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 14:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(a[o],"type_directive");break;case 23:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:n,21:8,26:i,27:r,28:a,29:s},{1:[3]},{3:10,4:2,5:3,6:n,21:8,26:i,27:r,28:a,29:s},{3:11,4:2,5:3,6:n,21:8,26:i,27:r,28:a,29:s},e(o,l,{7:12,8:[1,13]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(h,u,{21:8,9:16,10:17,5:24,1:[2,3],11:d,13:f,15:p,17:g,19:y,20:m,29:s}),e(o,l,{7:25}),{23:26,24:[1,27],32:b},e([24,32],[2,22]),e(o,[2,6]),{4:29,26:i,27:r,28:a},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(h,[2,13]),e(h,[2,14]),e(h,[2,15]),e(h,u,{21:8,9:16,10:17,5:24,1:[2,4],11:d,13:f,15:p,17:g,19:y,20:m,29:s}),e(_,[2,16]),{25:34,31:[1,35]},e(_,[2,24]),e(o,[2,7]),e(h,[2,9]),e(h,[2,10]),e(h,[2,11]),e(h,[2,12]),{23:36,32:b},{32:[2,23]},e(_,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},v=(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}
vendor: 4,707 bytes, line 11
11,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;
11case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}},t);function k(){this.yy={}}return x.lexer=v,k.prototype=x,x.Parser=k,new k}();GC.parser=GC;const XC=GC,ZC=t=>null!==t.match(/^\s*pie/)||null!==t.match(/^\s*bar/);let QC={},KC=!1;const JC={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().pie,addSection:function(t,e){t=Qm.sanitizeText(t,vx()),void 0===QC[t]&&(QC[t]=e,Ym.debug("Added new section :",t))},getSections:()=>QC,cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){QC={},KC=!1,av()},setAccTitle:sv,getAccTitle:ov,setDiagramTitle:hv,getDiagramTitle:uv,setShowData:function(t){KC=t},getShowData:function(){return KC},getAccDescription:cv,setAccDescription:lv};let tE,eE=vx();const nE=450,iE={draw:(t,e,n,i)=>{try{eE=vx(),Ym.debug("Rendering info diagram\n"+t);const n=vx().securityLevel;let y;"sandbox"===n&&(y=to("#i"+e));const m=to("sandbox"===n?y.nodes()[0].contentDocument.body:"body"),b="sandbox"===n?y.nodes()[0].contentDocument:document;i.db.clear(),i.parser.parse(t),Ym.debug("Parsed info diagram");const _=b.getElementById(e);tE=_.parentElement.offsetWidth,void 0===tE&&(tE=1200),void 0!==eE.useWidth&&(tE=eE.useWidth),void 0!==eE.pie.useWidth&&(tE=eE.pie.useWidth);const x=m.select("#"+e);Ax(x,nE,tE,eE.pie.useMaxWidth),_.setAttribute("viewBox","0 0 "+tE+" "+nE);var r=18,a=Math.min(tE,nE)/2-40,s=x.append("g").attr("transform","translate("+tE/2+",225)"),o=i.db.getSections(),l=0;Object.keys(o).forEach((function(t){l+=o[t]}));const v=eE.themeVariables;var c=[v.pie1,v.pie2,v.pie3,v.pie4,v.pie5,v.pie6,v.pie7,v.pie8,v.pie9,v.pie10,v.pie11,v.pie12],h=$r().range(c),u=Object.entries(o).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),d=function(){var t=Po,e=$o,n=null,i=no(0),r=no(po),a=no(0);function s(s){var o,l,c,h,u,d=(s=Oo(s)).length,f=0,p=new Array(d),g=new Array(d),y=+i.apply(this,arguments),m=Math.min(po,Math.max(-po,r.apply(this,arguments)-y)),b=Math.min(Math.abs(m)/d,a.apply(this,arguments)),_=b*(m<0?-1:1);for(o=0;o<d;++o)(u=g[p[o]=o]=+t(s[o],o,s))>0&&(f+=u);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(s[t],s[e])})),o=0,c=f?(m-d*_)/f:0;o<d;++o,y=h)l=p[o],h=y+((u=g[l])>0?u*c:0)+_,g[l]={data:s[l],index:o,value:u,startAngle:y,endAngle:h,padAngle:b};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:no(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:no(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:no(+t),s):r},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:no(+t),s):a},s}().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order})),f=d(u),p=No().innerRadius(0).outerRadius(a);s.selectAll("mySlices").data(f).enter().append("path").attr("d",p).attr("fill",(function(t){return h(t.data.name)}
11)).attr("class","pieCircle"),s.selectAll("mySlices").data(f).enter().append("text").text((function(t){return(t.data.value/l*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+p.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),s.append("text").text(i.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var g=s.selectAll(".legend").data(h.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*h.domain().length/2)+")"}));g.append("rect").attr("width",r).attr("height",r).style("fill",h).style("stroke",h),g.data(f).append("text").attr("x",22).attr("y",14).text((function(t){return i.db.getShowData()||eE.showData||eE.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(y){Ym.error("Error while rendering info diagram"),Ym.error(y)}}};var rE=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,3],i=[1,5],r=[1,6],a=[1,7],s=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],l=[1,22],c=[2,13],h=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,30],g=[1,31],y=[1,24],m=[1,32],b=[1,33],_=[1,36],x=[71,72],v=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],k=[1,56],w=[1,57],T=[1,58],C=[1,59],E=[1,60],S=[1,61],A=[1,62],D=[62,63],L=[1,74],N=[1,70],O=[1,71],M=[1,72],B=[1,73],I=[1,75],F=[1,79],R=[1,80],$=[1,77],P=[1,78],Y=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],j={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:
1151,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 6:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(a[o],"type_directive");break;case 11:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(a[o-3],a[o-4]);break;case 20:i.setNewReqId(a[o-2]);break;case 21:i.setNewReqText(a[o-2]);break;case 22:i.setNewReqRisk(a[o-2]);break;case 23:i.setNewReqVerifyMethod(a[o-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(a[o-3]);break;case 40:i.setNewElementType(a[o-2]);break;case 41:i.setNewElementDocRef(a[o-2]);break;case 44:i.addRelationship(a[o-2],a[o],a[o-4]);break;case 45:i.addRelationship(a[o-2],a[o-4],a[o]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES}},table:[{3:1,4:2,6:n,9:4,14:i,16:r,18:a,19:s},{1:[3]},{3:10,4:2,5:[1,9],6:n,9:4,14:i,16:r,18:a,19:s},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(o,[2,8]),{20:[2,9]},{3:16,4:2,6:n,9:4,14:i,16:r,18:a,19:s},{1:[2,2]},{4:21,5:l,7:17,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{11:34,12:[1,35],22:_},e([12,22],[2,10]),e(o,[2,6]),e(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:l,7:38,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{4:21,5:l,7:39,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{4:21,5:l,7:40,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{4:21,5:l,7:41,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{4:21,5:l,7:42,8:c,9:4,14:i,16:r,18:a,19:s,23:18,24:19,25:20,26:23,32:25,40:h,41:u,42:d,43:f,44:p,45:g,53:y,71:m,72:b},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(x,[2,26]),e(x,[2,27]),e(x,[2,28]),e(x,[2,29]),e(x,[2,30]),e(x,[2,31]),e(v,[2,55]),e(v,[2,56]),e(o,[2,4]),{13:51,21:[1,52]},e(o,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]}
11,{28:[2,60]},{61:55,64:k,65:w,66:T,67:C,68:E,69:S,70:A},{61:63,64:k,65:w,66:T,67:C,68:E,69:S,70:A},{11:64,22:_},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(D,[2,52]),{63:[1,68]},e(o,[2,5]),{5:L,29:69,30:N,33:O,35:M,37:B,39:I},{5:F,39:R,55:76,56:$,58:P},{32:81,71:m,72:b},{32:82,71:m,72:b},e(Y,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:L,29:87,30:N,33:O,35:M,37:B,39:I},e(Y,[2,25]),e(Y,[2,39]),{31:[1,88]},{31:[1,89]},{5:F,39:R,55:90,56:$,58:P},e(Y,[2,43]),e(Y,[2,44]),e(Y,[2,45]),{32:91,71:m,72:b},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(Y,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(Y,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:L,29:116,30:N,33:O,35:M,37:B,39:I},{5:L,29:117,30:N,33:O,35:M,37:B,39:I},{5:L,29:118,30:N,33:O,35:M,37:B,39:I},{5:L,29:119,30:N,33:O,35:M,37:B,39:I},{5:F,39:R,55:120,56:$,58:P},{5:F,39:R,55:121,56:$,58:P},e(Y,[2,20]),e(Y,[2,21]),e(Y,[2,22]),e(Y,[2,23]),e(Y,[2,40]),e(Y,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},z=(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}
vendor: 7,534 bytes, line 11
11,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return e.yytext=e.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}},t);function U(){this.yy={}}return j.lexer=z,U.prototype=j,j.Parser=U,new U}();rE.parser=rE;const aE=rE,sE=t=>
11null!==t.match(/^\s*requirement(Diagram)?/);let oE=[],lE={},cE={},hE={},uE={};const dE={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().req,addRequirement:(t,e)=>(void 0===cE[t]&&(cE[t]={name:t,type:e,id:lE.id,text:lE.text,risk:lE.risk,verifyMethod:lE.verifyMethod}),lE={},cE[t]),getRequirements:()=>cE,setNewReqId:t=>{void 0!==lE&&(lE.id=t)},setNewReqText:t=>{void 0!==lE&&(lE.text=t)},setNewReqRisk:t=>{void 0!==lE&&(lE.risk=t)},setNewReqVerifyMethod:t=>{void 0!==lE&&(lE.verifyMethod=t)},setAccTitle:sv,getAccTitle:ov,setAccDescription:lv,getAccDescription:cv,addElement:t=>(void 0===uE[t]&&(uE[t]={name:t,type:hE.type,docRef:hE.docRef},Ym.info("Added new requirement: ",t)),hE={},uE[t]),getElements:()=>uE,setNewElementType:t=>{void 0!==hE&&(hE.type=t)},setNewElementDocRef:t=>{void 0!==hE&&(hE.docRef=t)},addRelationship:(t,e,n)=>{oE.push({type:t,src:e,dst:n})},getRelationships:()=>oE,clear:()=>{oE=[],lE={},cE={},hE={},uE={},av()}},fE={CONTAINS:"contains",ARROW:"arrow"},pE=fE,gE=(t,e)=>{let n=t.append("defs").append("marker").attr("id",fE.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",fE.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n      L${e.line_height},${e.line_height/2}\n      M${e.line_height},${e.line_height/2}\n      L0,${e.line_height}`).attr("stroke-width",1)};let yE={},mE=0;const bE=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",yE.rect_min_width+"px").attr("height",yE.rect_min_height+"px"),_E=(t,e,n)=>{let i=yE.rect_min_width/2,r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",i).attr("y",yE.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((t=>{0==a?r.append("tspan").attr("text-anchor","middle").attr("x",yE.rect_min_width/2).attr("dy",0).text(t):r.append("tspan").attr("text-anchor","middle").attr("x",yE.rect_min_width/2).attr("dy",.75*yE.line_height).text(t),a++}));let s=1.5*yE.rect_padding+a*yE.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",yE.rect_min_width).attr("y1",s).attr("y2",s),{titleNode:r,y:s}},xE=(t,e,n,i)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",yE.rect_padding).attr("y",i).attr("dominant-baseline","hanging"),a=0;let s=[];return n.forEach((t=>{let e=t.length;for(;e>30&&a<3;){let n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,s[s.length]=n,a++}if(3==a){let t=s[s.length-1];s[s.length-1]=t.substring(0,t.length-4)+"..."}else s[s.length]=t;a=0})),s.forEach((t=>{r.append("tspan").attr("x",yE.rect_padding).attr("dy",yE.line_height).text(t)})),r},vE=function(t,e,n,i,r){const a=n.edge(kE(e.src),kE(e.dst)),s=Ro().x((function(t){return t.x})).y((function(t){return t.y})),o=t.insert("path","#"+i).attr("class","er relationshipLine").attr("d",s(a.points)).attr("fill","none");e.type==r.db.Relationships.CONTAINS?o.attr("marker-start","url("+Qm.getUrl(yE.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(o.attr("stroke-dasharray","10,7"),o.attr("marker-end","url("+Qm.getUrl(yE.arrowMarkerAbsolute)+"#"+pE.ARROW+"_line_ending)")),((t,e,n,i)=>{const r=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*r),s="rel"+mE;mE++;const o=t.append("text").attr("class","req relationshipLabel").attr("id",s).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(i).node().getBBox();t.insert("rect","#"+s).attr("class","req reqLabelBox").attr("x",a.x-o.width/2).attr("y",a.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")})(t,o,0,`<<${e.type}>>`)},kE=t=>t.replace(/\s/g,"").replace(/\./g,"_"),wE={draw:(t,e,n,i)=>{yE=vx().requirement,i.db.clear(),i.parser.parse(t);const r=yE.securityLevel;let a;"sandbox"===r&&(a=to("#i"+e));const s=to("sandbox"===r?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);gE(s,yE);const o=new ip({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:yE.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let l=i.db.getRequirements(),c=i.db.getElements(),h=i.db.getRelationships();((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];i=kE(i),Ym.info("Added new requirement: ",i);const a=n.append("g").attr("id",i),s=bE(a,"req-"+i);let o=_E(a,i+"_title",[`<<${r.type}>>`,`${r.name}`]);xE(a,i+"_body",[`Id: ${r.id}`,`Text: ${r.text}`,`Risk: ${r.risk}`,`Verification: ${r.verifyMethod}`],o.y);const l=s.node().getBBox();e.setNode(i,{width:l.width,height:l.height,shape:"rect",id:i})}))})(l,o,s),((t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];const a=kE(i),s=n.append("g").attr("id",a),o="element-"+a,l=bE(s,o);let c=_E(s,o+"_title",["<<Element>>",`${i}`]);xE(s,o+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],c.y);const h=l.node().getBBox();e.setNode(a,{width:h.width,height:h.height,shape:"rect",id:a})}))})(c,o,s),((t,e)=>{t.forEach((function(t){let n=kE(t.src),i=kE(t.dst);e.setEdge(n,i,{relationship:t})}))}
11)(h,o),Fy(o),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(s,o),h.forEach((function(t){vE(s,t,o,e,i)}));const u=yE.rect_padding,d=s.node().getBBox(),f=d.width+2*u,p=d.height+2*u;Ax(s,p,f,yE.useMaxWidth),s.attr("viewBox",`${d.x-u} ${d.y-u} ${f} ${p}`)}};var TE=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,2],i=[1,3],r=[1,5],a=[1,7],s=[2,5],o=[1,15],l=[1,17],c=[1,18],h=[1,19],u=[1,21],d=[1,22],f=[1,23],p=[1,29],g=[1,30],y=[1,31],m=[1,32],b=[1,33],_=[1,34],x=[1,35],v=[1,36],k=[1,37],w=[1,38],T=[1,39],C=[1,40],E=[1,43],S=[1,44],A=[1,45],D=[1,46],L=[1,47],N=[1,48],O=[1,51],M=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],B=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],I=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],F=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],R=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],$=[67,68,69],P=[1,121],Y=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],j={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 4:return i.apply(a[o]),a[o];case 5:case 9:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:case 56:this.$=a[o];break;case 12:a[o-3].type="addParticipant",a[o-3].description=i.parseMessage(a[o-1]),this.$=a[o-3];break;case 13:a[o-1].type="addParticipant",this.$=a[o-1];break;case 14:a[o-3].type="addActor",a[o-3].description=i.parseMessage(
vendor: 4,443 bytes, line 11
11a[o-1]),this.$=a[o-3];break;case 15:a[o-1].type="addActor",this.$=a[o-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-2]),sequenceIndexStep:Number(a[o-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[o-1]};break;case 22:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[o-1]};break;case 28:i.setDiagramTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 29:i.setDiagramTitle(a[o].substring(7)),this.$=a[o].substring(7);break;case 30:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 31:case 32:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 33:a[o-1].unshift({type:"loopStart",loopText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 34:a[o-1].unshift({type:"rectStart",color:i.parseMessage(a[o-2]),signalType:i.LINETYPE.RECT_START}),a[o-1].push({type:"rectEnd",color:i.parseMessage(a[o-2]),signalType:i.LINETYPE.RECT_END}),this.$=a[o-1];break;case 35:a[o-1].unshift({type:"optStart",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.OPT_END}),this.$=a[o-1];break;case 36:a[o-1].unshift({type:"altStart",altText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.ALT_START}),a[o-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=a[o-1];break;case 37:a[o-1].unshift({type:"parStart",parText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.PAR_START}),a[o-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[o-1];break;case 38:a[o-1].unshift({type:"criticalStart",criticalText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.CRITICAL_START}),a[o-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=a[o-1];break;case 39:a[o-1].unshift({type:"breakStart",breakText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.BREAK_START}),a[o-1].push({type:"breakEnd",optText:i.parseMessage(a[o-2]),signalType:i.LINETYPE.BREAK_END}),this.$=a[o-1];break;case 42:this.$=a[o-3].concat([{type:"option",optionText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.CRITICAL_OPTION},a[o]]);break;case 44:this.$=a[o-3].concat([{type:"and",parText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.PAR_AND},a[o]]);break;case 46:this.$=a[o-3].concat([{type:"else",altText:i.parseMessage(a[o-1]),signalType:i.LINETYPE.ALT_ELSE},a[o]]);break;case 47:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 48:a[o-2]=[].concat(a[o-1],a[o-1]).slice(0,2),a[o-2][0]=a[o-2][0].actor,a[o-2][1]=a[o-2][1].actor,this.$=[a[o-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:a[o-2].slice(0,2),text:a[o]}];break;case 49:this.$=[a[o-1],{type:"addLinks",actor:a[o-1].actor,text:a[o]}];break;case 50:this.$=[a[o-1],{type:"addALink",actor:a[o-1].actor,text:a[o]}];break;case 51:this.$=[a[o-1],{type:"addProperties",actor:a[o-1].actor,text:a[o]}];break;case 52:this.$=[a[o-1],{type:"addDetails",actor:a[o-1].actor,text:a[o]}];break;case 55:this.$=[a[o-2],a[o]];break;case 57:this.$=i.PLACEMENT.LEFTOF;break;case 58:this.$=i.PLACEMENT.RIGHTOF;break;case 59:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o]},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[o-1]}];break;case 60:this.$=[a[o-4],a[o-1],{type:"addMessage",from:a[o-4].actor,to:a[o-1].actor,signalType:a[o-3],msg:a[o]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[o-4]}];break;case 61: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 62:this.$={type:"addParticipant",actor:a[o]};break;case 63:this.$=i.LINETYPE.SOLID_OPEN;break;case 64:this.$=i.LINETYPE.DOTTED_OPEN;break;case 65:this.$=i.LINETYPE.SOLID;break;case 66:this.$=i.LINETYPE.DOTTED;break;case 67:this.$=i.LINETYPE.SOLID_CROSS;break;case 68:this.$=i.LINETYPE.DOTTED_CROSS;break;case 69:this.$=i.LINETYPE.SOLID_POINT;break;case 70:this.$=i.LINETYPE.DOTTED_POINT;break;
11case 71:this.$=i.parseMessage(a[o].trim().substring(1));break;case 72:i.parseDirective("%%{","open_directive");break;case 73:i.parseDirective(a[o],"type_directive");break;case 74:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 75:i.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:n,5:i,6:4,7:r,11:6,79:a},{1:[3]},{3:8,4:n,5:i,6:4,7:r,11:6,79:a},{3:9,4:n,5:i,6:4,7:r,11:6,79:a},{3:10,4:n,5:i,6:4,7:r,11:6,79:a},e([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],s,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},{13:49,14:[1,50],82:O},e([14,82],[2,73]),e(M,[2,6]),{6:41,10:52,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},e(M,[2,8]),e(M,[2,9]),{17:53,69:N},{17:54,69:N},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:N},{17:60,69:N},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},e(M,[2,28]),e(M,[2,29]),{35:[1,66]},{37:[1,67]},e(M,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},e(M,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:N},{17:89,69:N},{17:90,69:N},{17:91,69:N},e([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},e(M,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},e(M,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},e(M,[2,20]),{5:[1,102]},{5:[1,103]},e(M,[2,23]),e(M,[2,24]),e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,30]),e(M,[2,31]),e(B,s,{8:104}),e(B,s,{8:105}),e(B,s,{8:106}),e(I,s,{44:107,8:108}),e(F,s,{46:109,8:110}),e(R,s,{48:111,8:112}),e(B,s,{8:113}),{17:116,67:[1,114],68:[1,115],69:N},e($,[2,63]),e($,[2,64]),e($,[2,65]),e($,[2,66]),e($,[2,67]),e($,[2,68]),e($,[2,69]),e($,[2,70]),{17:117,69:N},{17:119,57:118,69:N},{69:[2,57]},{69:[2,58]},{55:120,78:P},{55:122,78:P},{55:123,78:P},{55:124,78:P},e(Y,[2,10]),{13:125,82:O},{82:[2,74]},{19:[1,126]},e(M,[2,13]),{19:[1,127]},e(M,[2,15]),{5:[1,128]},e(M,[2,18]),e(M,[2,19]),e(M,[2,21]),e(M,[2,22]),{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[1,129],41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[1,130],41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[1,131],41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},{40:[1,132]},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[2,45],41:x,42:v,43:k,45:w,47:T,49:C,52:[1,133],53:E,58:S,59:A,60:D,61:L,69:N,79:a},{40:[1,134]},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[2,43],41:x,42:v,43:k,45:w,47:T,49:C,51:[1,135],53:E,58:S,59:A,60:D,61:L,69:N,79:a},{40:[1,136]},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[2,41],41:x,42:v,43:k,45:w,47:T,49:C,50:[1,137],53:E,58:S,59:A,60:D,61:L,69:N,79:a},{4:o,5:l,6:41,9:14,10:16,11:6,16:c,17:42,20:h,21:20,22:u,25:d,26:f,27:24,28:25,29:26,30:27,31:28,32:p,33:g,34:y,36:m,38:b,39:_,40:[1,138],41:x,42:v,43:k,45:w,47:T,49:C,53:E,58:S,59:A,60:D,61:L,69:N,79:a},{17:139,69:N},{17:140,69:N},{55:141,78:P},{55:142,78:P},{55:143,78:P},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},e(M,[2,17]),e(M,[2,33]),e(M,[2,34]),e(M,[2,35]),e(M,[2,36]),{19:[1,148]},e(M,[2,37]),{19:[1,149]},e(M,[2,38]),{19:[1,150]},e(M,[2,39]),{55:151,78:P},{55:152,78:P},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:N},e(Y,[2,11]),e(M,[2,12]),e(M,[2,14]),e(I,s,{8:108,44:154}),e(F,s,{8:110,46:155}),e(R,s,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}
vendor: 10,285 bytes, line 11
11],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},z=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return e.yytext=e.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;
11]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}},t);function U(){this.yy={}}return j.lexer=z,U.prototype=j,j.Parser=U,new U}();TE.parser=TE;const CE=TE,EE=t=>null!==t.match(/^\s*sequenceDiagram/);let SE,AE,DE={},LE=[],NE=!1;const OE=function(t,e,n,i){const r=DE[t];r&&e===r.name&&null==n||(null!=n&&null!=n.text||(n={text:e,wrap:null,type:i}),null!=i&&null!=n.text||(n={text:e,wrap:null,type:i}),DE[t]={name:e,description:n.text,wrap:void 0===n.wrap&&IE()||!!n.wrap,prevActor:SE,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},SE&&DE[SE]&&(DE[SE].nextActor=t),SE=t)},ME=function(t,e,n={text:void 0,wrap:void 0},i){if(i===FE.ACTIVE_END){const e=(t=>{let e,n=0;for(e=0;e<LE.length;e++)LE[e].type===FE.ACTIVE_START&&LE[e].from.actor===t&&n++,LE[e].type===FE.ACTIVE_END&&LE[e].from.actor===t&&n--;return n})(t.actor);if(e<1){let e=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}}return LE.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&IE()||!!n.wrap,type:i}),!0},BE=function(t){return DE[t]},IE=()=>void 0!==AE?AE:vx().sequence.wrap,FE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},RE=function(t,e,n){n.text,void 0===n.wrap&&IE()||n.wrap;const i=[].concat(t,t);LE.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&IE()||!!n.wrap,type:FE.NOTE,placement:e})},$E=function(t,e){const n=BE(t);try{let t=Hm(e.text,vx());t=t.replace(/&amp;/g,"&"),t=t.replace(/&equals;/g,"=");PE(n,JSON.parse(t))}catch(i){Ym.error("error while parsing actor link text",i)}};function PE(t,e){if(null==t.links)t.links=e;else for(let n in e)t.links[n]=e[n]}const YE=function(t,e){const n=BE(t);try{let t=Hm(e.text,vx());jE(n,JSON.parse(t))}catch(i){Ym.error("error while parsing actor properties text",i)}};function jE(t,e){if(null==t.properties)t.properties=e;else for(let n in e)t.properties[n]=e[n]}const zE=function(t,e){const n=BE(t),i=document.getElementById(e.text);try{const t=i.innerHTML,e=JSON.parse(t);e.properties&&jE(n,e.properties),e.links&&PE(n,e.links)}catch(r){Ym.error("error while parsing actor details text",r)}},UE=function(t){if(Array.isArray(t))t.forEach((function(t){UE(t)}));else switch(t.type){case"sequenceIndex":LE.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":OE(t.actor,t.actor,t.description,"participant");break;case"addActor":OE(t.actor,t.actor,t.description,"actor");break;case"activeStart":case"activeEnd":ME(t.actor,void 0,void 0,t.signalType);break;case"addNote":RE(t.actor,t.placement,t.text);break;case"addLinks":$E(t.actor,t.text);break;case"addALink":!function(t,e){const n=BE(t);try{const t={};let s=Hm(e.text,vx());var i=s.indexOf("@");s=s.replace(/&amp;/g,"&"),s=s.replace(/&equals;/g,"=");var r=s.slice(0,i-1).trim(),a=s.slice(i+1).trim();t[r]=a,PE(n,t)}catch(s){Ym.error("error while parsing actor link text",s)}}(t.actor,t.text);break;case"addProperties":YE(t.actor,t.text);break;case"addDetails":zE(t.actor,t.text);break;case"addMessage":ME(t.from,t.to,t.msg,t.signalType);break;case"loopStart":ME(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":ME(void 0,void 0,void 0,t.signalType);break;
11case"rectStart":ME(void 0,void 0,t.color,t.signalType);break;case"optStart":ME(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":ME(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":sv(t.text);break;case"parStart":case"and":ME(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":ME(void 0,void 0,t.criticalText,t.signalType);break;case"option":ME(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":ME(void 0,void 0,t.breakText,t.signalType)}},WE={addActor:OE,addMessage:function(t,e,n,i){LE.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&IE()||!!n.wrap,answer:i})},addSignal:ME,addLinks:$E,addDetails:zE,addProperties:YE,autoWrap:IE,setWrap:function(t){AE=t},enableSequenceNumbers:function(){NE=!0},disableSequenceNumbers:function(){NE=!1},showSequenceNumbers:()=>NE,getMessages:function(){return LE},getActors:function(){return DE},getActor:BE,getActorKeys:function(){return Object.keys(DE)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:ov,getDiagramTitle:uv,setDiagramTitle:hv,parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().sequence,clear:function(){DE={},LE=[],NE=!1,av()},parseMessage:function(t){const e=t.trim(),n={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return Ym.debug("parseMessage:",n),n},LINETYPE:FE,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:RE,setAccTitle:sv,apply:UE,setAccDescription:lv,getAccDescription:cv};let HE=[];const qE=()=>{HE.forEach((t=>{t()})),HE=[]},VE=function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},GE=(t,e)=>{var n;n=()=>{const n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){QE("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){KE("actor"+e+"_popup")})))},HE.push(n)},XE=function(t,e,n,i){const r=t.append("image");r.attr("x",e),r.attr("y",n);var a=(0,L.N)(i);r.attr("xlink:href",a)},ZE=function(t,e,n,i){const r=t.append("use");r.attr("x",e),r.attr("y",n);var a=(0,L.N)(i);r.attr("xlink:href","#"+a)},QE=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},KE=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},JE=function(t,e){let n=0,i=0;const r=e.text.split(Qm.lineBreakRegex);let a=[],s=0,o=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":o=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":o=()=>Math.round(e.y+(n+i+e.textMargin)/2);break;case"bottom":case"end":o=()=>Math.round(e.y+(n+i+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[l,c]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==e.fontSize&&(s=l*e.fontSize);const r=t.append("text");if(r.attr("x",e.x),r.attr("y",o()),void 0!==e.anchor&&r.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&r.style("font-family",e.fontFamily),void 0!==e.fontSize&&r.style("font-size",e.fontSize),void 0!==e.fontWeight&&r.style("font-weight",e.fontWeight),void 0!==e.fill&&r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class),void 0!==e.dy?r.attr("dy",e.dy):0!==s&&r.attr("dy",s),e.tspan){const t=r.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(c)}else r.text(c);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(i+=(r._groups||r)[0][0].getBBox().height,n=i),a.push(r)}return a}
11,tS=function(t,e){const n=t.append("polygon");var i,r,a,s,o;return n.attr("points",(i=e.x,r=e.y,a=e.width,s=e.height,i+","+r+" "+(i+a)+","+r+" "+(i+a)+","+(r+s-(o=7))+" "+(i+a-1.2*o)+","+(r+s)+" "+i+","+(r+s))),n.attr("class","labelBox"),e.y=e.y+e.height/2,JE(t,e),n};let eS=-1;const nS=(t,e)=>{t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},iS=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},rS=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},aS=function(){function t(t,e,n,r,a,s,o){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,l){const{actorFontSize:c,actorFontFamily:h,actorFontWeight:u}=l;let d=c&&c.replace?c.replace("px",""):c;const f=t.split(Qm.lineBreakRegex);for(let p=0;p<f.length;p++){const t=p*d-d*(f.length-1)/2,l=e.append("text").attr("x",n+a/2).attr("y",r).style("text-anchor","middle").style("font-size",c).style("font-weight",u).style("font-family",h);l.append("tspan").attr("x",n+a/2).attr("dy",t).text(f[p]),l.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(l,o)}}function n(t,n,r,a,s,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,o,l,c),i(u,l)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),sS=function(){function t(t,e,n,r,a,s,o){i(e.append("text").attr("x",n).attr("y",r).style("text-anchor","start").text(t),o)}function e(t,e,n,r,a,s,o,l){const{actorFontSize:c,actorFontFamily:h,actorFontWeight:u}=l,d=t.split(Qm.lineBreakRegex);for(let f=0;f<d.length;f++){const t=f*c-c*(d.length-1)/2,a=e.append("text").attr("x",n).attr("y",r).style("text-anchor","start").style("font-size",c).style("font-weight",u).style("font-family",h);a.append("tspan").attr("x",n).attr("dy",t).text(d[f]),a.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(a,o)}}function n(t,n,r,a,s,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,0,o,l,c),i(u,l)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),oS={drawRect:VE,drawText:JE,drawLabel:tS,drawActor:function(t,e,n){switch(e.type){case"actor":return function(t,e,n){const i=e.x+e.width/2;0===e.y&&(eS++,t.append("line").attr("id","actor"+eS).attr("x1",i).attr("y1",80).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const r=t.append("g");r.attr("class","actor-man");const a=rS();a.x=e.x,a.y=e.y,a.fill="#eaeaea",a.width=e.width,a.height=e.height,a.class="actor",a.rx=3,a.ry=3,r.append("line").attr("id","actor-man-torso"+eS).attr("x1",i).attr("y1",e.y+25).attr("x2",i).attr("y2",e.y+45),r.append("line").attr("id","actor-man-arms"+eS).attr("x1",i-18).attr("y1",e.y+33).attr("x2",i+18).attr("y2",e.y+33),r.append("line").attr("x1",i-18).attr("y1",e.y+60).attr("x2",i).attr("y2",e.y+45),r.append("line").attr("x1",i).attr("y1",e.y+45).attr("x2",i+16).attr("y2",e.y+60);const s=r.append("circle");s.attr("cx",e.x+e.width/2),s.attr("cy",e.y+10),s.attr("r",15),s.attr("width",e.width),s.attr("height",e.height);const o=r.node().getBBox();return e.height=o.height,aS(n)(e.description,r,a.x,a.y+35,a.width,a.height,{class:"actor"},n),e.height}(t,e,n);case"participant":return function(t,e,n){const i=e.x+e.width/2,r=t.append("g");var a=r;
110===e.y&&(eS++,a.append("line").attr("id","actor"+eS).attr("x1",i).attr("y1",5).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),a=r.append("g"),e.actorCnt=eS,null!=e.links&&(a.attr("id","root-"+eS),GE("#root-"+eS,eS)));const s=rS();var o="actor";null!=e.properties&&e.properties.class?o=e.properties.class:s.fill="#eaeaea",s.x=e.x,s.y=e.y,s.width=e.width,s.height=e.height,s.class=o,s.rx=3,s.ry=3;const l=VE(a,s);if(e.rectData=s,null!=e.properties&&e.properties.icon){const t=e.properties.icon.trim();"@"===t.charAt(0)?ZE(a,s.x+s.width-20,s.y+10,t.substr(1)):XE(a,s.x+s.width-20,s.y+10,t)}aS(n)(e.description,a,s.x,s.y,s.width,s.height,{class:"actor"},n);let c=e.height;if(l.node){const t=l.node().getBBox();e.height=t.height,c=t.height}return c}(t,e,n)}},drawPopup:function(t,e,n,i,r){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};const a=e.links,s=e.actorCnt,o=e.rectData;var l="none";r&&(l="block !important");const c=t.append("g");c.attr("id","actor"+s+"_popup"),c.attr("class","actorPopupMenu"),c.attr("display",l),GE("#actor"+s+"_popup",s);var h="";void 0!==o.class&&(h=" "+o.class);let u=o.width>n?o.width:n;const d=c.append("rect");if(d.attr("class","actorPopupMenuPanel"+h),d.attr("x",o.x),d.attr("y",o.height),d.attr("fill",o.fill),d.attr("stroke",o.stroke),d.attr("width",u),d.attr("height",o.height),d.attr("rx",o.rx),d.attr("ry",o.ry),null!=a){var f=20;for(let t in a){var p=c.append("a"),g=(0,L.N)(a[t]);p.attr("xlink:href",g),p.attr("target","_blank"),sS(i)(t,p,o.x+10,o.height+f,u,20,{class:"actor"},i),f+=30}}return d.attr("height",f),{height:o.height+f,width:u}},drawImage:XE,drawEmbeddedImage:ZE,anchorElement:function(t){return t.append("g")},drawActivation:function(t,e,n,i,r){const a=rS(),s=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+r%3,a.width=e.stopx-e.startx,a.height=n-e.starty,VE(s,a)},drawLoop:function(t,e,n,i){const{boxMargin:r,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:o,messageFontFamily:l,messageFontSize:c,messageFontWeight:h}=i,u=t.append("g"),d=function(t,e,n,i){return u.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",i).attr("class","loopLine")};d(e.startx,e.starty,e.stopx,e.starty),d(e.stopx,e.starty,e.stopx,e.stopy),d(e.startx,e.stopy,e.stopx,e.stopy),d(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){d(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let f=iS();f.text=n,f.x=e.startx,f.y=e.starty,f.fontFamily=l,f.fontSize=c,f.fontWeight=h,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=o||50,f.height=s||20,f.textMargin=a,f.class="labelText",tS(u,f),f=iS(),f.text=e.title,f.x=e.startx+o/2+(e.stopx-e.startx)/2,f.y=e.starty+r+a,f.anchor="middle",f.valign="middle",f.textMargin=a,f.class="loopText",f.fontFamily=l,f.fontSize=c,f.fontWeight=h,f.wrap=!0;let p=JE(u,f);
11return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){f.text=t.message,f.x=e.startx+(e.stopx-e.startx)/2,f.y=e.sections[n].y+r+a,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=l,f.fontSize=c,f.fontWeight=h,f.wrap=e.wrap,p=JE(u,f);let i=Math.round(p.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[n].height+=i-(r+a)}})),e.height=Math.round(e.stopy-e.starty),u},drawBackgroundRect:function(t,e){VE(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},insertArrowHead:function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead:function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber:function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead:function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},insertDatabaseIcon:function(t){t
vendor: 13,305 bytes, line 11
11.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},
11insertComputerIcon:function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon:function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},getTextObj:iS,getNoteRect:rS,popupMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},popdownMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},fixLifeLineHeights:nS,sanitizeUrl:L.N};let lS={};const cS={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,gS(vx())},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=this;let a=0;function s(s){return function(o){a++;const l=r.sequenceItems.length-a+1;r.updateVal(o,"starty",e-l*lS.boxMargin,Math.min),r.updateVal(o,"stopy",i+l*lS.boxMargin,Math.max),r.updateVal(cS.data,"startx",t-l*lS.boxMargin,Math.min),r.updateVal(cS.data,"stopx",n+l*lS.boxMargin,Math.max),"activation"!==s&&(r.updateVal(o,"startx",t-l*lS.boxMargin,Math.min),r.updateVal(o,"stopx",n+l*lS.boxMargin,Math.max),r.updateVal(cS.data,"starty",e-l*lS.boxMargin,Math.min),r.updateVal(cS.data,"stopy",i+l*lS.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(t,e,n,i){const r=Math.min(t,n),a=Math.max(t,n),s=Math.min(e,i),o=Math.max(e,i);this.updateVal(cS.data,"startx",r,Math.min),this.updateVal(cS.data,"starty",s,Math.min),this.updateVal(cS.data,"stopx",a,Math.max),this.updateVal(cS.data,"stopy",o,Math.max),this.updateBounds(r,s,a,o)},newActivation:function(t,e,n){const i=n[t.from.actor],r=yS(t.from.actor).length||0,a=i.x+i.width/2+(r-1)*lS.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+lS.activationWidth,stopy:void 0,actor:t.from.actor,anchored:oS.anchorElement(e)})},endActivation:function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:cS.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},hS=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),uS=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),dS=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});const fS=function(t,e,n,i,r,a){if(!0===r.hideUnusedParticipants){const t=new Set;a.forEach((e=>{t.add(e.from),t.add(e.to)})),n=n.filter((e=>t.has(e)))}let s=0,o=0,l=0;for(const c of n){const n=e[c];n.width=n.width||lS.width,n.height=Math.max(n.height||lS.height,lS.height),n.margin=n.margin||lS.actorMargin,n.x=s+o,n.y=i;const r=oS.drawActor(t,n,lS);l=Math.max(l,r),cS.insert(n.x,i,n.x+n.width,n.height),s+=n.width,o+=n.margin,cS.models.addActor(n)}cS.bumpVerticalPos(l)},pS=function(t,e,n,i){let r=0,a=0;for(const s of n){const n=e[s],o=_S(n),l=oS.drawPopup(t,n,o,lS,lS.forceMenus,i);l.height>r&&(r=l.height),l.width+n.x>a&&(a=l.width+n.x)}return{maxHeight:r,maxWidth:a}}
11,gS=function(t){W_(lS,t),t.fontFamily&&(lS.actorFontFamily=lS.noteFontFamily=lS.messageFontFamily=t.fontFamily),t.fontSize&&(lS.actorFontSize=lS.noteFontSize=lS.messageFontSize=t.fontSize),t.fontWeight&&(lS.actorFontWeight=lS.noteFontWeight=lS.messageFontWeight=t.fontWeight)},yS=function(t){return cS.activations.filter((function(e){return e.actor===t}))},mS=function(t,e){const n=e[t],i=yS(t);return[i.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),i.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function bS(t,e,n,i,r){cS.bumpVerticalPos(n);let a=i;if(e.id&&e.message&&t[e.id]){const n=t[e.id].width,r=hS(lS);e.message=ux.wrapLabel(`[${e.message}]`,n-2*lS.wrapPadding,r),e.width=n,e.wrap=!0;const s=ux.calculateTextDimensions(e.message,r),o=Math.max(s.height,lS.labelBoxHeight);a=i+o,Ym.debug(`${o} - ${e.message}`)}r(e),cS.bumpVerticalPos(a)}const _S=function(t){let e=0;const n=dS(lS);for(const i in t.links){const t=ux.calculateTextDimensions(i,n).width+2*lS.wrapPadding+2*lS.boxMargin;e<t&&(e=t)}return e};const xS=function(t,e,n,i){const r={},a=[];let s,o,l;return t.forEach((function(t){switch(t.id=ux.random({length:10}),t.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:a.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:t.message&&(s=a.pop(),r[s.id]=s,r[t.id]=s,a.push(s));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:s=a.pop(),r[s.id]=s;break;case i.db.LINETYPE.ACTIVE_START:{const n=e[t.from?t.from.actor:t.to.actor],i=yS(t.from?t.from.actor:t.to.actor).length,r=n.x+n.width/2+(i-1)*lS.activationWidth/2,a={startx:r,stopx:r+lS.activationWidth,actor:t.from.actor,enabled:!0};cS.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{const e=cS.activations.map((t=>t.actor)).lastIndexOf(t.from.actor);delete cS.activations.splice(e,1)[0]}}void 0!==t.placement?(o=function(t,e,n){const i=e[t.from].x,r=e[t.to].x,a=t.wrap&&t.message;let s=ux.calculateTextDimensions(a?ux.wrapLabel(t.message,lS.width,uS(lS)):t.message,uS(lS));const o={width:a?lS.width:Math.max(lS.width,s.width+2*lS.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===n.db.PLACEMENT.RIGHTOF?(o.width=a?Math.max(lS.width,s.width):Math.max(e[t.from].width/2+e[t.to].width/2,s.width+2*lS.noteMargin),o.startx=i+(e[t.from].width+lS.actorMargin)/2):t.placement===n.db.PLACEMENT.LEFTOF?(o.width=a?Math.max(lS.width,s.width+2*lS.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,s.width+2*lS.noteMargin),o.startx=i-o.width+(e[t.from].width-lS.actorMargin)/2):t.to===t.from?(s=ux.calculateTextDimensions(a?ux.wrapLabel(t.message,Math.max(lS.width,e[t.from].width),uS(lS)):t.message,uS(lS)),o.width=a?Math.max(lS.width,e[t.from].width):Math.max(e[t.from].width,lS.width,s.width+2*lS.noteMargin),o.startx=i+(e[t.from].width-o.width)/2):(o.width=Math.abs(i+e[t.from].width/2-(r+e[t.to].width/2))+lS.actorMargin,o.startx=i<r?i+e[t.from].width/2-lS.actorMargin/2:r+e[t.to].width/2-lS.actorMargin/2),a&&(o.message=ux.wrapLabel(t.message,o.width-2*lS.wrapPadding,uS(lS))),Ym.debug(`NM:[${o.startx},${o.stopx},${o.starty},${o.stopy}:${o.width},${o.height}=${t.message}]`),o}(t,e,i),t.noteModel=o,a.forEach((t=>{s=t,s.from=Math.min(s.from,o.startx),s.to=Math.max(s.to,o.startx+o.width),s.width=Math.max(s.width,Math.abs(s.from-s.to))-lS.labelBoxWidth}))):(l=function(t,e,n){let i=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(i=!0),!i)return{};const r=mS(t.from,e),a=mS(t.to,e),s=r[0]<=a[0]?1:0,o=r[0]<a[0]?0:1,l=[...r,...a],c=Math.abs(a[o]-r[s]);t.wrap&&t.message&&(t.message=ux.wrapLabel(t.message,Math.max(c+2*lS.wrapPadding,lS.width),hS(lS)));const h=ux.calculateTextDimensions(t.message,hS(lS));return{width:Math.max(t.wrap?0:h.width+2*lS.wrapPadding,c+2*lS.wrapPadding,lS.width),height:0,startx:r[s],stopx:a[o],start
11y:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,l),toBounds:Math.max.apply(null,l)}}(t,e,i),t.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach((n=>{if(s=n,l.startx===l.stopx){const n=e[t.from],i=e[t.to];s.from=Math.min(n.x-l.width/2,n.x-n.width/2,s.from),s.to=Math.max(i.x+l.width/2,i.x+n.width/2,s.to),s.width=Math.max(s.width,Math.abs(s.to-s.from))-lS.labelBoxWidth}else s.from=Math.min(l.startx,s.from),s.to=Math.max(l.stopx,s.to),s.width=Math.max(s.width,l.width)-lS.labelBoxWidth})))})),cS.activations=[],Ym.debug("Loop type widths:",r),r},vS={bounds:cS,drawActors:fS,drawActorsPopup:pS,setConf:gS,draw:function(t,e,n,i){const{securityLevel:r,sequence:a}=vx();let s;lS=a,"sandbox"===r&&(s=to("#i"+e));const o=to("sandbox"===r?s.nodes()[0].contentDocument.body:"body"),l="sandbox"===r?s.nodes()[0].contentDocument:document;cS.init(),Ym.debug(i.db);const c="sandbox"===r?o.select(`[id="${e}"]`):to(`[id="${e}"]`),h=i.db.getActors(),u=i.db.getActorKeys(),d=i.db.getMessages(),f=i.db.getDiagramTitle(),p=function(t,e,n){const i={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){const r=t[e.to];if(e.placement===n.db.PLACEMENT.LEFTOF&&!r.prevActor)return;if(e.placement===n.db.PLACEMENT.RIGHTOF&&!r.nextActor)return;const a=void 0!==e.placement,s=!a,o=a?uS(lS):hS(lS),l=e.wrap?ux.wrapLabel(e.message,lS.width-2*lS.wrapPadding,o):e.message,c=ux.calculateTextDimensions(l,o).width+2*lS.wrapPadding;s&&e.from===r.nextActor?i[e.to]=Math.max(i[e.to]||0,c):s&&e.from===r.prevActor?i[e.from]=Math.max(i[e.from]||0,c):s&&e.from===e.to?(i[e.from]=Math.max(i[e.from]||0,c/2),i[e.to]=Math.max(i[e.to]||0,c/2)):e.placement===n.db.PLACEMENT.RIGHTOF?i[e.from]=Math.max(i[e.from]||0,c):e.placement===n.db.PLACEMENT.LEFTOF?i[r.prevActor]=Math.max(i[r.prevActor]||0,c):e.placement===n.db.PLACEMENT.OVER&&(r.prevActor&&(i[r.prevActor]=Math.max(i[r.prevActor]||0,c/2)),r.nextActor&&(i[e.from]=Math.max(i[e.from]||0,c/2)))}})),Ym.debug("maxMessageWidthPerActor:",i),i}(h,d,i);lS.height=function(t,e){let n=0;Object.keys(t).forEach((e=>{const i=t[e];i.wrap&&(i.description=ux.wrapLabel(i.description,lS.width-2*lS.wrapPadding,dS(lS)));const r=ux.calculateTextDimensions(i.description,dS(lS));i.width=i.wrap?lS.width:Math.max(lS.width,r.width+2*lS.wrapPadding),i.height=i.wrap?Math.max(r.height,lS.height):lS.height,n=Math.max(n,i.height)}));for(const i in e){const n=t[i];if(!n)continue;const r=t[n.nextActor];if(!r)continue;const a=e[i]+lS.actorMargin-n.width/2-r.width/2;n.margin=Math.max(a,lS.actorMargin)}return Math.max(n,lS.height)}(h,p),oS.insertComputerIcon(c),oS.insertDatabaseIcon(c),oS.insertClockIcon(c),fS(c,h,u,0,lS,d);const g=xS(d,h,p,i);oS.insertArrowHead(c),oS.insertArrowCrossHead(c),oS.insertArrowFilledHead(c),oS.insertSequenceNumber(c);let y=1,m=1;const b=[];d.forEach((function(t){let e,n,r;switch(t.type){case i.db.LINETYPE.NOTE:n=t.noteModel,function(t,e){cS.bumpVerticalPos(lS.boxMargin),e.height=lS.boxMargin,e.starty=cS.getVerticalPos();const n=oS.getNoteRect();n.x=e.startx,n.y=e.starty,n.width=e.width||lS.width,n.class="note";const i=t.append("g"),r=oS.drawRect(i,n),a=oS.getTextObj();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=lS.noteFontFamily,a.fontSize=l
11S.noteFontSize,a.fontWeight=lS.noteFontWeight,a.anchor=lS.noteAlign,a.textMargin=lS.noteMargin,a.valign="center";const s=JE(i,a),o=Math.round(s.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));r.attr("height",o+2*lS.noteMargin),e.height+=o+2*lS.noteMargin,cS.bumpVerticalPos(o+2*lS.noteMargin),e.stopy=e.starty+o+2*lS.noteMargin,e.stopx=e.startx+n.width,cS.insert(e.startx,e.starty,e.stopx,e.stopy),cS.models.addNote(e)}(c,n);break;case i.db.LINETYPE.ACTIVE_START:cS.newActivation(t,c,h);break;case i.db.LINETYPE.ACTIVE_END:!function(t,e){const n=cS.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),oS.drawActivation(c,n,e,lS,yS(t.from.actor).length),cS.insert(n.startx,e-10,n.stopx,e)}(t,cS.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.LOOP_END:e=cS.endLoop(),oS.drawLoop(c,e,"loop",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;case i.db.LINETYPE.RECT_START:bS(g,t,lS.boxMargin,lS.boxMargin,(t=>cS.newLoop(void 0,t.message)));break;case i.db.LINETYPE.RECT_END:e=cS.endLoop(),oS.drawBackgroundRect(c,e),cS.models.addLoop(e),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos());break;case i.db.LINETYPE.OPT_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.OPT_END:e=cS.endLoop(),oS.drawLoop(c,e,"opt",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;case i.db.LINETYPE.ALT_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.ALT_ELSE:bS(g,t,lS.boxMargin+lS.boxTextMargin,lS.boxMargin,(t=>cS.addSectionToLoop(t)));break;case i.db.LINETYPE.ALT_END:e=cS.endLoop(),oS.drawLoop(c,e,"alt",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;case i.db.LINETYPE.PAR_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.PAR_AND:bS(g,t,lS.boxMargin+lS.boxTextMargin,lS.boxMargin,(t=>cS.addSectionToLoop(t)));break;case i.db.LINETYPE.PAR_END:e=cS.endLoop(),oS.drawLoop(c,e,"par",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;case i.db.LINETYPE.AUTONUMBER:y=t.message.start||y,m=t.message.step||m,t.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.CRITICAL_OPTION:bS(g,t,lS.boxMargin+lS.boxTextMargin,lS.boxMargin,(t=>cS.addSectionToLoop(t)));break;case i.db.LINETYPE.CRITICAL_END:e=cS.endLoop(),oS.drawLoop(c,e,"critical",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;case i.db.LINETYPE.BREAK_START:bS(g,t,lS.boxMargin,lS.boxMargin+lS.boxTextMargin,(t=>cS.newLoop(t)));break;case i.db.LINETYPE.BREAK_END:e=cS.endLoop(),oS.drawLoop(c,e,"break",lS),cS.bumpVerticalPos(e.stopy-cS.getVerticalPos()),cS.models.addLoop(e);break;default:try{r=t.msgModel,r.starty=cS.getVerticalPos(),r.sequenceIndex=y,r.sequenceVisible=i.db.showSequenceNumbers();const e=function(t,e){cS.bumpVerticalPos(10);const{startx:n,stopx:i,message:r}=e,a=Qm.splitBreaks(r).length,s=ux.calculateTextDimensions(r,hS(lS)),o=s.height/a;let l;e.height+=o,cS.bumpVerticalPos(o);let c=s.height-10;const h=s.width;if(n===i){l=cS.getVerticalPos()+c,lS.rightAngles||(c+=lS.boxMargin,l=cS.getVerticalPos()+c),c+=30;const t=Math.max(h/2,lS.width/2);cS.insert(n-t,cS.getVerticalPos()-10+c,i+t,cS.getVerticalPos()+30+c)}else c+=lS.boxMargin,l=cS.getVerticalPos()+c,cS.insert(n,l-10,i,l);return cS.bumpVerticalPos(c),e.height+=c,e.stopy=e.starty+e.height,cS.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),l}(0,r);b.push({messageModel:r,lineStartY:e}),cS.models.addMessage(r)}catch(a){Ym.error("error while drawing message",a)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(y+=m)})),b.forEach((t=>function(t,e,n,i){const{startx:r,stopx:a,starty:s,message:o,type:l,sequenceIndex:c,sequenceVisible:h}=e,u=ux.calculateTextDimensions(o,hS(lS)),d=oS.getTextObj();d.x=r,d.y=s+10,d.width=a-r,d.class="messageText",d.dy="1em",d.text=o,d.fontFamily=lS.messageFontFamily,d.fontSize=l
11S.messageFontSize,d.fontWeight=lS.messageFontWeight,d.anchor=lS.messageAlign,d.valign="center",d.textMargin=lS.wrapPadding,d.tspan=!1,JE(t,d);const f=u.width;let p;r===a?p=lS.rightAngles?t.append("path").attr("d",`M  ${r},${n} H ${r+Math.max(lS.width/2,f/2)} V ${n+25} H ${r}`):t.append("path").attr("d","M "+r+","+n+" C "+(r+60)+","+(n-10)+" "+(r+60)+","+(n+30)+" "+r+","+(n+20)):(p=t.append("line"),p.attr("x1",r),p.attr("y1",n),p.attr("x2",a),p.attr("y2",n)),l===i.db.LINETYPE.DOTTED||l===i.db.LINETYPE.DOTTED_CROSS||l===i.db.LINETYPE.DOTTED_POINT||l===i.db.LINETYPE.DOTTED_OPEN?(p.style("stroke-dasharray","3, 3"),p.attr("class","messageLine1")):p.attr("class","messageLine0");let g="";lS.arrowMarkerAbsolute&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),p.attr("stroke-width",2),p.attr("stroke","none"),p.style("fill","none"),l!==i.db.LINETYPE.SOLID&&l!==i.db.LINETYPE.DOTTED||p.attr("marker-end","url("+g+"#arrowhead)"),l!==i.db.LINETYPE.SOLID_POINT&&l!==i.db.LINETYPE.DOTTED_POINT||p.attr("marker-end","url("+g+"#filled-head)"),l!==i.db.LINETYPE.SOLID_CROSS&&l!==i.db.LINETYPE.DOTTED_CROSS||p.attr("marker-end","url("+g+"#crosshead)"),(h||lS.showSequenceNumbers)&&(p.attr("marker-start","url("+g+"#sequencenumber)"),t.append("text").attr("x",r).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(c))}(c,t.messageModel,t.lineStartY,i))),lS.mirrorActors&&(cS.bumpVerticalPos(2*lS.boxMargin),fS(c,h,u,cS.getVerticalPos(),lS,d),cS.bumpVerticalPos(lS.boxMargin),nS(c,cS.getVerticalPos()));const _=pS(c,h,u,l),{bounds:x}=cS.getBounds();Ym.debug("For line height fix Querying: #"+e+" .actor-line");eo("#"+e+" .actor-line").attr("y2",x.stopy);let v=x.stopy-x.starty;v<_.maxHeight&&(v=_.maxHeight);let k=v+2*lS.diagramMarginY;lS.mirrorActors&&(k=k-lS.boxMargin+lS.bottomMarginAdj);let w=x.stopx-x.startx;w<_.maxWidth&&(w=_.maxWidth);const T=w+2*lS.diagramMarginX;f&&c.append("text").text(f).attr("x",(x.stopx-x.startx)/2-2*lS.diagramMarginX).attr("y",-25),Ax(c,k,T,lS.useMaxWidth);const C=f?40:0;c.attr("viewBox",x.startx-lS.diagramMarginX+" -"+(lS.diagramMarginY+C)+" "+T+" "+(k+C)),Ym.debug("models:",cS.models)}};var kS=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,2],i=[1,3],r=[1,5],a=[1,7],s=[2,5],o=[1,15],l=[1,17],c=[1,21],h=[1,22],u=[1,23],d=[1,24],f=[1,37],p=[1,25],g=[1,26],y=[1,27],m=[1,28],b=[1,29],_=[1,32],x=[1,33],v=[1,34],k=[1,35],w=[1,36],T=[1,39],C=[1,40],E=[1,41],S=[1,42],A=[1,38],D=[1,45],L=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],N=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],O=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],B={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 4:return i.setRootDoc(a[o]),a[o];case 5:this.$=[];break;
11case 6:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 7:case 8:case 12:this.$=a[o];break;case 9:this.$="nl";break;case 13:const t=a[o-1];t.description=i.trimColon(a[o]),this.$=t;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:const e=i.trimColon(a[o]);this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:e};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var l=a[o],c=a[o-2].trim();if(a[o].match(":")){var h=a[o].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 30:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 31:case 32:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:a[o-1].trim(),classes:a[o].trim()};break;case 35:this.$={stmt:"applyClass",id:a[o-1].trim(),styleClass:a[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[o-2].trim(),classes:[a[o].trim()],type:"default",description:""};break;case 50:i.parseDirective("%%{","open_directive");break;case 51:i.parseDirective(a[o],"type_directive");break;case 52:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 53:i.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:n,5:i,6:4,7:r,45:6,60:a},{1:[3]},{3:8,4:n,5:i,6:4,7:r,45:6,60:a},{3:9,4:n,5:i,6:4,7:r,45:6,60:a},{3:10,4:n,5:i,6:4,7:r,45:6,60:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],s,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:h,19:u,22:d,24:f,25:p,26:g,27:y,28:m,29:b,32:31,33:_,35:x,37:v,38:k,42:w,45:6,50:T,51:C,52:E,53:S,56:A,60:a},{47:43,48:[1,44],63:D},e([48,63],[2,51]),e(L,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:h,19:u,22:d,24:f,25:p,26:g,27:y,28:m,29:b,32:31,33:_,35:x,37:v,38:k,42:w,45:6,50:T,51:C,52:E,53:S,56:A,60:a},e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(L,[2,11]),e(L,[2,12],{14:[1,47],15:[1,48]}),e(L,[2,16]),{18:[1,49]},e(L,[2,18],{20:[1,50]}),{23:[1,51]},e(L,[2,22]),e(L,[2,23]),e(L,[2,24]),e(L,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},e(L,[2,28]),e(L,[2,29]),{34:[1,56]},{36:[1,57]},e(L,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},e(N,[2,44],{57:[1,61]}),e(N,[2,45],{57:[1,62]}),e(L,[2,38]),e(L,[2,39]),e(L,[2,40]),e(L,[2,41]),e(O,[2,36]),{49:63,62:[1,64]},e(O,[2,53]),e(L,[2,7]),e(L,[2,13]),{13:65,24:f,56:A},e(L,[2,17]),e(M,s,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},e(L,[2,30]),e(L,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:D},{63:[2,52]},e(L,[2,14],{14:[1,76]}),{4:o,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:h,19:u,21:[1,77],22:d,24:f,25:p,26:g,27:y,28:m,29:b,32:31,33:_,35:x,37:v,38:k,42:w,45:6,50:T,51:C,52:E,53:S,56:A,60:a},e(L,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},e(L,[2,33]),e(L,[2,34]),e(L,[2,35]),e(N,[2,46]),e(N,[2,47]),e(O,[2,37]),e(L,[2,15]),e(L,[2,19]),e(M,s,{8:81}),e(L,[2,26]),e(L,[2,27]),{4:o,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:h,19:u,21:[1,82],22:d,24:f,25:p,26:g,27:y,28:m,29:b,32:31,33:_,35:x,37:v,38:k,42:w,45:6,50:T,51:C,52:E,53:S,56:A,60:a},e(L,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1
vendor: 8,797 bytes, line 11
11),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},I=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 41;case 1:case 44:return 50;case 2:case 45:return 51;case 3:case 46:return 52;case 4:case 47:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:case 13:case 14:case 15:case 16:case 56:case 58:case 64:break;case 12:case 79:return 5;case 17:case 34:return this.pushState("SCALE"),17;case 18:case 35:return 18;case 19:case 25:case 36:case 51:case 54:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 37:this.pushState("STATE");break;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 48:this.begin("STATE_STRING");break;case 49:return this.popState(),this.pushState("STATE_ID"),"AS";case 50:case 66:return this.popState(),"ID";case 52:return"STATE_DESCR";case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 57:return this.popState(),21;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;
11case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:return"NOTE_TEXT";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 69:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return e.yytext=e.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}},t);function F(){this.yy={}}return B.lexer=I,F.prototype=B,B.Parser=F,new F}();kS.parser=kS;const wS=kS,TS=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*stateDiagram/)},CS=(t,e)=>{var n;return null!==t.match(/^\s*stateDiagram-v2/)||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer))},ES="state",SS="relation",AS="default",DS="divider",LS="[*]",NS="start",OS=LS,MS="color",BS="fill";let IS="LR",FS=[],RS={};let $S={root:{relations:[],states:{},documents:{}}},PS=$S.root,YS=0,jS=0;const zS=t=>JSON.parse(JSON.stringify(t)),US=(t,e,n)=>{if(e.stmt===SS)US(t,e.state1,!0),US(t,e.state2,!1);else if(e.stmt===ES&&"[*]"===e.id&&(e.id=n?t.id+"_start":t.id+"_end",e.
11start=n),e.doc){const t=[];let n,i=[];for(n=0;n<e.doc.length;n++)if(e.doc[n].type===DS){const r=zS(e.doc[n]);r.doc=zS(i),t.push(r),i=[]}else i.push(e.doc[n]);if(t.length>0&&i.length>0){const n={stmt:ES,id:J_(),type:"divider",doc:zS(i)};t.push(zS(n)),e.doc=t}e.doc.forEach((t=>US(e,t,!0)))}},WS=function(t,e=AS,n=null,i=null,r=null,a=null,s=null,o=null){if(void 0===PS.states[t]?(Ym.info("Adding state ",t,i),PS.states[t]={id:t,descriptions:[],type:e,doc:n,note:r,classes:[],styles:[],textStyles:[]}):(PS.states[t].doc||(PS.states[t].doc=n),PS.states[t].type||(PS.states[t].type=e)),i&&(Ym.info("Setting state description",t,i),"string"==typeof i&&ZS(t,i.trim()),"object"==typeof i&&i.forEach((e=>ZS(t,e.trim())))),r&&(PS.states[t].note=r,PS.states[t].note.text=Qm.sanitizeText(PS.states[t].note.text,vx())),a){Ym.info("Setting state classes",t,a);("string"==typeof a?[a]:a).forEach((e=>KS(t,e.trim())))}if(s){Ym.info("Setting state styles",t,s);("string"==typeof s?[s]:s).forEach((e=>JS(t,e.trim())))}if(o){Ym.info("Setting state styles",t,s);("string"==typeof o?[o]:o).forEach((e=>tA(t,e.trim())))}},HS=function(t){$S={root:{relations:[],states:{},documents:{}}},PS=$S.root,YS=0,RS={},t||av()},qS=function(t){return PS.states[t]};function VS(t=""){let e=t;return t===LS&&(YS++,e=`${NS}${YS}`),e}function GS(t="",e=AS){return t===LS?NS:e}const XS=function(t,e,n){if("object"==typeof t)!function(t,e,n){let i=VS(t.id),r=GS(t.id,t.type),a=VS(e.id),s=GS(e.id,e.type);WS(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),WS(a,s,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),PS.relations.push({id1:i,id2:a,relationTitle:Qm.sanitizeText(n,vx())})}(t,e,n);else{const i=VS(t),r=GS(t),a=function(t=""){let e=t;return t===OS&&(YS++,e=`end${YS}`),e}(e),s=function(t="",e=AS){return t===OS?"end":e}(e);WS(i,r),WS(a,s),PS.relations.push({id1:i,id2:a,title:Qm.sanitizeText(n,vx())})}},ZS=function(t,e){const n=PS.states[t],i=e.startsWith(":")?e.replace(":","").trim():e;n.descriptions.push(Qm.sanitizeText(i,vx()))},QS=function(t,e=""){void 0===RS[t]&&(RS[t]={id:t,styles:[],textStyles:[]});const n=RS[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(MS)){const t=e.replace(BS,"bgFill").replace(MS,BS);n.textStyles.push(t)}n.styles.push(e)}))},KS=function(t,e){t.split(",").forEach((function(t){let n=qS(t);if(void 0===n){const e=t.trim();WS(e),n=qS(e)}n.classes.push(e)}))},JS=function(t,e){const n=qS(t);void 0!==n&&n.textStyles.push(e)},tA=function(t,e){const n=qS(t);void 0!==n&&n.textStyles.push(e)},eA={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().state,addState:WS,clear:HS,getState:qS,getStates:function(){return PS.states},getRelations:function(){return PS.relations},getClasses:function(){return RS},getDirection:()=>IS,addRelation:XS,getDividerId:()=>(jS++,"divider-id-"+jS),setDirection:t=>{IS=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){Ym.info("Documents = ",$S)},getRootDoc:()=>FS,setRootDoc:t=>{Ym.info("Setting root doc",t),FS=t},getRootDocV2:()=>(US({id:"root"},{id:"root",doc:FS},!0),{id:"root",doc:FS}),extract:t=>{let e;e=t.doc?t.doc:t,Ym.info(e),HS(!0),Ym.info("Extract",e),e.forEach((t=>{switch(t.stmt){case ES:WS(t.id,t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case SS:XS(t.state1,t.state2,t.description);break;case"classDef":QS(t.id,t.classes);break;case"applyClass":KS(t.id,t.styleClass)}}))},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:ov,setAccTitle:sv,getAccDescription:cv,setAccDescription:lv,addStyleClass:QS,setCssClass:KS,addDescription:ZS,setDiagramTitle:hv,getDiagramTitle:uv},nA={},iA=(t,e)=>{nA[t]=e},rA=(t,e)=>{const n=t.append("text").attr("x",2*vx().state.padding).attr("y",vx().state.textHeight+1.3*vx().state.padding).attr("font-size",vx().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=n.height,r=t.append("text").attr("x",vx().state.padding).attr("y",i+.4*vx().state.padding+vx().state.dividerMargin+vx().state.textHeight).attr("class","state-description");let a=!0,s=!0;e.descriptions.forEach((function(t){a||(!function(t,e,n){const i=t.append("tspan").attr("x",2*vx().state.padding).text(e);n||i.attr("dy",vx().state.textHeight)}(r,t,s),s=!1),a=!1}));const o=t.append("line").attr("x1",vx().state.padding).attr("y1",vx().state.padding+i+vx().state.dividerMargin/2).attr("y2",vx().state.padding+i+vx().state.dividerMargin/2).attr("class","descr-divider"),l=r.node().getBBox(),c=Math.max(l.width,n.width);return o.attr("x2",c+3*vx().state.padding),t.insert("rect",":first-child").attr("x",vx().state.padding).attr("y",vx().state.padding).attr("width",c+2*vx().state.padding).attr("height",l.height+i+2*vx().state.padding).attr("rx",vx().state.radius),t},aA=(t,e,n)=>{const i=vx().state.padding,r=2*vx().state.padding,a=t.node().getBBox(),s=a.width,o=a.x,l=t.append("text").attr("x",0).attr("y",vx().state.titleShift).attr("font-size",vx().state.fontSize).attr("class","state-title").text(e.id),c=l.node().getBBox().width+r;let h,u=Math.max(c,s);u===s&&(u+=r);const d=t.node().getBBox();e.doc,h=o-i,c>s&&(h=(s-u)/2+i),Math.abs(o-d.x)<i&&c>s&&(h=o-(c-s)/2);const f=1-vx().state.textHeight;return t.insert("rect",":first-child").attr("x",h).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",u).attr("height",d.height+vx().state.textHeight+vx().state.titleShift+1).attr("rx","0"),l.attr("x",h+i),c<=s&&l.attr("x",o+(u-r)/2-c/2+i),t.insert("rect",":first-child").attr("x",h).attr("y",vx().state.titleShift-vx().state.textHeight-vx().state.padding).attr("width",u).attr("height",3*vx().state.textHeight).attr("rx",vx().state.radius),t.insert("rect",":first-child").attr("x",h).attr("y",vx().state.titleShift-vx().state.textHeight-vx().state.padding).attr("width",u).attr("height",d.height+3+2*vx().state.textHeight).attr("rx",vx().state.radius),t},sA=(t,e)=>{e.attr("class","state-note");const n=e.append("rect").attr("x",0).attr("y",vx().state.padding),i=e.append("g"),{textWidth:r,textHeight:a}=((t,e,n,i)=>{let r=0;const a=i.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>");s=s.replace(/\n/g,"<br/>");const o=s.split(Qm.lineBreakRegex);let l=1.25*vx().state.noteMargin;for(const c of o){const t=c.trim();if(t.length>0){const i=a.append("tspan");i.text(t),0===l&&(l+=i.node().getBBox().height),r+=l,i.attr("x",e+vx().state.noteMargin),i.attr("y",n+r+1.25*vx().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:r}})(t,0,0,i);return n.attr("height",a+2*vx().state.noteMargin),n.attr("width",r+2*vx().state.noteMargin),n},oA=function(t,e){const n=e.id,i={id:n,label:e.id,width:0,height:0},r=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",vx().state.sizeUnit).attr("cx",vx().state.padding+vx().state.sizeUnit).attr("cy",vx().state.padding+vx().state.sizeUnit)})(r),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",vx().state.sizeUnit+vx().state.miniPadding).attr("cx",vx().state.padding+vx().state.sizeUnit+vx().state.miniPadding).attr("cy",vx().state.padding+vx().state.sizeUnit+vx().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",vx().state.sizeUnit).attr("cx",vx().state.padding+vx().state.sizeUnit+2).attr("cy",vx().state.padding+vx().state.sizeUnit+2)})(r),"fork"!==e.type&&"join"!==e.type||((t,e)=>{let n=vx().state.forkWidth,i=vx().state.forkHeight;if(e.parentId){let t=n;n=i,i=t}
11t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",i).attr("x",vx().state.padding).attr("y",vx().state.padding)})(r,e),"note"===e.type&&sA(e.note.text,r),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",vx().state.textHeight).attr("class","divider").attr("x2",2*vx().state.textHeight).attr("y1",0).attr("y2",0)})(r),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const n=t.append("text").attr("x",2*vx().state.padding).attr("y",vx().state.textHeight+2*vx().state.padding).attr("font-size",vx().state.fontSize).attr("class","state-title").text(e.id),i=n.node().getBBox();t.insert("rect",":first-child").attr("x",vx().state.padding).attr("y",vx().state.padding).attr("width",i.width+2*vx().state.padding).attr("height",i.height+2*vx().state.padding).attr("rx",vx().state.radius)})(r,e),"default"===e.type&&e.descriptions.length>0&&rA(r,e);const a=r.node().getBBox();return i.width=a.width+2*vx().state.padding,i.height=a.height+2*vx().state.padding,iA(n,i),i};let lA=0;let cA;const hA={},uA=(t,e,n,i,r,a,s)=>{const o=new ip({compound:!0,multigraph:!0});let l,c=!0;for(l=0;l<t.length;l++)if("relation"===t[l].stmt){c=!1;break}n?o.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:cA.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):o.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:cA.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),o.setDefaultEdgeLabel((function(){return{}})),s.db.extract(t);const h=s.db.getStates(),u=s.db.getRelations(),d=Object.keys(h);for(const m of d){const t=h[m];let l;if(n&&(t.parentId=n),t.doc){let n=e.append("g").attr("id",t.id).attr("class","stateGroup");l=uA(t.doc,n,t.id,!i,r,a,s);{n=aA(n,t,i);let e=n.node().getBBox();l.width=e.width,l.height=e.height+cA.padding/2,hA[t.id]={y:cA.compositTitleSize}}}else l=oA(e,t);if(t.note){const n={descriptions:[],id:t.id+"-note",note:t.note,type:"note"},i=oA(e,n);"left of"===t.note.position?(o.setNode(l.id+"-note",i),o.setNode(l.id,l)):(o.setNode(l.id,l),o.setNode(l.id+"-note",i)),o.setParent(l.id,l.id+"-group"),o.setParent(l.id+"-note",l.id+"-group")}else o.setNode(l.id,l)}Ym.debug("Count=",o.nodeCount(),o);let f=0;u.forEach((function(t){var e;f++,Ym.debug("Setting edge",t),o.setEdge(t.id1,t.id2,{relation:t,width:(e=t.title,e?e.length*cA.fontSizeFactor:1),height:cA.labelHeight*Qm.getRows(t.title).length,labelpos:"c"},"id"+f)})),Fy(o),Ym.debug("Graph after layout",o.nodes());const p=e.node();o.nodes().forEach((function(t){if(void 0!==t&&void 0!==o.node(t)){Ym.warn("Node "+t+": "+JSON.stringify(o.node(t))),r.select("#"+p.id+" #"+t).attr("transform","translate("+(o.node(t).x-o.node(t).width/2)+","+(o.node(t).y+(hA[t]?hA[t].y:0)-o.node(t).height/2)+" )"),r.select("#"+p.id+" #"+t).attr("data-x-shift",o.node(t).x-o.node(t).width/2);a.querySelectorAll("#"+p.id+" #"+t+" .divider").forEach((t=>{const e=t.parentElement;let n=0,i=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",n-i-8)}))}else Ym.debug("No Node "+t+": "+JSON.stringify(o.node(t)))}));let g=p.getBBox();
11o.edges().forEach((function(t){void 0!==t&&void 0!==o.edge(t)&&(Ym.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(o.edge(t))),function(t,e,n){e.points=e.points.filter((t=>!Number.isNaN(t.y)));const i=e.points,r=Ro().x((function(t){return t.x})).y((function(t){return t.y})).curve(Uo),a=t.append("path").attr("d",r(i)).attr("id","edge"+lA).attr("class","transition");let s="";if(vx().state.arrowMarkerAbsolute&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+function(t){switch(t){case eA.relationType.AGGREGATION:return"aggregation";case eA.relationType.EXTENSION:return"extension";case eA.relationType.COMPOSITION:return"composition";case eA.relationType.DEPENDENCY:return"dependency"}}(eA.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const i=t.append("g").attr("class","stateLabel"),{x:r,y:a}=ux.calcLabelPosition(e.points),s=Qm.getRows(n.title);let o=0;const l=[];let c=0,h=0;for(let t=0;t<=s.length;t++){const e=i.append("text").attr("text-anchor","middle").text(s[t]).attr("x",r).attr("y",a+o),n=e.node().getBBox();if(c=Math.max(c,n.width),h=Math.min(h,n.x),Ym.info(n.x,r,a+o),0===o){const t=e.node().getBBox();o=t.height,Ym.info("Title height",o,a)}l.push(e)}let u=o*s.length;if(s.length>1){const t=(s.length-1)*o*.5;l.forEach(((e,n)=>e.attr("y",a+n*o-t))),u=o*s.length}const d=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-c/2-vx().state.padding/2).attr("y",a-u/2-vx().state.padding/2-3.5).attr("width",c+vx().state.padding).attr("height",u+vx().state.padding),Ym.info(d)}lA++}(e,o.edge(t),o.edge(t).relation))})),g=p.getBBox();const y={id:n||"root",label:n||"root",width:0,height:0};return y.width=g.width+2*cA.padding,y.height=g.height+2*cA.padding,Ym.debug("Doc rendered",y,o),y},dA={setConf:function(){},draw:function(t,e,n,i){cA=vx().state;const r=vx().securityLevel;let a;"sandbox"===r&&(a=to("#i"+e));const s=to("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),o="sandbox"===r?a.nodes()[0].contentDocument:document;Ym.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);l.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z");new ip({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));const c=i.db.getRootDoc();uA(c,l,void 0,!1,s,o,i);const h=cA.padding,u=l.node().getBBox(),d=u.width+2*h,f=u.height+2*h;Ax(l,f,1.75*d,cA.useMaxWidth),l.attr("viewBox",`${u.x-cA.padding}  ${u.y-cA.padding} `+d+" "+f)}},fA="rect",pA="rectWithTitle",gA="statediagram",yA=`${gA}-state`,mA="transition",bA=`${mA} note-edge`,_A=`${gA}-note`,xA=`${gA}-cluster`,vA=`${gA}-cluster-alt`,kA="parent",wA="note",TA="----",CA=`${TA}${wA}`,EA=`${TA}${kA}`,SA="fill:none",AA="fill: #333",DA="text",LA="normal";let NA={},OA=0;function MA(t="",e=0,n="",i=TA){return`state-${t}${null!==n&&n.length>0?`${i}${n}`:""}-${e}`}const BA=(t,e,n,i,r,a)=>{const s=n.id,o=null==(l=i[s])?"":l.classes?l.classes.join(" "):"";var l;if("root"!==s){let e=fA;!0===n.start&&(e="start"),!1===n.start&&(e="end"),n.type!==AS&&(e=n.type),NA[s]||(NA[s]={id:s,shape:e,description:Qm.sanitizeText(s,vx()),classes:`${o} ${yA}`});const i=NA[s];n.description&&(Array.isArray(i.description)?(i.shape=pA,i.description.push(n.description)):i.description.length>0?(i.shape=pA,i.description===s?i.description=[n.description]:i.description=[i.description,n.description]):(i.shape=fA,i.description=n.description),i.description=Qm.sanitizeTextOrArray(i.description,vx())),1===i.description.length&&i.shape===pA&&(i.shape=fA),!i.type&&n.doc&&(Ym.info("Setting cluster for ",s,FA(n)),i.type="group",i.dir=FA(n),i.shape=n.type===DS?"divider":"roundedWithTitle",i.classes=i.classes+" "+xA+" "+(a?vA:""));const r={labelStyle:"",shape:i.shape,labelText:i.description,classes:i.classes,style:"",id:s,dir:i.dir,domId:MA(s,OA),type:i.type,padding:15};if(n.note){const e={labelStyle:"",shape:"note",labelText:n.note.text,classes:_A,style:"",id:s+CA+"-"+OA,domId:MA(s,OA,wA),type:i.type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:i.classes,style:"",id:s+EA,domId:MA(s,OA,kA),type:"group",padding:0};OA++;const o=s+EA;
11t.setNode(o,a),t.setNode(e.id,e),t.setNode(s,r),t.setParent(s,o),t.setParent(e.id,o);let l=s,c=e.id;"left of"===n.note.position&&(l=e.id,c=s),t.setEdge(l,c,{arrowhead:"none",arrowType:"",style:SA,labelStyle:"",classes:bA,arrowheadStyle:AA,labelpos:"c",labelType:DA,thickness:LA})}else t.setNode(s,r)}e&&"root"!==e.id&&(Ym.trace("Setting node ",s," to be child of its parent ",e.id),t.setParent(s,e.id)),n.doc&&(Ym.trace("Adding nodes children "),IA(t,n,n.doc,i,r,!a))},IA=(t,e,n,i,r,a)=>{Ym.trace("items",n),n.forEach((n=>{switch(n.stmt){case ES:case AS:BA(t,e,n,i,r,a);break;case SS:{BA(t,e,n.state1,i,r,a),BA(t,e,n.state2,i,r,a);const s={id:"edge"+OA,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:SA,labelStyle:"",label:Qm.sanitizeText(n.description,vx()),arrowheadStyle:AA,labelpos:"c",labelType:DA,thickness:LA,classes:mA};t.setEdge(n.state1.id,n.state2.id,s,OA),OA++}}}))},FA=(t,e="TB")=>{let n=e;if(t.doc)for(let i=0;i<t.doc.length;i++){const e=t.doc[i];"dir"===e.stmt&&(n=e.value)}return n},RA={setConf:function(t){const e=Object.keys(t);for(const n of e)t[n]},getClasses:function(t,e){Ym.trace("Extracting classes"),e.db.clear();try{return e.parser.parse(t),e.db.extract(e.db.getRootDocV2()),e.db.getClasses()}catch(n){return n}},draw:function(t,e,n,i){Ym.info("Drawing state diagram (v2)",e),NA={};let r=i.db.getDirection();void 0===r&&(r="LR");const{securityLevel:a,state:s}=vx(),o=s.nodeSpacing||50,l=s.rankSpacing||50;Ym.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),Ym.info(i.db.getRootDocV2());const c=i.db.getStates(),h=new ip({multigraph:!0,compound:!0}).setGraph({rankdir:FA(i.db.getRootDocV2()),nodesep:o,ranksep:l,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let u;BA(h,void 0,i.db.getRootDocV2(),c,i.db,!0),"sandbox"===a&&(u=to("#i"+e));const d=to("sandbox"===a?u.nodes()[0].contentDocument.body:"body"),f=d.select(`[id="${e}"]`),p=d.select("#"+e+" g");Jw(p,h,["barb"],gA,e);ux.insertTitle(f,"statediagramTitleText",s.titleTopMargin,i.db.getDiagramTitle());const g=f.node().getBBox(),y=g.width+16,m=g.height+16;f.attr("class",gA);const b=f.node().getBBox();Ax(f,m,y,s.useMaxWidth);const _=`${b.x-8} ${b.y-8} ${y} ${m}`;Ym.debug(`viewBox ${_}`),f.attr("viewBox",_);const x=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const v of x){const t=v.getBBox(),e=document.createElementNS("http://www.w3.org/2000/svg",fA);e.setAttribute("rx",0),e.setAttribute("ry",0),e.setAttribute("width",t.width),e.setAttribute("height",t.height),v.insertBefore(e,v.firstChild)}}};var $A=function(){var t,e=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},n=[1,2],i=[1,5],r=[6,9,11,17,18,20,22,23,24,26],a=[1,15],s=[1,16],o=[1,17],l=[1,18],c=[1,19],h=[1,20],u=[1,24],d=[4,6,9,11,17,18,20,22,23,24,26],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:case 7:case 8:this.$=[];break;case 4:a[o-1].push(a[o]),this.$=a[o-1];break;case 5:case 6:this.$=a[o];break;case 11:i.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 16:i.addTask(a[o-1],a[o]),this.$="task";break;case 18:i.parseDirective("%%{","open_directive");break;case 19:i.parseDirective(a[o],"type_directive");break;case 20:a[o]=a[o].trim().replace(/'/g,'"'),i.parseDirective(a[o],"arg_directive");break;case 21:i.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:n,7:3,12:4,26:i},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:n,7:3,12:4,26:i},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:a,18:s,20:o,22:l,23:c,24:h,26:i},{1:[2,2]},{14:22,15:[1,23],29:u},e([15,29],[2,19]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:21,10:25,12:4,17:a,18:s,20:o,22:l,23:c,24:h,26:i},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),{19:[1,26]},{21:[1,27]},e(r,[2,14]),e(r,[2,15]),{25:[1,28]},e(r,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},e(r,[2,5]),e(r,[2,12]),e(r,[2,13]),e(r,[2,16]),e(d,[2,9]),{14:32,29:u},{29:[2,20]},{11:[1,33]},e(d,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,o="",l=0,c=0,h=2,u=1,d=a.slice.call(arguments,1
vendor: 7,066 bytes, line 11
11),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;a.push(y);var m=f.options&&f.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||f.lex()||u)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,v,k,w,T,C,E,S={};;){if(x=n[n.length-1],this.defaultActions[x]?v=this.defaultActions[x]:(null==_&&(_=b()),v=s[x]&&s[x][_]),void 0===v||!v.length||!v[0]){var A="";for(w in E=[],s[x])this.terminals_[w]&&w>h&&E.push("'"+this.terminals_[w]+"'");A=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(_==u?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:y,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+_);switch(v[0]){case 1:n.push(_),r.push(f.yytext),a.push(f.yylloc),n.push(v[1]),_=null,c=f.yyleng,o=f.yytext,l=f.yylineno,y=f.yylloc;break;case 2:if(T=this.productions_[v[1]][1],S.$=r[r.length-T],S._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(S,[o,c,l,p.yy,v[1],r,a].concat(d))))return k;T&&(n=n.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),n.push(this.productions_[v[1]][0]),r.push(S.$),a.push(S._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},p=(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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 i=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),n.length-1&&(this.yylineno-=n.length-1);var r=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[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.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;
11case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}},t);function g(){this.yy={}}return f.lexer=p,g.prototype=f,f.Parser=g,new g}();$A.parser=$A;const PA=$A,YA=t=>null!==t.match(/^\s*journey/);let jA="";const zA=[],UA=[],WA=[],HA=function(){let t=!0;for(const[e,n]of WA.entries())WA[e].processed,t=t&&n.processed;return t},qA={parseDirective:function(t,e,n){PD.parseDirective(this,t,e,n)},getConfig:()=>vx().journey,clear:function(){zA.length=0,UA.length=0,jA="",WA.length=0,av()},setDiagramTitle:hv,getDiagramTitle:uv,setAccTitle:sv,getAccTitle:ov,setAccDescription:lv,getAccDescription:cv,addSection:function(t){jA=t,zA.push(t)},getSections:function(){return zA},getTasks:function(){let t=HA();let e=0;for(;!t&&e<100;)t=HA(),e++;return UA.push(...WA),UA},addTask:function(t,e){const n=e.substr(1).split(":");let i=0,r=[];1===n.length?(i=Number(n[0]),r=[]):(i=Number(n[0]),r=n[1].split(","));const a=r.map((t=>t.trim())),s={section:jA,type:jA,people:a,task:t,score:i};WA.push(s)},addTaskOrg:function(t){const e={section:jA,type:jA,description:t,task:t,classes:[]};UA.push(e)},getActors:function(){return function(){const t=[];return UA.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()}()}},VA=function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},GA=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},XA=function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i};let ZA=-1;const QA=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},KA=function(){function t(t,e,n,r,a,s,o,l){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",l).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,l,c){const{taskFontSize:h,taskFontFamily:u}=l,d=t.split(/<br\s*\/?>/gi);for(let f=0;f<d.length;f++){const t=f*h-h*(d.length-1)/2,l=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",u);l.append("tspan").attr("x",n+a/2).attr("dy",t).text(d[f]),l.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(l,o)}}function n(t,n,r,a,s,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,o,l,c),i(u,l)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),JA=GA,tD=function(t,e,n){const i=t.append("g"),r=QA();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,VA(i,r),KA(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},eD=XA,nD=function(t,e,n){const i=e.x+n.width/2,r=t.append("g");ZA++;r.append("line").attr("id","task"+ZA).attr("x1",i).attr("y1",e.y).attr("x2",i
11).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?function(t){const i=No().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(r):e.score<3?function(t){const i=No().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(r):r.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(r,{cx:i,cy:300+30*(5-e.score),score:e.score});const a=QA();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,VA(r,a);let s=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:s,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};GA(r,i),s+=10})),KA(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},iD=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},rD={};const aD=vx().journey,sD=aD.leftMargin,oD={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=vx().journey,a=this;let s=0;var o;this.sequenceItems.forEach((function(l){s++;const c=a.sequenceItems.length-s+1;a.updateVal(l,"starty",e-c*r.boxMargin,Math.min),a.updateVal(l,"stopy",i+c*r.boxMargin,Math.max),a.updateVal(oD.data,"startx",t-c*r.boxMargin,Math.min),a.updateVal(oD.data,"stopx",n+c*r.boxMargin,Math.max),"activation"!==o&&(a.updateV
11al(l,"startx",t-c*r.boxMargin,Math.min),a.updateVal(l,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(oD.data,"starty",e-c*r.boxMargin,Math.min),a.updateVal(oD.data,"stopy",i+c*r.boxMargin,Math.max))}))},insert:function(t,e,n,i){const r=Math.min(t,n),a=Math.max(t,n),s=Math.min(e,i),o=Math.max(e,i);this.updateVal(oD.data,"startx",r,Math.min),this.updateVal(oD.data,"starty",s,Math.min),this.updateVal(oD.data,"stopx",a,Math.max),this.updateVal(oD.data,"stopy",o,Math.max),this.updateBounds(r,s,a,o)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},lD=aD.sectionFills,cD=aD.sectionColours,hD=function(t,e,n){const i=vx().journey;let r="";const a=n+(2*i.height+i.diagramMarginY);let s=0,o="#CCC",l="black",c=0;for(const[h,u]of e.entries()){if(r!==u.section){o=lD[s%lD.length],c=s%lD.length,l=cD[s%cD.length];const e={x:h*i.taskMargin+h*i.width+sD,y:50,text:u.section,fill:o,num:c,colour:l};tD(t,e,i),r=u.section,s++}const e=u.people.reduce(((t,e)=>(rD[e]&&(t[e]=rD[e]),t)),{});u.x=h*i.taskMargin+h*i.width+sD,u.y=a,u.width=i.diagramMarginX,u.height=i.diagramMarginY,u.colour=l,u.fill=o,u.num=c,u.actors=e,nD(t,u,i),oD.insert(u.x,u.y,u.x+u.width+i.taskMargin,450)}},uD={setConf:function(t){Object.keys(t).forEach((function(e){aD[e]=t[e]}))},draw:function(t,e,n,i){const r=vx().journey;i.db.clear(),i.parser.parse(t+"\n");const a=vx().securityLevel;let s;"sandbox"===a&&(s=to("#i"+e));const o=to("sandbox"===a?s.nodes()[0].contentDocument.body:"body");oD.init();const l=o.select("#"+e);iD(l);const c=i.db.getTasks(),h=i.db.getDiagramTitle(),u=i.db.getActors();for(const m in rD)delete rD[m];let d=0;u.forEach((t=>{rD[t]={color:r.actorColours[d%r.actorColours.length],position:d},d++})),function(t){const e=vx().journey;let n=60;Object.keys(rD).forEach((i=>{const r=rD[i].color,a={cx:20,cy:n,r:7,fill:r,stroke:"#000",pos:rD[i].position};JA(t,a);const s={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};eD(t,s),n+=20}))}(l),oD.insert(0,0,sD,50*Object.keys(rD).length),hD(l,c,0);const f=oD.getBounds();h&&l.append("text").text(h).attr("x",sD).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const p=f.stopy-f.starty+2*r.diagramMarginY,g=sD+f.stopx+2*r.diagramMarginX;Ax(l,p,g,r.useMaxWidth),l.append("line").attr("x1",sD).attr("y1",4*r.height).attr("x2",g-sD-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const y=h?70:0;l.attr("viewBox",`${f.startx} -25 ${g} ${p+y}`),l.attr("preserveAspectRatio","xMinYMin meet"),l.attr("height",p+y+25)}};let dD={};const fD={setConf:function(t){dD={...dD,...t}},draw:(t,e,n)=>{try{Ym.debug("Renering svg for syntax error\n");const t=to("#"+e),i=t.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
11164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),t.attr("height",100),t.attr("width",500),t.attr("viewBox","768 0 912 512")}catch(r){Ym.error("Error while rendering info diagram"),Ym.error((i=r)instanceof Error?i.message:String(i))}var i}};let pD=!1;const gD=()=>{pD||(pD=!0,Zx("error",{db:{clear:()=>{}},styles:Ox,renderer:fD,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},(t=>"error"===t.toLowerCase().trim())),Zx("c4",{parser:qv,db:ok,renderer:Pk,styles:jx,init:t=>{Pk.setConf(t.c4)}},Vv),Zx("class",{parser:jk,db:aw,renderer:bw,styles:Lx,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,aw.clear()}},zk),Zx("classDiagram",{parser:jk,db:aw,renderer:iT,styles:Lx,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,aw.clear()}},Uk),Zx("er",{parser:aT,db:hT,renderer:vT,styles:Nx},sT),Zx("gantt",{parser:rC,db:RC,renderer:YC,styles:Bx},aC),Zx("info",{parser:zC,db:HC,renderer:qC,styles:Ix},VC),Zx("pie",{parser:XC,db:JC,renderer:iE,styles:Fx},ZC),Zx("requirement",{parser:aE,db:dE,renderer:wE,styles:Rx},sE),Zx("sequence",{parser:CE,db:WE,renderer:vS,styles:$x,init:t=>{if(t.sequence||(t.sequence={}),t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,"sequenceDiagram"in t)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");WE.setWrap(t.wrap),vS.setConf(t.sequence)}},EE),Zx("state",{parser:wS,db:eA,renderer:dA,styles:Px,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,eA.clear()}},TS),Zx("stateDiagram",{parser:wS,db:eA,renderer:RA,styles:Px,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,eA.clear()}},CS),Zx("journey",{parser:PA,db:qA,renderer:uD,styles:Yx,init:t=>{uD.setConf(t.journey),qA.clear()}},YA),Zx("flowchart",{parser:wT,db:ZT,renderer:nC,styles:Mx,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,KT(t.flowchart),ZT.clear(),ZT.setGen("gen-1")}},TT),Zx("flowchart-v2",{parser:wT,db:ZT,renderer:nC,styles:Mx,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,xx({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),nC.setConf(t.flowchart),ZT.clear(),ZT.setGen("gen-2")}},CT),Zx("gitGraph",{parser:Jx,db:Av,renderer:Uv,styles:Wv},tv))};class yD{constructor(t,e){var n,i;$m(this,"type","graph"),$m(this,"parser"),$m(this,"renderer"),$m(this,"db"),$m(this,"detectTypeFailed",!1),this.txt=t;const r=vx();this.txt=t;try{this.type=j_(t,r)}catch(o){this.handleError(o,e),this.type="error",this.detectTypeFailed=!0}const a=Qx(this.type);Ym.debug("Type "+this.type),this.db=a.db,null==(i=(n=this.db).clear)||i.call(n),this.renderer=a.renderer,this.parser=a.parser;const s=this.parser.parse.bind(this.parser);this.parser.parse=t=>s(function(t,e){var n;const i=t.match(R_);if(i){const r=F_(i[1],{schema:I_});return(null==r?void 0:r.title)&&(null==(n=e.setDiagramTitle)||n.call(e,r.title)),t.slice(i[0].length)}return t}(t,this.db)),this.parser.parser.yy=this.db,a.init&&(a.init(r),Ym.debug("Initialized diagram "+this.type,r)),this.txt+="\n",this.parse(this.txt,e)}parse(t,e){var n,i;if(this.detectTypeFailed)return!1;try{return t+="\n",null==(i=(n=this.db).clear)||i.call(n),this.parser.parse(t),!0}catch(r){this.handleError(r,e)}return!1}handleError(t,e){if(void 0===e)throw t;hx(t)?e(t.str,t.hash):e(t)}getParser(){return this.parser}getType(){return this.type}}const mD=(t,e)=>{const n=j_(t,vx());try{Qx(n)}catch(i){const r=Y_[n].loader;if(!r)throw new Error(`Diagram ${n} not found.`);return r().then((({diagram:i})=>(Zx(n,i,void 0),new yD(t,e))))}return new yD(t,e)},bD=yD;const _D=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],xD="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vD="sandbox",kD="loose",wD="http://www.w3.org/1999/xlink",TD="http://www.w3.org/1999/xhtml",CD=["foreignobject"],ED=["dominant-baseline"];const SD=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\ufb02\xb0\xb0"+e+"\xb6\xdf":"\ufb02\xb0"+e+"\xb6\xdf"})),e},AD=function(t){let e=t;return e=e.replace(/\ufb02\xb0\xb0/g,"&#"),e=e.replace(/\ufb02\xb0/g,"&"),e=e.replace(/\xb6\xdf/g,";"),e},DD=(t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`,LD=(t,e,n,i)=>{const r=((t,e,n={})=>{var i;let r="";if(void 0!==t.themeCSS&&(r+=`\n${t.themeCSS}
11`),void 0!==t.fontFamily&&(r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Af(n)&&_D.includes(e)){const e=t.htmlLabels||(null==(i=t.flowchart)?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in n){const i=n[t];Af(i.styles)||e.forEach((t=>{r+=DD(i.id,t,i.styles)})),Af(i.textStyles)||(r+=DD(i.id,"tspan",i.textStyles))}}return r})(t,e,n);return eh(Th(`${i}{${Ux(e,r,t.themeVariables)}}`),nh)},ND=(t="",e,n)=>{let i=t;return n||e||(i=i.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),i=AD(i),i=i.replace(/<br>/g,"<br/>"),i},OD=(t="",e)=>`<iframe style="width:100%;height:${e?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;base64,${btoa('<body style="margin:0">'+t+"</body>")}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n  The "iframe" tag is not supported by your browser.\n</iframe>`,MD=(t,e,n,i,r)=>{const a=t.append("div");a.attr("id",n),i&&a.attr("style",i);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return r&&s.attr("xmlns:xlink",r),s.append("g"),t};function BD(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const ID=(t,e,n,i)=>{var r,a,s;null==(r=t.getElementById(e))||r.remove(),null==(a=t.getElementById(n))||a.remove(),null==(s=t.getElementById(i))||s.remove()};let FD={};const RD=function(t,e,n){switch(Ym.debug(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":["config"].forEach((t=>{void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),Ym.debug("sanitize in handleDirective",e.args),lx(e.args),Ym.debug("sanitize in handleDirective (done)",e.args),wx(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":Ym.warn("themeCss encountered");break;default:Ym.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}};function $D(t,e,n,i){!function(t,e){Af(e)||t.attr("aria-roledescription",e)}(e,t),function(t,e,n,i){if(void 0!==t.insert&&(e||n)){if(n){const e="chart-desc-"+i;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n="chart-title-"+i;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(e,n,i,e.attr("id"))}const PD=Object.freeze({render:function(t,e,n,i){var r,a,s,o,l;gD(),Tx();const c=ux.detectInit(e);c&&(lx(c),wx(c));const h=vx();Ym.debug(h),e.length>(null!=(r=null==h?void 0:h.maxTextSize)?r:5e4)&&(e=xD),e=e.replace(/\r\n?/g,"\n");const u="#"+t,d="i"+t,f="#"+d,p="d"+t,g="#"+p;let y=to("body");const m=h.securityLevel===vD,b=h.securityLevel===kD,_=h.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),m){const t=BD(to(i),d);y=to(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=to(i);MD(y,t,p,`font-family: ${_}`,wD)}else{if(ID(document,t,p,d),m){const t=BD(to("body"),d);y=to(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=to("body");MD(y,t,p)}let x,v;e=SD(e);try{if(x=mD(e),"then"in x)throw new Error("Diagram is a promise. Use renderAsync.")}catch(N){x=new bD("error"),v=N}const k=y.select(g).node(),w=x.type,T=k.firstChild,C=T.firstChild,E=_D.includes(w)?x.renderer.getClasses(e,x):{},S=LD(h,w,E,u),A=document.createElement("style");A.innerHTML=S,T.insertBefore(A,C);try{x.renderer.draw(e,t,dx,x)}catch(O){throw fD.draw(e,t,dx),O}$D(w,y.select(`${g} svg`),null==(s=(a=x.db).getAccTitle)?void 0:s.call(a),null==(l=(o=x.db).getAccDescription)?void 0:l.call(o)),y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",TD);let D=y.select(g).node().innerHTML;if(Ym.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),D=ND(D,m,Xm(h.arrowMarkerAbsolute)),m){const t=y.select(g+" svg").node();D=OD(D,t)}else b||(D=rl.sanitize(D,{ADD_TAGS:CD,ADD_ATTR:ED}));if(void 0!==n)switch(w){case"flowchart":case"flowchart-v2":n(D,ZT.bindFunctions);break;case"gantt":n(D,RC.bindFunctions);break;case"class":case"classDiagram":n(D,aw.bindFunctions);break;default:n(D)}else Ym.debug("CB = undefined!");qE();const L=to(m?f:g).node();if(L&&"remove"in L&&L.remove(),v)throw v;return D},renderAsync:async function(t,e,n,i){var r,a,s,o,l;gD(),Tx();const c=ux.detectInit(e);c&&(lx(c),wx(c));const h=vx();Ym.debug(h),e.length>(null!=(r=null==h?void 0:h.maxTextSize)?r:5e4)&&(e=xD),e=e.replace(/\r\n?/g,"\n");const u="#"+t,d="i"+t,f="#"+d,p="d"+t,g="#"+p;let y=to("body");const m=h.securityLevel===vD,b=h.securityLevel===kD,_=h.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),m){const t=BD(to(i),d);y=to(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=to(i);MD(y,t,p,`font-family: ${_}`,wD)}else{if(ID(document,t,p,d),m){const t=BD(to("body"),d);y=to(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=to("body");MD(y,t,p)}let x,v;e=SD(e);try{x=await mD(e)}catch(N){x=new bD("error"),v=N}const k=y.select(g).node(),w=x.type,T=k.firstChild,C=T.firstChild,E=_D.includes(w)?x.renderer.getClasses(e,x):{},S=LD(h,w,E,u),A=document.createElement("style");A.innerHTML=S,T.insertBefore(A,C);try{await x.renderer.draw(e,t,dx,x)}catch(O){throw fD.draw(e,t,dx),O}$D(w,y.select(`${g} svg`),null==(s=(a=x.db).getAccTitle)?void 0:s.call(a),null==(l=(o=x.db).getAccDescription)?void 0:l.call(o)),y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",TD);let D=y.select(g).node().innerHTML;if(Ym.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),D=ND(D,m,Xm(h.arrowMarkerAbsolute)),m){const t=y.select(g+" svg").node();D=OD(D,t)}else b||(D=rl.sanitize(D,{ADD_TAGS:CD,ADD_ATTR:ED}));
11if(void 0!==n)switch(w){case"flowchart":case"flowchart-v2":n(D,ZT.bindFunctions);break;case"gantt":n(D,RC.bindFunctions);break;case"class":case"classDiagram":n(D,aw.bindFunctions);break;default:n(D)}else Ym.debug("CB = undefined!");qE();const L=to(m?f:g).node();if(L&&"remove"in L&&L.remove(),v)throw v;return D},parse:function(t,e){return gD(),new bD(t,e).parse(t,e)},parseAsync:async function(t,e){return gD(),(await mD(t,e)).parse(t,e)},parseDirective:function(t,e,n,i){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":FD={};break;case"type_directive":if(!FD)throw new Error("currentDirective is undefined");FD.type=e.toLowerCase();break;case"arg_directive":if(!FD)throw new Error("currentDirective is undefined");FD.args=JSON.parse(e);break;case"close_directive":RD(t,FD,i),FD=void 0}}catch(r){Ym.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${n}`),Ym.error(r.message)}},initialize:function(t={}){var e;(null==t?void 0:t.fontFamily)&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),px=W_({},t),(null==t?void 0:t.theme)&&t.theme in sb?t.themeVariables=sb[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=sb.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?(t=>(gx=W_({},fx),gx=W_(gx,t),t.theme&&sb[t.theme]&&(gx.themeVariables=sb[t.theme].getThemeVariables(t.themeVariables)),bx(gx,yx),gx))(t):_x();jm(n.logLevel),gD()},getConfig:vx,setConfig:xx,getSiteConfig:_x,updateSiteConfig:t=>(gx=W_(gx,t),bx(gx,yx),gx),reset:()=>{Tx()},globalReset:()=>{Tx(fx)},defaultConfig:fx});jm(vx().logLevel),Tx(vx());let YD=!1;const jD=(t,e,n)=>{Ym.warn(t),hx(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},zD=function(t,e,n){const i=PD.getConfig();let r;if(t&&(GD.sequenceConfig=t),Ym.debug((n?"":"No ")+"Callback function found"),void 0===e)r=document.querySelectorAll(".mermaid");else if("string"==typeof e)r=document.querySelectorAll(e);else if(e instanceof HTMLElement)r=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");r=e}Ym.debug(`Found ${r.length} diagrams`),void 0!==(null==t?void 0:t.startOnLoad)&&(Ym.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),PD.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));const a=new ux.initIdGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const c of Array.from(r)){if(Ym.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const t=`mermaid-${a.next()}`;s=c.innerHTML,s=ux.entityDecode(s).trim().replace(/<br\s*\/?>/gi,"<br/>");const e=ux.detectInit(s);e&&Ym.debug("Detected early reinit: ",e);try{PD.render(t,s,((e,i)=>{c.innerHTML=e,void 0!==n&&n(t),i&&i(c)}),c)}catch(l){jD(l,o,GD.parseError)}}if(o.length>0)throw o[0]},UD=async function(t,e,n){const i=PD.getConfig();let r;if(t&&(GD.sequenceConfig=t),Ym.debug((n?"":"No ")+"Callback function found"),void 0===e)r=document.querySelectorAll(".mermaid");else if("string"==typeof e)r=document.querySelectorAll(e);else if(e instanceof HTMLElement)r=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");r=e}Ym.debug(`Found ${r.length} diagrams`),void 0!==(null==t?void 0:t.startOnLoad)&&(Ym.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),PD.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));const a=new ux.initIdGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const c of Array.from(r)){if(Ym.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const t=`mermaid-${a.next()}`;s=c.innerHTML,s=ux.entityDecode(s).trim().replace(/<br\s*\/?>/gi,"<br/>");const e=ux.detectInit(s);e&&Ym.debug("Detected early reinit: ",e);try{await PD.renderAsync(t,s,((e,i)=>{c.innerHTML=e,void 0!==n&&n(t),i&&i(c)}),c)}catch(l){jD(l,o,GD.parseError)}}if(o.length>0)throw o[0]},WD=function(){if(GD.startOnLoad){const{startOnLoad:t}=PD.getConfig();t&&GD.init()}};"undefined"!=typeof document&&window.addEventListener("load",WD,!1);const HD=[];let qD=!1;const VD=async()=>
11{if(!qD){for(qD=!0;HD.length>0;){const e=HD.shift();if(e)try{await e()}catch(t){Ym.error("Error executing queue",t)}}qD=!1}},GD={startOnLoad:!0,diagrams:{},mermaidAPI:PD,parse:t=>PD.parse(t,GD.parseError),parseAsync:t=>new Promise(((e,n)=>{HD.push((()=>new Promise(((i,r)=>{PD.parseAsync(t,GD.parseError).then((t=>{i(t),e(t)}),(t=>{Ym.error("Error parsing",t),r(t),n(t)}))})))),VD()})),render:PD.render,renderAsync:(t,e,n,i)=>new Promise(((r,a)=>{HD.push((()=>new Promise(((s,o)=>{PD.renderAsync(t,e,n,i).then((t=>{s(t),r(t)}),(t=>{Ym.error("Error parsing",t),o(t),a(t)}))})))),VD()})),init:async function(t,e,n){try{YD?await UD(t,e,n):zD(t,e,n)}catch(i){Ym.warn("Syntax Error rendering"),hx(i)&&Ym.warn(i.str),GD.parseError&&GD.parseError(i)}},initThrowsErrors:zD,initThrowsErrorsAsync:UD,registerExternalDiagrams:async(t,{lazyLoad:e=!0}={})=>{e?(t=>{for(const{id:e,detector:n,loader:i}of t)z_(e,n,i)})(t):await(async t=>{Ym.debug(`Loading ${t.length} external diagrams`);const e=await Promise.allSettled(t.map((async({id:t,detector:e,loader:n})=>{const{diagram:i}=await n();Zx(t,i,e)}))),n=e.filter((t=>"rejected"===t.status));if(n.length>0){Ym.error(`Failed to load ${n.length} external diagrams`);for(const t of n)Ym.error(t);throw new Error(`Failed to load ${n.length} external diagrams`)}})(t),YD=!0},initialize:function(t){PD.initialize(t)},parseError:void 0,contentLoaded:WD,setParseErrorHandler:function(t){GD.parseError=t}};function XD(){const{colorMode:t}=(0,A.I)(),e=(0,S.L)().mermaid,n=e.theme[t],{options:r}=e;return(0,i.useMemo)((()=>({startOnLoad:!1,...r,theme:n})),[n,r])}const ZD="container_A7UZ";function QD(t){let{value:e}=t;const n=function(t,e){const n=XD(),r=e??n;return(0,i.useMemo)((()=>{GD.mermaidAPI.initialize(r);const e=`mermaid-svg-${Math.round(1e7*Math.random())}`;return GD.render(e,t)}),[t,r])}(e);return i.createElement("div",{className:`docusaurus-mermaid-container ${ZD}`,dangerouslySetInnerHTML:{__html:n}})}const KD={head:function(t){const e=i.Children.map(t.children,(t=>i.isValidElement(t)?function(t){var e;if(null!=(e=t.props)&&e.mdxType&&t.props.originalType){const{mdxType:e,originalType:n,...r}=t.props;return i.createElement(t.props.originalType,r)}return t}(t):t));return i.createElement(s.Z,t,e)},code:function(t){const e=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return i.Children.toArray(t.children).every((t=>{var n;return"string"==typeof t&&!t.includes("\n")||(0,i.isValidElement)(t)&&e.includes(null==(n=t.props)?void 0:n.mdxType)}))?i.createElement("code",t):i.createElement(o.Z,t)},a:function(t){return i.createElement(l.Z,t)},pre:function(t){var e;return i.createElement(o.Z,(0,i.isValidElement)(t.children)&&"code"===(null==(e=t.children.props)?void 0:e.originalType)?t.children.props:{...t})},details:function(t){const e=i.Children.toArray(t.children),n=e.find((t=>{var e;return i.isValidElement(t)&&"summary"===(null==(e=t.props)?void 0:e.mdxType)})),r=i.createElement(i.Fragment,null,e.filter((t=>t!==n)));return i.createElement(x,(0,a.Z)({},t,{summary:n}),r)},ul:function(t){return i.createElement("ul",(0,a.Z)({},t,{className:(e=t.className,(0,h.Z)(e,(null==e?void 0:e.includes("contains-task-list"))&&w))}));var e},img:function(t){return i.createElement("img",(0,a.Z)({loading:"lazy"},t,{className:(e=t.className,(0,h.Z)(e,T))}));var e},h1:t=>i.createElement(k,(0,a.Z)({as:"h1"},t)),h2:t=>i.createElement(k,(0,a.Z)({as:"h2"},t)),h3:t=>i.createElement(k,(0,a.Z)({as:"h3"},t)),h4:t=>i.createElement(k,(0,a.Z)({as:"h4"},t)),h5:t=>i.createElement(k,(0,a.Z)({as:"h5"},t)),h6:t=>i.createElement(k,(0,a.Z)({as:"h6"},t)),admonition:C.Z,mermaid:function(t){return i.createElement(E.Z,null,(()=>i.createElement(QD,t)))}},JD=KD;function tL(t){let{children:e}=t;return i.createElement(r.Zo,{components:JD},e)}},7066:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(2784),r=n(6277),a=n(9817);function s(t){const{permalink:e,title:n,subLabel:s,isNext:o}=t;return i.createElement(a.Z,{className:(0,r.Z)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:e},s&&i.createElement("div",{className:"pagination-nav__sublabel"},s),i.createElement("div",{className:"pagination-nav__label"},n))}},7155:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});
11var i=n(2784),r=n(6277),a=n(1077),s=n(9817);const o="tag_qE9H",l="tagRegular_aHXt",c="tagWithCount_UC8q";function h(t){let{permalink:e,label:n,count:a}=t;return i.createElement(s.Z,{href:e,className:(0,r.Z)(o,a?c:l)},n,a&&i.createElement("span",null,a))}const u="tags_q74f",d="tag_lSC7";function f(t){let{tags:e}=t;return i.createElement(i.Fragment,null,i.createElement("b",null,i.createElement(a.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),i.createElement("ul",{className:(0,r.Z)(u,"padding--none","margin-left--sm")},e.map((t=>{let{label:e,permalink:n}=t;return i.createElement("li",{key:n,className:d},i.createElement(h,{label:e,permalink:n}))}))))}},5368:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function i(t,r,a){return i=n()?Reflect.construct:function(t,n,i){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(t,r));return i&&e(a,i.prototype),a},i.apply(null,arguments)}function r(t){return a(t)||s(t)||o(t)||c()}function a(t){if(Array.isArray(t))return l(t)}function s(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function o(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=Object.hasOwnProperty,u=Object.setPrototypeOf,d=Object.isFrozen,f=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor,g=Object.freeze,y=Object.seal,m=Object.create,b="undefined"!=typeof Reflect&&Reflect,_=b.apply,x=b.construct;_||(_=function(t,e,n){return t.apply(e,n)}),g||(g=function(t){return t}),y||(y=function(t){return t}),x||(x=function(t,e){return i(t,r(e))});var v=O(Array.prototype.forEach),k=O(Array.prototype.pop),w=O(Array.prototype.push),T=O(String.prototype.toLowerCase),C=O(String.prototype.toString),E=O(String.prototype.match),S=O(String.prototype.replace),A=O(String.prototype.indexOf),D=O(String.prototype.trim),L=O(RegExp.prototype.test),N=M(TypeError);function O(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return _(t,e,i)}}function M(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return x(t,n)}}function B(t,e,n){n=n||T,u&&u(t,null);for(var i=e.length;i--;){var r=e[i];if("string"==typeof r){var a=n(r);a!==r&&(d(e)||(e[i]=a),r=a)}t[r]=!0}return t}function I(t){var e,n=m(null);for(e in t)_(h,t,[e])&&(n[e]=t[e]);return n}function F(t,e){for(;null!==t;){var n=p(t,e);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}t=f(t)}function i(t){return console.warn("fallback value for",t),null}return i}var R=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Y=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),z=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=g(["#text"]),W=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
11spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=y(/<%[\w\W]*|[\w\W]*%>/gm),Z=y(/\${[\w\W]*}/gm),Q=y(/^data-[\-\w.\u00B7-\uFFFF]/),K=y(/^aria-[\-\w]+$/),J=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=y(/^(?:\w+script|data):/i),et=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=y(/^html$/i),it=function(){return"undefined"==typeof window?null:window},rt=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(s){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it(),n=function(t){return at(t)};if(n.version="2.4.1",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var i=e.document,a=e.document,s=e.DocumentFragment,o=e.HTMLTemplateElement,l=e.Node,c=e.Element,h=e.NodeFilter,u=e.NamedNodeMap,d=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,y=e.trustedTypes,m=c.prototype,b=F(m,"cloneNode"),_=F(m,"nextSibling"),x=F(m,"childNodes"),O=F(m,"parentNode");if("function"==typeof o){var M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}var st=rt(y,i),ot=st?st.createHTML(""):"",lt=a,ct=lt.implementation,ht=lt.createNodeIterator,ut=lt.createDocumentFragment,dt=lt.getElementsByTagName,ft=i.importNode,pt={};try{pt=I(a).documentMode?a.documentMode:{}}catch(Oe){}var gt={};n.isSupported="function"==typeof O&&ct&&void 0!==ct.createHTMLDocument&&9!==pt;var yt,mt,bt=G,_t=X,xt=Z,vt=Q,kt=K,wt=tt,Tt=et,Ct=J,Et=null,St=B({},[].concat(r(R),r($),r(P),r(j),r(U))),At=null,Dt=B({},[].concat(r(W),r(H),r(q),r(V))),Lt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nt=null,Ot=null,Mt=!0,Bt=!0,It=!1,Ft=!1,Rt=!1,$t=!1,Pt=!1,Yt=!1,jt=!1,zt=!1,Ut=!0,Wt=!1,Ht="user-content-",qt=!0,Vt=!1,Gt={},Xt=null,Zt=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qt=null,Kt=B({},["audio","video","img","source","image","track"]),Jt=null,te=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",re=ie,ae=!1,se=null,oe=B({}
vendor: 4,462 bytes, line 11
11,[ee,ne,ie],C),le=["application/xhtml+xml","text/html"],ce="text/html",he=null,ue=a.createElement("form"),de=function(t){return t instanceof RegExp||t instanceof Function},fe=function(e){he&&he===e||(e&&"object"===t(e)||(e={}),e=I(e),yt=yt=-1===le.indexOf(e.PARSER_MEDIA_TYPE)?ce:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===yt?C:T,Et="ALLOWED_TAGS"in e?B({},e.ALLOWED_TAGS,mt):St,At="ALLOWED_ATTR"in e?B({},e.ALLOWED_ATTR,mt):Dt,se="ALLOWED_NAMESPACES"in e?B({},e.ALLOWED_NAMESPACES,C):oe,Jt="ADD_URI_SAFE_ATTR"in e?B(I(te),e.ADD_URI_SAFE_ATTR,mt):te,Qt="ADD_DATA_URI_TAGS"in e?B(I(Kt),e.ADD_DATA_URI_TAGS,mt):Kt,Xt="FORBID_CONTENTS"in e?B({},e.FORBID_CONTENTS,mt):Zt,Nt="FORBID_TAGS"in e?B({},e.FORBID_TAGS,mt):{},Ot="FORBID_ATTR"in e?B({},e.FORBID_ATTR,mt):{},Gt="USE_PROFILES"in e&&e.USE_PROFILES,Mt=!1!==e.ALLOW_ARIA_ATTR,Bt=!1!==e.ALLOW_DATA_ATTR,It=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=e.SAFE_FOR_TEMPLATES||!1,Rt=e.WHOLE_DOCUMENT||!1,Yt=e.RETURN_DOM||!1,jt=e.RETURN_DOM_FRAGMENT||!1,zt=e.RETURN_TRUSTED_TYPE||!1,Pt=e.FORCE_BODY||!1,Ut=!1!==e.SANITIZE_DOM,Wt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,Vt=e.IN_PLACE||!1,Ct=e.ALLOWED_URI_REGEXP||Ct,re=e.NAMESPACE||ie,e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Lt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ft&&(Bt=!1),jt&&(Yt=!0),Gt&&(Et=B({},r(U)),At=[],!0===Gt.html&&(B(Et,R),B(At,W)),!0===Gt.svg&&(B(Et,$),B(At,H),B(At,V)),!0===Gt.svgFilters&&(B(Et,P),B(At,H),B(At,V)),!0===Gt.mathMl&&(B(Et,j),B(At,q),B(At,V))),e.ADD_TAGS&&(Et===St&&(Et=I(Et)),B(Et,e.ADD_TAGS,mt)),e.ADD_ATTR&&(At===Dt&&(At=I(At)),B(At,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&B(Jt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Xt===Zt&&(Xt=I(Xt)),B(Xt,e.FORBID_CONTENTS,mt)),qt&&(Et["#text"]=!0),Rt&&B(Et,["html","head","body"]),Et.table&&(B(Et,["tbody"]),delete Nt.tbody),g&&g(e),he=e)},pe=B({},["mi","mo","mn","ms","mtext"]),ge=B({},["foreignobject","desc","title","annotation-xml"]),ye=B({},["title","style","font","a","script"]),me=B({},$);B(me,P),B(me,Y);var be=B({},j);B(be,z);var _e=function(t){var e=O(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});var n=T(t.tagName),i=T(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===ie?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===i||pe[i]):Boolean(me[n]):t.namespaceURI===ee?e.namespaceURI===ie?"math"===n:e.namespaceURI===ne?"math"===n&&ge[i]:Boolean(be[n]):t.namespaceURI===ie?!(e.namespaceURI===ne&&!ge[i])&&!(e.namespaceURI===ee&&!pe[i])&&!be[n]&&(ye[n]||!me[n]):!("application/xhtml+xml"!==yt||!se[t.namespaceURI]))},xe=function(t){w(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(Oe){try{t.outerHTML=ot}catch(Oe){t.remove()}}},ve=function(t,e){try{w(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(Oe){w(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!At[t])if(Yt||jt)try{xe(e)}catch(Oe){}else try{e.setAttribute(t,"")}catch(Oe){}},ke=function(t){var e,n;if(Pt)t="<remove></remove>"+t;else{var i=E(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===yt&&re===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var r=st?st.createHTML(t):t;if(re===ie)try{e=(new p).parseFromString(r,yt)}catch(Oe){}if(!e||!e.documentElement){e=ct.createDocument(re,"template",null);try{e.documentElement.innerHTML=ae?"":r}catch(Oe){}}var s=e.body||e.documentElement;return t&&n&&s.insertBefore(a.createTextNode(n),s.childNodes[0]||null),re===ie?dt.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:s},we=function(t){return ht.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},Te=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ce=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}
vendor: 4,587 bytes, line 11
11,Ee=function(t,e,i){gt[t]&&v(gt[t],(function(t){t.call(n,e,i,he)}))},Se=function(t){var e;if(Ee("beforeSanitizeElements",t,null),Te(t))return xe(t),!0;if(L(/[\u0080-\uFFFF]/,t.nodeName))return xe(t),!0;var i=mt(t.nodeName);if(Ee("uponSanitizeElement",t,{tagName:i,allowedTags:Et}),t.hasChildNodes()&&!Ce(t.firstElementChild)&&(!Ce(t.content)||!Ce(t.content.firstElementChild))&&L(/<[/\w]/g,t.innerHTML)&&L(/<[/\w]/g,t.textContent))return xe(t),!0;if("select"===i&&L(/<template/i,t.innerHTML))return xe(t),!0;if(!Et[i]||Nt[i]){if(!Nt[i]&&De(i)){if(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,i))return!1;if(Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(i))return!1}if(qt&&!Xt[i]){var r=O(t)||t.parentNode,a=x(t)||t.childNodes;if(a&&r)for(var s=a.length-1;s>=0;--s)r.insertBefore(b(a[s],!0),_(t))}return xe(t),!0}return t instanceof c&&!_e(t)?(xe(t),!0):"noscript"!==i&&"noembed"!==i||!L(/<\/no(script|embed)/i,t.innerHTML)?(Ft&&3===t.nodeType&&(e=t.textContent,e=S(e,bt," "),e=S(e,_t," "),e=S(e,xt," "),t.textContent!==e&&(w(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ee("afterSanitizeElements",t,null),!1):(xe(t),!0)},Ae=function(t,e,n){if(Ut&&("id"===e||"name"===e)&&(n in a||n in ue))return!1;if(Bt&&!Ot[e]&&L(vt,e));else if(Mt&&L(kt,e));else if(!At[e]||Ot[e]){if(!(De(t)&&(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,t)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(t))&&(Lt.attributeNameCheck instanceof RegExp&&L(Lt.attributeNameCheck,e)||Lt.attributeNameCheck instanceof Function&&Lt.attributeNameCheck(e))||"is"===e&&Lt.allowCustomizedBuiltInElements&&(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,n)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(n))))return!1}else if(Jt[e]);else if(L(Ct,S(n,Tt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(n,"data:")||!Qt[t])if(It&&!L(wt,S(n,Tt,"")));else if(n)return!1;return!0},De=function(t){return t.indexOf("-")>0},Le=function(e){var i,r,a,s;Ee("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};for(s=o.length;s--;){var c=i=o[s],h=c.name,u=c.namespaceURI;if(r="value"===h?i.value:D(i.value),a=mt(h),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,Ee("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(ve(h,e),l.keepAttr))if(L(/\/>/i,r))ve(h,e);else{Ft&&(r=S(r,bt," "),r=S(r,_t," "),r=S(r,xt," "));var d=mt(e.nodeName);if(Ae(d,a,r)){if(!Wt||"id"!==a&&"name"!==a||(ve(h,e),r=Ht+r),st&&"object"===t(y)&&"function"==typeof y.getAttributeType)if(u);else switch(y.getAttributeType(d,a)){case"TrustedHTML":r=st.createHTML(r);break;case"TrustedScriptURL":r=st.createScriptURL(r)}try{u?e.setAttributeNS(u,h,r):e.setAttribute(h,r),k(n.removed)}catch(Oe){}}}}Ee("afterSanitizeAttributes",e,null)}},Ne=function t(e){var n,i=we(e);for(Ee("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)Ee("uponSanitizeShadowNode",n,null),Se(n)||(n.content instanceof s&&t(n.content),Le(n));Ee("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(r){var a,o,c,h,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ae=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!Ce(r)){if("function"!=typeof r.toString)throw N("toString is not a function");if("string"!=typeof(r=r.toString()))throw N("dirty is not a string, aborting")}if(!n.isSupported){if("object"===t(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof r)return e.toStaticHTML(r);if(Ce(r))return e.toStaticHTML(r.outerHTML)}return r}if($t||fe(d),n.removed=[],"string"==typeof r&&(Vt=!1),Vt){if(r.nodeName){var f=mt(r.nodeName);if(!Et[f]||Nt[f])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof l)1===(o=(a=ke("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?a=o:a.appendChild(o);else{if(!Yt&&!Ft&&!Rt&&-1===r.indexOf("<"))return st&&zt?st.createHTML(r):r;if(!(a=ke(r)))return Yt?null:zt?ot:""}a&&Pt&&xe(a.firstChild);for(var p=we(Vt?r:a);c=p.nextNode();)3===c.nodeType&&c===h||Se(c)||(c.content instanceof s&&Ne(c.content),Le(c),h=c);if(h=null,Vt)return r;if(Yt){if(jt)for(u=ut.call(a.ownerDocument);a.firstChild;)u.appendChild(a.firstChild);else u=a;return At.shadowroot&&(u=ft.call(i,u,!0)),u}var g=Rt?a.outerHTML:a.innerHTML;return Rt&&Et["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&L(nt,a.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+g),Ft&&(g=S(g,bt," "),g=S(g,_t," "),g=S(g,xt," ")),st&&zt?st.createHTML(g):g}
11,n.setConfig=function(t){fe(t),$t=!0},n.clearConfig=function(){he=null,$t=!1},n.isValidAttribute=function(t,e,n){he||fe({});var i=mt(t),r=mt(e);return Ae(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&(gt[t]=gt[t]||[],w(gt[t],e))},n.removeHook=function(t){if(gt[t])return k(gt[t])},n.removeHooks=function(t){gt[t]&&(gt[t]=[])},n.removeAllHooks=function(){gt={}},n}return at()}()},9394:()=>{},8475:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(s(t,e))return;return 1}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){for(var n=[],i=t.length,r=0;r<i;++r)n.push(e(t[r],r));return n}function d(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return Le(t,e,n,i,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=p(t),n=m.call(e.parsedDateParts,(function(t){return null!=t}));if(n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function y(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}var m=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},b=i.momentProperties=[],_=!1;function x(t,e){var n,i,r,a=b.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=p(e)),l(e._locale)||(t._locale=e._locale),0<a)for(n=0;n<a;n++)l(r=e[i=b[n]])||(t[i]=r);return t}function v(t){x(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function w(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,a,o=[],l=arguments.length,c=0;c<l;c++){if(r="","object"==typeof arguments[c]){for(a in r+="\n["+c+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[c];o.push(r)}w(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C={};function E(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(w(e),C[t]=!0)}function S(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t,e){var n,i=d({},t);for(n in e)s(e,n)&&(a(t[n])&&a(e[n])?(i[n]={},d(i[n],t[n]),d(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)s(t,n)&&!s(e,n)&&a(t[n])&&(i[n]=d({},i[n]));return i}function D(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;var L=Object.keys||function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};function N(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
11|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},I={};function F(t,e,n,i){var r="string"==typeof i?function(){return this[i]()}:i;t&&(I[t]=r),e&&(I[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(I[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function R(t,e){return t.isValid()?(e=$(e,t.localeData()),B[e]=B[e]||function(t){for(var e,n=t.match(O),i=0,r=n.length;i<r;i++)I[n[i]]?n[i]=I[n[i]]:n[i]=(e=n[i]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var i="",a=0;a<r;a++)i+=S(n[a])?n[a].call(e,t):n[a];return i}}(e),B[e](t)):t.localeData().invalidDate()}function $(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(M.lastIndex=0;0<=n&&M.test(t);)t=t.replace(M,i),M.lastIndex=0,--n;return t}var P={};function Y(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function j(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)s(t,n)&&(e=j(n))&&(i[e]=t[n]);return i}var U={};function W(t,e){U[t]=e}function H(t){return t%4==0&&t%100!=0||t%400==0}function q(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function V(t){var e=0;return 0!=(t=+t)&&isFinite(t)?q(t):e}function G(t,e){return function(n){return null!=n?(Z(this,t,n),i.updateOffset(this,e),this):X(this,t)}}function X(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Z(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&H(t.year())&&1===t.month()&&29===t.date()?(n=V(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var Q=/\d/,K=/\d\d/,J=/\d{3}/,tt=/\d{4}/,et=/[+-]?\d{6}/,nt=/\d\d?/,it=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,at=/\d{1,3}/,st=/\d{1,4}/,ot=/[+-]?\d{1,6}/,lt=/\d+/,ct=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ft(t,e,n){yt[t]=S(e)?e:function(t,i){return t&&n?n:e}}function pt(t,e){return s(yt,t)?yt[t](e._strict,e._locale):new RegExp(gt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function gt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var yt={},mt={};function bt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=V(t)}),i=t.length,n=0;n<i;n++)mt[t[n]]=r}function _t(t,e){bt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}var xt,vt=0,kt=1,wt=2,Tt=3,Ct=4,Et=5,St=6,At=7,Dt=8;function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?H(t)?29:28:31-n%7%2}xt=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Y("month","M"),W("month",8),ft("M",nt),ft("MM",nt,K),ft("MMM",(function(t,e){return e.monthsShortRegex(t)})),ft("MMMM",(function(t,e){return e.monthsRegex(t)})),bt(["M","MM"],(function(t,e){e[kt]=V(t)-1})),bt(["MMM","MMMM"],(function(t,e,n,i){null!=(i=n._locale.monthsParse(t,i,n._strict))?e[kt]=i:p(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Mt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bt=dt,It=dt;function Ft(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=V(e);else if(!c(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function Rt(t){return null!=t?(Ft(this,t),i.updateOffset(this,!0),this):X(this,"Month")}function $t(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],r=[],a=0;a<12;a++)e=f([2e3,a]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),r.push(this.months(e,"")),r.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),r.sort(t),a=0;a<12;a++)n[a]=gt(n[a]),i[a]=gt(i[a]);for(a=0;a<24;a++)r[a]=gt(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Pt(t){return H(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?N(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),W("year",1),ft("Y",ct),ft("YY",nt,K),ft("YYYY",st,tt),ft("YYYYY",ot,et),ft("YYYYYY",ot,et),bt(["YYYYY","YYYYYY"],vt),bt("YYYY",(function(t,e){e[vt]=2===t.length?
11i.parseTwoDigitYear(t):V(t)})),bt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),bt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return V(t)+(68<V(t)?1900:2e3)};var Yt=G("FullYear",!0);function jt(t,e,n,i,r,a,s){var o;return t<100&&0<=t?(o=new Date(t+400,e,n,i,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,a,s),o}function zt(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ut(t,e,n){return(n=7+e-n)-(7+zt(t,0,n).getUTCDay()-e)%7-1}function Wt(t,e,n,i,r){var a;return n=(e=1+7*(e-1)+(7+n-i)%7+Ut(t,i,r))<=0?Pt(a=t-1)+e:e>Pt(t)?(a=t+1,e-Pt(t)):(a=t,e),{year:a,dayOfYear:n}}function Ht(t,e,n){var i,r,a=Ut(t.year(),e,n);return(a=Math.floor((t.dayOfYear()-a-1)/7)+1)<1?i=a+qt(r=t.year()-1,e,n):a>qt(t.year(),e,n)?(i=a-qt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function qt(t,e,n){var i=Ut(t,e,n);return e=Ut(t+1,e,n),(Pt(t)-i+e)/7}function Vt(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),W("week",5),W("isoWeek",5),ft("w",nt),ft("ww",nt,K),ft("W",nt),ft("WW",nt,K),_t(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=V(t)})),F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),ft("d",nt),ft("e",nt),ft("E",nt),ft("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ft("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ft("dddd",(function(t,e){return e.weekdaysRegex(t)})),_t(["dd","ddd","dddd"],(function(t,e,n,i){null!=(i=n._locale.weekdaysParse(t,i,n._strict))?e.d=i:p(n).invalidWeekday=t})),_t(["d","e","E"],(function(t,e,n,i){e[i]=V(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=dt,Kt=dt,Jt=dt;function te(){function t(t,e){return e.length-t.length}for(var e,n,i,r=[],a=[],s=[],o=[],l=0;l<7;l++)i=f([2e3,1]).day(l),e=gt(this.weekdaysMin(i,"")),n=gt(this.weekdaysShort(i,"")),i=gt(this.weekdays(i,"")),r.push(e),a.push(n),s.push(i),o.push(e),o.push(n),o.push(i);r.sort(t),a.sort(t),s.sort(t),o.sort(t),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ee(){return this.hours()%12||12}function ne(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ie(t,e){return e._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,ee),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+ee.apply(this)+N(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+ee.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),ne("a",!0),ne("A",!1),Y("hour","h"),W("hour",13),ft("a",ie),ft("A",ie),ft("H",nt),ft("h",nt),ft("k",nt),ft("HH",nt,K),ft("hh",nt,K),ft("kk",nt,K),ft("hmm",it),ft("hmmss",rt),ft("Hmm",it),ft("Hmmss",rt),bt(["H","HH"],Tt),bt(["k","kk"],(function(t,e,n){t=V(t),e[Tt]=24===t?0:t})),bt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),bt(["h","hh"],(function(t,e,n){e[Tt]=V(t),p(n).bigHour=!0})),bt("hmm",(function(t,e,n){var i=t.length-2;e[Tt]=V(t.substr(0,i)),e[Ct]=V(t.substr(i)),p(n).bigHour=!0})),bt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Tt]=V(t.substr(0,i)),e[Ct]=V(t.substr(i,2)),e[Et]=V(t.substr(r)),p(n).bigHour=!0})),bt("Hmm",(function(t,e,n){var i=t.length-2;e[Tt]=V(t.substr(0,i)),e[Ct]=V(t.substr(i))})),bt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Tt]=V(t.substr(0,i)),e[Ct]=V(t.substr(i,2)),e[Et]=V(t.substr(r))})),dt=G("Hours",!0);var re,ae={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Ot,week:{dow:0,doy:6}
11,weekdays:Gt,weekdaysMin:Zt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},se={},oe={};function le(t){return t&&t.toLowerCase().replace("_","-")}function ce(t){for(var e,n,i,r,a=0;a<t.length;){for(e=(r=le(t[a]).split("-")).length,n=(n=le(t[a+1]))?n.split("-"):null;0<e;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(r,n)>=e-1)break;e--}a++}return re}function he(e){var i;if(void 0===se[e]&&t&&t.exports&&null!=e.match("^[^/\\\\]*$"))try{i=re._abbr,n(6155)("./"+e),ue(i)}catch(i){se[e]=null}return se[e]}function ue(t,e){return t&&((e=l(e)?fe(t):de(t,e))?re=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),re._abbr}function de(t,e){if(null===e)return delete se[t],null;var n,i=ae;if(e.abbr=t,null!=se[t])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])i=se[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=n._config}return se[t]=new D(A(i,e)),oe[t]&&oe[t].forEach((function(t){de(t.name,t.config)})),ue(t),se[t]}function fe(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return re;if(!r(t)){if(e=he(t))return e;t=[t]}return ce(t)}function pe(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[kt]<0||11<e[kt]?kt:e[wt]<1||e[wt]>Lt(e[vt],e[kt])?wt:e[Tt]<0||24<e[Tt]||24===e[Tt]&&(0!==e[Ct]||0!==e[Et]||0!==e[St])?Tt:e[Ct]<0||59<e[Ct]?Ct:e[Et]<0||59<e[Et]?Et:e[St]<0||999<e[St]?St:-1,p(t)._overflowDayOfYear&&(e<vt||wt<e)&&(e=wt),p(t)._overflowWeeks&&-1===e&&(e=At),p(t)._overflowWeekday&&-1===e&&(e=Dt),p(t).overflow=e),t}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/Z|[+-]\d\d(?::?\d\d)?/,be=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xe=/^\/?Date\((-?\d+)/i,ve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function we(t){var e,n,i,r,a,s,o=t._i,l=ge.exec(o)||ye.exec(o),c=(o=be.length,_e.length);if(l){for(p(t).iso=!0,e=0,n=o;e<n;e++)if(be[e][1].exec(l[1])){r=be[e][0],i=!1!==be[e][2];break}if(null==r)t._isValid=!1;else{if(l[3]){for(e=0,n=c;e<n;e++)if(_e[e][1].exec(l[3])){a=(l[2]||" ")+_e[e][0];break}if(null==a)return void(t._isValid=!1)}if(i||null==a){if(l[4]){if(!me.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(a||"")+(s||""),Ae(t)}else t._isValid=!1}}else t._isValid=!1}function Te(t,e,n,i,r,a){return t=[function(t){return(t=parseInt(t,10))<=49?2e3+t:t<=999?1900+t:t}(t),Ot.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)],a&&t.push(parseInt(a,10)),t}function Ce(t){var e,n,i,r,a=ve.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));a?(i=e=Te(a[4],a[3],a[2],a[5],a[6],a[7]),r=t,(n=a[1])&&Xt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(p(r).weekdayMismatch=!0,r._isValid=!1):(t._a=e,t._tzm=(n=a[8],i=a[9],r=a[10],n?ke[n]:i?0:((n=parseInt(r,10))-(i=n%100))/100*60+i),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0)):t._isValid=!1}function Ee(t,e,n){return null!=t?t:null!=e?e:n}function Se(t){var e,n,r,a,s,o,l,c,h,u,d,f=[];if(!t._d){for(r=t,a=new Date(i.now()),n=r._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],t._w&&null==t._a[wt]&&null==t._a[kt]&&(null!=(a=(r=t)._w).GG||null!=a.W||null!=a.E?(c=1,h=4,s=Ee(a.GG,r._a[vt],Ht(Ne(),1,4).year),o=Ee(a.W,1),((l=Ee(a.E,1))<1||7<l)&&(u=!0)):(c=r._locale._week.dow,h=r._locale._week.doy,d=Ht(Ne(),c,h),s=Ee(a.gg,r._a[vt],d.year),o=Ee(a.w,d.week),null!=a.d?((l=a.d)<0||6<l)&&(u=!0):null!=a.e?(l=a.e+c,(a.e<0||6<a.e)&&(u=!0)):l=c),o<1||o>
11qt(s,c,h)?p(r)._overflowWeeks=!0:null!=u?p(r)._overflowWeekday=!0:(d=Wt(s,o,l,c,h),r._a[vt]=d.year,r._dayOfYear=d.dayOfYear)),null!=t._dayOfYear&&(a=Ee(t._a[vt],n[vt]),(t._dayOfYear>Pt(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),u=zt(a,0,t._dayOfYear),t._a[kt]=u.getUTCMonth(),t._a[wt]=u.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=n[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Tt]&&0===t._a[Ct]&&0===t._a[Et]&&0===t._a[St]&&(t._nextDay=!0,t._a[Tt]=0),t._d=(t._useUTC?zt:jt).apply(null,f),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Tt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(p(t).weekdayMismatch=!0)}}function Ae(t){if(t._f===i.ISO_8601)we(t);else if(t._f===i.RFC_2822)Ce(t);else{t._a=[],p(t).empty=!0;for(var e,n,r,a,o,l=""+t._i,c=l.length,h=0,u=$(t._f,t._locale).match(O)||[],d=u.length,f=0;f<d;f++)n=u[f],(e=(l.match(pt(n,t))||[])[0])&&(0<(r=l.substr(0,l.indexOf(e))).length&&p(t).unusedInput.push(r),l=l.slice(l.indexOf(e)+e.length),h+=e.length),I[n]?(e?p(t).empty=!1:p(t).unusedTokens.push(n),r=n,o=t,null!=(a=e)&&s(mt,r)&&mt[r](a,o._a,o,r)):t._strict&&!e&&p(t).unusedTokens.push(n);p(t).charsLeftOver=c-h,0<l.length&&p(t).unusedInput.push(l),t._a[Tt]<=12&&!0===p(t).bigHour&&0<t._a[Tt]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[Tt]=function(t,e,n){return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[Tt],t._meridiem),null!==(c=p(t).era)&&(t._a[vt]=t._locale.erasConvertYear(c,t._a[vt])),Se(t),pe(t)}}function De(t){var e,n,s,o=t._i,f=t._f;return t._locale=t._locale||fe(t._l),null===o||void 0===f&&""===o?y({nullInput:!0}):("string"==typeof o&&(t._i=o=t._locale.preparse(o)),k(o)?new v(pe(o)):(h(o)?t._d=o:r(f)?function(t){var e,n,i,r,a,s,o=!1,l=t._f.length;if(0===l)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<l;r++)a=0,s=!1,e=x({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ae(e),g(e)&&(s=!0),a=(a+=p(e).charsLeftOver)+10*p(e).unusedTokens.length,p(e).score=a,o?a<i&&(i=a,n=e):(null==i||a<i||s)&&(i=a,n=e,s&&(o=!0));d(t,n||e)}(t):f?Ae(t):l(f=(o=t)._i)?o._d=new Date(i.now()):h(f)?o._d=new Date(f.valueOf()):"string"==typeof f?(n=o,null!==(e=xe.exec(n._i))?n._d=new Date(+e[1]):(we(n),!1===n._isValid&&(delete n._isValid,Ce(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:i.createFromInputFallback(n))))):r(f)?(o._a=u(f.slice(0),(function(t){return parseInt(t,10)})),Se(o)):a(f)?(e=o)._d||(s=void 0===(n=z(e._i)).day?n.date:n.day,e._a=u([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Se(e)):c(f)?o._d=new Date(f):i.createFromInputFallback(o),g(t)||(t._d=null),t))}function Le(t,e,n,i,s){var l={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(a(t)&&o(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=t,l._f=e,l._strict=i,(s=new v(pe(De(s=l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ne(t,e,n,i){return Le(t,e,n,i,!1)}function Oe(t,e){var n,i;if(!(e=1===e.length&&r(e[0])?e[0]:e).length)return Ne();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){},it=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),rt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()}));var Me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Be(t){var e=(t=z(t)).year||0,n=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,h=t.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Me.length;for(e in t)if(s(t,e)&&(-1===xt.call(Me,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Me[n]]){if(i)return!1;parseFloat(t[Me[n]])!==V(t[Me[n]])&&(i=!0)}return!0}(t),this._milliseconds=+h+1e3*c+6e4*l+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*n+12*e,this._data={},this._locale=fe(),this._bubble()}function Ie(t){return t instanceof Be}function Fe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Re(t,e){F(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+N(~~(t/60),2)+e+N(~~t%60,2)}))}Re("Z",":"),Re("ZZ",""),ft("Z",ut),ft("ZZ",ut),bt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Pe(ut,t)}));var $e=/([\+\-]|\d\d)/gi;function Pe(t,e){return null===(e=(e||"").match(t))?null:0===(e=60*(t=((e[e.length-1]||[])+"").match($e)||["-",0,0])[1]+V(t[2]))?0:"+"===t[0]?e:-e}function Ye(t,e){var n;return e._isUTC?(e=e.clone(),n=(k(t)||h(t)?t:Ne(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),i.updateOffset(e,!1),e):Ne(t).local()}function je(t){return-Math.round(t._d.getTimezoneOffset())}function ze(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ue=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,We=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(t,e){var n,i=t,r=null;return Ie(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(i={},e?i[e]=+t:i.milliseconds=+t):(r=Ue.exec(t))?(n="-"===r[1]?-1:1,i={y:0,d:V(r[wt])*n,h:V(r[Tt])*n,m:V(r[Ct])*n,s:V(r[Et])*n,ms:V(Fe(1e3*r[St]))*n}):(r=We.exec(t))?(n="-"===r[1]?-1:1,i={y:qe(r[2],n),M:qe(r[3],n),w:qe(r[4],n),d:qe(r[5],n),h:qe(r[6],n),m:qe(r[7],n),s:qe(r[8],n)}):null==i?i={}
11:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Ye(e,t),t.isBefore(e)?n=Ve(t,e):((n=Ve(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Ne(i.from),Ne(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),r=new Be(i),Ie(t)&&s(t,"_locale")&&(r._locale=t._locale),Ie(t)&&s(t,"_isValid")&&(r._isValid=t._isValid),r}function qe(t,e){return t=t&&parseFloat(t.replace(",",".")),(isNaN(t)?0:t)*e}function Ve(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(E(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Xe(this,He(n,i),t),this}}function Xe(t,e,n,r){var a=e._milliseconds,s=Fe(e._days);e=Fe(e._months),t.isValid()&&(r=null==r||r,e&&Ft(t,X(t,"Month")+e*n),s&&Z(t,"Date",X(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,s||e))}function Ze(t){return"string"==typeof t||t instanceof String}function Qe(t){return k(t)||h(t)||Ze(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&Ze(t)})).length),e&&n}(t)||function(t){var e,n,i=a(t)&&!o(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||s(t,n);return i&&r}(t)||null==t}function Ke(t,e){if(t.date()<e.date())return-Ke(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i)))||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=fe(t))&&(this._locale=t),this)}function tn(){return this._locale}He.fn=Be.prototype,He.invalid=function(){return He(NaN)},Nt=Ge(1,"add"),Gt=Ge(-1,"subtract"),i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Zt=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));var en,nn=126227808e5;function rn(t,e){return(t%e+e)%e}function an(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-nn:new Date(t,e,n).valueOf()}function sn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-nn:Date.UTC(t,e,n)}function on(t,e){return e.erasAbbrRegex(t)}function ln(){for(var t=[],e=[],n=[],i=[],r=this.eras(),a=0,s=r.length;a<s;++a)e.push(gt(r[a].name)),t.push(gt(r[a].abbr)),n.push(gt(r[a].narrow)),i.push(gt(r[a].name)),i.push(gt(r[a].abbr)),i.push(gt(r[a].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function cn(t,e){F(0,[t,t.length],0,e)}function hn(t,e,n,i,r){var a;return null==t?Ht(this,i,r).year:(a=qt(t,i,r),function(t,e,n,i,r){return e=zt((t=Wt(t,e,n,i,r)).year,0,t.dayOfYear),this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=a<e?a:e,n,i,r))}for(F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ft("N",on),ft("NN",on),ft("NNN",on),ft("NNNN",(function(t,e){return e.erasNameRegex(t)})),ft("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),bt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){(i=n._locale.erasParse(t,i,n._strict))?p(n).era=i:p(n).invalidEra=t})),ft("y",lt),ft("yy",lt),ft("yyy",lt),ft("yyyy",lt),ft("yo",(function(t,e){return e._eraYearOrdinalRegex||lt})),bt(["y","yy","yyy","yyyy"],vt),bt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),ft("G",ct),ft("g",ct),ft("GG",nt,K),ft("gg",nt,K),ft("GGGG",st,tt),ft("gggg",st,tt),ft("GGGGG",ot,et),ft("ggggg",ot,et),_t(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=V(t)})),_t(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),Y("quarter","Q"),W("quarter",7),ft("Q",Q),bt("Q",(function(t,e){e[kt]=3*(V(t)-1)})),F("D",["DD",2],"Do","date"),Y("date","D"),W("date",9),ft("D",nt),ft("DD",nt,K),ft("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),bt(["D","DD"],wt),bt("Do",(function(t,e){e[wt]=V(t.match(nt)[0])})),st=G("Date",!0),F("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),W("dayOfYear",4),ft("DDD",at),ft("DDDD",J),bt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=V(t)})),F("m",["mm",2],0,"minute"),Y("minute","m"),W("minute",14),ft("m",nt),ft("mm",nt,K
11),bt(["m","mm"],Ct),tt=G("Minutes",!1),F("s",["ss",2],0,"second"),Y("second","s"),W("second",15),ft("s",nt),ft("ss",nt,K),bt(["s","ss"],Et),ot=G("Seconds",!1),F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Y("millisecond","ms"),W("millisecond",16),ft("S",at,Q),ft("SS",at,K),ft("SSS",at,J),en="SSSS";en.length<=9;en+="S")ft(en,lt);function un(t,e){e[St]=V(1e3*("0."+t))}for(en="S";en.length<=9;en+="S")bt(en,un);function dn(t){return t}function fn(t,e,n,i){var r=fe();return i=f().set(i,e),r[n](i,t)}function pn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return fn(t,e,n,"month");for(var i=[],r=0;r<12;r++)i[r]=fn(t,r,n,"month");return i}function gn(t,e,n,i){"boolean"==typeof t?c(e)&&(n=e,e=void 0):(e=t,t=!1,c(n=e)&&(n=e,e=void 0)),e=e||"";var r,a=fe(),s=t?a._week.dow:0,o=[];if(null!=n)return fn(e,(n+s)%7,i,"day");for(r=0;r<7;r++)o[r]=fn(e,(r+s)%7,i,"day");return o}et=G("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName"),(Q=v.prototype).add=Nt,Q.calendar=function(t,e){1===arguments.length&&(arguments[0]?Qe(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=a(t)&&!o(t),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<i.length;r+=1)n=n||s(t,i[r]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n=Ye(t=t||Ne(),this).startOf("day");return n=i.calendarFormat(this,n)||"sameElse",e=e&&(S(e[n])?e[n].call(this,t):e[n]),this.format(e||this.localeData().calendar(n,this,Ne(t)))},Q.clone=function(){return new v(this)},Q.diff=function(t,e,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=Ye(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=j(e)){case"year":a=Ke(this,i)/12;break;case"month":a=Ke(this,i);break;case"quarter":a=Ke(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:q(a)},Q.endOf=function(t){var e,n;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?sn:an,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-rn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-rn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-rn(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Q.format=function(t){return t=R(this,t=t||(this.isUtc()?i.defaultFormatUtc:i.defaultFormat)),this.localeData().postformat(t)},Q.from=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ne(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Q.fromNow=function(t){return this.from(Ne(),t)},Q.to=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ne(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Q.toNow=function(t){return this.to(Ne(),t)},Q.get=function(t){return S(this[t=j(t)])?this[t]():this},Q.invalidAt=function(){return p(this).overflow},Q.isAfter=function(t,e){return t=k(t)?t:Ne(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},Q.isBefore=function(t,e){return t=k(t)?t:Ne(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},Q.isBetween=function(t,e,n,i){return t=k(t)?t:Ne(t),e=k(e)?e:Ne(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},Q.isSame=function(t,e){return t=k(t)?t:Ne(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},Q.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Q.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Q.isValid=function(){return g(this)},Q.lang=Zt,Q.locale=Je,Q.localeData=tn,Q.max=rt,Q.min=it,Q.parsingFlags=function(){return d({},p(this))},Q.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=z(t)),i=n.length,r=0;r<i;r++)this[n[r].unit](t[n[r].unit]);else if(S(this[t=j(t)]))return this[t](e);return this},Q.startOf=function(t){var e,n;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?sn:an,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=rn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=rn(e,6e4);break;case"second":e=this._d.valueOf(),e-=rn(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},Q.subtract=Gt,Q.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Q.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Q.toDate=function(){return new Date(this.valueOf())},Q.toISOString=function(t){if(!this.isValid())return null;var e=(t=!0!==t)?this.clone().utc():this;return e.year()<0||9999<e.year()?R(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(e,"Z")):R(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
11,Q.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e="moment",n="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+e+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Q.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Q.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},Q.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},Q.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},Q.eraYear=function(){for(var t,e,n=this.localeData().eras(),r=0,a=n.length;r<a;++r)if(t=n[r].since<=n[r].until?1:-1,e=this.clone().startOf("day").valueOf(),n[r].since<=e&&e<=n[r].until||n[r].until<=e&&e<=n[r].since)return(this.year()-i(n[r].since).year())*t+n[r].offset;return this.year()},Q.year=Yt,Q.isLeapYear=function(){return H(this.year())},Q.weekYear=function(t){return hn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Q.isoWeekYear=function(t){return hn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Q.quarter=Q.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Q.month=Rt,Q.daysInMonth=function(){return Lt(this.year(),this.month())},Q.week=Q.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Q.isoWeek=Q.isoWeeks=function(t){var e=Ht(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Q.weeksInYear=function(){var t=this.localeData()._week;return qt(this.year(),t.dow,t.doy)},Q.weeksInWeekYear=function(){var t=this.localeData()._week;return qt(this.weekYear(),t.dow,t.doy)},Q.isoWeeksInYear=function(){return qt(this.year(),1,4)},Q.isoWeeksInISOWeekYear=function(){return qt(this.isoWeekYear(),1,4)},Q.date=st,Q.day=Q.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},Q.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Q.isoWeekday=function(t){return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN;var e,n},Q.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Q.hour=Q.hours=dt,Q.minute=Q.minutes=tt,Q.second=Q.seconds=ot,Q.millisecond=Q.milliseconds=et,Q.utcOffset=function(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:je(this);if("string"==typeof t){if(null===(t=Pe(ut,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=je(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?Xe(this,He(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},Q.utc=function(t){return this.utcOffset(0,t)},Q.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(je(this),"m")),this},Q.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Pe(ht,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},Q.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ne(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Q.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Q.isLocal=function(){return!!this.isValid()&&!this._isUTC},Q.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Q.isUtc=ze,Q.isUTC=ze,Q.zoneAbbr=function(){return this._isUTC?"UTC":""},Q.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Q.dates=T("dates accessor is deprecated. Use date instead.",st),Q.months=T("months accessor is deprecated. Use month instead",Rt),Q.years=T("years accessor is deprecated. Use year instead",Yt),Q.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()})),Q.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return x(e,this),(e=De(e))._a?(t=(e._isUTC?f:Ne)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,n){for(var i=Math.min(t.length,e.length),r=M
vendor: 6,283 bytes, line 11
11ath.abs(t.length-e.length),a=0,s=0;s<i;s++)(n&&t[s]!==e[s]||!n&&V(t[s])!==V(e[s]))&&a++;return a+r}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted})),(K=D.prototype).calendar=function(t,e,n){return S(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},K.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},K.invalidDate=function(){return this._invalidDate},K.ordinal=function(t){return this._ordinal.replace("%d",t)},K.preparse=dn,K.postformat=dn,K.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return S(r)?r(t,e,n,i):r.replace(/%d/i,t)},K.pastFuture=function(t,e){return S(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},K.set=function(t){var e,n;for(n in t)s(t,n)&&(S(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},K.eras=function(t,e){for(var n,r=this._eras||fe("en")._eras,a=0,s=r.length;a<s;++a)switch("string"==typeof r[a].since&&(n=i(r[a].since).startOf("day"),r[a].since=n.valueOf()),typeof r[a].until){case"undefined":r[a].until=1/0;break;case"string":n=i(r[a].until).startOf("day").valueOf(),r[a].until=n.valueOf()}return r},K.erasParse=function(t,e,n){var i,r,a,s,o,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(a=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),o=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(a===t)return l[i];break;case"NNNNN":if(o===t)return l[i]}else if(0<=[a,s,o].indexOf(t))return l[i]},K.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},K.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||ln.call(this),t?this._erasAbbrRegex:this._erasRegex},K.erasNameRegex=function(t){return s(this,"_erasNameRegex")||ln.call(this),t?this._erasNameRegex:this._erasRegex},K.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||ln.call(this),t?this._erasNarrowRegex:this._erasRegex},K.months=function(t,e){return t?(r(this._months)?this._months:this._months[(this._months.isFormat||Mt).test(e)?"format":"standalone"])[t.month()]:r(this._months)?this._months:this._months.standalone},K.monthsShort=function(t,e){return t?(r(this._monthsShort)?this._monthsShort:this._monthsShort[Mt.test(e)?"format":"standalone"])[t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},K.monthsParse=function(t,e,n){var i,r;if(this._monthsParseExact)return function(t,e,n){var i,r,a;if(t=t.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=xt.call(this._shortMonthsParse,t))?r:null:-1!==(r=xt.call(this._longMonthsParse,t))?r:null:"MMM"===e?-1!==(r=xt.call(this._shortMonthsParse,t))||-1!==(r=xt.call(this._longMonthsParse,t))?r:null:-1!==(r=xt.call(this._longMonthsParse,t))||-1!==(r=xt.call(this._shortMonthsParse,t))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},K.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||$t.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=It),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},K.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||$t.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},K.week=function(t){return Ht(t,this._week.dow,this._week.doy).week},K.firstDayOfYear=function(){return this._week.doy},K.firstDayOfWeek=function(){return this._week.dow},K.weekdays=function(t,e){return e=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Vt(e,this._week.dow):t?e[t.day()]:e},K.weekdaysMin=function(t){return!0===t?Vt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},K.weekdaysShort=function(t){return!0===t?Vt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},K.weekdaysParse=function(t,e,n){var i,r;if(this._weekdaysParseExact)return function(t,e,n){var i,r,a;if(t=t.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=xt.call(this._weekdaysParse,t))?r:null:"ddd"===e?-1!==(r=xt.call(this._shortWeekdaysParse,t))?r:null:-1!==(r=xt.call(this._minWeekdaysParse,t))?r:null:"dddd"===e?-1!==(r=xt.call(this._weekdaysParse,t))||-1!==(r=xt.call(this._shortWeekdaysParse,t))||-1!==(r=xt.call(this._minWeekdaysParse,t))?r:null:"ddd"===e?-1!==(r=xt.call(this._shortWeekdaysParse,t))||-1!==(r=xt.call(this._weekdaysParse,t))||-1!==(r=xt.call(this._minWeekdaysParse,t))?r:null:-1!==(r=xt.call(this._minWeekdaysParse,t))||-1!==(r=xt.call(this._weekdaysParse,t))||-1!==(r=xt.call(this._shortWeekdaysParse,t))?r:null}
11.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},K.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},K.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},K.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},K.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},K.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===V(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ue),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",fe);var yn=Math.abs;function mn(t,e,n,i){return e=He(e,n),t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function _n(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function vn(t){return function(){return this.as(t)}}function kn(t){return function(){return this.isValid()?this._data[t]:NaN}}at=vn("ms"),J=vn("s"),Nt=vn("m"),rt=vn("h"),it=vn("d"),Gt=vn("w"),dt=vn("M"),tt=vn("Q"),ot=vn("y"),et=kn("milliseconds"),st=kn("seconds"),Yt=kn("minutes"),K=kn("hours");var wn=kn("days"),Tn=kn("months"),Cn=kn("years"),En=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function An(t,e,n,i){var r=He(t).abs(),a=En(r.as("s")),s=En(r.as("m")),o=En(r.as("h")),l=En(r.as("d")),c=En(r.as("M")),h=En(r.as("w"));return r=En(r.as("y")),a=(a<=n.ss?["s",a]:a<n.s&&["ss",a])||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l],(a=(a=null!=n.w?a||h<=1&&["w"]||h<n.w&&["ww",h]:a)||c<=1&&["M"]||c<n.M&&["MM",c]||r<=1&&["y"]||["yy",r])[2]=e,a[3]=0<+t,a[4]=i,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,a)}var Dn=Math.abs;function Ln(t){return(0<t)-(t<0)||+t}function Nn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,a,s,o=Dn(this._milliseconds)/1e3,l=Dn(this._days),c=Dn(this._months),h=this.asSeconds();return h?(t=q(o/60),e=q(t/60),o%=60,t%=60,n=q(c/12),c%=12,i=o?o.toFixed(3).replace(/\.?0+$/,""):"",r=Ln(this._months)!==Ln(h)?"-":"",a=Ln(this._days)!==Ln(h)?"-":"",s=Ln(this._milliseconds)!==Ln(h)?"-":"",(h<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?a+l+"D":"")+(e||t||o?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(o?s+i+"S":"")):"P0D"}var On=Be.prototype;return On.isValid=function(){return this._isValid},On.abs=function(){var t=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),t.milliseconds=yn(t.milliseconds),t.seconds=yn(t.seconds),t.minutes=yn(t.minutes),t.hours=yn(t.hours),t.months=yn(t.months),t.years=yn(t.years),this},On.add=function(t,e){return mn(this,t,e,1)}
11,On.subtract=function(t,e){return mn(this,t,e,-1)},On.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=j(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+_n(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},On.asMilliseconds=at,On.asSeconds=J,On.asMinutes=Nt,On.asHours=rt,On.asDays=it,On.asWeeks=Gt,On.asMonths=dt,On.asQuarters=tt,On.asYears=ot,On.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},On._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*bn(xn(n)+e),n=e=0),i.milliseconds=t%1e3,t=q(t/1e3),i.seconds=t%60,t=q(t/60),i.minutes=t%60,t=q(t/60),i.hours=t%24,e+=q(t/24),n+=t=q(_n(e)),e-=bn(xn(t)),t=q(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},On.clone=function(){return He(this)},On.get=function(t){return t=j(t),this.isValid()?this[t+"s"]():NaN},On.milliseconds=et,On.seconds=st,On.minutes=Yt,On.hours=K,On.days=wn,On.weeks=function(){return q(this.days()/7)},On.months=Tn,On.years=Cn,On.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=Sn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(i=Object.assign({},Sn,e),null!=e.s&&null==e.ss&&(i.ss=e.s-1)),e=An(this,!n,i,t=this.localeData()),n&&(e=t.pastFuture(+this,e)),t.postformat(e)},On.toISOString=Nn,On.toString=Nn,On.toJSON=Nn,On.locale=Je,On.localeData=tn,On.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),On.lang=Zt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ft("x",ct),ft("X",/[+-]?\d+(\.\d{1,3})?/),bt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),bt("x",(function(t,e,n){n._d=new Date(V(t))})),i.version="2.29.4",e=Ne,i.fn=Q,i.min=function(){return Oe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Oe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return Ne(1e3*t)},i.months=function(t,e){return pn(t,e,"months")},i.isDate=h,i.locale=ue,i.invalid=y,i.duration=He,i.isMoment=k,i.weekdays=function(t,e,n){return gn(t,e,n,"weekdays")},i.parseZone=function(){return Ne.apply(null,arguments).parseZone()},i.localeData=fe,i.isDuration=Ie,i.monthsShort=function(t,e){return pn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return gn(t,e,n,"weekdaysMin")},i.defineLocale=de,i.updateLocale=function(t,e){var n,i;return null!=e?(i=ae,null!=se[t]&&null!=se[t].parentLocale?se[t].set(A(se[t]._config,e)):(e=A(i=null!=(n=he(t))?n._config:i,e),null==n&&(e.abbr=t),(i=new D(e)).parentLocale=se[t],se[t]=i),ue(t)):null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===ue()&&ue(t)):null!=se[t]&&delete se[t]),se[t]},i.locales=function(){return L(se)},i.weekdaysShort=function(t,e,n){return gn(t,e,n,"weekdaysShort")},i.normalizeUnits=j,i.relativeTimeRounding=function(t){return void 0===t?En:"function"==typeof t&&(En=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Sn[t]&&(void 0===e?Sn[t]:(Sn[t]=e,"s"===t&&(Sn.ss=e-1),!0))},i.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},i.prototype=Q,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.