Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 482511c..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,5 +0,0 @@ -# These owners will be the default owners for everything in -# the repo. Unless a later match takes precedence, -# @global-owner1 and @global-owner2 will be requested for -# review when someone opens a pull request. -* @dfreniche @sourabhbagrecha @sis0k0 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index a964032..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Deploy to GitHub Pages - -on: - push: - branches: - - main - -jobs: - build: - name: Build Docusaurus - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - - name: Install dependencies - run: npm ci - - name: Build website - run: npm run build - - - name: Upload Build Artifact - uses: actions/upload-pages-artifact@v3 - with: - path: build - - deploy: - name: Deploy to GitHub Pages - needs: build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b2d6de3..0000000 --- a/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -# Dependencies -/node_modules - -# Production -/build - -# Generated files -.docusaurus -.cache-loader - -# Misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index d6cb288..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -npm run build diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100644 index d6cb288..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1 +0,0 @@ -npm run build diff --git a/static/.nojekyll b/.nojekyll similarity index 100% rename from static/.nojekyll rename to .nojekyll diff --git a/404.html b/404.html new file mode 100644 index 0000000..485cd70 --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
["'])(?.*?)\1/,g=/\{(? [\d,-]+)\}/,m={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},y={...m,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},x=Object.keys(m);function b(t,e){let r=t.map(t=>{let{start:r,end:i}=y[t];return`(?:${r}\\s*(${e.flatMap(t=>[t.line,t.block?.start,t.block?.end].filter(Boolean)).join("|")})\\s*${i})`}).join("|");return RegExp(`^\\s*(?:${r})\\s*$`)}function k(t){let{as:e,...r}=t,n=function(t){let e={color:"--prism-color",backgroundColor:"--prism-background-color"},r={};return Object.entries(t.plain).forEach(t=>{let[i,n]=t,a=e[i];a&&"string"==typeof n&&(r[a]=n)}),r}(c());return(0,i.jsx)(e,{...r,style:n,className:(0,s.Z)(r.className,"codeBlockContainer_Ckt0",u.k.common.codeBlock)})}let C={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function w(t){let{children:e,className:r}=t;return(0,i.jsx)(k,{as:"pre",tabIndex:0,className:(0,s.Z)(C.codeBlockStandalone,"thin-scrollbar",r),children:(0,i.jsx)("code",{className:C.codeBlockLines,children:e})})}var _=r("1934");let v={attributes:!0,characterData:!0,childList:!0,subtree:!0};var T=r("3359");let S={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function M(t){let{line:e,classNames:r,showLineNumbers:n,getLineProps:a,getTokenProps:o}=t;1===e.length&&"\n"===e[0].content&&(e[0].content="");let l=a({line:e,className:(0,s.Z)(r,n&&S.codeLine)}),h=e.map((t,e)=>(0,i.jsx)("span",{...o({token:t})},e));return(0,i.jsxs)("span",{...l,children:[n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:S.codeLineNumber}),(0,i.jsx)("span",{className:S.codeLineContent,children:h})]}):h,(0,i.jsx)("br",{})]})}var B=r("7670");function L(t){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function A(t){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let F={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function $(t){let{code:e,className:r}=t,[a,o]=(0,n.useState)(!1),l=(0,n.useRef)(void 0),h=(0,n.useCallback)(()=>{!function(t){let{target:e=document.body}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof t}\`.`);let r=document.createElement("textarea"),i=document.activeElement;r.value=t,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";let n=document.getSelection(),a=n.rangeCount>0&&n.getRangeAt(0);e.append(r),r.select(),r.selectionStart=0,r.selectionEnd=t.length;let o=!1;try{document.execCommand("copy")}catch{}r.remove(),a&&(n.removeAllRanges(),n.addRange(a)),i&&i.focus()}(e),o(!0),l.current=window.setTimeout(()=>{o(!1)},1e3)},[e]);return(0,n.useEffect)(()=>()=>window.clearTimeout(l.current),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,B.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,B.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,B.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",r,F.copyButton,a&&F.copyButtonCopied),onClick:h,children:(0,i.jsxs)("span",{className:F.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(L,{className:F.copyButtonIcon}),(0,i.jsx)(A,{className:F.copyButtonSuccessIcon})]})})}function W(t){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,i.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}let E={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function N(t){let{className:e,onClick:r,isEnabled:n}=t,a=(0,B.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:r,className:(0,s.Z)("clean-btn",e,n&&E.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(W,{className:E.wordWrapButtonIcon,"aria-hidden":"true"})})}function Z(t){var e;let{children:r,className:a="",metastring:o,title:l,showLineNumbers:u,language:d}=t,{prism:{defaultLanguage:m,magicComments:y}}=(0,h.L)(),w=(e=d??function(t){let e=t.split(" ").find(t=>t.startsWith("language-"));return e?.replace(/language-/,"")}(a)??m,e?.toLowerCase()),S=c(),B=function(){let[t,e]=(0,n.useState)(!1),[r,i]=(0,n.useState)(!1),a=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{let r=a.current.querySelector("code");t?r.removeAttribute("style"):(r.style.whiteSpace="pre-wrap",r.style.overflowWrap="anywhere"),e(t=>!t)},[a,t]),s=(0,n.useCallback)(()=>{let{scrollWidth:t,clientWidth:e}=a.current;i(t>e||a.current.querySelector("code").hasAttribute("style"))},[a]);return!function(t,e){let[r,i]=(0,n.useState)(),a=(0,n.useCallback)(()=>{i(t.current?.closest("[role=tabpanel][hidden]"))},[t,i]);(0,n.useEffect)(()=>{a()},[a]),function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,i=(0,_.zX)(e),a=(0,_.Ql)(r);(0,n.useEffect)(()=>{let e=new MutationObserver(i);return t&&e.observe(t,a),()=>e.disconnect()},[t,i,a])}(r,t=>{t.forEach(t=>{"attributes"===t.type&&"hidden"===t.attributeName&&(e(),a())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(a,s),(0,n.useEffect)(()=>{s()},[t,s]),(0,n.useEffect)(()=>(window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("resize",s)}),[s]),{codeBlockRef:a,isEnabled:t,isCodeScrollable:r,toggle:o}}(),L=(o?.match(p)?.groups.title??"")||l,{lineClassNames:A,code:F}=function(t,e){let r=t.replace(/\n$/,""),{language:i,magicComments:n,metastring:a}=e;if(a&&g.test(a)){let t=a.match(g).groups.range;if(0===n.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${a}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let e=n[0].className;return{lineClassNames:Object.fromEntries(f()(t).filter(t=>t>0).map(t=>[t-1,[e]])),code:r}}if(void 0===i)return{lineClassNames:{},code:r};let o=function(t,e){switch(t){case"js":case"javascript":case"ts":case"typescript":return b(["js","jsBlock"],e);case"jsx":case"tsx":return b(["js","jsBlock","jsx"],e);case"html":return b(["js","jsBlock","html"],e);case"python":case"py":case"bash":return b(["bash"],e);case"markdown":case"md":return b(["html","jsx","bash"],e);case"tex":case"latex":case"matlab":return b(["tex"],e);case"lua":case"haskell":return b(["lua"],e);case"sql":return b(["lua","jsBlock"],e);case"wasm":return b(["wasm"],e);case"vb":case"vba":case"visual-basic":return b(["vb","rem"],e);case"vbnet":return b(["vbnet","rem"],e);case"batch":return b(["rem"],e);case"basic":return b(["rem","f90"],e);case"fsharp":return b(["js","ml"],e);case"ocaml":case"sml":return b(["ml"],e);case"fortran":return b(["f90"],e);case"cobol":return b(["cobol"],e);default:return b(x,e)}}(i,n),s=r.split("\n"),l=Object.fromEntries(n.map(t=>[t.className,{start:0,range:""}])),h=Object.fromEntries(n.filter(t=>t.line).map(t=>{let{className:e,line:r}=t;return[r,e]})),c=Object.fromEntries(n.filter(t=>t.block).map(t=>{let{className:e,block:r}=t;return[r.start,e]})),u=Object.fromEntries(n.filter(t=>t.block).map(t=>{let{className:e,block:r}=t;return[r.end,e]}));for(let t=0;t void 0!==t);h[r]?l[h[r]].range+=`${t},`:c[r]?l[c[r]].start=t:u[r]&&(l[u[r]].range+=`${l[u[r]].start}-${t-1},`),s.splice(t,1)}r=s.join("\n");let d={};return Object.entries(l).forEach(t=>{let[e,{range:r}]=t;f()(r).forEach(t=>{d[t]??=[],d[t].push(e)})}),{lineClassNames:d,code:r}}(r,{metastring:o,language:w,magicComments:y}),W=u??!!o?.includes("showLineNumbers");return(0,i.jsxs)(k,{as:"div",className:(0,s.Z)(a,w&&!a.includes(`language-${w}`)&&`language-${w}`),children:[L&&(0,i.jsx)("div",{className:C.codeBlockTitle,children:L}),(0,i.jsxs)("div",{className:C.codeBlockContent,children:[(0,i.jsx)(T.y$,{theme:S,code:F,language:w??"text",children:t=>{let{className:e,style:r,tokens:n,getLineProps:a,getTokenProps:o}=t;return(0,i.jsx)("pre",{tabIndex:0,ref:B.codeBlockRef,className:(0,s.Z)(e,C.codeBlock,"thin-scrollbar"),style:r,children:(0,i.jsx)("code",{className:(0,s.Z)(C.codeBlockLines,W&&C.codeBlockLinesWithNumbering),children:n.map((t,e)=>(0,i.jsx)(M,{line:t,getLineProps:a,getTokenProps:o,classNames:A[e],showLineNumbers:W},e))})})}}),(0,i.jsxs)("div",{className:C.buttonGroup,children:[(B.isEnabled||B.isCodeScrollable)&&(0,i.jsx)(N,{className:C.codeButton,onClick:()=>B.toggle(),isEnabled:B.isEnabled}),(0,i.jsx)($,{className:C.codeButton,code:F})]})]})]})}function D(t){let{children:e,...r}=t,a=(0,o.Z)(),s=n.Children.toArray(e).some(t=>(0,n.isValidElement)(t))?e:Array.isArray(e)?e.join(""):e;return(0,i.jsx)("string"==typeof s?Z:w,{...r,children:s},String(a))}function j(t){return(0,i.jsx)("code",{...t})}var O=r("3367"),I=r("8942"),R=r("4961"),z=r("6850");let P={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function q(t){return!!t&&("SUMMARY"===t.tagName||q(t.parentElement))}function H(t){let{summary:e,children:r,...a}=t;(0,R.Z)().collectAnchor(a.id);let s=(0,o.Z)(),l=(0,n.useRef)(null),{collapsed:h,setCollapsed:c}=(0,z.u)({initialState:!a.open}),[u,d]=(0,n.useState)(a.open),f=n.isValidElement(e)?e:(0,i.jsx)("summary",{children:e??"Details"});return(0,i.jsxs)("details",{...a,ref:l,open:u,"data-collapsed":h,className:(0,I.Z)(P.details,s&&P.isBrowser,a.className),onMouseDown:t=>{q(t.target)&&t.detail>1&&t.preventDefault()},onClick:t=>{t.stopPropagation();let e=t.target;q(e)&&function t(e,r){return!!e&&(e===r||t(e.parentElement,r))}(e,l.current)&&(t.preventDefault(),h?(c(!1),d(!0)):c(!0))},children:[f,(0,i.jsx)(z.z,{lazy:!1,collapsed:h,disableSSRStyle:!0,onCollapseTransitionEnd:t=>{c(t),d(!t)},children:(0,i.jsx)("div",{className:P.collapsibleContent,children:r})})]})}function U(t){let{...e}=t;return(0,i.jsx)(H,{...e,className:(0,s.Z)("alert alert--info","details_b_Ee",e.className)})}function Y(t){let e=n.Children.toArray(t.children),r=e.find(t=>n.isValidElement(t)&&"summary"===t.type),a=(0,i.jsx)(i.Fragment,{children:e.filter(t=>t!==r)});return(0,i.jsx)(U,{...t,summary:r,children:a})}var V=r("6055");function G(t){return(0,i.jsx)(V.Z,{...t})}let X={containsTaskList:"containsTaskList_mC6p"};var Q=r("4926"),J=r("5514"),K=r("9358"),tt=r("6972"),te=r("8984");r("3071"),r("8162");var tr=r("6302");r("587"),r("4511"),r("2719");var ti=r("7690"),tn=r("2453"),ta=r("4159"),to=r("5995"),ts=r("8464"),tl=r("7818"),th="comm",tc="rule",tu="decl",td=Math.abs,tf=String.fromCharCode;function tp(t,e,r){return t.replace(e,r)}function tg(t,e){return 0|t.charCodeAt(e)}function tm(t,e,r){return t.slice(e,r)}function ty(t){return t.length}function tx(t,e){return e.push(t),t}function tb(t,e){for(var r="",i=0;i 0?f[x]+" "+b:tp(b,/&\f/g,f[x])).trim())&&(l[y++]=k);return tM(t,e,r,0===n?tc:s,l,h,c,u)}function tW(t,e,r,i,n){return tM(t,e,r,tu,tm(t,0,i),tm(t,i+1,-1),i,n)}var tE=r("7856"),tN=r("3217"),tZ={id:"c4",detector:(0,to.eW)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,to.eW)(async()=>{let{diagram:t}=await r.e("1773").then(r.bind(r,9463));return{id:"c4",diagram:t}},"loader")},tD="flowchart",tj=(0,to.eW)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),tO=(0,to.eW)(async()=>{let{diagram:t}=await r.e("4013").then(r.bind(r,4465));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tj,loader:tO},tR="flowchart-v2",tz=(0,to.eW)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),tP=(0,to.eW)(async()=>{let{diagram:t}=await r.e("4013").then(r.bind(r,4465));return{id:tR,diagram:t}},"loader"),tq={id:tR,detector:tz,loader:tP},tH={id:"er",detector:(0,to.eW)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3389"),r.e("5347")]).then(r.bind(r,1093));return{id:"er",diagram:t}},"loader")},tU="gitGraph",tY=(0,to.eW)(t=>/^\s*gitGraph/.test(t),"detector"),tV=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3917"),r.e("9870")]).then(r.bind(r,6981));return{id:tU,diagram:t}},"loader"),tG={id:tU,detector:tY,loader:tV},tX="gantt",tQ=(0,to.eW)(t=>/^\s*gantt/.test(t),"detector"),tJ=(0,to.eW)(async()=>{let{diagram:t}=await r.e("5516").then(r.bind(r,6907));return{id:tX,diagram:t}},"loader"),tK={id:tX,detector:tQ,loader:tJ},t0="info",t1=(0,to.eW)(t=>/^\s*info/.test(t),"detector"),t2=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3917"),r.e("367")]).then(r.bind(r,4709));return{id:t0,diagram:t}},"loader"),t5={id:t0,detector:t1,loader:t2},t3={id:"pie",detector:(0,to.eW)(t=>/^\s*pie/.test(t),"detector"),loader:(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3917"),r.e("7554")]).then(r.bind(r,7279));return{id:"pie",diagram:t}},"loader")},t4="quadrantChart",t6=(0,to.eW)(t=>/^\s*quadrantChart/.test(t),"detector"),t8=(0,to.eW)(async()=>{let{diagram:t}=await r.e("447").then(r.bind(r,7232));return{id:t4,diagram:t}},"loader"),t9={id:t4,detector:t6,loader:t8},t7="xychart",et=(0,to.eW)(t=>/^\s*xychart-beta/.test(t),"detector"),ee=(0,to.eW)(async()=>{let{diagram:t}=await r.e("2036").then(r.bind(r,8091));return{id:t7,diagram:t}},"loader"),er={id:t7,detector:et,loader:ee},ei="requirement",en=(0,to.eW)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),ea=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3389"),r.e("8588")]).then(r.bind(r,5461));return{id:ei,diagram:t}},"loader"),eo={id:ei,detector:en,loader:ea},es="sequence",el=(0,to.eW)(t=>/^\s*sequenceDiagram/.test(t),"detector"),eh=(0,to.eW)(async()=>{let{diagram:t}=await r.e("4842").then(r.bind(r,2521));return{id:es,diagram:t}},"loader"),ec={id:es,detector:el,loader:eh},eu="class",ed=(0,to.eW)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),ef=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("2260"),r.e("709")]).then(r.bind(r,1167));return{id:eu,diagram:t}},"loader"),ep={id:eu,detector:ed,loader:ef},eg="classDiagram",em=(0,to.eW)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),ey=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("2260"),r.e("6059")]).then(r.bind(r,9050));return{id:eg,diagram:t}},"loader"),ex={id:eg,detector:em,loader:ey},eb="state",ek=(0,to.eW)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),eC=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3389"),r.e("7960"),r.e("7614")]).then(r.bind(r,9726));return{id:eb,diagram:t}},"loader"),ew={id:eb,detector:ek,loader:eC},e_="stateDiagram",ev=(0,to.eW)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eT=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("7960"),r.e("6788")]).then(r.bind(r,5565));return{id:e_,diagram:t}},"loader"),eS={id:e_,detector:ev,loader:eT},eM="journey",eB=(0,to.eW)(t=>/^\s*journey/.test(t),"detector"),eL=(0,to.eW)(async()=>{let{diagram:t}=await r.e("1173").then(r.bind(r,4160));return{id:eM,diagram:t}},"loader"),eA={id:eM,detector:eB,loader:eL},eF={draw:(0,to.eW)((t,e,r)=>{to.cM.debug("rendering svg for syntax error\n");let i=(0,ta.P)(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,to.v2)(i,100,512,!0),n.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"),n.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"),n.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"),n.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.164-16,16v32c0,8.836 7.156,16 16,16z"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},e$={db:{},renderer:eF,parser:{parse:(0,to.eW)(()=>{},"parse")}},eW="flowchart-elk",eE=(0,to.eW)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),eN=(0,to.eW)(async()=>{let{diagram:t}=await r.e("4013").then(r.bind(r,4465));return{id:eW,diagram:t}},"loader"),eZ={id:eW,detector:eE,loader:eN},eD="timeline",ej=(0,to.eW)(t=>/^\s*timeline/.test(t),"detector"),eO=(0,to.eW)(async()=>{let{diagram:t}=await r.e("7408").then(r.bind(r,4238));return{id:eD,diagram:t}},"loader"),eI={id:eD,detector:ej,loader:eO},eR="mindmap",ez=(0,to.eW)(t=>/^\s*mindmap/.test(t),"detector"),eP=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("6211"),r.e("495")]).then(r.bind(r,605));return{id:eR,diagram:t}},"loader"),eq={id:eR,detector:ez,loader:eP},eH="kanban",eU=(0,to.eW)(t=>/^\s*kanban/.test(t),"detector"),eY=(0,to.eW)(async()=>{let{diagram:t}=await r.e("5155").then(r.bind(r,7733));return{id:eH,diagram:t}},"loader"),eV={id:eH,detector:eU,loader:eY},eG="sankey",eX=(0,to.eW)(t=>/^\s*sankey-beta/.test(t),"detector"),eQ=(0,to.eW)(async()=>{let{diagram:t}=await r.e("5696").then(r.bind(r,7862));return{id:eG,diagram:t}},"loader"),eJ={id:eG,detector:eX,loader:eQ},eK="packet",e0=(0,to.eW)(t=>/^\s*packet-beta/.test(t),"detector"),e1=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3917"),r.e("9220")]).then(r.bind(r,6629));return{id:eK,diagram:t}},"loader"),e2={id:eK,detector:e0,loader:e1},e5="block",e3=(0,to.eW)(t=>/^\s*block-beta/.test(t),"detector"),e4=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3361")]).then(r.bind(r,8095));return{id:e5,diagram:t}},"loader"),e6={id:e5,detector:e3,loader:e4},e8="architecture",e9=(0,to.eW)(t=>/^\s*architecture/.test(t),"detector"),e7=(0,to.eW)(async()=>{let{diagram:t}=await Promise.all([r.e("8016"),r.e("3917"),r.e("6211"),r.e("9090")]).then(r.bind(r,6026));return{id:e8,diagram:t}},"loader"),rt={id:e8,detector:e9,loader:e7},re=!1,rr=(0,to.eW)(()=>{!re&&(re=!0,(0,to.Cq)("error",e$,t=>"error"===t.toLowerCase().trim()),(0,to.Cq)("---",{db:{clear:(0,to.eW)(()=>{},"clear")},styles:{},renderer:{draw:(0,to.eW)(()=>{},"draw")},parser:{parse:(0,to.eW)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,to.eW)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,to.KO)(tZ,eV,ex,ep,tH,tK,t5,t3,eo,ec,eZ,tq,tI,eq,eI,tG,eS,ew,eA,t9,eJ,e2,er,e6,rt))},"addDiagrams"),ri=(0,to.eW)(async()=>{to.cM.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(to.Bf).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,to._7)(t)}catch{try{let{diagram:t,id:i}=await r();(0,to.Cq)(i,t,e)}catch(e){throw to.cM.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete to.Bf[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(to.cM.error(`Failed to load ${t.length} external diagrams`),t))to.cM.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rn(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function ra(t,e,r,i){if(void 0!==t.insert){if(r){let e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,to.eW)(rn,"setA11yDiagramInfo"),(0,to.eW)(ra,"addSVGa11yTitleDescription");var ro=class t{constructor(t,e,r,i,n){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=n}static{(0,to.eW)(this,"Diagram")}static async fromText(e,r={}){let i=(0,to.iE)(),n=(0,to.Vg)(e,i);e=(0,ti.Vy)(e)+"\n";try{(0,to._7)(n)}catch{let t=(0,to.cq)(n);if(!t)throw new to.cj(`Diagram ${n} not found.`);let{id:e,diagram:r}=await t();(0,to.Cq)(e,r)}let{db:a,parser:o,renderer:s,init:l}=(0,to._7)(n);return o.parser&&(o.parser.yy=a),a.clear?.(),l?.(i),r.title&&a.setDiagramTitle?.(r.title),await o.parse(e),new t(n,e,a,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rs=[],rl=(0,to.eW)(()=>{rs.forEach(t=>{t()}),rs=[]},"attachFunctions"),rh=(0,to.eW)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rc(t){let e=t.match(to.M6);if(!e)return{text:t,metadata:{}};let r=(0,tt.z)(e[1],{schema:tt.A})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}(0,to.eW)(rc,"extractFrontMatter");var ru=(0,to.eW)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rd=(0,to.eW)(t=>{let{text:e,metadata:r}=rc(t),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:e}},"processFrontmatter"),rf=(0,to.eW)(t=>{let e=ti.w8.detectInit(t)??{},r=ti.w8.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,ti.tf)(t),directive:e}},"processDirectives");function rp(t){let e=rd(ru(t)),r=rf(e.text),i=(0,ti.Rb)(e.config,r.directive);return{code:t=rh(r.text),title:e.title,config:i}}function rg(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,to.eW)(rp,"preprocessDiagram"),(0,to.eW)(rg,"toBase64");var rm=["foreignobject"],ry=["dominant-baseline"];function rx(t){let e=rp(t);return(0,to.mc)(),(0,to.XV)(e.config??{}),e}async function rb(t,e){rr();try{let{code:e,config:r}=rx(t);return{diagramType:(await rA(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,to.eW)(rx,"processAndSetConfigs"),(0,to.eW)(rb,"parse");var rk=(0,to.eW)((t,e,r=[])=>` +.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),rC=(0,to.eW)((t,e=new Map)=>{let r="";if(void 0!==t.themeCSS&&(r+=` +${t.themeCSS}`),void 0!==t.fontFamily&&(r+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){let i=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{(0,tN.Z)(t.styles)||i.forEach(e=>{r+=rk(t.id,e,t.styles)}),(0,tN.Z)(t.textStyles)||(r+=rk(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return r},"createCssStyles"),rw=(0,to.eW)((t,e,r,i)=>{var n,a,o;let s=rC(t,r),l=(0,to.Ee)(e,s,t.themeVariables);return tb((o=function t(e,r,i,n,a,o,s,l,h){for(var c,u,d,f,p,g,m=0,y=0,x=s,b=0,k=0,C=0,w=1,_=1,v=1,T=0,S="",M=a,B=o,L=n,A=S;_;)switch(C=T,T=tB()){case 40:if(108!=C&&58==tg(A,x-1)){-1!=(p=A+=tp(tF(T),"&","&\f"),g=td(m?l[m-1]:0),p.indexOf("&\f",g))&&(v=-1);break}case 34:case 39:case 91:A+=tF(T);break;case 9:case 10:case 13:case 32:A+=function(t){for(;tT=tL();)if(tT<33)tB();else break;return tA(t)>2||tA(tT)>3?"":" "}(C);break;case 92:A+=function(t,e){for(var r;--e&&tB()&&!(tT<48)&&!(tT>102)&&(!(tT>57)||!(tT<65))&&(!(tT>70)||!(tT<97)););return r=tv+(e<6&&32==tL()&&32==tB()),tm(tS,t,r)}(tv-1,7);continue;case 47:switch(tL()){case 42:case 47:tx((c=function(t,e){for(;tB();)if(t+tT===57)break;else if(t+tT===84&&47===tL())break;return"/*"+tm(tS,e,tv-1)+"*"+tf(47===t?t:tB())}(tB(),tv),u=r,d=i,f=h,tM(c,u,d,th,tf(tT),tm(c,2,-2),0,f)),h),(5==tA(C||1)||5==tA(tL()||1))&&ty(A)&&" "!==tm(A,-1,void 0)&&(A+=" ");break;default:A+="/"}break;case 123*w:l[m++]=ty(A)*v;case 125*w:case 59:case 0:switch(T){case 0:case 125:_=0;case 59+y:-1==v&&(A=tp(A,/\f/g,"")),k>0&&(ty(A)-x||0===w&&47===C)&&tx(k>32?tW(A+";",n,i,x-1,h):tW(tp(A," ","")+";",n,i,x-2,h),h);break;case 59:A+=";";default:if(tx(L=t$(A,r,i,m,y,a,l,S,M=[],B=[],x,o),o),123===T){if(0===y)t(A,r,L,L,M,o,x,l,B);else switch(99===b&&110===tg(A,3)?100:b){case 100:case 108:case 109:case 115:t(e,L,L,n&&tx(t$(e,L,L,0,0,a,l,S,a,M=[],x,B),B),a,B,x,l,n?M:B);break;default:t(A,L,L,L,[""],B,0,l,B)}}}m=y=k=0,w=v=1,S=A="",x=s;break;case 58:x=1+ty(A),k=C;default:if(w<1){if(123==T)--w;else if(125==T&&0==w++&&125==(tT=tv>0?tg(tS,--tv):0,tw--,10===tT&&(tw=1,tC--),tT))continue}switch(A+=tf(T),T*w){case 38:v=y>0?1:(A+="\f",-1);break;case 44:l[m++]=(ty(A)-1)*v,v=1;break;case 64:45===tL()&&(A+=tF(tB())),b=tL(),y=x=ty(S=A+=function(t){for(;!tA(tL());)tB();return tm(tS,t,tv)}(tv)),T++;break;case 45:45===C&&2==ty(A)&&(w=0)}}return o}("",null,null,null,[""],(a=n=`${i}{${l}}`,tC=tw=1,t_=ty(tS=a),tv=0,n=[]),0,[0],n),tS="",o),tk)},"createUserStyles"),r_=(0,to.eW)((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=(0,ti.SH)(i)).replace(/
/g,"
")},"cleanUpSvgCode"),rv=(0,to.eW)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",i=rg(`${t}`);return``},"putIntoIFrame"),rT=(0,to.eW)((t,e,r,i,n)=>{let a=t.append("div");a.attr("id",r),i&&a.attr("style",i);let o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&o.attr("xmlns:xlink",n),o.append("g"),t},"appendDivSvgG");function rS(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,to.eW)(rS,"sandboxedIframe");var rM=(0,to.eW)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),rB=(0,to.eW)(async function(t,e,r){let i,n;rr();let a=rx(e);e=a.code;let o=(0,to.iE)();to.cM.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s="#"+t,l="i"+t,h="#"+l,c="d"+t,u="#"+c,d=(0,to.eW)(()=>{let t=p?h:u,e=(0,tl.Ys)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),f=(0,tl.Ys)("body"),p="sandbox"===o.securityLevel,g="loose"===o.securityLevel,m=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),p){let t=rS((0,tl.Ys)(r),l);(f=(0,tl.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else f=(0,tl.Ys)(r);rT(f,t,c,`font-family: ${m}`,"http://www.w3.org/1999/xlink")}else{if(rM(document,t,c,l),p){let t=rS((0,tl.Ys)("body"),l);(f=(0,tl.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else f=(0,tl.Ys)("body");rT(f,t,c)}try{i=await ro.fromText(e,{title:a.title})}catch(t){if(o.suppressErrorRendering)throw d(),t;i=await ro.fromText("error"),n=t}let y=f.select(u).node(),x=i.type,b=y.firstChild,k=b.firstChild,C=rw(o,x,i.renderer.getClasses?.(e,i),s),w=document.createElement("style");w.innerHTML=C,b.insertBefore(w,k);try{await i.renderer.draw(e,t,tn.i,i)}catch(r){throw o.suppressErrorRendering?d():eF.draw(e,t,tn.i),r}let _=f.select(`${u} svg`);rF(x,_,i.db.getAccTitle?.(),i.db.getAccDescription?.()),f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let v=f.select(u).node().innerHTML;if(to.cM.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),v=r_(v,p,(0,to.ku)(o.arrowMarkerAbsolute)),p?v=rv(v,f.select(u+" svg").node()):g||(v=tE.sanitize(v,{ADD_TAGS:rm,ADD_ATTR:ry})),rl(),n)throw n;return d(),{diagramType:x,svg:v,bindFunctions:i.db.bindFunctions}},"render");function rL(t={}){let e=(0,to.Yc)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,to.dY)(e),e?.theme&&e.theme in to._j?e.themeVariables=to._j[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=to._j.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,to.Yn)(e):(0,to.ZD)();(0,to.Ub)(r.logLevel),rr()}(0,to.eW)(rL,"initialize");var rA=(0,to.eW)((t,e={})=>{let{code:r}=rp(t);return ro.fromText(r,e)},"getDiagramFromText");function rF(t,e,r,i){rn(e,t),ra(e,r,i,e.attr("id"))}(0,to.eW)(rF,"addA11yInfo");var r$=Object.freeze({render:rB,parse:rb,getDiagramFromText:rA,initialize:rL,getConfig:to.iE,setConfig:to.v6,getSiteConfig:to.ZD,updateSiteConfig:to.Tb,reset:(0,to.eW)(()=>{(0,to.mc)()},"reset"),globalReset:(0,to.eW)(()=>{(0,to.mc)(to.u_)},"globalReset"),defaultConfig:to.u_});(0,to.Ub)((0,to.iE)().logLevel),(0,to.mc)((0,to.iE)());var rW=(0,to.eW)((t,e,r)=>{to.cM.warn(t),(0,ti.bZ)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rE=(0,to.eW)(async function(t={querySelector:".mermaid"}){try{await rN(t)}catch(e){if((0,ti.bZ)(e)&&to.cM.error(e.str),rU.parseError&&rU.parseError(e),!t.suppressErrors)throw to.cM.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rN=(0,to.eW)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i,n;let a=r$.getConfig();if(to.cM.debug(`${t?"":"No "}Callback function found`),r)i=r;else if(e)i=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");to.cM.debug(`Found ${i.length} diagrams`),a?.startOnLoad!==void 0&&(to.cM.debug("Start On Load: "+a?.startOnLoad),r$.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new ti.w8.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),s=[];for(let e of Array.from(i)){if(to.cM.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;n=e.innerHTML,n=(0,ts.Z)(ti.w8.entityDecode(n)).trim().replace(/
/gi,"
");let i=ti.w8.detectInit(n);i&&to.cM.debug("Detected early reinit: ",i);try{let{svg:i,bindFunctions:a}=await rH(r,n,e);e.innerHTML=i,t&&await t(r),a&&a(e)}catch(t){rW(t,s,rU.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),rZ=(0,to.eW)(function(t){r$.initialize(t)},"initialize"),rD=(0,to.eW)(async function(t,e,r){to.cM.warn("mermaid.init is deprecated. Please use run instead."),t&&rZ(t);let i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await rE(i)},"init"),rj=(0,to.eW)(async(t,{lazyLoad:e=!0}={})=>{rr(),(0,to.KO)(...t),!1===e&&await ri()},"registerExternalDiagrams"),rO=(0,to.eW)(function(){if(rU.startOnLoad){let{startOnLoad:t}=r$.getConfig();t&&rU.run().catch(t=>to.cM.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",rO,!1);var rI=(0,to.eW)(function(t){rU.parseError=t},"setParseErrorHandler"),rR=[],rz=!1,rP=(0,to.eW)(async()=>{if(!rz){for(rz=!0;rR.length>0;){let t=rR.shift();if(t)try{await t()}catch(t){to.cM.error("Error executing queue",t)}}rz=!1}},"executeQueue"),rq=(0,to.eW)(async(t,e)=>new Promise((r,i)=>{let n=(0,to.eW)(()=>new Promise((n,a)=>{r$.parse(t,e).then(t=>{n(t),r(t)},t=>{to.cM.error("Error parsing",t),rU.parseError?.(t),a(t),i(t)})}),"performCall");rR.push(n),rP().catch(i)}),"parse"),rH=(0,to.eW)((t,e,r)=>new Promise((i,n)=>{let a=(0,to.eW)(()=>new Promise((a,o)=>{r$.render(t,e,r).then(t=>{a(t),i(t)},t=>{to.cM.error("Error parsing",t),rU.parseError?.(t),o(t),n(t)})}),"performCall");rR.push(a),rP().catch(n)}),"render"),rU={startOnLoad:!0,mermaidAPI:r$,parse:rq,render:rH,init:rD,run:rE,registerExternalDiagrams:rj,registerLayoutLoaders:te.jM,initialize:rZ,parseError:void 0,contentLoaded:rO,setParseErrorHandler:rI,detectType:to.Vg,registerIconPacks:tr.ef};async function rY(t){let{id:e,text:r,config:i}=t;rU.mermaidAPI.initialize(i);try{return await rU.render(e,r)}catch(t){throw document.querySelector(`#d${e}`)?.remove(),t}}function rV(t){let{renderResult:e}=t,r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=r.current;e.bindFunctions?.(t)},[e]),(0,i.jsx)("div",{ref:r,className:"docusaurus-mermaid-container container_lyt7",dangerouslySetInnerHTML:{__html:e.svg}})}function rG(t){let{value:e}=t,r=function(t){let{text:e,config:r}=t,[i,a]=(0,n.useState)(null),o=(0,n.useRef)(`mermaid-svg-${Math.round(1e7*Math.random())}`).current,s=function(){let{colorMode:t}=(0,l.I)(),e=(0,h.L)().mermaid,r=e.theme[t],{options:i}=e;return(0,n.useMemo)(()=>({startOnLoad:!1,...i,theme:r}),[r,i])}(),c=r??s;return(0,n.useEffect)(()=>{rY({id:o,text:e,config:c}).then(a).catch(t=>{a(()=>{throw t})})},[o,e,c]),i}({text:e});return null===r?null:(0,i.jsx)(rV,{renderResult:r})}let rX={Head:a.Z,details:Y,Details:Y,code:function(t){return void 0!==t.children&&n.Children.toArray(t.children).every(t=>"string"==typeof t&&!t.includes("\n"))?(0,i.jsx)(j,{...t}):(0,i.jsx)(D,{...t})},a:function(t){return(0,i.jsx)(O.Z,{...t})},pre:function(t){return(0,i.jsx)(i.Fragment,{children:t.children})},ul:function(t){return(0,i.jsx)("ul",{...t,className:function(t){if(void 0!==t)return(0,s.Z)(t,t?.includes("contains-task-list")&&X.containsTaskList)}(t.className)})},li:function(t){return(0,R.Z)().collectAnchor(t.id),(0,i.jsx)("li",{...t})},img:function(t){var e;return(0,i.jsx)("img",{decoding:"async",loading:"lazy",...t,className:(e=t.className,(0,s.Z)(e,"img_ev3q"))})},h1:t=>(0,i.jsx)(G,{as:"h1",...t}),h2:t=>(0,i.jsx)(G,{as:"h2",...t}),h3:t=>(0,i.jsx)(G,{as:"h3",...t}),h4:t=>(0,i.jsx)(G,{as:"h4",...t}),h5:t=>(0,i.jsx)(G,{as:"h5",...t}),h6:t=>(0,i.jsx)(G,{as:"h6",...t}),admonition:Q.Z,mermaid:function(t){return(0,i.jsx)(J.Z,{fallback:t=>(0,i.jsx)(K.Ac,{...t}),children:(0,i.jsx)(rG,{...t})})}}},7818:function(t,e,r){"use strict";function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let i=-1;for(let n of t)null!=(n=e(n,++i,t))&&(r =n)&&(r=n)}return r}function n(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let n of t)null!=(n=e(n,++i,t))&&(r>n||void 0===r&&n>=n)&&(r=n)}return r}function a(t){return t}function o(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function h(t,e){var r=[],i=null,n=null,h=6,c=6,u=3,d="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,f=1===t||4===t?-1:1,p=4===t||2===t?"x":"y",g=1===t||3===t?o:s;function m(o){var s=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,m=null==n?e.tickFormat?e.tickFormat.apply(e,r):a:n,y=Math.max(h,0)+u,x=e.range(),b=+x[0]+d,k=+x[x.length-1]+d,C=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),d),w=o.selection?o.selection():o,_=w.selectAll(".domain").data([null]),v=w.selectAll(".tick").data(s,e).order(),T=v.exit(),S=v.enter().append("g").attr("class","tick"),M=v.select("line"),B=v.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(S),M=M.merge(S.append("line").attr("stroke","currentColor").attr(p+"2",f*h)),B=B.merge(S.append("text").attr("fill","currentColor").attr(p,f*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==w&&(_=_.transition(o),v=v.transition(o),M=M.transition(o),B=B.transition(o),T=T.transition(o).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=C(t))?g(t+d):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:C(t))+d)})),T.remove(),_.attr("d",4===t||2===t?c?"M"+f*c+","+b+"H"+d+"V"+k+"H"+f*c:"M"+d+","+b+"V"+k:c?"M"+b+","+f*c+"V"+d+"H"+k+"V"+f*c:"M"+b+","+d+"H"+k),v.attr("opacity",1).attr("transform",function(t){return g(C(t)+d)}),M.attr(p+"2",f*h),B.attr(p,f*y).text(m),w.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each(function(){this.__axis=C})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),m):i&&i.slice()},m.tickFormat=function(t){return arguments.length?(n=t,m):n},m.tickSize=function(t){return arguments.length?(h=c=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(c=+t,m):c},m.tickPadding=function(t){return arguments.length?(u=+t,m):u},m.offset=function(t){return arguments.length?(d=+t,m):d},m}function c(t){return h(1,t)}function u(t){return h(3,t)}function d(){}function f(t){return null==t?d:function(){return this.querySelector(t)}}function p(){return[]}function g(t){return null==t?p:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function y(t){return function(e){return e.matches(t)}}r.d(e,{Fp7:()=>i,qpX:()=>n0,S1K:()=>rT,iJ:()=>a_,LqH:()=>rI,PKp:()=>eK,Z_i:()=>rS,jvg:()=>nR,VV$:()=>n,Ox9:()=>rN,tFB:()=>n5,$0Z:()=>nV,WQD:()=>rB,dCK:()=>at,c_6:()=>nj,YY7:()=>n6,zgE:()=>ai,F5q:()=>c,jsv:()=>av,BYU:()=>function t(){var e,r=rc();return r.copy=function(){return rh(r,t())},eV.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e=+e,t=+t,!((r=+r)>0))return[];if(t===e)return[t];let i=e =n))return[];let s=a-n+1,l=Array(s);if(i){if(o<0)for(let t=0;t 0;){if((n=e3(l,h,t))===i)return a[o]=l,a[s]=h,e(a);if(n>0)l=Math.floor(l/n)*n,h=Math.ceil(h/n)*n;else if(n<0)l=Math.ceil(l*n)/n,h=Math.floor(h*n)/n;else break;i=n}return r},r},Zyz:()=>rE,Dts:()=>nX,YDX:()=>rZ,ve8:()=>nq,$m7:()=>as,K2I:()=>nh,Nb1:()=>nN,fGX:()=>aa,rr1:()=>rA,JHv:()=>eY,tiA:()=>function t(){var e,r,i=eK().unknown(void 0),n=i.domain,a=i.range,o=0,s=1,l=!1,h=0,c=0,u=.5;function d(){var t=n().length,i=srv,LLu:()=>u,SxZ:()=>ak,F0B:()=>rG,WQY:()=>nJ,Ys:()=>nc,OvA:()=>n9,ak_:()=>ay,eA_:()=>aw,y2j:()=>rO,EFj:()=>rD,u93:()=>n1,fxm:()=>ah,Igq:()=>rj,i$Z:()=>th,Xf:()=>nl,FdL:()=>am});var x=Array.prototype.find;function b(){return this.firstElementChild}var k=Array.prototype.filter;function C(){return Array.from(this.children)}function w(t){return Array(t.length)}function _(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function v(t,e,r,i,n,a){for(var o,s=0,l=e.length,h=a.length;s e?1:t>=e?0:NaN}_.prototype={constructor:_,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 B="http://www.w3.org/1999/xhtml";let L={svg:"http://www.w3.org/2000/svg",xhtml:B,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function A(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function F(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $(t,e){return t.style.getPropertyValue(e)||F(t).getComputedStyle(t,null).getPropertyValue(e)}function W(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new N(t)}function N(t){this._node=t,this._names=W(t.getAttribute("class")||"")}function Z(t,e){for(var r=E(t),i=-1,n=e.length;++i this._names.indexOf(t)&&(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 X=[null];function Q(t,e){this._groups=t,this._parents=e}function J(){return new Q([[document.documentElement]],X)}Q.prototype=J.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,r=e.length,i=Array(r),n=0;n =w&&(w=C+1);!(k=m[w])&&++w =0;)(i=n[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=M);for(var r=this._groups,i=r.length,n=Array(i),a=0;a1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):$(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=W(t+"");if(arguments.length<2){for(var i=E(this.node()),n=-1,a=r.length;++n=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,h=0,c=s.length;h
{}};function tt(){for(var t,e=0,r=arguments.length,i={};e =0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!i.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=n.length;if(arguments.length<2){for(;++a 0)for(var r,i,n=Array(r),a=0;a =0&&e._call.call(void 0,t),e=e._next;--td}()}finally{td=0,function(){for(var t,e,r=tc,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tc=e);tu=t,tS(i)}(),tm=0}}function tT(){var t=tx.now(),e=t-tg;e>1e3&&(ty-=e,tg=t)}function tS(t){!td&&(tf&&(tf=clearTimeout(tf)),t-tm>24?(t<1/0&&(tf=setTimeout(tv,t-tx.now()-ty)),tp&&(tp=clearInterval(tp))):(tp||(tg=tx.now(),tp=setInterval(tT,1e3)),td=1,tb(tv)))}function tM(t,e,r){var i=new tw;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}tw.prototype=t_.prototype={constructor:tw,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?tk():+r)+(null==e?0:+e),this._next||tu===this||(tu?tu._next=this:tc=this,tu=this),this._call=t,this._time=r,tS()},stop:function(){this._call&&(this._call=null,this._time=1/0,tS())}};var tB=tt("start","end","cancel","interrupt"),tL=[];function tA(t,e,r,i,n,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var i,n=t.__transition;function a(l){var h,c,u,d;if(1!==r.state)return s();for(h in n)if((d=n[h]).name===r.name){if(3===d.state)return tM(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[h]):+h 0)throw Error("too late; already scheduled");return r}function t$(t,e){var r=tW(t,e);if(r.state>3)throw Error("too late; already running");return r}function tW(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tE(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var tN=180/Math.PI,tZ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tD(t,e,r,i,n,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i 180?l+=360:l-s>180&&(s+=360),d.push({i:u.push(n(u)+"rotate(",null,i)-2,x:tE(s,l)})):l&&u.push(n(u)+"rotate("+l+i),h=a.skewX,h!==(c=o.skewX)?d.push({i:u.push(n(u)+"skewX(",null,i)-2,x:tE(h,c)}):c&&u.push(n(u)+"skewX("+c+i),!function(t,e,r,i,a,o){if(t!==r||e!==i){var s=a.push(n(a)+"scale(",null,",",null,")");o.push({i:s-4,x:tE(t,r)},{i:s-2,x:tE(e,i)})}else(1!==r||1!==i)&&a.push(n(a)+"scale("+r+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,d),a=o=null,function(t){for(var e,r=-1,i=d.length;++r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t6(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t6(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=tG.exec(t))?new t7(e[1],e[2],e[3],1):(e=tX.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tQ.exec(t))?t6(e[1],e[2],e[3],e[4]):(e=tJ.exec(t))?t6(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tK.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t4(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t4(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t6(t,e,r,i){return i<=0&&(t=e=r=NaN),new t7(t,e,r,i)}function t8(t){return(t instanceof tq||(t=t3(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}function t9(t,e,r,i){return 1==arguments.length?t8(t):new t7(t,e,r,null==i?1:i)}function t7(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function et(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${ei(this.r)}, ${ei(this.g)}, ${ei(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function en(t){return((t=ei(t))<16?"0":"")+t.toString(16)}function ea(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,i)}function eo(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tq||(t=t3(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(o=e===a?(r-i)/s+(r0&&l<1?0:o,new es(o,s,l,t.opacity)}function es(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function el(t){return(t=(t||0)%360)<0?t+360:t}function eh(t){return Math.max(0,Math.min(1,t||0))}function ec(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function eu(t,e,r,i,n){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*i+o*n)/6}tz(tq,t3,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eo(this).formatHsl()},formatRgb:t5,toString:t5}),tz(t7,t9,tP(tq,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(ei(this.r),ei(this.g),ei(this.b),er(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:et,formatHex:et,formatHex8:function(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tz(es,function(t,e,r,i){return 1==arguments.length?eo(t):new es(t,e,r,null==i?1:i)},tP(tq,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new t7(ec(t>=240?t-240:t+120,n,i),ec(t,n,i),ec(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new es(el(this.h),eh(this.s),eh(this.l),er(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(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*eh(this.s)}%, ${100*eh(this.l)}%${1===t?")":`, ${t})`}`}}));let ed=t=>()=>t;function ef(t,e){return function(r){return t+r*e}}function ep(t,e){var r=e-t;return r?ef(t,r):ed(isNaN(t)?e:t)}let eg=function t(e){var r,i=1==(r=+(r=e))?ep:function(t,e){var i,n,a;return e-t?(i=t,n=e,i=Math.pow(i,a=r),n=Math.pow(n,a)-i,a=1/a,function(t){return Math.pow(i+t*n,a)}):ed(isNaN(t)?e:t)};function n(t,e){var r=i((t=t9(t)).r,(e=t9(e)).r),n=i(t.g,e.g),a=i(t.b,e.b),o=ep(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=n(e),t.b=a(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1);function em(t){return function(e){var r,i,n=e.length,a=Array(n),o=Array(n),s=Array(n);for(r=0;r =1?(r=1,e-1):Math.floor(r*e),n=t[i],a=t[i+1],o=i>0?t[i-1]:2*n-a,s=i s&&(o=e.slice(s,o),h[l]?h[l]+=o:h[++l]=o),(n=n[0])===(a=a[0])?h[l]?h[l]+=a:h[++l]=a:(h[++l]=null,c.push({i:l,x:tE(n,a)})),s=ex.lastIndex;return s =0&&(t=t.slice(0,e)),!t||"start"===t})?tF:t$,function(){var t=s(this,r),e=t.on;e!==a&&(o=(a=e).copy()).on(i,n),t.on=o}))},attr:function(t,e){var r=A(t),i="transform"===r?tI:ek;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var i,n,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===i&&s===n?a:(n=s,a=e(i=o,l))}}:function(t,e,r){var i,n,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===i&&s===n?a:(n=s,a=e(i=o,l))}})(r,i,tR(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var i,n,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?n:n=e(i=o,r)}}:function(t,e,r){var i,n,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===i?n:n=e(i=o,r)}})(r,i,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var i=A(t);return this.tween(r,(i.local?function(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}),r}return n._value=e,n}:function(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(e){this.setAttribute(t,n.call(this,e))}),r}return n._value=e,n})(i,e))},style:function(t,e,r){var i,n,a,o,s,l,h,c,u,d,f,p,g,m,y,x,b,k,C,w,_,v="transform"==(t+="")?tO:ek;return null==e?this.styleTween(t,(i=t,function(){var t=$(this,i),e=(this.style.removeProperty(i),$(this,i));return t===e?null:t===n&&e===a?o:o=v(n=t,a=e)})).on("end.style."+t,ew(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tR(this,"style."+t,e),function(){var t=$(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=$(this,s)),t===r?null:t===h&&r===c?u:(c=r,u=v(h=t,e))})).each((d=this._id,b="end."+(x="style."+(f=t)),function(){var t=t$(this,d),e=t.on,r=null==t.value[x]?y||(y=ew(f)):void 0;(e!==p||m!==r)&&(g=(p=e).copy()).on(b,m=r),t.on=g})):this.styleTween(t,(k=t,_=e+"",function(){var t=$(this,k);return t===_?null:t===C?w:w=v(C=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){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 Error();return this.tween(i,function(t,e,r){var i,n;function a(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&function(e){this.style.setProperty(t,a.call(this,e),r)}),i}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tR(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},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 Error();return this.tween(e,function(t){var e,r;function i(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t){this.textContent=i.call(this,t)}),e}return i._value=t,i}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i,n=tW(this.node(),r).tween,a=0,o=n.length;a 2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[n]}o&&delete t.__transition}}(this,t)})},J.prototype.transition=function(t){var e,r;t instanceof ev?(e=t._id,t=t._name):(e=++e_,(r=eS).time=tk(),t=null==t?null:t+"");for(var i=this._groups,n=i.length,a=0;a eZ?Math.pow(t,1/3):t/eN+eW}function eI(t){return t>eE?t*t*t:eN*(t-eW)}function eR(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ez(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function eP(t,e,r,i){return 1==arguments.length?function(t){if(t instanceof eq)return new eq(t.h,t.c,t.l,t.opacity);if(t instanceof ej||(t=eD(t)),0===t.a&&0===t.b)return new eq(NaN,0 180||r<-180?r-360*Math.round(r/360):r):ed(isNaN(t)?e:t)});function eV(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}eU(ep);class eG extends Map{constructor(t,e=eQ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(eX(this,t))}has(t){return super.has(eX(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}(this,t))}}function eX({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function eQ(t){return null!==t&&"object"==typeof t?t.valueOf():t}let eJ=Symbol("implicit");function eK(){var t=new eG,e=[],r=[],i=eJ;function n(n){let a=t.get(n);if(void 0===a){if(i!==eJ)return i;t.set(n,a=e.push(n)-1)}return r[a%r.length]}return n.domain=function(r){if(!arguments.length)return e.slice();for(let i of(e=[],t=new eG,r))t.has(i)||t.set(i,e.push(i)-1);return n},n.range=function(t){return arguments.length?(r=Array.from(t),n):r.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return eK(e,r).unknown(i)},eV.apply(n,arguments),n}let e0=Math.sqrt(50),e1=Math.sqrt(10),e2=Math.sqrt(2);function e5(t,e,r){let i,n,a;let o=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),h=l>=e0?10:l>=e1?5:l>=e2?2:1;return(s<0?(i=Math.round(t*(a=Math.pow(10,-s)/h)),n=Math.round(e*a),i/a e&&--n,a=-a):(i=Math.round(t/(a=Math.pow(10,s)*h)),n=Math.round(e/a),i*a e&&--n),ne?1:t>=e?0:NaN}function e8(t,e){return null==t||null==e?NaN:e t?1:e>=t?0:NaN}function e9(t){let e,r,i;function n(t,i,a=0,o=t.length){if(a >>1;0>r(t[e],i)?a=e+1:o=e}while(a e6(t(e),r),i=(e,r)=>t(e)-r):(e=t===e6||t===e8?t:e7,r=t,i=t),{left:n,center:function(t,e,r=0,a=t.length){let o=n(t,e,r,a-1);return o>r&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i,n=0,a=t.length){if(n>>1;0>=r(t[e],i)?n=e+1:a=e}while(ne&&(r=t,t=e,e=r),h=function(r){return Math.max(t,Math.min(e,r))}),i=l>2?rl:rs,n=a=null,u}function u(e){return null==e||isNaN(e=+e)?r:(n||(n=i(o.map(t),s,l)))(t(h(e)))}return u.invert=function(r){return h(e((a||(a=i(s,o.map(t),tE)))(r)))},u.domain=function(t){return arguments.length?(o=Array.from(t,ri),c()):o.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=rr,c()},u.clamp=function(t){return arguments.length?(h=!!t||ra,c()):h!==ra},u.interpolate=function(t){return arguments.length?(l=t,c()):l},u.unknown=function(t){return arguments.length?(r=t,u):r},function(r,i){return t=r,e=i,c()}})()(ra,ra)}var ru=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rd(t){var e;if(!(e=ru.exec(t)))throw Error("invalid format: "+t);return new rf({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 rf(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.width,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 rp(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function rg(t){return(t=rp(Math.abs(t)))?t[1]:NaN}function rm(t,e){var r=rp(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+Array(n-i.length+2).join("0")}rd.prototype=rf.prototype,rf.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};let ry={"%":(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)=>rm(100*t,e),r:rm,s:function(t,e){var r=rp(t,e);if(!r)return t+"";var i=r[0],n=r[1],a=n-(tn=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,o=i.length;return a===o?i:a>o?i+Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+rp(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function rx(t){return t}var rb=Array.prototype.map,rk=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];to=(ta=function(t){var e,r,i,n=void 0===t.grouping||void 0===t.thousands?rx:(e=rb.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var n=t.length,a=[],o=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(t.substring(n-=s,n+s)),!((l+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?rx:(i=rb.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),h=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=rd(t)).fill,r=t.align,i=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,x=t.type;"n"===x?(g=!0,x="g"):ry[x]||(void 0===m&&(m=12),y=!0,x="g"),(f||"0"===e&&"="===r)&&(f=!0,e="0",r="=");var b="$"===d?a:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k="$"===d?o:/[%p]/.test(x)?h:"",C=ry[x],w=/[defgprs%]/.test(x);function _(t){var a,o,h,d=b,_=k;if("c"===x)_=C(t)+_,t="";else{var v=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:C(Math.abs(t),m),y&&(t=function(t){t:for(var e,r=t.length,i=1,n=-1;i 0&&(n=0)}return n>0?t.slice(0,n)+t.slice(e+1):t}(t)),v&&0==+t&&"+"!==i&&(v=!1),d=(v?"("===i?i:c:"-"===i||"("===i?"":i)+d,_=("s"===x?rk[8+tn/3]:"")+_+(v&&"("===i?")":""),w){for(a=-1,o=t.length;++a (h=t.charCodeAt(a))||h>57){_=(46===h?s+t.slice(a+1):t.slice(a))+_,t=t.slice(0,a);break}}}g&&!f&&(t=n(t,1/0));var T=d.length+t.length+_.length,S=T >1)+d+t+_+S.slice(T);break;default:t=S+d+t+_}return l(t)}return m=void 0===m?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),_.toString=function(){return t+""},_}return{format:d,formatPrefix:function(t,e){var r=d(((t=rd(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(rg(e)/3))),n=Math.pow(10,-i),a=rk[8+i/3];return function(t){return r(n*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=ta.formatPrefix;let rC=new Date,rw=new Date;function r_(t,e,r,i){function n(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return n.floor=e=>(t(e=new Date(+e)),e),n.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),n.round=t=>{let e=n(t),r=n.ceil(t);return t-e
(e(t=new Date(+t),null==r?1:Math.floor(r)),t),n.range=(r,i,a)=>{let o;let s=[];if(r=n.ceil(r),a=null==a?1:Math.floor(a),!(r0))return s;do s.push(o=new Date(+r)),e(r,a),t(r);while(o r_(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,i)=>{if(t>=t){if(i<0)for(;++i<=0;)for(;e(t,-1),!r(t););else for(;--i>=0;)for(;e(t,1),!r(t););}}),r&&(n.count=(e,i)=>(rC.setTime(+e),rw.setTime(+i),t(rC),t(rw),Math.floor(r(rC,rw))),n.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?n.filter(i?e=>i(e)%t==0:e=>n.count(0,e)%t==0):n:null),n}let rv=r_(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rv.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?r_(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rv:null,rv.range;let rT=r_(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rT.range;let rS=r_(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rS.range;let rM=r_(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rM.range;let rB=r_(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rB.range;let rL=r_(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rL.range;let rA=r_(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rA.range;let rF=r_(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rF.range;let r$=r_(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rW(t){return r_(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())*6e4)/6048e5)}r$.range;let rE=rW(0),rN=rW(1),rZ=rW(2),rD=rW(3),rj=rW(4),rO=rW(5),rI=rW(6);function rR(t){return r_(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)/6048e5)}rE.range,rN.range,rZ.range,rD.range,rj.range,rO.range,rI.range;let rz=rR(0),rP=rR(1),rq=rR(2),rH=rR(3),rU=rR(4),rY=rR(5),rV=rR(6);rz.range,rP.range,rq.range,rH.range,rU.range,rY.range,rV.range;let rG=r_(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());rG.range;let rX=r_(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());rX.range;let rQ=r_(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());rQ.every=t=>isFinite(t=Math.floor(t))&&t>0?r_(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,rQ.range;let rJ=r_(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());function rK(t,e,r,i,n,a){let o=[[rT,1,1e3],[rT,5,5e3],[rT,15,15e3],[rT,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[n,1,36e5],[n,3,108e5],[n,6,216e5],[n,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,i){let n=Math.abs(r-e)/i,a=e9(([,,t])=>t).right(o,n);if(a===o.length)return t.every(e4(e/31536e6,r/31536e6,i));if(0===a)return rv.every(Math.max(e4(e,r,i),1));let[s,l]=o[n/o[a-1][2] isFinite(t=Math.floor(t))&&t>0?r_(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,rJ.range;let[r0,r1]=rK(rJ,rX,rz,r$,rL,rM),[r2,r5]=rK(rQ,rG,rE,rA,rB,rS);function r3(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 r4(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 r6(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var r8={"-":"",_:" ",0:"0"},r9=/^\s*\d+/,r7=/^%/,it=/[\\^$*+?|[\]().{}]/g;function ie(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",a=n.length;return i+(a [t.toLowerCase(),e]))}function io(t,e,r){var i=r9.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function is(t,e,r){var i=r9.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function il(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function ih(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function ic(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iu(t,e,r){var i=r9.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function id(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function ip(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function ig(t,e,r){var i=r9.exec(e.slice(r,r+1));return i?(t.q=3*i[0]-3,r+i[0].length):-1}function im(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function iy(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function ix(t,e,r){var i=r9.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function ib(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function ik(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function iC(t,e,r){var i=r9.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=r9.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function i_(t,e,r){var i=r9.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function iv(t,e,r){var i=r7.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iT(t,e,r){var i=r9.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function iS(t,e,r){var i=r9.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function iM(t,e){return ie(t.getDate(),e,2)}function iB(t,e){return ie(t.getHours(),e,2)}function iL(t,e){return ie(t.getHours()%12||12,e,2)}function iA(t,e){return ie(1+rA.count(rQ(t),t),e,3)}function iF(t,e){return ie(t.getMilliseconds(),e,3)}function i$(t,e){return iF(t,e)+"000"}function iW(t,e){return ie(t.getMonth()+1,e,2)}function iE(t,e){return ie(t.getMinutes(),e,2)}function iN(t,e){return ie(t.getSeconds(),e,2)}function iZ(t){var e=t.getDay();return 0===e?7:e}function iD(t,e){return ie(rE.count(rQ(t)-1,t),e,2)}function ij(t){var e=t.getDay();return e>=4||0===e?rj(t):rj.ceil(t)}function iO(t,e){return t=ij(t),ie(rj.count(rQ(t),t)+(4===rQ(t).getDay()),e,2)}function iI(t){return t.getDay()}function iR(t,e){return ie(rN.count(rQ(t)-1,t),e,2)}function iz(t,e){return ie(t.getFullYear()%100,e,2)}function iP(t,e){return ie((t=ij(t)).getFullYear()%100,e,2)}function iq(t,e){return ie(t.getFullYear()%1e4,e,4)}function iH(t,e){var r=t.getDay();return ie((t=r>=4||0===r?rj(t):rj.ceil(t)).getFullYear()%1e4,e,4)}function iU(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ie(e/60|0,"0",2)+ie(e%60,"0",2)}function iY(t,e){return ie(t.getUTCDate(),e,2)}function iV(t,e){return ie(t.getUTCHours(),e,2)}function iG(t,e){return ie(t.getUTCHours()%12||12,e,2)}function iX(t,e){return ie(1+rF.count(rJ(t),t),e,3)}function iQ(t,e){return ie(t.getUTCMilliseconds(),e,3)}function iJ(t,e){return iQ(t,e)+"000"}function iK(t,e){return ie(t.getUTCMonth()+1,e,2)}function i0(t,e){return ie(t.getUTCMinutes(),e,2)}function i1(t,e){return ie(t.getUTCSeconds(),e,2)}function i2(t){var e=t.getUTCDay();return 0===e?7:e}function i5(t,e){return ie(rz.count(rJ(t)-1,t),e,2)}function i3(t){var e=t.getUTCDay();return e>=4||0===e?rU(t):rU.ceil(t)}function i4(t,e){return t=i3(t),ie(rU.count(rJ(t),t)+(4===rJ(t).getUTCDay()),e,2)}function i6(t){return t.getUTCDay()}function i8(t,e){return ie(rP.count(rJ(t)-1,t),e,2)}function i9(t,e){return ie(t.getUTCFullYear()%100,e,2)}function i7(t,e){return ie((t=i3(t)).getUTCFullYear()%100,e,2)}function nt(t,e){return ie(t.getUTCFullYear()%1e4,e,4)}function ne(t,e){var r=t.getUTCDay();return ie((t=r>=4||0===r?rU(t):rU.ceil(t)).getUTCFullYear()%1e4,e,4)}function nr(){return"+0000"}function ni(){return"%"}function nn(t){return+t}function na(t){return Math.floor(+t/1e3)}function no(t){return new Date(t)}function ns(t){return t instanceof Date?+t:+new Date(+t)}function nl(){return eV.apply((function t(e,r,i,n,a,o,s,l,h,c){var u=rc(),d=u.invert,f=u.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),y=c("%I %p"),x=c("%a %d"),b=c("%b %d"),k=c("%B"),C=c("%Y");function w(t){return(h(t) =12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nn,s:na,S:iN,u:iZ,U:iD,V:iO,w:iI,W:iR,x:null,X:null,y:iz,Y:iq,Z:iU,"%":ni},k={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:iY,e:iY,f:iJ,g:i7,G:ne,H:iV,I:iG,j:iX,L:iQ,m:iK,M:i0,p:function(t){return n[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nn,s:na,S:i1,u:i2,U:i5,V:i4,w:i6,W:i8,x:null,X:null,y:i9,Y:nt,Z:nr,"%":ni},C={a:function(t,e,r){var i=f.exec(e.slice(r));return i?(t.w=p.get(i[0].toLowerCase()),r+i[0].length):-1},A:function(t,e,r){var i=u.exec(e.slice(r));return i?(t.w=d.get(i[0].toLowerCase()),r+i[0].length):-1},b:function(t,e,r){var i=y.exec(e.slice(r));return i?(t.m=x.get(i[0].toLowerCase()),r+i[0].length):-1},B:function(t,e,r){var i=g.exec(e.slice(r));return i?(t.m=m.get(i[0].toLowerCase()),r+i[0].length):-1},c:function(t,r,i){return v(t,e,r,i)},d:iy,e:iy,f:i_,g:id,G:iu,H:ib,I:ib,j:ix,L:iw,m:im,M:ik,p:function(t,e,r){var i=h.exec(e.slice(r));return i?(t.p=c.get(i[0].toLowerCase()),r+i[0].length):-1},q:ig,Q:iT,s:iS,S:iC,u:is,U:il,V:ih,w:io,W:ic,x:function(t,e,i){return v(t,r,e,i)},X:function(t,e,r){return v(t,i,e,r)},y:id,Y:iu,Z:ip,"%":iv};function w(t,e){return function(r){var i,n,a,o=[],s=-1,l=0,h=t.length;for(r instanceof Date||(r=new Date(+r));++s 53)return null;"w"in a||(a.w=1),"Z"in a?(i=(n=(i=r4(r6(a.y,0,1))).getUTCDay())>4||0===n?rP.ceil(i):rP(i),i=rF.offset(i,(a.V-1)*7),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(i=(n=(i=r3(r6(a.y,0,1))).getDay())>4||0===n?rN.ceil(i):rN(i),i=rA.offset(i,(a.V-1)*7),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),n="Z"in a?r4(r6(a.y,0,1)).getUTCDay():r3(r6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(n+5)%7:a.w+7*a.U-(n+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,r4(a)):r3(a)}}function v(t,e,r,i){for(var n,a,o=0,s=e.length,l=r.length;o =l)return -1;if(37===(n=e.charCodeAt(o++))){if(!(a=C[(n=e.charAt(o++))in r8?e.charAt(o++):n])||(i=a(t,r,i))<0)return -1}else if(n!=r.charCodeAt(i++))return -1}return i}return b.x=w(r,b),b.X=w(i,b),b.c=w(e,b),k.x=w(r,k),k.X=w(i,k),k.c=w(e,k),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",k);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","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"]})).format,tl.parse,tl.utcFormat,tl.utcParse;let nh=function(t){for(var e=t.length/6|0,r=Array(e),i=0;i=1?nk:t<=-1?-nk:Math.asin(t)}let n_=Math.PI,nv=2*n_,nT=nv-1e-6;function nS(t){this._+=t[0];for(let e=1,r=t.length;e =0))throw Error(`invalid digits: ${t}`);if(e>15)return nS;let r=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e1e-6){if(Math.abs(c*s-l*h)>1e-6&&n){let d=r-a,f=i-o,p=s*s+l*l,g=Math.sqrt(p),m=Math.sqrt(u),y=n*Math.tan((n_-Math.acos((p+u-(d*d+f*f))/(2*g*m)))/2),x=y/m,b=y/g;Math.abs(x-1)>1e-6&&this._append`L${t+x*h},${e+x*c}`,this._append`A${n},${n},0,0,${+(c*d>h*f)},${this._x1=t+b*s},${this._y1=e+b*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,i,n,a){if(t=+t,e=+e,a=!!a,(r=+r)<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(i),s=r*Math.sin(i),l=t+o,h=e+s,c=1^a,u=a?i-n:n-i;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${l},${h}`,r&&(u<0&&(u=u%nv+nv),u>nT?this._append`A${r},${r},0,1,${c},${t-o},${e-s}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:u>1e-6&&this._append`A${r},${r},0,${+(u>=n_)},${c},${this._x1=t+r*Math.cos(n)},${this._y1=e+r*Math.sin(n)}`)}rect(t,e,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function nB(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new nM(e)}function nL(t){return t.innerRadius}function nA(t){return t.outerRadius}function nF(t){return t.startAngle}function n$(t){return t.endAngle}function nW(t){return t&&t.padAngle}function nE(t,e,r,i,n,a,o){var s=t-r,l=e-i,h=(o?a:-a)/nx(s*s+l*l),c=h*l,u=-h*s,d=t+c,f=e+u,p=r+c,g=i+u,m=(d+p)/2,y=(f+g)/2,x=p-d,b=g-f,k=x*x+b*b,C=n-a,w=d*g-p*f,_=(b<0?-1:1)*nx(ng(0,C*C*k-w*w)),v=(w*b-x*_)/k,T=(-w*x-b*_)/k,S=(w*b+x*_)/k,M=(-w*x+b*_)/k,B=v-m,L=T-y,A=S-m,F=M-y;return B*B+L*L>A*A+F*F&&(v=S,T=M),{cx:v,cy:T,x01:-c,y01:-u,x11:v*(n/C-1),y11:T*(n/C-1)}}function nN(){var t=nL,e=nA,r=nu(0),i=null,n=nF,a=n$,o=nW,s=null,l=nB(h);function h(){var h,c,u=+t.apply(this,arguments),d=+e.apply(this,arguments),f=n.apply(this,arguments)-nk,p=a.apply(this,arguments)-nk,g=nd(p-f),m=p>f;if(s||(s=h=l()),d1e-12){if(g>nC-1e-12)s.moveTo(d*np(f),d*ny(f)),s.arc(0,0,d,f,p,!m),u>1e-12&&(s.moveTo(u*np(p),u*ny(p)),s.arc(0,0,u,p,f,m));else{var y,x,b=f,k=p,C=f,w=p,_=g,v=g,T=o.apply(this,arguments)/2,S=T>1e-12&&(i?+i.apply(this,arguments):nx(u*u+d*d)),M=nm(nd(d-u)/2,+r.apply(this,arguments)),B=M,L=M;if(S>1e-12){var A=nw(S/u*ny(T)),F=nw(S/d*ny(T));(_-=2*A)>1e-12?(A*=m?1:-1,C+=A,w-=A):(_=0,C=w=(f+p)/2),(v-=2*F)>1e-12?(F*=m?1:-1,b+=F,k-=F):(v=0,b=k=(f+p)/2)}var $=d*np(b),W=d*ny(b),E=u*np(w),N=u*ny(w);if(M>1e-12){var Z,D=d*np(k),j=d*ny(k),O=u*np(C),I=u*ny(C);if(g 1?0:R<-1?nb:Math.acos(R))/2),Y=nx(Z[0]*Z[0]+Z[1]*Z[1]);B=nm(M,(u-Y)/(U-1)),L=nm(M,(d-Y)/(U+1))}else B=L=0}}v>1e-12?L>1e-12?(y=nE(O,I,$,W,d,L,m),x=nE(D,j,E,N,d,L,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),L 1e-12&&_>1e-12?B>1e-12?(y=nE(E,N,D,j,u,-B,m),x=nE($,W,O,I,u,-B,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),B t?1:e>=t?0:NaN}function nP(t){return t}function nq(){var t=nP,e=nz,r=null,i=nu(0),n=nu(nC),a=nu(0);function o(o){var s,l,h,c,u,d=(o=nZ(o)).length,f=0,p=Array(d),g=Array(d),m=+i.apply(this,arguments),y=Math.min(nC,Math.max(-nC,n.apply(this,arguments)-m)),x=Math.min(Math.abs(y)/d,a.apply(this,arguments)),b=x*(y<0?-1:1);for(s=0;s 0&&(f+=u);for(null!=e?p.sort(function(t,r){return e(g[t],g[r])}):null!=r&&p.sort(function(t,e){return r(o[t],o[e])}),s=0,h=f?(y-d*b)/f:0;s 0?u*h:0)+b,g[l]={data:o[l],index:s,value:u,startAngle:m,endAngle:c,padAngle:x};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:nu(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:nu(+t),o):i},o.endAngle=function(t){return arguments.length?(n="function"==typeof t?t:nu(+t),o):n},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:nu(+t),o):a},o}function nH(){}function nU(t,e,r){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+r)/6)}function nY(t){this._context=t}function nV(t){return new nY(t)}function nG(t){this._context=t}function nX(t){return new nG(t)}function nQ(t){this._context=t}function nJ(t){return new nQ(t)}nM.prototype,Array.prototype.slice,nD.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)}}},nY.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:nU(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:nU(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nG.prototype={areaStart:nH,areaEnd:nH,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:nU(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nQ.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 r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:nU(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class nK{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function n0(t){return new nK(t,!0)}function n1(t){return new nK(t,!1)}function n2(t,e){this._basis=new nY(t),this._beta=e}n2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i,n=t[0],a=e[0],o=t[r]-n,s=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+i*o),this._beta*e[l]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let n5=function t(e){function r(t){return 1===e?new nY(t):new n2(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function n3(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function n4(t,e){this._context=t,this._k=(1-e)/6}n4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n3(this,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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:n3(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let n6=function t(e){function r(t){return new n4(t,e)}return r.tension=function(e){return t(+e)},r}(0);function n8(t,e){this._context=t,this._k=(1-e)/6}n8.prototype={areaStart:nH,areaEnd:nH,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:n3(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let n9=function t(e){function r(t){return new n8(t,e)}return r.tension=function(e){return t(+e)},r}(0);function n7(t,e){this._context=t,this._k=(1-e)/6}n7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n3(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let at=function t(e){function r(t){return new n7(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ae(t,e,r){var i=t._x1,n=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,n,a,o,t._x2,t._y2)}function ar(t,e){this._context=t,this._alpha=e}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}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;default:ae(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ai=function t(e){function r(t){return e?new ar(t,e):new n4(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function an(t,e){this._context=t,this._alpha=e}an.prototype={areaStart:nH,areaEnd:nH,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ae(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let aa=function t(e){function r(t){return e?new an(t,e):new n8(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ao(t,e){this._context=t,this._alpha=e}ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ae(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let as=function t(e){function r(t){return e?new ao(t,e):new n7(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function al(t){this._context=t}function ah(t){return new al(t)}function ac(t,e,r){var i=t._x1-t._x0,n=e-t._x1,a=(t._y1-t._y0)/(i||n<0&&-0),o=(r-t._y1)/(n||i<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*n+o*i)/(i+n)))||0}function au(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ad(t,e,r){var i=t._x0,n=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,n+s*e,a-s,o-s*r,a,o)}function af(t){this._context=t}function ap(t){this._context=new ag(t)}function ag(t){this._context=t}function am(t){return new af(t)}function ay(t){return new ap(t)}function ax(t){this._context=t}function ab(t){var e,r,i=t.length-1,n=Array(i),a=Array(i),o=Array(i);for(n[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e =0;--e)n[e]=(o[e]-n[e+1])/a[e];for(e=0,a[i-1]=(t[i]+n[i-1])/2;e =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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},aT.prototype={constructor:aT,scale:function(t){return 1===t?this:new aT(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aT(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+")"}};var aS=new aT(1,0,0);aT.prototype},930:function(t,e,r){"use strict";r.d(e,{Z:()=>o});var i=r("3763"),n=r("5036");let a=class{constructor(){this.type=n.w.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=n.w.ALL}is(t){return this.type===t}},o=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=n.w.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:n}=t;void 0===e&&(t.h=i.Z.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=i.Z.channel.rgb2hsl(t,"s")),void 0===n&&(t.l=i.Z.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:n}=t;void 0===e&&(t.r=i.Z.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=i.Z.channel.hsl2rgb(t,"g")),void 0===n&&(t.b=i.Z.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(n.w.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(n.w.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(n.w.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(n.w.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(n.w.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(n.w.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},6652:function(t,e,r){"use strict";r.d(e,{Z:()=>c});var i=r("930"),n=r("5036");let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],n=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,h=l?1:17,c=l?8:4,u=s?0:-1,d=l?255:15;return i.Z.set({r:(n>>c*(u+3)&d)*h,g:(n>>c*(u+2)&d)*h,b:(n>>c*(u+1)&d)*h,a:s?(n&d)*h/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a}=t;return a<1?`#${n.Q[Math.round(e)]}${n.Q[Math.round(r)]}${n.Q[Math.round(i)]}${n.Q[Math.round(255*a)]}`:`#${n.Q[Math.round(e)]}${n.Q[Math.round(r)]}${n.Q[Math.round(i)]}`}};var o=r("3763");let s={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=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.Z.channel.clamp.h(.9*parseFloat(t));case"rad":return o.Z.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.Z.channel.clamp.h(360*parseFloat(t))}}return o.Z.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,n,a,l,h,c]=r;return i.Z.set({h:s._hue2deg(n),s:o.Z.channel.clamp.s(parseFloat(a)),l:o.Z.channel.clamp.l(parseFloat(l)),a:h?o.Z.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${o.Z.lang.round(e)}, ${o.Z.lang.round(r)}%, ${o.Z.lang.round(i)}%, ${n})`:`hsl(${o.Z.lang.round(e)}, ${o.Z.lang.round(r)}%, ${o.Z.lang.round(i)}%)`}},l={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",salmon:"#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();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},h={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=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(h.re);if(!r)return;let[,n,a,s,l,c,u,d,f]=r;return i.Z.set({r:o.Z.channel.clamp.r(a?2.55*parseFloat(n):parseFloat(n)),g:o.Z.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.Z.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:d?o.Z.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${o.Z.lang.round(e)}, ${o.Z.lang.round(r)}, ${o.Z.lang.round(i)}, ${o.Z.lang.round(n)})`:`rgb(${o.Z.lang.round(e)}, ${o.Z.lang.round(r)}, ${o.Z.lang.round(i)})`}},c={format:{keyword:l,hex:a,rgb:h,rgba:h,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||h.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(n.w.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):h.stringify(t)}},5036:function(t,e,r){"use strict";r.d(e,{Q:function(){return n},w:function(){return a}});var i=r(3763);let n={};for(let t=0;t<=255;t++)n[t]=i.Z.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},6859:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(3763),n=r(6652);let a=(t,e,r)=>{let a=n.Z.parse(t),o=a[e],s=i.Z.channel.clamp[e](o+r);return o!==s&&(a[e]=s),n.Z.stringify(a)}},7826:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(3763),n=r(6652);let a=(t,e)=>{let r=n.Z.parse(t);for(let t in e)r[t]=i.Z.channel.clamp[t](e[t]);return n.Z.stringify(r)}},5035:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=r(6859);let n=(t,e)=>(0,i.Z)(t,"l",-e)},7845:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var i=r("3763"),n=r("6652");let a=t=>{let{r:e,g:r,b:a}=n.Z.parse(t),o=.2126*i.Z.channel.toLinear(e)+.7152*i.Z.channel.toLinear(r)+.0722*i.Z.channel.toLinear(a);return i.Z.lang.round(o)},o=t=>a(t)>=.5,s=t=>!o(t)},6750:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=r(6859);let n=(t,e)=>(0,i.Z)(t,"l",e)},3328:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(3763),n=r(930),a=r(6652),o=r(7826);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.Z)(t,{a:e});let l=n.Z.set({r:i.Z.channel.clamp.r(t),g:i.Z.channel.clamp.g(e),b:i.Z.channel.clamp.b(r),a:i.Z.channel.clamp.a(s)});return a.Z.stringify(l)}},3763:function(t,e,r){"use strict";r.d(e,{Z:()=>n});let i={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=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(n){case"r":return 255*i.hue2rgb(o,a,t+1/3);case"g":return 255*i.hue2rgb(o,a,t);case"b":return 255*i.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{let n=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(n+a)/2;if("l"===i)return 100*o;if(n===a)return 0;let s=n-a;if("s"===i)return 100*(o>.5?s/(2-n-a):s/(n+a));switch(n){case t:return((e-r)/s+(e e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},7390:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var i=r("8487");let n=function(t,e){for(var r=t.length;r--;)if((0,i.Z)(t[r][0],e))return r;return -1};var a=Array.prototype.splice;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e -1},o.prototype.set=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};let s=o},2321:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(6161),n=r(2434);let a=(0,i.Z)(n.Z,"Map")},9401:function(t,e,r){"use strict";r.d(e,{Z:()=>d});var i=(0,r("6161").Z)(Object,"create"),n=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e s});var i=r("7390"),n=r("2321"),a=r("9401");function o(t){var e=this.__data__=new i.Z(t);this.size=e.size}o.prototype.clear=function(){this.__data__=new i.Z,this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},o.prototype.get=function(t){return this.__data__.get(t)},o.prototype.has=function(t){return this.__data__.has(t)},o.prototype.set=function(t,e){var r=this.__data__;if(r instanceof i.Z){var o=r.__data__;if(!n.Z||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.Z(o)}return r.set(t,e),this.size=r.size,this};let s=o},3958:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=r(2434).Z.Symbol},8530:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=r(2434).Z.Uint8Array},2895:function(t,e,r){"use strict";r.d(e,{Z:()=>c});let i=function(t,e){for(var r=-1,i=Array(t);++r i});let i=function(t,e,r){for(var i=-1,n=Object(t),a=r(t),o=a.length;o--;){var s=a[++i];if(!1===e(n[s],s,n))break}return t}},5182:function(t,e,r){"use strict";r.d(e,{Z:()=>u});var i=r("3958"),n=Object.prototype,a=n.hasOwnProperty,o=n.toString,s=i.Z?i.Z.toStringTag:void 0;let l=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var i=!0}catch(t){}var n=o.call(t);return i&&(e?t[s]=r:delete t[s]),n};var h=Object.prototype.toString,c=i.Z?i.Z.toStringTag:void 0;let u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?l(t):h.call(t)}},2769:function(t,e,r){"use strict";r.d(e,{Z:()=>o});var i=r("4342"),n=(0,r("4965").Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty;let o=function(t){if(!(0,i.Z)(t))return n(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3148:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var i=r(4675),n=r(9647),a=r(9186);let o=function(t,e){return(0,a.Z)((0,n.Z)(t,e,i.Z),t+"")}},4026:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){return function(e){return t(e)}}},1914:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=r(8530);let n=function(t){var e=new t.constructor(t.byteLength);return new i.Z(e).set(new i.Z(t)),e}},9307:function(t,e,r){"use strict";r.d(e,{Z:function(){return l}});var i=r(2434),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=n&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===n?i.Z.Buffer:void 0,s=o?o.allocUnsafe:void 0;let l=function(t,e){if(e)return t.slice();var r=t.length,i=s?s(r):new t.constructor(r);return t.copy(i),i}},2025:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=r(1914);let n=function(t,e){var r=e?(0,i.Z)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},6177:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&(0,n.Z)(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++ig});var i,n=r("8782"),a=r("2434").Z["__core-js_shared__"],o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",s=r("8641"),l=r("1842"),h=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let p=function(t){return!!(0,s.Z)(t)&&(!o||!(o in t))&&((0,n.Z)(t)?f:h).test((0,l.Z)(t))},g=function(t,e){var r=null==t?void 0:t[e];return p(r)?r:void 0}},3754:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=(0,r(4965).Z)(Object.getPrototypeOf,Object)},3302:function(t,e,r){"use strict";r.d(e,{Z:()=>_});var i=r("6161"),n=r("2434"),a=(0,i.Z)(n.Z,"DataView"),o=r("2321"),s=(0,i.Z)(n.Z,"Promise"),l=r("8521"),h=(0,i.Z)(n.Z,"WeakMap"),c=r("5182"),u=r("1842"),d="[object Map]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,u.Z)(a),x=(0,u.Z)(o.Z),b=(0,u.Z)(s),k=(0,u.Z)(l.Z),C=(0,u.Z)(h),w=c.Z;(a&&w(new a(new ArrayBuffer(1)))!=m||o.Z&&w(new o.Z)!=d||s&&w(s.resolve())!=f||l.Z&&w(new l.Z)!=p||h&&w(new h)!=g)&&(w=function(t){var e=(0,c.Z)(t),r="[object Object]"==e?t.constructor:void 0,i=r?(0,u.Z)(r):"";if(i)switch(i){case y:return m;case x:return d;case b:return f;case k:return p;case C:return g}return e});let _=w},2799:function(t,e,r){"use strict";r.d(e,{Z:()=>l});var i=r("8641"),n=Object.create,a=function(){function t(){}return function(e){if(!(0,i.Z)(e))return{};if(n)return n(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),o=r("3754"),s=r("4342");let l=function(t){return"function"!=typeof t.constructor||(0,s.Z)(t)?{}:a((0,o.Z)(t))}},2383:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=/^(?:0|[1-9]\d*)$/;let n=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t a});let i=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var n=Math.max;let a=function(t,e,r){return e=n(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=n(a.length-e,0),l=Array(s);++o c});var i,n,a=r("6498"),o=r("3722"),s=r("4675"),l=o.Z?function(t,e){return(0,o.Z)(t,"toString",{configurable:!0,enumerable:!1,value:(0,a.Z)(e),writable:!0})}:s.Z,h=Date.now;let c=(i=0,n=0,function(){var t=h(),e=16-(t-n);if(n=t,e>0){if(++i>=800)return arguments[0]}else i=0;return l.apply(void 0,arguments)})},1842:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});var i=Function.prototype.toString;let n=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6498:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){return function(){return t}}},8487:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t,e){return t===e||t!=t&&e!=e}},4675:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){return t}},5988:function(t,e,r){"use strict";r.d(e,{Z:()=>h});var i=r("5182"),n=r("5887");let a=function(t){return(0,n.Z)(t)&&"[object Arguments]"==(0,i.Z)(t)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;let h=a(function(){return arguments}())?a:function(t){return(0,n.Z)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},1739:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=Array.isArray},1581:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(8782),n=r(9666);let a=function(t){return null!=t&&(0,n.Z)(t.length)&&!(0,i.Z)(t)}},1322:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(1581),n=r(5887);let a=function(t){return(0,n.Z)(t)&&(0,i.Z)(t)}},5162:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var i=r("2434"),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=n&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===n?i.Z.Buffer:void 0;let s=(o?o.isBuffer:void 0)||function(){return!1}},3217:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var i=r(2769),n=r(3302),a=r(5988),o=r(1739),s=r(1581),l=r(5162),h=r(4342),c=r(8366),u=Object.prototype.hasOwnProperty;let d=function(t){if(null==t)return!0;if((0,s.Z)(t)&&((0,o.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.Z)(t)||(0,c.Z)(t)||(0,a.Z)(t)))return!t.length;var e=(0,n.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,h.Z)(t))return!(0,i.Z)(t).length;for(var r in t)if(u.call(t,r))return!1;return!0}},8782:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(5182),n=r(8641);let a=function(t){if(!(0,n.Z)(t))return!1;var e=(0,i.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9666:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},8641:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5887:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});let i=function(t){return null!=t&&"object"==typeof t}},8366:function(t,e,r){"use strict";r.d(e,{Z:()=>c});var i=r("5182"),n=r("9666"),a=r("5887"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=r("4026"),l=r("4413"),h=l.Z&&l.Z.isTypedArray;let c=h?(0,s.Z)(h):function(t){return(0,a.Z)(t)&&(0,n.Z)(t.length)&&!!o[(0,i.Z)(t)]}},38:function(t,e,r){"use strict";r.d(e,{Z:()=>c});var i=r("2895"),n=r("8641"),a=r("4342");let o=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var s=Object.prototype.hasOwnProperty;let l=function(t){if(!(0,n.Z)(t))return o(t);var e=(0,a.Z)(t),r=[];for(var i in t)"constructor"==i&&(e||!s.call(t,i))||r.push(i);return r};var h=r("1581");let c=function(t){return(0,h.Z)(t)?(0,i.Z)(t,!0):l(t)}},5269:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(9401);function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=t.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(n.Cache||i.Z),r}n.Cache=i.Z;let a=n},1777:function(t,e,r){"use strict";r.d(e,{Z:()=>$});var i=r("1395"),n=r("9790"),a=r("8487");let o=function(t,e,r){(void 0===r||(0,a.Z)(t[e],r))&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)};var s=r("5467"),l=r("9307"),h=r("2025"),c=r("6177"),u=r("2799"),d=r("5988"),f=r("1739"),p=r("1322"),g=r("5162"),m=r("8782"),y=r("8641"),x=r("5182"),b=r("3754"),k=r("5887"),C=Object.prototype,w=Function.prototype.toString,_=C.hasOwnProperty,v=w.call(Object);let T=function(t){if(!(0,k.Z)(t)||"[object Object]"!=(0,x.Z)(t))return!1;var e=(0,b.Z)(t);if(null===e)return!0;var r=_.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&w.call(r)==v};var S=r("8366");let M=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var B=r("9919"),L=r("38");let A=function(t,e,r,i,n,a,s){var x=M(t,r),b=M(e,r),k=s.get(b);if(k){o(t,r,k);return}var C=a?a(x,b,r+"",t,e,s):void 0,w=void 0===C;if(w){var _=(0,f.Z)(b),v=!_&&(0,g.Z)(b),A=!_&&!v&&(0,S.Z)(b);(C=b,_||v||A)?(0,f.Z)(x)?C=x:(0,p.Z)(x)?C=(0,c.Z)(x):v?(w=!1,C=(0,l.Z)(b,!0)):A?(w=!1,C=(0,h.Z)(b,!0)):C=[]:T(b)||(0,d.Z)(b)?(C=x,(0,d.Z)(x))?C=(0,B.Z)(x,(0,L.Z)(x)):(!(0,y.Z)(x)||(0,m.Z)(x))&&(C=(0,u.Z)(b)):w=!1}w&&(s.set(b,C),n(C,b,i,a,s),s.delete(b)),o(t,r,C)},F=function t(e,r,n,a,l){e!==r&&(0,s.Z)(r,function(s,h){if(l||(l=new i.Z),(0,y.Z)(s))A(e,r,h,n,t,a,l);else{var c=a?a(M(e,h),s,h+"",e,r,l):void 0;void 0===c&&(c=s),o(e,h,c)}},L.Z)},$=(0,r("2807").Z)(function(t,e,r){F(t,e,r)})},6302:function(t,e,r){"use strict";r.d(e,{ef:()=>v,cN:()=>C,s4:()=>S});var i=r("5995");let n=/^[a-z0-9]+(-[a-z0-9]+)*$/,a=(t,e,r,i="")=>{let n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let t=n.pop(),r=n.pop(),a={provider:n.length>0?n[0]:i,prefix:r,name:t};return e&&!o(a)?null:a}let a=n[0],s=a.split("-");if(s.length>1){let t={provider:i,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:a};return e&&!o(t,r)?null:t}return null},o=(t,e)=>!!t&&!!((""===t.provider||t.provider.match(n))&&(e&&""===t.prefix||t.prefix.match(n))&&t.name.match(n)),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze({...s,...l}),c=Object.freeze({...h,body:"",hidden:!1});function u(t,e){let r=function(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}(t,e);for(let i in c)i in l?i in t&&!(i in r)&&(r[i]=l[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function d(t,e,r){let i=t.icons,n=t.aliases||Object.create(null),a={};function o(t){a=u(i[t]||n[t],a)}return o(e),r.forEach(o),u(t,a)}let f=Object.freeze({...Object.freeze({width:null,height:null}),...l}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let i=t.split(p);if(null===i||!i.length)return t;let n=[],a=i.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*r)/r)}else n.push(a);if(void 0===(a=i.shift()))return n.join("");o=!o}}let y=t=>"unset"===t||"undefined"===t||"none"===t,x=/\sid="(\S+)"/g,b="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),k=0;var C={body:'',height:80,width:80},w=new Map,_=new Map,v=(0,i.eW)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.cM.debug("Registering icon pack:",e.name),"loader"in e)_.set(e.name,e.loader);else if("icons"in e)w.set(e.name,e.icons);else throw i.cM.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),T=(0,i.eW)(async(t,e)=>{let r=a(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let o=w.get(n);if(!o){let t=_.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{o={...await t(),prefix:n},w.set(n,o)}catch(t){throw i.cM.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){if(t.icons[e])return d(t,e,[]);let r=function(t,e){let r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach(function t(e){if(r[e])return n[e]=[];if(!(e in n)){n[e]=null;let r=i[e]&&i[e].parent,a=r&&t(r);a&&(n[e]=[r].concat(a))}return n[e]}),n}(t,[e])[e];return r?d(t,e,r):null}(o,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),S=(0,i.eW)(async(t,e)=>{let r;try{r=await T(t,e?.fallbackPrefix)}catch(t){i.cM.error(t),r=C}let n=function(t,e){let r,i;let n={...h,...t},a={...f,...e},o={left:n.left,top:n.top,width:n.width,height:n.height},s=n.body;[n,a].forEach(t=>{let e;let r=[],i=t.hFlip,n=t.vFlip,a=t.rotate;switch(i?n?a+=2:(r.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),r.push("scale(-1 1)"),o.top=o.left=0):n&&(r.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),r.push("scale(1 -1)"),o.top=o.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4){case 1:r.unshift("rotate(90 "+(e=o.height/2+o.top).toString()+" "+e.toString()+")");break;case 2:r.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:r.unshift("rotate(-90 "+(e=o.width/2+o.left).toString()+" "+e.toString()+")")}a%2==1&&(o.left!==o.top&&(e=o.left,o.left=o.top,o.top=e),o.width!==o.height&&(e=o.width,o.width=o.height,o.height=e)),r.length&&(s=function(t,e,r){var i,n;let a=function(t,e="defs"){let r="",i=t.indexOf("<"+e);for(;i>=0;){let n=t.indexOf(">",i),a=t.indexOf(""+e);if(-1===n||-1===a)break;let o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(n+1,a).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}(t);return i=a.defs,n=e+a.content+r,i?" ? "+i+" "+n:n}(s,''," "))});let l=a.width,c=a.height,u=o.width,d=o.height;null===l?r=m(i=null===c?"1em":"auto"===c?d:c,u/d):(r="auto"===l?u:l,i=null===c?m(r,d/u):"auto"===c?d:c);let p={},g=(t,e)=>{y(e)||(p[t]=e.toString())};g("width",r),g("height",i);let x=[o.left,o.top,u,d];return p.viewBox=x.join(" "),{attributes:p,viewBox:x,body:s}}(r,e);return function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'"}(function(t,e=b){let r;let i=[];for(;r=x.exec(t);)i.push(r[1]);if(!i.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return i.forEach(r=>{let i="function"==typeof e?e(r):e+(k++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(n.body),n.attributes)},"getIconSVG")},4159:function(t,e,r){"use strict";r.d(e,{P:function(){return a}});var i=r(5995),n=r(7818),a=(0,i.eW)(t=>{let{securityLevel:e}=(0,i.nV)(),r=(0,n.Ys)("body");if("sandbox"===e){let e=(0,n.Ys)(`#i${t}`),i=e.node()?.contentDocument??document;r=(0,n.Ys)(i.body)}return r.select(`#${t}`)},"selectSvgElement")},8162:function(t,e,r){"use strict";r.d(e,{C1:function(){return c},Lf:function(){return eo},XO:function(){return k},Yn:function(){return es},ZH:function(){return E},aH:function(){return eh},dW:function(){return en},gU:function(){return el},jr:function(){return d},us:function(){return W}});var i=r(6302),n=r(4511),a=r(2719),o=r(7690),s=r(5995),l=r(7818),h=r(4247),c=(0,s.eW)(async(t,e,r)=>{let i,n;let h=e.useHtmlLabels||(0,s.ku)(s.nV()?.htmlLabels);i=r||"node default";let c=t.insert("g").attr("class",i).attr("id",e.domId||e.id),u=c.insert("g").attr("class","label").attr("style",(0,o.R7)(e.labelStyle));n=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let d=await (0,a.rw)(u,(0,s.oO)((0,o.SH)(n),(0,s.nV)()),{useHtmlLabels:h,width:e.width||s.nV().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),f=d.getBBox(),p=(e?.padding??0)/2;if(h){let t=d.children[0],e=(0,l.Ys)(d),r=t.getElementsByTagName("img");if(r){let t=""===n.replace(/]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,s.nV)().fontSize?(0,s.nV)().fontSize:window.getComputedStyle(document.body).fontSize,[r=s.vZ.fontSize]=(0,o.VG)(t),i=5*r+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";r(e)}(0,s.eW)(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}return h?u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):u.attr("transform","translate(0, "+-f.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:c,bbox:f,halfPadding:p,label:u}},"labelHelper"),u=(0,s.eW)(async(t,e,r)=>{let i=r.useHtmlLabels||(0,s.ku)(s.nV()?.flowchart?.htmlLabels),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),h=await (0,a.rw)(n,(0,s.oO)((0,o.SH)(e),(0,s.nV)()),{useHtmlLabels:i,width:r.width||s.nV()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),c=h.getBBox(),u=r.padding/2;if((0,s.ku)(s.nV()?.flowchart?.htmlLabels)){let t=h.children[0],e=(0,l.Ys)(h);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return i?n.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):n.attr("transform","translate(0, "+-c.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:c,halfPadding:u,label:n}},"insertLabel"),d=(0,s.eW)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),f=(0,s.eW)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function p(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function g(t,e,r,i,n,a){let o=[],s=r-t,l=2*Math.PI/(s/a),h=e+(i-e)/2;for(let e=0;e<=50;e++){let r=t+e/50*s,i=h+n*Math.sin(l*(r-t));o.push({x:r,y:i})}return o}function m(t,e,r,i,n,a){let o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n{var r,i,n=t.x,a=t.y,o=e.x-n,s=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(s)*l>Math.abs(o)*h?(s<0&&(h=-h),r=0===s?0:h*o/s,i=h):(o<0&&(l=-l),r=l,i=0===o?0:l*s/o),{x:n+r,y:a+i}},"intersectRect");function x(t,e){e&&t.attr("style",e)}async function b(t){let e=(0,l.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=t.label;t.label&&(0,s.l0)(t.label)&&(i=await (0,s.uT)(t.label.replace(s.SY.lineBreakRegex,"\n"),(0,s.nV)()));let n=t.isNode?"nodeLabel":"edgeLabel";return r.html('"+i+""),x(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.eW)(x,"applyStyle"),(0,s.eW)(b,"addHtmlLabel");var k=(0,s.eW)(async(t,e,r,i)=>{let n=t||"";if("object"==typeof n&&(n=n[0]),(0,s.ku)((0,s.nV)().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"
"),s.cM.info("vertexText"+n);let t={isNode:i,label:(0,o.SH)(n).replace(/fa[blrs]?:fa-[\w-]+/g,t=>``),labelStyle:e?e.replace("fill:","color:"):e};return await b(t)}{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];for(let e of"string"==typeof n?n.split(/\\n|\n|
/gi):Array.isArray(n)?n:[]){let 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"),r?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},"createLabel"),C=(0,s.eW)((t,e,r,i,n)=>["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),w=(0,s.eW)(t=>{let{handDrawnSeed:e}=(0,s.nV)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),_=(0,s.eW)(t=>{let e=v([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),v=(0,s.eW)(t=>{let e=new Map;return t.forEach(t=>{let[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),T=(0,s.eW)(t=>{let{stylesArray:e}=_(t),r=[],i=[],n=[],a=[];return e.forEach(t=>{let e=t[0];"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:a}},"styles2String"),S=(0,s.eW)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,s.nV)(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=_(t);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides"),M=(0,s.eW)(async(t,e)=>{let r;s.cM.info("Creating subgraph rect for ",e.id,e);let i=(0,s.nV)(),{themeVariables:o,handDrawnSeed:c}=i,{clusterBkg:u,clusterBorder:d}=o,{labelStyles:f,nodeStyles:p,borderStyles:g,backgroundStyles:m}=T(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),b=(0,s.ku)(i.flowchart.htmlLabels),k=x.insert("g").attr("class","cluster-label "),w=await (0,a.rw)(k,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0}),_=w.getBBox();if((0,s.ku)(i.flowchart.htmlLabels)){let t=w.children[0],e=(0,l.Ys)(w);_=t.getBoundingClientRect(),e.attr("width",_.width),e.attr("height",_.height)}let v=e.width<=_.width+e.padding?_.width+e.padding:e.width;e.width<=_.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let M=e.height,B=e.x-v/2,L=e.y-M/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.Z.svg(x),i=S(e,{roughness:.7,fill:u,stroke:d,fillWeight:3,seed:c}),n=t.path(C(B,L,v,M,0),i);(r=x.insert(()=>(s.cM.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),r.select("path").attr("style",m.join(";").replace("fill","stroke"))}else(r=x.insert("rect",":first-child")).attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",L).attr("width",v).attr("height",M);let{subGraphTitleTopMargin:A}=(0,n.L)(i);if(k.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+A})`),f){let t=k.select("span");t&&t.attr("style",f)}let F=r.node().getBBox();return e.offsetX=0,e.width=F.width,e.height=F.height,e.offsetY=_.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:x,labelBBox:_}},"rect"),B=(0,s.eW)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),n=0*e.padding,a=n/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+n).attr("height",e.height+n).attr("fill","none");let o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return y(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),L=(0,s.eW)(async(t,e)=>{let r;let i=(0,s.nV)(),{themeVariables:n,handDrawnSeed:a}=i,{altBackground:o,compositeBackground:c,compositeTitleBackground:u,nodeBorder:d}=n,f=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),p=f.insert("g",":first-child"),g=f.insert("g").attr("class","cluster-label"),m=f.append("rect"),x=g.node().appendChild(await k(e.label,e.labelStyle,void 0,!0)),b=x.getBBox();if((0,s.ku)(i.flowchart.htmlLabels)){let t=x.children[0],e=(0,l.Ys)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let w=0*e.padding,_=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+w;e.width<=b.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height+w,T=e.height+w-b.height-6,S=e.x-_/2,M=e.y-v/2;e.width=_;let B=e.y-e.height/2-w/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),i=h.Z.svg(f),n=e.rx||e.ry?i.path(C(S,M,_,v,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:d,seed:a}):i.rectangle(S,M,_,v,{seed:a});r=f.insert(()=>n,":first-child");let s=i.rectangle(S,B,_,T,{fill:t?o:c,fillStyle:t?"hachure":"solid",stroke:d,seed:a});r=f.insert(()=>n,":first-child"),m=f.insert(()=>s)}else(r=p.insert("rect",":first-child")).attr("class","outer").attr("x",S).attr("y",M).attr("width",_).attr("height",v).attr("data-look",e.look),m.attr("class","inner").attr("x",S).attr("y",B).attr("width",_).attr("height",T);g.attr("transform",`translate(${e.x-b.width/2}, ${M+1-((0,s.ku)(i.flowchart.htmlLabels)?0:3)})`);let L=r.node().getBBox();return e.height=L.height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return y(e,t)},{cluster:f,labelBBox:b}},"roundedWithTitle"),A=(0,s.eW)(async(t,e)=>{let r;s.cM.info("Creating subgraph rect for ",e.id,e);let i=(0,s.nV)(),{themeVariables:o,handDrawnSeed:c}=i,{clusterBkg:u,clusterBorder:d}=o,{labelStyles:f,nodeStyles:p,borderStyles:g,backgroundStyles:m}=T(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),b=(0,s.ku)(i.flowchart.htmlLabels),k=x.insert("g").attr("class","cluster-label "),w=await (0,a.rw)(k,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0,width:e.width}),_=w.getBBox();if((0,s.ku)(i.flowchart.htmlLabels)){let t=w.children[0],e=(0,l.Ys)(w);_=t.getBoundingClientRect(),e.attr("width",_.width),e.attr("height",_.height)}let v=e.width<=_.width+e.padding?_.width+e.padding:e.width;e.width<=_.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let M=e.height,B=e.x-v/2,L=e.y-M/2;if(s.cM.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.Z.svg(x),i=S(e,{roughness:.7,fill:u,stroke:d,fillWeight:4,seed:c}),n=t.path(C(B,L,v,M,e.rx),i);(r=x.insert(()=>(s.cM.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),r.select("path").attr("style",m.join(";").replace("fill","stroke"))}else(r=x.insert("rect",":first-child")).attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",L).attr("width",v).attr("height",M);let{subGraphTitleTopMargin:A}=(0,n.L)(i);if(k.attr("transform",`translate(${e.x-_.width/2}, ${e.y-e.height/2+A})`),f){let t=k.select("span");t&&t.attr("style",f)}let F=r.node().getBBox();return e.offsetX=0,e.width=F.width,e.height=F.height,e.offsetY=_.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:x,labelBBox:_}},"kanbanSection"),F={rect:M,squareRect:M,roundedWithTitle:L,noteGroup:B,divider:(0,s.eW)((t,e)=>{let r;let{themeVariables:i,handDrawnSeed:n}=(0,s.nV)(),{nodeBorder:a}=i,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=o.insert("g",":first-child"),c=0*e.padding,u=e.width+c;e.diff=-e.padding;let d=e.height+c,f=e.x-u/2,p=e.y-d/2;if(e.width=u,"handDrawn"===e.look){let t=h.Z.svg(o).rectangle(f,p,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});r=o.insert(()=>t,":first-child")}else(r=l.insert("rect",":first-child")).attr("class","divider").attr("x",f).attr("y",p).attr("width",u).attr("height",d).attr("data-look",e.look);let g=r.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return y(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:A},$=new Map,W=(0,s.eW)(async(t,e)=>{let r=e.shape||"rect",i=await F[r](t,e);return $.set(e.id,i),i},"insertCluster"),E=(0,s.eW)(()=>{$=new Map},"clear");function N(t,e,r,i){var n=t.x,a=t.y,o=n-i.x,s=a-i.y,l=Math.sqrt(e*e*s*s+r*r*o*o),h=Math.abs(e*r*o/l);i.x0}function O(t,e,r){let i=t.x,n=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)}):(o=Math.min(o,e.x),s=Math.min(s,e.y));let l=i-t.width/2-o,h=n-t.height/2-s;for(let i=0;i 1&&a.sort(function(t,e){let i=t.x-r.x,n=t.y-r.y,a=Math.sqrt(i*i+n*n),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return a p,":first-child");return g.attr("class","anchor").attr("style",(0,o.R7)(l)),d(e,g),e.intersect=function(t){return s.cM.info("Circle intersect",e,1,t),I.circle(e,1,t)},a}function z(t,e,r,i,n,a,o){let s=Math.atan2(i-e,r-t),l=Math.sqrt(((r-t)/2/n)**2+((i-e)/2/a)**2);if(l>1)throw Error("The given radii are too small to create an arc between the points.");let h=Math.sqrt(1-l**2),c=(t+r)/2+h*a*Math.sin(s)*(o?-1:1),u=(e+i)/2-h*n*Math.cos(s)*(o?-1:1),d=Math.atan2((e-u)/a,(t-c)/n),f=Math.atan2((i-u)/a,(r-c)/n)-d;o&&f<0&&(f+=2*Math.PI),!o&&f>0&&(f-=2*Math.PI);let p=[];for(let t=0;t<20;t++){let e=d+t/19*f,r=c+n*Math.cos(e),i=u+a*Math.sin(e);p.push({x:r,y:i})}return p}async function P(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=a.width+e.padding+20,s=a.height+e.padding,l=s/2,u=l/(2.5+s/50),{cssStyles:g}=e,m=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...z(-o/2,-s/2,-o/2,s/2,u,l,!1),{x:o/2,y:s/2},...z(o/2,s/2,o/2,-s/2,u,l,!0)],y=h.Z.svg(n),x=S(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=p(m),k=y.path(b,x),C=n.insert(()=>k,":first-child");return C.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${u/2}, 0)`),d(e,C),e.intersect=function(t){return I.polygon(e,m,t)},n}function q(t,e,r,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+","+r/2+")")}async function H(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=o.height+e.padding,l=o.width+e.padding+12,u=-s,g=[{x:12,y:u},{x:l,y:u},{x:l,y:0},{x:0,y:0},{x:0,y:u+12},{x:12,y:u}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=p(g),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),m&&r.attr("style",m)}else r=q(a,l,s,g);return n&&r.attr("style",n),d(e,r),e.intersect=function(t){return I.polygon(e,g,t)},a}function U(t,e){let{nodeStyles:r}=T(e);e.label="";let i=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,a=Math.max(28,e.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=h.Z.svg(i),l=S(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");let c=p(o),u=s.path(c,l),d=i.insert(()=>u,":first-child");return n&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return I.polygon(e,o,t)},i}async function Y(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:l,halfPadding:u}=await c(t,e,f(e)),p=l.width/2+u,{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=t.circle(0,0,2*p,i);(r=a.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,o.R7)(g))}else r=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return d(e,r),e.intersect=function(t){return s.cM.info("Circle intersect",e,p,t),I.circle(e,p,t)},a}function V(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t,n={x:i/2*e,y:i/2*r},a={x:-(i/2)*e,y:i/2*r},o={x:-(i/2)*e,y:-(i/2)*r},s={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y} + M ${n.x},${n.y} L ${o.x},${o.y}`}function G(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:o}=e,l=h.Z.svg(n),c=S(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let u=l.circle(0,0,2*a,c),p=V(a),g=l.path(p,c),m=n.insert(()=>u,":first-child");return m.insert(()=>g),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),d(e,m),e.intersect=function(t){return s.cM.info("crossedCircle intersect",e,{radius:a,point:t}),I.circle(e,a,t)},n}function X(t,e,r,i=100,n=0,a=180){let o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n_,":first-child").attr("stroke-opacity",0),v.insert(()=>C,":first-child"),v.attr("class","text"),g&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${u}, 0)`),o.attr("transform",`translate(${-s/2+u-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return I.polygon(e,y,t)},n}function J(t,e,r,i=100,n=0,a=180){let o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n_,":first-child").attr("stroke-opacity",0),v.insert(()=>C,":first-child"),v.attr("class","text"),g&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-u}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return I.polygon(e,y,t)},n}function tt(t,e,r,i=100,n=0,a=180){let o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;nB,":first-child").attr("stroke-opacity",0),L.insert(()=>w,":first-child"),L.insert(()=>v,":first-child"),L.attr("class","text"),g&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${u-u/4}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,L),e.intersect=function(t){return I.polygon(e,x,t)},n}async function tr(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(80,(a.width+(e.padding??0)*2)*1.25,e?.width??0),s=Math.max(20,a.height+(e.padding??0)*2,e?.height??0),l=s/2,{cssStyles:u}=e,g=h.Z.svg(n),y=S(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let x=o-l,b=s/4,k=[{x:x,y:0},{x:b,y:0},{x:0,y:s/2},{x:b,y:s},{x:x,y:s},...m(-x,-s/2,l,50,270,90)],C=p(k),w=g.path(C,y),_=n.insert(()=>w,":first-child");return _.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",u),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(${-o/2}, ${-s/2})`),d(e,_),e.intersect=function(t){return I.polygon(e,k,t)},n}(0,s.eW)(R,"anchor"),(0,s.eW)(z,"generateArcPoints"),(0,s.eW)(P,"bowTieRect"),(0,s.eW)(q,"insertPolygonShape"),(0,s.eW)(H,"card"),(0,s.eW)(U,"choice"),(0,s.eW)(Y,"circle"),(0,s.eW)(V,"createLine"),(0,s.eW)(G,"crossedCircle"),(0,s.eW)(X,"generateCirclePoints"),(0,s.eW)(Q,"curlyBraceLeft"),(0,s.eW)(J,"generateCirclePoints"),(0,s.eW)(K,"curlyBraceRight"),(0,s.eW)(tt,"generateCirclePoints"),(0,s.eW)(te,"curlyBraces"),(0,s.eW)(tr,"curvedTrapezoid");var ti=(0,s.eW)((t,e,r,i,n,a)=>`M${t},${e+a} a${n},${a} 0,0,0 ${r},0 a${n},${a} 0,0,0 ${-r},0 l0,${i} a${n},${a} 0,0,0 ${r},0 l0,${-i}`,"createCylinderPathD"),tn=(0,s.eW)((t,e,r,i,n,a)=>`M${t},${e+a} M${t+r},${e+a} a${n},${a} 0,0,0 ${-r},0 l0,${i} a${n},${a} 0,0,0 ${r},0 l0,${-i}`,"createOuterCylinderPathD"),ta=(0,s.eW)((t,e,r,i,n,a)=>`M${t-r/2},${-i/2} a${n},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function to(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:s,label:l}=await c(t,e,f(e)),u=Math.max(s.width+e.padding,e.width??0),p=u/2,g=p/(2.5+u/50),m=Math.max(s.height+g+e.padding,e.height??0),{cssStyles:y}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=tn(0,0,u,m,p,g),n=ta(0,g,u,m,p,g),o=t.path(i,S(e,{})),s=t.path(n,S(e,{fill:"none"}));r=a.insert(()=>s,":first-child"),(r=a.insert(()=>o,":first-child")).attr("class","basic label-container"),y&&r.attr("style",y)}else{let t=ti(0,0,u,m,p,g);r=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.R7)(y)).attr("style",n)}return r.attr("label-offset-y",g),r.attr("transform",`translate(${-u/2}, ${-(m/2+g)})`),d(e,r),l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(t){let r=I.rect(e,t),i=r.x-(e.x??0);if(0!=p&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-g)){let n=g*g*(1-i*i/(p*p));n>0&&(n=Math.sqrt(n)),n=g-n,t.y-(e.y??0)>0&&(n=-n),r.y+=n}return r},a}async function ts(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=a.width+e.padding,l=a.height+e.padding,u=.2*l,p=-s/2,g=-l/2-u/2,{cssStyles:m}=e,y=h.Z.svg(n),x=S(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=y.polygon([{x:p,y:g+u},{x:-p,y:g+u},{x:-p,y:-g},{x:p,y:-g},{x:p,y:g},{x:-p,y:g},{x:-p,y:g+u}].map(t=>[t.x,t.y]),x),k=n.insert(()=>b,":first-child");return k.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),o.attr("transform",`translate(${p+(e.padding??0)/2-(a.x-(a.left??0))}, ${g+u+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,k),e.intersect=function(t){return I.rect(e,t)},n}async function tl(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:l,halfPadding:u}=await c(t,e,f(e)),p=l.width/2+u+5,g=l.width/2+u,{cssStyles:m}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{roughness:.2,strokeWidth:2.5}),n=S(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*p,i),l=t.circle(0,0,2*g,n);(r=a.insert("g",":first-child")).attr("class",(0,o.R7)(e.cssClasses)).attr("style",(0,o.R7)(m)),r.node()?.appendChild(s),r.node()?.appendChild(l)}else{let t=(r=a.insert("g",":first-child")).insert("circle",":first-child"),e=r.insert("circle");r.attr("class","basic label-container").attr("style",n),t.attr("class","outer-circle").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",n).attr("r",g).attr("cx",0).attr("cy",0)}return d(e,r),e.intersect=function(t){return s.cM.info("DoubleCircle intersect",e,p,t),I.circle(e,p,t)},a}function th(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=T(e);e.label="",e.labelStyle=i;let a=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,l=h.Z.svg(a),{nodeBorder:c}=r,u=S(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);let p=l.circle(0,0,14,u),g=a.insert(()=>p,":first-child");return g.selectAll("path").attr("style",`fill: ${c} !important;`),o&&o.length>0&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),d(e,g),e.intersect=function(t){return s.cM.info("filledCircle intersect",e,{radius:7,point:t}),I.circle(e,7,t)},a}async function tc(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),l=a.width+(e.padding??0),u=l+a.height,g=l+a.height,m=[{x:0,y:-u},{x:g,y:-u},{x:g/2,y:0}],{cssStyles:y}=e,x=h.Z.svg(n),b=S(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=p(m),C=x.path(k,b),w=n.insert(()=>C,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return y&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",y),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),e.width=l,e.height=u,d(e,w),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-u/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(t){return s.cM.info("Triangle intersect",e,m,t),I.polygon(e,m,t)},n}function tu(t,e,{dir:r,config:{state:i,themeVariables:n}}){let{nodeStyles:a}=T(e);e.label="";let o=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,l=Math.max(70,e?.width??0),c=Math.max(10,e?.height??0);"LR"===r&&(l=Math.max(10,e?.width??0),c=Math.max(70,e?.height??0));let u=-1*l/2,p=-1*c/2,g=h.Z.svg(o),m=S(e,{stroke:n.lineColor,fill:n.lineColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=g.rectangle(u,p,l,c,m),x=o.insert(()=>y,":first-child");s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),d(e,x);let b=i?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(t){return I.rect(e,t)},o}async function td(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(80,a.width+(e.padding??0)*2,e?.width??0),l=Math.max(50,a.height+(e.padding??0)*2,e?.height??0),u=l/2,{cssStyles:g}=e,y=h.Z.svg(n),x=S(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-o/2,y:-l/2},{x:o/2-u,y:-l/2},...m(-o/2+u,0,u,50,90,270),{x:o/2-u,y:l/2},{x:-o/2,y:l/2}],k=p(b),C=y.path(k,x),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",g),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),d(e,w),e.intersect=function(t){return s.cM.info("Pill intersect",e,{radius:u,point:t}),I.polygon(e,b,t)},n}(0,s.eW)(to,"cylinder"),(0,s.eW)(ts,"dividedRectangle"),(0,s.eW)(tl,"doublecircle"),(0,s.eW)(th,"filledCircle"),(0,s.eW)(tc,"flippedTriangle"),(0,s.eW)(tu,"forkJoin"),(0,s.eW)(td,"halfRoundedRectangle");var tf=(0,s.eW)((t,e,r,i,n)=>`M${t+n},${e} L${t+r-n},${e} L${t+r},${e-i/2} L${t+r-n},${e-i} L${t+n},${e-i} L${t},${e-i/2} Z`,"createHexagonPathD");async function tp(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=o.height+e.padding,l=s/4,u=o.width+2*l+e.padding,p=[{x:l,y:0},{x:u-l,y:0},{x:u,y:-s/2},{x:u-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=tf(0,0,u,s,l),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-u/2}, ${s/2})`),g&&r.attr("style",g)}else r=q(a,u,s,p);return n&&r.attr("style",n),e.width=u,e.height=s,d(e,r),e.intersect=function(t){return I.polygon(e,p,t)},a}async function tg(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.label="",e.labelStyle=r;let{shapeSvg:n}=await c(t,e,f(e)),a=Math.max(30,e?.width??0),o=Math.max(30,e?.height??0),{cssStyles:l}=e,u=h.Z.svg(n),g=S(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let m=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],y=p(m),x=u.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",l),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),b.attr("transform",`translate(${-a/2}, ${-o/2})`),d(e,b),e.intersect=function(t){return s.cM.info("Pill intersect",e,{points:m}),I.polygon(e,m,t)},n}async function tm(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:a}=T(e);e.labelStyle=a;let o=Math.max(e.assetHeight??48,e.assetWidth??48),l=n?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:f,label:p}=await c(t,e,"icon-shape default"),g="t"===e.pos,{nodeBorder:m}=r,{stylesMap:y}=_(e),x=-o/2,b=-o/2,k=e.label?8:0,C=h.Z.svg(u),w=S(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let v=C.rectangle(x,b,o,o,w),M=Math.max(o,f.width),B=o+f.height+k,L=C.rectangle(-M/2,-B/2,M,B,{...w,fill:"transparent",stroke:"none"}),A=u.insert(()=>v,":first-child"),F=u.insert(()=>L);if(e.icon){let t=u.append("g");t.html(` ${await (0,i.s4)(e.icon,{height:o,width:o,fallbackPrefix:""})} `);let r=t.node().getBBox(),n=r.width,a=r.height,s=r.x,l=r.y;t.attr("transform",`translate(${-n/2-s},${g?f.height/2+k/2-a/2-l:-f.height/2-k/2-a/2-l})`),t.attr("style",`color: ${y.get("stroke")??m};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-B/2:B/2-f.height})`),A.attr("transform",`translate(0,${g?f.height/2+k/2:-f.height/2-k/2})`),d(e,F),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return I.rect(e,t);let r=e.x??0,i=e.y??0,n=e.height??0,a=[];return a=g?[{x:r-f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2+f.height+k},{x:r+o/2,y:i-n/2+f.height+k},{x:r+o/2,y:i+n/2},{x:r-o/2,y:i+n/2},{x:r-o/2,y:i-n/2+f.height+k},{x:r-f.width/2,y:i-n/2+f.height+k}]:[{x:r-o/2,y:i-n/2},{x:r+o/2,y:i-n/2},{x:r+o/2,y:i-n/2+o},{x:r+f.width/2,y:i-n/2+o},{x:r+f.width/2/2,y:i+n/2},{x:r-f.width/2,y:i+n/2},{x:r-f.width/2,y:i-n/2+o},{x:r-o/2,y:i-n/2+o}],I.polygon(e,a,t)},u}async function ty(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:a}=T(e);e.labelStyle=a;let o=Math.max(e.assetHeight??48,e.assetWidth??48),l=n?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:f,label:p}=await c(t,e,"icon-shape default"),g=e.label?8:0,m="t"===e.pos,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=_(e),k=h.Z.svg(u),C=S(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=b.get("fill");C.stroke=w??x;let v=u.append("g");e.icon&&v.html(`${await (0,i.s4)(e.icon,{height:o,width:o,fallbackPrefix:""})} `);let M=v.node().getBBox(),B=M.width,L=M.height,A=M.x,F=M.y,$=Math.max(B,L)*Math.SQRT2+40,W=k.circle(0,0,$,C),E=Math.max($,f.width),N=$+f.height+g,Z=k.rectangle(-E/2,-N/2,E,N,{...C,fill:"transparent",stroke:"none"}),D=u.insert(()=>W,":first-child"),j=u.insert(()=>Z);return v.attr("transform",`translate(${-B/2-A},${m?f.height/2+g/2-L/2-F:-f.height/2-g/2-L/2-F})`),v.attr("style",`color: ${b.get("stroke")??y};`),p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-N/2:N/2-f.height})`),D.attr("transform",`translate(0,${m?f.height/2+g/2:-f.height/2-g/2})`),d(e,j),e.intersect=function(t){return s.cM.info("iconSquare intersect",e,t),I.rect(e,t)},u}async function tx(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:a}=T(e);e.labelStyle=a;let o=Math.max(e.assetHeight??48,e.assetWidth??48),l=n?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:f,halfPadding:p,label:g}=await c(t,e,"icon-shape default"),m="t"===e.pos,y=o+2*p,x=o+2*p,{nodeBorder:b,mainBkg:k}=r,{stylesMap:w}=_(e),v=e.label?8:0,M=h.Z.svg(u),B=S(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let L=w.get("fill");B.stroke=L??k;let A=M.path(C(-x/2,-y/2,x,y,5),B),F=Math.max(x,f.width),$=y+f.height+v,W=M.rectangle(-F/2,-$/2,F,$,{...B,fill:"transparent",stroke:"none"}),E=u.insert(()=>A,":first-child").attr("class","icon-shape2"),N=u.insert(()=>W);if(e.icon){let t=u.append("g");t.html(`${await (0,i.s4)(e.icon,{height:o,width:o,fallbackPrefix:""})} `);let r=t.node().getBBox(),n=r.width,a=r.height,s=r.x,l=r.y;t.attr("transform",`translate(${-n/2-s},${m?f.height/2+v/2-a/2-l:-f.height/2-v/2-a/2-l})`),t.attr("style",`color: ${w.get("stroke")??b};`)}return g.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-$/2:$/2-f.height})`),E.attr("transform",`translate(0,${m?f.height/2+v/2:-f.height/2-v/2})`),d(e,N),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return I.rect(e,t);let r=e.x??0,i=e.y??0,n=e.height??0,a=[];return a=m?[{x:r-f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2+f.height+v},{x:r+x/2,y:i-n/2+f.height+v},{x:r+x/2,y:i+n/2},{x:r-x/2,y:i+n/2},{x:r-x/2,y:i-n/2+f.height+v},{x:r-f.width/2,y:i-n/2+f.height+v}]:[{x:r-x/2,y:i-n/2},{x:r+x/2,y:i-n/2},{x:r+x/2,y:i-n/2+y},{x:r+f.width/2,y:i-n/2+y},{x:r+f.width/2/2,y:i+n/2},{x:r-f.width/2,y:i+n/2},{x:r-f.width/2,y:i-n/2+y},{x:r-x/2,y:i-n/2+y}],I.polygon(e,a,t)},u}async function tb(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:a}=T(e);e.labelStyle=a;let o=Math.max(e.assetHeight??48,e.assetWidth??48),l=n?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:f,halfPadding:p,label:g}=await c(t,e,"icon-shape default"),m="t"===e.pos,y=o+2*p,x=o+2*p,{nodeBorder:b,mainBkg:k}=r,{stylesMap:w}=_(e),v=e.label?8:0,M=h.Z.svg(u),B=S(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");let L=w.get("fill");B.stroke=L??k;let A=M.path(C(-x/2,-y/2,x,y,.1),B),F=Math.max(x,f.width),$=y+f.height+v,W=M.rectangle(-F/2,-$/2,F,$,{...B,fill:"transparent",stroke:"none"}),E=u.insert(()=>A,":first-child"),N=u.insert(()=>W);if(e.icon){let t=u.append("g");t.html(`${await (0,i.s4)(e.icon,{height:o,width:o,fallbackPrefix:""})} `);let r=t.node().getBBox(),n=r.width,a=r.height,s=r.x,l=r.y;t.attr("transform",`translate(${-n/2-s},${m?f.height/2+v/2-a/2-l:-f.height/2-v/2-a/2-l})`),t.attr("style",`color: ${w.get("stroke")??b};`)}return g.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-$/2:$/2-f.height})`),E.attr("transform",`translate(0,${m?f.height/2+v/2:-f.height/2-v/2})`),d(e,N),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return I.rect(e,t);let r=e.x??0,i=e.y??0,n=e.height??0,a=[];return a=m?[{x:r-f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2},{x:r+f.width/2,y:i-n/2+f.height+v},{x:r+x/2,y:i-n/2+f.height+v},{x:r+x/2,y:i+n/2},{x:r-x/2,y:i+n/2},{x:r-x/2,y:i-n/2+f.height+v},{x:r-f.width/2,y:i-n/2+f.height+v}]:[{x:r-x/2,y:i-n/2},{x:r+x/2,y:i-n/2},{x:r+x/2,y:i-n/2+y},{x:r+f.width/2,y:i-n/2+y},{x:r+f.width/2/2,y:i+n/2},{x:r-f.width/2,y:i+n/2},{x:r-f.width/2,y:i-n/2+y},{x:r-x/2,y:i-n/2+y}],I.polygon(e,a,t)},u}async function tk(t,e,{config:{flowchart:r}}){let i=new Image;i.src=e?.img??"",await i.decode();let n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/a;let{labelStyles:o}=T(e);e.labelStyle=o;let l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let u=Math.max(e.label?l??0:0,e?.assetWidth??n),f="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:u,p="on"===e.constraint?f/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(f,l??0);let{shapeSvg:g,bbox:m,label:y}=await c(t,e,"image-shape default"),x="t"===e.pos,b=-f/2,k=e.label?8:0,C=h.Z.svg(g),w=S(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");let _=C.rectangle(b,-p/2,f,p,w),v=Math.max(f,m.width),M=p+m.height+k,B=C.rectangle(-v/2,-M/2,v,M,{...w,fill:"none",stroke:"none"}),L=g.insert(()=>_,":first-child"),A=g.insert(()=>B);if(e.img){let t=g.append("image");t.attr("href",e.img),t.attr("width",f),t.attr("height",p),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-f/2},${x?M/2-p:-M/2})`)}return y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-p/2-m.height/2-k/2:p/2-m.height/2+k/2})`),L.attr("transform",`translate(0,${x?m.height/2+k/2:-m.height/2-k/2})`),d(e,A),e.intersect=function(t){if(s.cM.info("iconSquare intersect",e,t),!e.label)return I.rect(e,t);let r=e.x??0,i=e.y??0,n=e.height??0,a=[];return a=x?[{x:r-m.width/2,y:i-n/2},{x:r+m.width/2,y:i-n/2},{x:r+m.width/2,y:i-n/2+m.height+k},{x:r+f/2,y:i-n/2+m.height+k},{x:r+f/2,y:i+n/2},{x:r-f/2,y:i+n/2},{x:r-f/2,y:i-n/2+m.height+k},{x:r-m.width/2,y:i-n/2+m.height+k}]:[{x:r-f/2,y:i-n/2},{x:r+f/2,y:i-n/2},{x:r+f/2,y:i-n/2+p},{x:r+m.width/2,y:i-n/2+p},{x:r+m.width/2/2,y:i+n/2},{x:r-m.width/2,y:i+n/2},{x:r-m.width/2,y:i-n/2+p},{x:r-f/2,y:i-n/2+p}],I.polygon(e,a,t)},g}async function tC(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=Math.max(o.width+(e.padding??0)*2,e?.width??0),l=Math.max(o.height+(e.padding??0)*2,e?.height??0),u=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=p(u),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&r.attr("style",g)}else r=q(a,s,l,u);return n&&r.attr("style",n),e.width=s,e.height=l,d(e,r),e.intersect=function(t){return I.polygon(e,u,t)},a}async function tw(t,e,r){let i;let{labelStyles:n,nodeStyles:a}=T(e);e.labelStyle=n;let{shapeSvg:s,bbox:l}=await c(t,e,f(e)),u=Math.max(l.width+2*r.labelPaddingX,e?.width||0),p=Math.max(l.height+2*r.labelPaddingY,e?.height||0),g=-u/2,m=-p/2,{rx:y,ry:x}=e,{cssStyles:b}=e;if(r?.rx&&r.ry&&(y=r.rx,x=r.ry),"handDrawn"===e.look){let t=h.Z.svg(s),r=S(e,{}),n=y||x?t.path(C(g,m,u,p,y||0),r):t.rectangle(g,m,u,p,r);(i=s.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,o.R7)(b))}else(i=s.insert("rect",":first-child")).attr("class","basic label-container").attr("style",a).attr("rx",(0,o.R7)(y)).attr("ry",(0,o.R7)(x)).attr("x",g).attr("y",m).attr("width",u).attr("height",p);return d(e,i),e.intersect=function(t){return I.rect(e,t)},s}async function t_(t,e){let{shapeSvg:r,bbox:i,label:n}=await c(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),d(e,a),e.intersect=function(t){return I.rect(e,t)},r}async function tv(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=Math.max(o.width+(e.padding??0),e?.width??0),l=Math.max(o.height+(e.padding??0),e?.height??0),u=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-(3*l)/6,y:-l}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=p(u),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&r.attr("style",g)}else r=q(a,s,l,u);return n&&r.attr("style",n),e.width=s,e.height=l,d(e,r),e.intersect=function(t){return I.polygon(e,u,t)},a}async function tT(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=Math.max(o.width+(e.padding??0),e?.width??0),l=Math.max(o.height+(e.padding??0),e?.height??0),u=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=p(u),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&r.attr("style",g)}else r=q(a,s,l,u);return n&&r.attr("style",n),e.width=s,e.height=l,d(e,r),e.intersect=function(t){return I.polygon(e,u,t)},a}function tS(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,o=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),c=[{x:o,y:0},{x:0,y:l+3.5},{x:o-14,y:l+3.5},{x:0,y:2*l},{x:o,y:l-3.5},{x:14,y:l-3.5}],u=h.Z.svg(n),g=S(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let m=p(c),y=u.path(m,g),x=n.insert(()=>y,":first-child");return a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${o/2},${-l})`),d(e,x),e.intersect=function(t){return s.cM.info("lightningBolt intersect",e,t),I.polygon(e,c,t)},n}(0,s.eW)(tp,"hexagon"),(0,s.eW)(tg,"hourglass"),(0,s.eW)(tm,"icon"),(0,s.eW)(ty,"iconCircle"),(0,s.eW)(tx,"iconRounded"),(0,s.eW)(tb,"iconSquare"),(0,s.eW)(tk,"imageSquare"),(0,s.eW)(tC,"inv_trapezoid"),(0,s.eW)(tw,"drawRect"),(0,s.eW)(t_,"labelRect"),(0,s.eW)(tv,"lean_left"),(0,s.eW)(tT,"lean_right"),(0,s.eW)(tS,"lightningBolt");var tM=(0,s.eW)((t,e,r,i,n,a,o)=>`M${t},${e+a} a${n},${a} 0,0,0 ${r},0 a${n},${a} 0,0,0 ${-r},0 l0,${i} a${n},${a} 0,0,0 ${r},0 l0,${-i} M${t},${e+a+o} a${n},${a} 0,0,0 ${r},0`,"createCylinderPathD"),tB=(0,s.eW)((t,e,r,i,n,a,o)=>`M${t},${e+a} M${t+r},${e+a} a${n},${a} 0,0,0 ${-r},0 l0,${i} a${n},${a} 0,0,0 ${r},0 l0,${-i} M${t},${e+a+o} a${n},${a} 0,0,0 ${r},0`,"createOuterCylinderPathD"),tL=(0,s.eW)((t,e,r,i,n,a)=>`M${t-r/2},${-i/2} a${n},${a} 0,0,0 ${r},0`,"createInnerCylinderPathD");async function tA(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:s,label:l}=await c(t,e,f(e)),u=Math.max(s.width+(e.padding??0),e.width??0),p=u/2,g=p/(2.5+u/50),m=Math.max(s.height+g+(e.padding??0),e.height??0),y=.1*m,{cssStyles:x}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=tB(0,0,u,m,p,g,y),n=tL(0,g,u,m,p,g),o=S(e,{}),s=t.path(i,o),l=t.path(n,o);a.insert(()=>l,":first-child").attr("class","line"),(r=a.insert(()=>s,":first-child")).attr("class","basic label-container"),x&&r.attr("style",x)}else{let t=tM(0,0,u,m,p,g,y);r=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.R7)(x)).attr("style",n)}return r.attr("label-offset-y",g),r.attr("transform",`translate(${-u/2}, ${-(m/2+g)})`),d(e,r),l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+g-(s.y-(s.top??0))})`),e.intersect=function(t){let r=I.rect(e,t),i=r.x-(e.x??0);if(0!=p&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-g)){let n=g*g*(1-i*i/(p*p));n>0&&(n=Math.sqrt(n)),n=g-n,t.y-(e.y??0)>0&&(n=-n),r.y+=n}return r},a}async function tF(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/4,p=l+u,{cssStyles:m}=e,y=h.Z.svg(n),x=S(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-s/2-s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:p/2},...g(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,u,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2},{x:-s/2,y:-p/2},{x:-s/2,y:p/2*1.1},{x:-s/2,y:-p/2}],k=y.polygon(b.map(t=>[t.x,t.y]),x),C=n.insert(()=>k,":first-child");return C.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return I.polygon(e,b,t)},n}async function t$(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=-s/2,g=-l/2,{cssStyles:m}=e,y=h.Z.svg(n),x=S(e,{}),b=[{x:u-5,y:g+5},{x:u-5,y:g+l+5},{x:u+s-5,y:g+l+5},{x:u+s-5,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g+l-5},{x:u+s+5,y:g+l-5},{x:u+s+5,y:g-5},{x:u+5,y:g-5},{x:u+5,y:g},{x:u,y:g},{x:u,y:g+5}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=p(b),C=y.path(k,x),w=p([{x:u,y:g+5},{x:u+s-5,y:g+5},{x:u+s-5,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g},{x:u,y:g}]),_=y.path(w,{...x,fill:"none"}),v=n.insert(()=>_,":first-child");return v.insert(()=>C,":first-child"),v.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)-5-(a.x-(a.left??0))}, ${-(a.height/2)+5-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return I.polygon(e,b,t)},n}async function tW(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/4,m=l+u,y=-s/2,x=-m/2,{cssStyles:b}=e,k=g(y-5,x+m+5,y+s-5,x+m+5,u,.8),C=k?.[k.length-1],w=[{x:y-5,y:x+5},{x:y-5,y:x+m+5},...k,{x:y+s-5,y:C.y-5},{x:y+s,y:C.y-5},{x:y+s,y:C.y-10},{x:y+s+5,y:C.y-10},{x:y+s+5,y:x-5},{x:y+5,y:x-5},{x:y+5,y:x},{x:y,y:x},{x:y,y:x+5}],_=[{x:y,y:x+5},{x:y+s-5,y:x+5},{x:y+s-5,y:C.y-5},{x:y+s,y:C.y-5},{x:y+s,y:x},{x:y,y:x}],v=h.Z.svg(n),M=S(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let B=p(w),L=v.path(B,M),A=p(_),F=v.path(A,M),$=n.insert(()=>L,":first-child");return $.insert(()=>F),$.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-(a.width/2)-5-(a.x-(a.left??0))}, ${-(a.height/2)+5-u/2-(a.y-(a.top??0))})`),d(e,$),e.intersect=function(t){return I.polygon(e,w,t)},n}async function tE(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i,e.useHtmlLabels||s.iE().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),l=Math.max(o.width+(e.padding??0)*2,e?.width??0),u=Math.max(o.height+(e.padding??0)*2,e?.height??0),{cssStyles:p}=e,g=h.Z.svg(a),m=S(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=g.rectangle(-l/2,-u/2,l,u,m),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",p),n&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",n),d(e,x),e.intersect=function(t){return I.rect(e,t)},a}(0,s.eW)(tA,"linedCylinder"),(0,s.eW)(tF,"linedWaveEdgedRect"),(0,s.eW)(t$,"multiRect"),(0,s.eW)(tW,"multiWaveEdgedRectangle"),(0,s.eW)(tE,"note");var tN=(0,s.eW)((t,e,r)=>`M${t+r/2},${e} L${t+r},${e-r/2} L${t+r/2},${e-r} L${t},${e-r/2} Z`,"createDecisionBoxPathD");async function tZ(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),l=o.width+e.padding+(o.height+e.padding),u=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=tN(0,0,l),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),p&&r.attr("style",p)}else r=q(a,l,l,u);return n&&r.attr("style",n),d(e,r),e.intersect=function(t){return s.cM.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",I.polygon(e,u,t)),I.polygon(e,u,t)},a}async function tD(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),u=-s/2,g=-l/2,m=g/2,y=[{x:u+m,y:g},{x:u,y:0},{x:u+m,y:-g},{x:-u,y:-g},{x:-u,y:g}],{cssStyles:x}=e,b=h.Z.svg(n),k=S(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=p(y),w=b.path(C,k),_=n.insert(()=>w,":first-child");return _.attr("class","basic label-container"),x&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",x),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-m/2},0)`),o.attr("transform",`translate(${-m/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),d(e,_),e.intersect=function(t){return I.polygon(e,y,t)},n}async function tj(t,e){let r,i,n;let{labelStyles:a,nodeStyles:o}=T(e);e.labelStyle=a,r=e.cssClasses?"node "+e.cssClasses:"node default";let c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("g"),f=c.insert("g").attr("class","label").attr("style",o),p=e.description,g=e.label,m=f.node().appendChild(await k(g,e.labelStyle,!0,!0)),y={width:0,height:0};if((0,s.ku)(s.nV()?.flowchart?.htmlLabels)){let t=m.children[0],e=(0,l.Ys)(m);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}s.cM.info("Text 2",p);let x=p||[],b=m.getBBox(),w=f.node().appendChild(await k(x.join?x.join("
"):x,e.labelStyle,!0,!0)),_=w.children[0],v=(0,l.Ys)(w);y=_.getBoundingClientRect(),v.attr("width",y.width),v.attr("height",y.height);let M=(e.padding||0)/2;(0,l.Ys)(w).attr("transform","translate( "+(y.width>b.width?0:(b.width-y.width)/2)+", "+(b.height+M+5)+")"),(0,l.Ys)(m).attr("transform","translate( "+(y.width(s.cM.debug("Rough node insert CXC",a),o),":first-child"),i=c.insert(()=>(s.cM.debug("Rough node insert CXC",a),a),":first-child")}else i=u.insert("rect",":first-child"),n=u.insert("line"),i.attr("class","outer title-state").attr("style",o).attr("x",-y.width/2-M).attr("y",-y.height/2-M).attr("width",y.width+(e.padding||0)).attr("height",y.height+(e.padding||0)),n.attr("class","divider").attr("x1",-y.width/2-M).attr("x2",y.width/2+M).attr("y1",-y.height/2-M+b.height+M).attr("y2",-y.height/2-M+b.height+M);return d(e,i),e.intersect=function(t){return I.rect(e,t)},c}async function tO(t,e){let r={rx:5,ry:5,classes:"",labelPaddingX:1*(e?.padding||0),labelPaddingY:1*(e?.padding||0)};return tw(t,e,r)}async function tI(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await c(t,e,f(e)),l=e?.padding??0,u=Math.max(a.width+(e.padding??0)*2,e?.width??0),p=Math.max(a.height+(e.padding??0)*2,e?.height??0),g=-a.width/2-l,m=-a.height/2-l,{cssStyles:y}=e,x=h.Z.svg(n),b=S(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=x.polygon([{x:g,y:m},{x:g+u+8,y:m},{x:g+u+8,y:m+p},{x:g-8,y:m+p},{x:g-8,y:m},{x:g,y:m},{x:g,y:m+p}].map(t=>[t.x,t.y]),b),C=n.insert(()=>k,":first-child");return C.attr("class","basic label-container").attr("style",(0,o.R7)(y)),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),y&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),s.attr("transform",`translate(${-u/2+4+(e.padding??0)-(a.x-(a.left??0))},${-p/2+(e.padding??0)-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return I.rect(e,t)},n}async function tR(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=-s/2,g=-l/2,{cssStyles:m}=e,y=h.Z.svg(n),x=S(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let b=[{x:u,y:g},{x:u,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g-l/2}],k=p(b),C=y.path(k,x),w=n.insert(()=>C,":first-child");return w.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),w.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))}, ${-l/4+(e.padding??0)-(a.y-(a.top??0))})`),d(e,w),e.intersect=function(t){return I.polygon(e,b,t)},n}async function tz(t,e){let r={rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:1*(e?.padding||0)};return tw(t,e,r)}async function tP(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:s}=await c(t,e,f(e)),l=s.height+e.padding,u=s.width+l/4+e.padding,{cssStyles:p}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=C(-u/2,-l/2,u,l,l/2),s=t.path(n,i);(r=a.insert(()=>s,":first-child")).attr("class","basic label-container").attr("style",(0,o.R7)(p))}else(r=a.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",l/2).attr("ry",l/2).attr("x",-u/2).attr("y",-l/2).attr("width",u).attr("height",l);return d(e,r),e.intersect=function(t){return I.rect(e,t)},a}async function tq(t,e){return tw(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function tH(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{cssStyles:a}=e,{lineColor:o,stateBorder:s,nodeBorder:l}=r,c=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=h.Z.svg(c),f=S(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let p=u.circle(0,0,14,{...f,stroke:o,strokeWidth:2}),g=s??l,m=u.circle(0,0,5,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>p,":first-child");return y.insert(()=>m),a&&y.selectAll("path").attr("style",a),n&&y.selectAll("path").attr("style",n),d(e,y),e.intersect=function(t){return I.circle(e,7,t)},c}function tU(t,e,{config:{themeVariables:r}}){let i;let{lineColor:n}=r,a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=h.Z.svg(a).circle(0,0,14,w(n));(i=a.insert(()=>t)).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else(i=a.insert("circle",":first-child")).attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return d(e,i),e.intersect=function(t){return I.circle(e,7,t)},a}async function tY(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),s=(e?.padding||0)/2,l=a.width+e.padding,u=a.height+e.padding,p=-a.width/2-s,g=-a.height/2-s,m=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===e.look){let t=h.Z.svg(n),r=S(e,{}),i=t.rectangle(p-8,g,l+16,u,r),a=t.line(p,g,p,g+u,r),s=t.line(p+l,g,p+l,g+u,r);n.insert(()=>a,":first-child"),n.insert(()=>s,":first-child");let c=n.insert(()=>i,":first-child"),{cssStyles:f}=e;c.attr("class","basic label-container").attr("style",(0,o.R7)(f)),d(e,c)}else{let t=q(n,l,u,m);i&&t.attr("style",i),d(e,t)}return e.intersect=function(t){return I.polygon(e,m,t)},n}async function tV(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),s=Math.max(a.height+(e.padding??0)*2,e?.height??0),l=-o/2,u=-s/2,g=.2*s,{cssStyles:m}=e,y=h.Z.svg(n),x=S(e,{}),b=[{x:l-g/2,y:u},{x:l+o+g/2,y:u},{x:l+o+g/2,y:u+s},{x:l-g/2,y:u+s}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");let k=p(b),C=y.path(k,x),w=p([{x:l+o-g/2,y:u+s},{x:l+o+g/2,y:u+s},{x:l+o+g/2,y:u+s-.2*s}]),_=y.path(w,{...x,fillStyle:"solid"}),v=n.insert(()=>_,":first-child");return v.insert(()=>C,":first-child"),v.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),d(e,v),e.intersect=function(t){return I.polygon(e,b,t)},n}async function tG(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/4,m=.2*s,y=.2*l,x=l+u,{cssStyles:b}=e,k=h.Z.svg(n),C=S(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=[{x:-s/2-s/2*.1,y:x/2},...g(-s/2-s/2*.1,x/2,s/2+s/2*.1,x/2,u,.8),{x:s/2+s/2*.1,y:-x/2},{x:-s/2-s/2*.1,y:-x/2}],_=-s/2+s/2*.1,v=-x/2-.4*y,M=[{x:_+s-m,y:(v+l)*1.4},{x:_+s,y:v+l-y},{x:_+s,y:(v+l)*.9},...g(_+s,(v+l)*1.3,_+s-m,(v+l)*1.5,-(.03*l),.5)],B=p(w),L=k.path(B,C),A=p(M),F=k.path(A,{...C,fillStyle:"solid"}),$=n.insert(()=>F,":first-child");return $.insert(()=>L,":first-child"),$.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),d(e,$),e.intersect=function(t){return I.polygon(e,w,t)},n}async function tX(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(a.width+e.padding,e?.width||0),s=Math.max(a.height+e.padding,e?.height||0),l=n.insert("rect",":first-child");return l.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s),d(e,l),e.intersect=function(t){return I.rect(e,t)},n}(0,s.eW)(tZ,"question"),(0,s.eW)(tD,"rect_left_inv_arrow"),(0,s.eW)(tj,"rectWithTitle"),(0,s.eW)(tO,"roundedRect"),(0,s.eW)(tI,"shadedProcess"),(0,s.eW)(tR,"slopedRect"),(0,s.eW)(tz,"squareRect"),(0,s.eW)(tP,"stadium"),(0,s.eW)(tq,"state"),(0,s.eW)(tH,"stateEnd"),(0,s.eW)(tU,"stateStart"),(0,s.eW)(tY,"subroutine"),(0,s.eW)(tV,"taggedRect"),(0,s.eW)(tG,"taggedWaveEdgedRectangle"),(0,s.eW)(tX,"text");var tQ=(0,s.eW)((t,e,r,i,n,a)=>`M${t},${e} + a${n},${a} 0,0,1 0,${-i} + l${r},0 + a${n},${a} 0,0,1 0,${i} + M${r},${-i} + a${n},${a} 0,0,0 0,${i} + l${-r},0`,"createCylinderPathD"),tJ=(0,s.eW)((t,e,r,i,n,a)=>`M${t},${e} M${t+r},${e} a${n},${a} 0,0,0 0,${-i} l${-r},0 a${n},${a} 0,0,0 0,${i} l${r},0`,"createOuterCylinderPathD"),tK=(0,s.eW)((t,e,r,i,n,a)=>`M${t+r/2},${-i/2} a${n},${a} 0,0,0 0,${i}`,"createInnerCylinderPathD");async function t0(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:s,label:l,halfPadding:u}=await c(t,e,f(e)),p="neo"===e.look?2*u:u,g=s.height+p,m=g/2,y=m/(2.5+g/50),x=s.width+y+p,{cssStyles:b}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=tJ(0,0,x,g,y,m),n=tK(0,0,x,g,y,m),o=t.path(i,S(e,{})),s=t.path(n,S(e,{fill:"none"}));r=a.insert(()=>s,":first-child"),(r=a.insert(()=>o,":first-child")).attr("class","basic label-container"),b&&r.attr("style",b)}else{let t=tQ(0,0,x,g,y,m);(r=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.R7)(b)).attr("style",n)).attr("class","basic label-container"),b&&r.selectAll("path").attr("style",b),n&&r.selectAll("path").attr("style",n)}return r.attr("label-offset-x",y),r.attr("transform",`translate(${-x/2}, ${g/2} )`),l.attr("transform",`translate(${-(s.width/2)-y-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),d(e,r),e.intersect=function(t){let r=I.rect(e,t),i=r.y-(e.y??0);if(0!=m&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-y)){let n=y*y*(1-i*i/(m*m));0!=n&&(n=Math.sqrt(n)),n=y-n,t.x-(e.x??0)>0&&(n=-n),r.x+=n}return r},a}async function t1(t,e){let r;let{labelStyles:i,nodeStyles:n}=T(e);e.labelStyle=i;let{shapeSvg:a,bbox:o}=await c(t,e,f(e)),s=o.width+e.padding,l=o.height+e.padding,u=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}],{cssStyles:g}=e;if("handDrawn"===e.look){let t=h.Z.svg(a),i=S(e,{}),n=p(u),o=t.path(n,i);r=a.insert(()=>o,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&r.attr("style",g)}else r=q(a,s,l,u);return n&&r.attr("style",n),e.width=s,e.height=l,d(e,r),e.intersect=function(t){return I.polygon(e,u,t)},a}async function t2(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(60,a.width+(e.padding??0)*2,e?.width??0),s=Math.max(20,a.height+(e.padding??0)*2,e?.height??0),{cssStyles:l}=e,u=h.Z.svg(n),g=S(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let m=[{x:-o/2*.8,y:-s/2},{x:o/2*.8,y:-s/2},{x:o/2,y:-s/2*.6},{x:o/2,y:s/2},{x:-o/2,y:s/2},{x:-o/2,y:-s/2*.6}],y=p(m),x=u.path(y,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",l),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),d(e,b),e.intersect=function(t){return I.polygon(e,m,t)},n}async function t5(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),l=(0,s.ku)(s.nV().flowchart?.htmlLabels),u=a.width+(e.padding??0),g=u+a.height,m=u+a.height,y=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-g}],{cssStyles:x}=e,b=h.Z.svg(n),k=S(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let C=p(y),w=b.path(C,k),_=n.insert(()=>w,":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return x&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",i),e.width=u,e.height=g,d(e,_),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${g/2-(a.height+(e.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(t){return s.cM.info("Triangle intersect",e,y,t),I.polygon(e,y,t)},n}async function t3(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/8,m=l+u,{cssStyles:y}=e,x=70-s,b=x>0?x/2:0,k=h.Z.svg(n),C=S(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=[{x:-s/2-b,y:m/2},...g(-s/2-b,m/2,s/2+b,m/2,u,.8),{x:s/2+b,y:-m/2},{x:-s/2-b,y:-m/2}],_=p(w),v=k.path(_,C),M=n.insert(()=>v,":first-child");return M.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u-(a.y-(a.top??0))})`),d(e,M),e.intersect=function(t){return I.polygon(e,w,t)},n}async function t4(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await c(t,e,f(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),s=Math.max(a.height+(e.padding??0)*2,e?.height??0),l=o/s,u=o,m=s;u>m*l?m=u/l:u=m*l,u=Math.max(u,100);let y=Math.min(.2*(m=Math.max(m,50)),m/4),x=m+2*y,{cssStyles:b}=e,k=h.Z.svg(n),C=S(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let w=[{x:-u/2,y:x/2},...g(-u/2,x/2,u/2,x/2,y,1),{x:u/2,y:-x/2},...g(u/2,-x/2,-u/2,-x/2,y,-1)],_=p(w),v=k.path(_,C),M=n.insert(()=>v,":first-child");return M.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),d(e,M),e.intersect=function(t){return I.polygon(e,w,t)},n}async function t6(t,e){let{labelStyles:r,nodeStyles:i}=T(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:o}=await c(t,e,f(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=-s/2,p=-l/2,{cssStyles:g}=e,m=h.Z.svg(n),y=S(e,{}),x=[{x:u-5,y:p-5},{x:u-5,y:p+l},{x:u+s,y:p+l},{x:u+s,y:p-5}],b=`M${u-5},${p-5} L${u+s},${p-5} L${u+s},${p+l} L${u-5},${p+l} L${u-5},${p-5} + M${u-5},${p} L${u+s},${p} + M${u},${p-5} L${u},${p+l}`;"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let k=m.path(b,y),C=n.insert(()=>k,":first-child");return C.attr("transform","translate(2.5, 2.5)"),C.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)+2.5-(a.x-(a.left??0))}, ${-(a.height/2)+2.5-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return I.polygon(e,x,t)},n}async function t8(t,e,r,i,n=r.class.padding??12){let a=i?0:3,o=t.insert("g").attr("class",f(e)).attr("id",e.domId||e.id),s=null,l=null,h=null,c=null,u=0,d=0,p=0;if(s=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await t9(s,{text:`\xab${t}\xbb`},0),u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await t9(l,e,0,["font-weight: bolder"]);let g=l.node().getBBox();d=g.height,h=o.insert("g").attr("class","members-group text");let m=0;for(let t of e.members){let e=await t9(h,t,m,[t.parseClassifier()]);m+=e+a}(p=h.node().getBBox().height)<=0&&(p=n/2),c=o.insert("g").attr("class","methods-group text");let y=0;for(let t of e.methods){let e=await t9(c,t,y,[t.parseClassifier()]);y+=e+a}let x=o.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),x=o.node().getBBox(),h.attr("transform",`translate(0, ${u+d+2*n})`),x=o.node().getBBox(),c.attr("transform",`translate(0, ${u+d+(p?p+4*n:2*n)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}async function t9(t,e,r,i=[]){let n;let h=t.insert("g").attr("class","label").attr("style",i.join("; ")),c=(0,s.iE)(),u="useHtmlLabels"in e?e.useHtmlLabels:(0,s.ku)(c.htmlLabels)??!0,d="";d="text"in e?e.text:e.label,!u&&d.startsWith("\\")&&(d=d.substring(1)),(0,s.l0)(d)&&(u=!0);let f=await (0,a.rw)(h,(0,s.uX)((0,o.SH)(d)),{width:(0,o.Cq)(d,c)+50,classes:"markdown-node-label",useHtmlLabels:u},c),p=1;if(u){let t=f.children[0],e=(0,l.Ys)(f);p=t.innerHTML.split("
").length,t.innerHTML.includes("")&&(p+=t.innerHTML.split("").length-1);let r=t.getElementsByTagName("img");if(r){let t=""===d.replace(/ ]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=5*parseInt(c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";r(e)}(0,s.eW)(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}n=t.getBoundingClientRect(),e.attr("width",n.width),e.attr("height",n.height)}else{i.includes("font-weight: bolder")&&(0,l.Ys)(f).selectAll("tspan").attr("font-weight",""),p=f.children.length;let t=f.children[0];(""===f.textContent||f.textContent.includes(">"))&&(t.textContent=d[0]+d.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===d[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),n=f.getBBox()}return h.attr("transform","translate(0,"+(-n.height/(2*p)+r)+")"),n.height}async function t7(t,e){let r=(0,s.nV)(),i=r.class.padding??12,n=e.useHtmlLabels??(0,s.ku)(r.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:a,bbox:o}=await t8(t,e,r,n,i),{labelStyles:c,nodeStyles:u}=T(e);e.labelStyle=c,e.cssStyles=e.styles||"";let f=e.styles?.join(";")||u||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let p=0===e.members.length&&0===e.methods.length&&!r.class?.hideEmptyMembersBox,g=h.Z.svg(a),m=S(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let y=o.width,x=o.height;0===e.members.length&&0===e.methods.length?x+=i:e.members.length>0&&0===e.methods.length&&(x+=2*i);let b=-y/2,k=-x/2,C=g.rectangle(b-i,k-i-(p?i:0===e.members.length&&0===e.methods.length?-i/2:0),y+2*i,x+2*i+(p?2*i:0===e.members.length&&0===e.methods.length?-i:0),m),w=a.insert(()=>C,":first-child");w.attr("class","basic label-container");let _=w.node().getBBox();a.selectAll(".text").each((t,r,o)=>{let s=(0,l.Ys)(o[r]),h=s.attr("transform"),c=0;if(h){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(h);t&&(c=parseFloat(t[2]))}let u=c+k+i-(p?i:0===e.members.length&&0===e.methods.length?-i/2:0);n||(u-=4);let d=b;(s.attr("class").includes("label-group")||s.attr("class").includes("annotation-group"))&&(d=-s.node()?.getBBox().width/2||0,a.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(d=0)})),s.attr("transform",`translate(${d}, ${u})`)});let v=a.select(".annotation-group").node().getBBox().height-(p?i/2:0)||0,M=a.select(".label-group").node().getBBox().height-(p?i/2:0)||0,B=a.select(".members-group").node().getBBox().height-(p?i/2:0)||0;if(e.members.length>0||e.methods.length>0||p){let t=g.line(_.x,v+M+k+i,_.x+_.width,v+M+k+i,m);a.insert(()=>t).attr("class","divider").attr("style",f)}if(p||e.members.length>0||e.methods.length>0){let t=g.line(_.x,v+M+B+k+2*i+i,_.x+_.width,v+M+B+k+i+2*i,m);a.insert(()=>t).attr("class","divider").attr("style",f)}if("handDrawn"!==e.look&&a.selectAll("path").attr("style",f),w.select(":nth-child(2)").attr("style",f),a.selectAll(".divider").select("path").attr("style",f),e.labelStyle?a.selectAll("span").attr("style",e.labelStyle):a.selectAll("span").attr("style",f),!n){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){let t=e[0].replace("color","fill");a.selectAll("tspan").attr("style",t)}else if(c){let e=t.exec(c);if(e){let t=e[0].replace("color","fill");a.selectAll("tspan").attr("style",t)}}}return d(e,w),e.intersect=function(t){return I.rect(e,t)},a}(0,s.eW)(t0,"tiltedCylinder"),(0,s.eW)(t1,"trapezoid"),(0,s.eW)(t2,"trapezoidalPentagon"),(0,s.eW)(t5,"triangle"),(0,s.eW)(t3,"waveEdgedRectangle"),(0,s.eW)(t4,"waveRectangle"),(0,s.eW)(t6,"windowPane"),(0,s.eW)(t8,"textHelper"),(0,s.eW)(t9,"addText"),(0,s.eW)(t7,"classBox");var et=(0,s.eW)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ee(t,e,{config:r}){let i,n,a,o;let{labelStyles:s,nodeStyles:l}=T(e);e.labelStyle=s||"";let p=e.width;e.width=(e.width??200)-10;let{shapeSvg:g,bbox:m,label:y}=await c(t,e,f(e)),x=e.padding||10,b="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(b=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),i=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",b).attr("target","_blank"));let k={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};i?{label:n,bbox:a}=await u(i,"ticket"in e&&e.ticket||"",k):{label:n,bbox:a}=await u(g,"ticket"in e&&e.ticket||"",k);let{label:w,bbox:_}=await u(g,"assigned"in e&&e.assigned||"",k);e.width=p;let v=e?.width||0,M=Math.max(a.height,_.height)/2,B=Math.max(m.height+20,e?.height||0)+M,L=-v/2,A=-B/2;y.attr("transform","translate("+(x-v/2)+", "+(-M-m.height/2)+")"),n.attr("transform","translate("+(x-v/2)+", "+(-M+m.height/2)+")"),w.attr("transform","translate("+(x+v/2-_.width-20)+", "+(-M+m.height/2)+")");let{rx:F,ry:$}=e,{cssStyles:W}=e;if("handDrawn"===e.look){let t=h.Z.svg(g),r=S(e,{}),i=F||$?t.path(C(L,A,v,B,F||0),r):t.rectangle(L,A,v,B,r);(o=g.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",W||null)}else{(o=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",l).attr("rx",F??5).attr("ry",$??5).attr("x",L).attr("y",A).attr("width",v).attr("height",B);let t="priority"in e&&e.priority;if(t){let e=g.append("line"),r=L+2,i=A+Math.floor((F??0)/2),n=A+B-Math.floor((F??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width","4").attr("stroke",et(t))}}return d(e,o),e.height=B,e.intersect=function(t){return I.rect(e,t)},g}(0,s.eW)(ee,"kanbanItem");var er=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tz},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tO},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tP},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tY},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:to},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Y},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tZ},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tp},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tT},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tv},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t1},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tC},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tl},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:tX},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:H},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tI},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tU},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tH},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tu},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tg},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Q},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:K},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:te},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tS},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t3},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:td},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tA},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tr},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ts},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t5},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:t6},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:th},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t2},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tc},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tR},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tW},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:t$},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:G},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tG},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tV},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t4},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tD},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tF}],ei=(0,s.eW)(()=>Object.fromEntries([...Object.entries({state:tq,choice:U,note:tE,rectWithTitle:tj,labelRect:t_,iconSquare:tb,iconCircle:ty,icon:tm,iconRounded:tx,imageSquare:tk,anchor:R,kanbanItem:ee,classBox:t7}),...er.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function en(t){return t in ei}(0,s.eW)(en,"isValidShape");var ea=new Map;async function eo(t,e,r){let i,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?ei[e.shape]:void 0;if(!a)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;"sandbox"===r.config.securityLevel?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),n=await a(i,e,r)}else i=n=await a(t,e,r);return e.tooltip&&n.attr("title",e.tooltip),ea.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,s.eW)(eo,"insertNode");var es=(0,s.eW)((t,e)=>{ea.set(e.id,t)},"setNodeElem"),el=(0,s.eW)(()=>{ea.clear()},"clear"),eh=(0,s.eW)(t=>{let e=ea.get(t.id);s.cM.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},7690:function(t,e,r){"use strict";r.d(e,{$m:function(){return h},Cq:function(){return Z},Ln:function(){return Y},MX:function(){return A},Ox:function(){return B},R7:function(){return V},Rb:function(){return P},SH:function(){return U},VG:function(){return z},Vy:function(){return H},X4:function(){return W},XD:function(){return N},bZ:function(){return I},be:function(){return S},le:function(){return m},tf:function(){return p},w8:function(){return q}});var i,n=r(5995),a=r(7967),o=r(7818),s=r(5269),l=r(1777),h="\u200B",c={curveBasis:o.$0Z,curveBasisClosed:o.Dts,curveBasisOpen:o.WQY,curveBumpX:o.qpX,curveBumpY:o.u93,curveBundle:o.tFB,curveCardinalClosed:o.OvA,curveCardinalOpen:o.dCK,curveCardinal:o.YY7,curveCatmullRomClosed:o.fGX,curveCatmullRomOpen:o.$m7,curveCatmullRom:o.zgE,curveLinear:o.c_6,curveLinearClosed:o.fxm,curveMonotoneX:o.FdL,curveMonotoneY:o.ak_,curveNatural:o.SxZ,curveStep:o.eA_,curveStepAfter:o.jsv,curveStepBefore:o.iJ},u=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,d=(0,n.eW)(function(t,e){let r=f(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,n.NM)(t),i=(0,n.Yc)(i,[...t])}else i=r.args;if(!i)return;let a=(0,n.Vg)(t,e),o="config";return void 0!==i[o]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[o],delete i[o]),i},"detectInit"),f=(0,n.eW)(function(t,e=null){try{let r;let i=RegExp(`[%]{2}(?![{]${u.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),n.cM.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let a=[];for(;null!==(r=n.Zn.exec(t));)if(r.index===n.Zn.lastIndex&&n.Zn.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;a.push({type:t,args:e})}if(0===a.length)return{type:t,args:null};return 1===a.length?a[0]:a}catch(r){return n.cM.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),p=(0,n.eW)(function(t){return t.replace(n.Zn,"")},"removeDirectives"),g=(0,n.eW)(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return -1},"isSubstringInArray");function m(t,e){return t?c[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function y(t,e){let r=t.trim();return r?"loose"!==e.securityLevel?(0,a.sanitizeUrl)(r):r:void 0}(0,n.eW)(m,"interpolateToCurve"),(0,n.eW)(y,"formatUrl");var x=(0,n.eW)((t,...e)=>{let r=t.split("."),i=r.length-1,a=r[i],o=window;for(let e=0;e{r+=b(t,e),e=t}),_(t,r/2)}function C(t){return 1===t.length?t[0]:k(t)}(0,n.eW)(b,"distance"),(0,n.eW)(k,"traverseEdge"),(0,n.eW)(C,"calcLabelPosition");var w=(0,n.eW)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),_=(0,n.eW)((t,e)=>{let r;let i=e;for(let e of t){if(r){let t=b(e,r);if(t=1)return{x:e.x,y:e.y};if(n>0&&n<1)return{x:w((1-n)*r.x+n*e.x,5),y:w((1-n)*r.y+n*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),v=(0,n.eW)((t,e,r)=>{n.cM.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=_(e,25),a=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(e[0].x+i.x)/2,s.y=-Math.cos(o)*a+(e[0].y+i.y)/2,s},"calcCardinalityPosition");function T(t,e,r){let i=structuredClone(r);n.cM.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();let a=_(i,25+t),o=10+.5*t,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}function S(t){let e="",r="";for(let i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}(0,n.eW)(T,"calcTerminalLabelPosition"),(0,n.eW)(S,"getStylesFromArray");var M=0,B=(0,n.eW)(()=>(M++,"id-"+Math.random().toString(36).substr(2,12)+"-"+M),"generateId");function L(t){let e="",r="0123456789abcdef",i=r.length;for(let n=0;n
L(t.length),"random"),F=(0,n.eW)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),$=(0,n.eW)(function(t,e){let r=e.text.replace(n.SY.lineBreakRegex," "),[,i]=z(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),W=(0,s.Z)((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),n.SY.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),a=[],o="";return i.forEach((t,n)=>{let s=Z(`${t} `,r),l=Z(o,r);if(s>e){let{hyphenatedStrings:i,remainingWord:n}=E(t,e,"-",r);a.push(o,...i),o=n}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");n+1===i.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),E=(0,s.Z)((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...t],a=[],o="";return n.forEach((t,s)=>{let l=`${o}${t}`;if(Z(l,i)>=e){let t=n.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function N(t,e){return D(t,e).height}function Z(t,e){return D(t,e).width}(0,n.eW)(N,"calculateTextHeight"),(0,n.eW)(Z,"calculateTextWidth");var D=(0,s.Z)((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,s]=z(r),l=t.split(n.SY.lineBreakRegex),c=[],u=(0,o.Ys)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append("svg");for(let t of["sans-serif",i]){let e=0,r={width:0,height:0,lineHeight:0};for(let i of l){let n=F();n.text=i||h;let o=$(d,n).style("font-size",s).style("font-weight",a).style("font-family",t),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}c.push(r)}d.remove();let f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),j=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.eW)(this,"InitIDGenerator")}},O=(0,n.eW)(function(t){return i=i||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),i.innerHTML=t,unescape(i.textContent)},"entityDecode");function I(t){return"str"in t}(0,n.eW)(I,"isDetailedError");var R=(0,n.eW)((t,e,r,i)=>{if(!i)return;let n=t.node()?.getBBox();n&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),z=(0,n.eW)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function P(t,e){return(0,l.Z)({},t,e)}(0,n.eW)(P,"cleanAndMerge");var q={assignWithDepth:n.Yc,wrapLabel:W,calculateTextHeight:N,calculateTextWidth:Z,calculateTextDimensions:D,cleanAndMerge:P,detectInit:d,detectDirective:f,isSubstringInArray:g,interpolateToCurve:m,calcLabelPosition:C,calcCardinalityPosition:v,calcTerminalLabelPosition:T,formatUrl:y,getStylesFromArray:S,generateId:B,random:A,runFunc:x,entityDecode:O,insertTitle:R,parseFontSize:z,InitIDGenerator:j},H=(0,n.eW)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xb0\xb0"+e+"\xb6\xdf":"\uFB02\xb0"+e+"\xb6\xdf"})},"encodeEntities"),U=(0,n.eW)(function(t){return t.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Y=(0,n.eW)((t,e,{counter:r=0,prefix:i,suffix:n})=>`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");function V(t){return t??null}(0,n.eW)(V,"handleUndefinedAttr")},5995:function(t,e,r){"use strict";let i;r.d(e,{Kr:()=>t7,Vg:()=>B,Yc:()=>W,ZH:()=>t5,l0:()=>tI,NM:()=>J,Yn:()=>ta,cj:()=>S,xN:()=>z,Fy:()=>er,oO:()=>tv,XV:()=>td,SY:()=>tP,eW:()=>y,u_:()=>tt,vZ:()=>Q,nV:()=>et,UO:()=>tE,cM:()=>k,iE:()=>tc,uT:()=>tz,_j:()=>U,Y4:()=>ee,_7:()=>el,j7:()=>tY,v2:()=>tU,uX:()=>ei,GN:()=>t3,g2:()=>t9,r2:()=>x,Ee:()=>tQ,Ub:()=>C,eu:()=>t4,mc:()=>tf,nH:()=>tR,Cq:()=>es,dY:()=>to,v6:()=>th,Mx:()=>t8,Zn:()=>v,M6:()=>_,Vw:()=>tx,U$:()=>t6,Rw:()=>en,ZD:()=>tl,Tb:()=>ts,Bf:()=>M,LJ:()=>tJ,KO:()=>L,cq:()=>F,ku:()=>tF});var n,a=r("7484"),o=r("6652"),s=r("7826");let l=(t,e)=>{let r=o.Z.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,s.Z)(t,i)};var h=r("3328");let c=(t,e,r=50)=>{let{r:i,g:n,b:a,a:s}=o.Z.parse(t),{r:l,g:c,b:u,a:d}=o.Z.parse(e),f=r/100,p=2*f-1,g=s-d,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return(0,h.Z)(i*m+l*y,n*m+c*y,a*m+u*y,s*f+d*(1-f))},u=(t,e=100)=>{let r=o.Z.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,c(r,t,e)};var d=r("5035"),f=r("6750"),p=r("7845"),g=r("7856"),m=Object.defineProperty,y=(t,e)=>m(t,"name",{value:e,configurable:!0}),x=(t,e)=>{for(var r in e)m(t,r,{get:e[r],enumerable:!0})},b={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},k={trace:y((...t)=>{},"trace"),debug:y((...t)=>{},"debug"),info:y((...t)=>{},"info"),warn:y((...t)=>{},"warn"),error:y((...t)=>{},"error"),fatal:y((...t)=>{},"fatal")},C=y(function(t="fatal"){let e=b.fatal;"string"==typeof t?t.toLowerCase()in b&&(e=b[t]):"number"==typeof t&&(e=t),k.trace=()=>{},k.debug=()=>{},k.info=()=>{},k.warn=()=>{},k.error=()=>{},k.fatal=()=>{},e<=b.fatal&&(k.fatal=console.error?console.error.bind(console,w("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",w("FATAL"))),e<=b.error&&(k.error=console.error?console.error.bind(console,w("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",w("ERROR"))),e<=b.warn&&(k.warn=console.warn?console.warn.bind(console,w("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,w("WARN"))),e<=b.info&&(k.info=console.info?console.info.bind(console,w("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",w("INFO"))),e<=b.debug&&(k.debug=console.debug?console.debug.bind(console,w("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",w("DEBUG"))),e<=b.trace&&(k.trace=console.debug?console.debug.bind(console,w("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",w("TRACE")))},"setLogLevel"),w=y(t=>{let e=a().format("ss.SSS");return`%c${e} : ${t} : `},"format"),_=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,v=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,T=/\s*%%.*\n/gm,S=class extends Error{static{y(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},M={},B=y(function(t,e){for(let[r,{detector:i}]of(t=t.replace(_,"").replace(v,"").replace(T,"\n"),Object.entries(M)))if(i(t,e))return r;throw new S(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),L=y((...t)=>{for(let{id:e,detector:r,loader:i}of t)A(e,r,i)},"registerLazyLoadedDiagrams"),A=y((t,e,r)=>{M[t]&&k.warn(`Detector with key ${t} already exists. Overwriting.`),M[t]={detector:e,loader:r},k.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),F=y(t=>M[t].loader,"getDiagramLoader"),$=y((t,e,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(e=>$(t,e,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||r<=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])?(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=$(t[n],e[n],{depth:r-1,clobber:i})):(i||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n])}),t)},"assignWithDepth"),W=$,E="#ffffff",N="#f2f2f2",Z=y((t,e)=>e?l(t,{s:-40,l:10}):l(t,{s:-40,l:-10}),"mkBorder"),D=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",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||l(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||l(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Z(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Z(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Z(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||u(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||u(this.tertiaryColor),this.lineColor=this.lineColor||u(this.background),this.arrowheadColor=this.arrowheadColor||u(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,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?(0,d.Z)(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||this.actorBorder,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||(0,d.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||u(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||(0,f.Z)(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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},j=y(t=>{let e=new D;return e.calculate(t),e},"getThemeVariables"),O=class{static{y(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,f.Z)(this.primaryColor,16),this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=u(this.background),this.secondaryBorderColor=Z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Z(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,f.Z)(u("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,h.Z)(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.edgeLabelBackground="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=(0,d.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,d.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,h.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,h.Z)(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,f.Z)(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=(0,f.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,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=(0,f.Z)(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330});for(let t=0;t {this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},I=y(t=>{let e=new O;return e.calculate(t),e},"getThemeVariables"),R=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=l(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.primaryColor,this.darkMode),this.secondaryBorderColor=Z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Z(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(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="rgba(232,232,232, 0.8)",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="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="#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=(0,h.Z)(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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.Z)(this.tertiaryColor,40);for(let t=0;t {this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},z=y(t=>{let e=new R;return e.calculate(t),e},"getThemeVariables"),P=class{static{y(this,"Theme")}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=(0,f.Z)("#cde498",10),this.primaryBorderColor=Z(this.primaryColor,this.darkMode),this.secondaryBorderColor=Z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Z(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.primaryColor),this.lineColor=u(this.background),this.textColor=u(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="calculated",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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,d.Z)(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.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.Z)(this.tertiaryColor,40);for(let t=0;t {this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},q=y(t=>{let e=new P;return e.calculate(t),e},"getThemeVariables"),H=class{static{y(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,f.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=Z(this.primaryColor,this.darkMode),this.secondaryBorderColor=Z(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Z(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(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=this.actorBorder,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=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,f.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,f.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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.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[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},U={base:{getThemeVariables:j},dark:{getThemeVariables:I},default:{getThemeVariables:z},forest:{getThemeVariables:q},neutral:{getThemeVariables:y(t=>{let e=new H;return e.calculate(t),e},"getThemeVariables")}},Y={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,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,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},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{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},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,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"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,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,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"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},V={...Y,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:U.default.getThemeVariables(),sequence:{...Y.sequence,messageFont:y(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:y(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:y(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Y.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Y.c4,useWidth:void 0,personFont:y(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:y(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:y(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:y(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:y(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:y(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:y(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:y(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:y(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:y(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:y(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:y(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:y(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:y(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:y(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:y(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:y(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:y(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:y(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:y(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:y(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:y(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Y.pie,useWidth:984},xyChart:{...Y.xyChart,useWidth:void 0},requirement:{...Y.requirement,useWidth:void 0},packet:{...Y.packet}},G=y((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...G(t[i],"")]:[...r,e+i],[]),"keyify"),X=new Set(G(V,"")),Q=V,J=y(t=>{if(k.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t)){t.forEach(t=>J(t));return}for(let e of Object.keys(t)){if(k.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!X.has(e)||null==t[e]){k.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){k.debug("sanitizing object",e),J(t[e]);continue}for(let r of["themeCSS","fontFamily","altFontFamily"])e.includes(r)&&(k.debug("sanitizing css option",e),t[e]=K(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}k.debug("After sanitization",t)}},"sanitizeDirective"),K=y(t=>{let e=0,r=0;for(let i of t){if(e {let r=W({},t),i={};for(let t of e)tu(t),i=W(i,t);if(r=W(r,i),i.theme&&i.theme in U){let t=W({},n),e=W(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in U&&(r.themeVariables=U[r.theme].getThemeVariables(e))}return ty(ti=r),ti},"updateCurrentConfig"),ta=y(t=>(te=W({},tt),te=W(te,t),t.theme&&U[t.theme]&&(te.themeVariables=U[t.theme].getThemeVariables(t.themeVariables)),tn(te,tr),te),"setSiteConfig"),to=y(t=>{n=W({},t)},"saveConfigFromInitialize"),ts=y(t=>(te=W(te,t),tn(te,tr),te),"updateSiteConfig"),tl=y(()=>W({},te),"getSiteConfig"),th=y(t=>(ty(t),W(ti,t),tc()),"setConfig"),tc=y(()=>W({},ti),"getConfig"),tu=y(t=>{t&&(["secure",...te.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(k.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&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]&&tu(t[e])}))},"sanitize"),td=y(t=>{J(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),tr.push(t),tn(te,tr)},"addDirective"),tf=y((t=te)=>{tn(t,tr=[])},"reset"),tp={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},tg={},tm=y(t=>{!tg[t]&&(k.warn(tp[t]),tg[t]=!0)},"issueWarning"),ty=y(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tm("LAZY_LOAD_DEPRECATED")},"checkConfig"),tx=/
/gi,tb=y(t=>t?tL(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),tk=(i=!1,()=>{i||(tC(),i=!0)});function tC(){let t="data-temp-href-target";g.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),g.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}y(tC,"setupDompurifyHooks");var tw=y(t=>(tk(),g.sanitize(t)),"removeScript"),t_=y((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;"antiscript"===r||"strict"===r?t=tw(t):"loose"!==r&&(t=tB(t=(t=(t=tL(t)).replace(/
'+(r?n:p(n,!0))+"\n":""+(r?n:p(n,!0))+"\n"}blockquote({tokens:t}){let e=this.parser.parse(t);return`+${e}+`}html({text:t}){return t}heading({tokens:t,depth:e}){return`
${this.parser.parseInline(t)}
+`}table(t){let e="",r="";for(let e=0;e${t}`}br(t){return"An error occurred:
"+p(r.message+"",!0)+"";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}}let tf=new td;function tp(t,e){return tf.parse(t,e)}tp.options=tp.setOptions=function(t){return tf.setOptions(t),tp.defaults=tf.defaults,s=tp.defaults,tp},tp.getDefaults=o,tp.defaults=s,tp.use=function(...t){return tf.use(...t),tp.defaults=tf.defaults,s=tp.defaults,tp},tp.walkTokens=function(t,e){return tf.walkTokens(t,e)},tp.parseInline=tf.parseInline,tp.Parser=tc,tp.parser=tc.parse,tp.Renderer=tl,tp.TextRenderer=th,tp.Lexer=ts,tp.lexer=ts.lex,tp.Tokenizer=_,tp.Hooks=tu,tp.parse=tp,tp.options,tp.setOptions,tp.use,tp.walkTokens,tp.parseInline,tc.parse,ts.lex;var tg=r("8464");function tm(t,{markdownAutoWrap:e}){let r=t.replace(/
${t.tokens?.map(i).join("")}
`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return`Unsupported markdown: ${t.type}`}return(0,n.eW)(i,"output"),r.map(i).join("")}function tb(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tk(t,e){return tC(t,[],tb(e.content),e.type)}function tC(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[n,...a]=r,o=[...e,n];return t([{content:o.join(""),type:i}])?tC(t,o,a,i):(0===e.length&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function tw(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return t_(t,e)}function t_(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let n="";" "===t[0].content&&(n=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...i];if(""!==n&&o.push({content:n,type:"normal"}),o.push(a),e(o))return t_(t,e,r,o);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[i,n]=tk(e,a);r.push([i]),n.content&&t.unshift(n)}return t_(t,e,r)}function tv(t,e){e&&t.attr("style",e)}async function tT(t,e,r,i,a=!1){let o=t.append("foreignObject");o.attr("width",`${10*r}px`),o.attr("height",`${10*r}px`);let s=o.append("xhtml:div"),l=e.label;e.label&&(0,n.l0)(e.label)&&(l=await (0,n.uT)(e.label.replace(n.SY.lineBreakRegex,"\n"),(0,n.nV)()));let h=e.isNode?"nodeLabel":"edgeLabel",c=s.append("span");c.html(l),tv(c,e.labelStyle),c.attr("class",`${h} ${i}`),tv(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),o.node()}function tS(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function tM(t,e,r){let i=t.append("text"),n=tS(i,1,e);tA(n,r);let a=n.node().getComputedTextLength();return i.remove(),a}function tB(t,e,r){let i=t.append("text"),n=tS(i,1,e);tA(n,[{content:r,type:"normal"}]);let a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}function tL(t,e,r,i=!1){let a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1"),l=0;for(let e of r){let r=(0,n.eW)(e=>tM(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tw(e,r))tA(tS(s,l,1.1),t),l++}if(!i)return s.node();{let t=s.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tA(t,e){t.text(""),e.forEach((e,r)=>{let i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(e.content):i.text(" "+e.content)})}function tF(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>``)}(0,n.eW)(tm,"preprocessMarkdown"),(0,n.eW)(ty,"markdownToLines"),(0,n.eW)(tx,"markdownToHTML"),(0,n.eW)(tb,"splitTextToChars"),(0,n.eW)(tk,"splitWordToFitWidth"),(0,n.eW)(tC,"splitWordToFitWidthRecursion"),(0,n.eW)(tw,"splitLineToFitWidth"),(0,n.eW)(t_,"splitLineToFitWidthRecursion"),(0,n.eW)(tv,"applyStyle"),(0,n.eW)(tT,"addHtmlSpan"),(0,n.eW)(tS,"createTspan"),(0,n.eW)(tM,"computeWidthOfText"),(0,n.eW)(tB,"computeDimensionOfText"),(0,n.eW)(tL,"createFormattedText"),(0,n.eW)(tA,"updateTextContentAndStyles"),(0,n.eW)(tF,"replaceIconSubstring");var t$=(0,n.eW)(async(t,e="",{style:r="",isTitle:o=!1,classes:s="",useHtmlLabels:l=!0,isNode:h=!0,width:c=200,addSvgBackground:u=!1}={},d)=>{if(n.cM.debug("XYZ createText",e,r,o,s,l,h,"addSvgBackground: ",u),l){let a=tx(e,d),o=tF((0,i.SH)(a)),l=e.replace(/\\\\/g,"\\"),f={isNode:h,label:(0,n.l0)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await tT(t,f,c,s,u)}{let i=tL(c,t,ty(e.replace(/0&&c
0&&d 0&&c 0&&dfind()",id:"filtering-with-find",level:2},{value:"$or and $gt operators",id:"or-and-gt-operators",level:3},{value:"$and operator",id:"and-operator",level:3},{value:"Shorthand $and",id:"shorthand-and",level:3},{value:"\uD83D\uDC50 Challenge",id:"-challenge",level:2},{value:"1. Find all books where totalInventory is exactly 5.",id:"1-find-all-books-where-totalinventory-is-exactly-5",level:4},{value:"2. Find all books with more than 300 pages.",id:"2-find-all-books-with-more-than-300-pages",level:4},{value:"3. Find books in the "Science" genre that have more than 300 pages.",id:"3-find-books-in-the-science-genre-that-have-more-than-300-pages",level:4}];function c(e){let n={code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components},{Details:s}=n;return s||function(e,n){throw Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"-where--find",children:"\uD83D\uDC50 WHERE \u2192 .find()"})}),"\n",(0,r.jsxs)(n.p,{children:["Similar to SQL's ",(0,r.jsx)(n.code,{children:"WHERE"})," clause, the ",(0,r.jsx)(n.code,{children:".find()"})," method in MongoDB retrieves documents from a collection that matches a specified query."]}),"\n",(0,r.jsx)(n.h2,{id:"syntax",children:"Syntax"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"db.collection.find({
"),l.cM.debug("vertexText"+i),td({isNode:a,label:(0,s.EY)((0,n.SH)(i)),labelStyle:e.replace("fill:","color:")});{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let a=[];for(let e of"string"==typeof i?i.split(/\\n|\n|
/gi):Array.isArray(i)?i:[]){let a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),r?a.setAttribute("class","title-row"):a.setAttribute("class","row"),a.textContent=e.trim(),t.appendChild(a)}return t}},"createLabel"),th=(0,l.eW)((t,e,r,a,i)=>{e.arrowTypeStart&&tu(t,"start",e.arrowTypeStart,r,a,i),e.arrowTypeEnd&&tu(t,"end",e.arrowTypeEnd,r,a,i)},"addEdgeMarkers"),tg={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},tu=(0,l.eW)((t,e,r,a,i,s)=>{let n=tg[r];if(!n){l.cM.warn(`Unknown arrow type: ${r}`);return}t.attr(`marker-${e}`,`url(${a}#${i}_${s}-${n}${"start"===e?"Start":"End"})`)},"addEdgeMarker"),tp={},ty={},tb=(0,l.eW)((t,e)=>{let r;let a=(0,l.nV)(),i=(0,l.ku)(a.flowchart.htmlLabels),n="markdown"===e.labelType?(0,s.rw)(t,e.label,{style:e.labelStyle,useHtmlLabels:i,addSvgBackground:!0},a):tc(e.label,e.labelStyle),o=t.insert("g").attr("class","edgeLabel"),d=o.insert("g").attr("class","label");d.node().appendChild(n);let c=n.getBBox();if(i){let t=n.children[0],e=(0,h.Ys)(n);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}if(d.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),tp[e.id]=o,e.width=c.width,e.height=c.height,e.startLabelLeft){let a=tc(e.startLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");r=s.node().appendChild(a);let n=a.getBBox();s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),ty[e.id]||(ty[e.id]={}),ty[e.id].startLeft=i,tf(r,e.startLabelLeft)}if(e.startLabelRight){let a=tc(e.startLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");r=i.node().appendChild(a),s.node().appendChild(a);let n=a.getBBox();s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),ty[e.id]||(ty[e.id]={}),ty[e.id].startRight=i,tf(r,e.startLabelRight)}if(e.endLabelLeft){let a=tc(e.endLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");r=s.node().appendChild(a);let n=a.getBBox();s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),i.node().appendChild(a),ty[e.id]||(ty[e.id]={}),ty[e.id].endLeft=i,tf(r,e.endLabelLeft)}if(e.endLabelRight){let a=tc(e.endLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");r=s.node().appendChild(a);let n=a.getBBox();s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),i.node().appendChild(a),ty[e.id]||(ty[e.id]={}),ty[e.id].endRight=i,tf(r,e.endLabelRight)}return n},"insertEdgeLabel");function tf(t,e){(0,l.nV)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,l.eW)(tf,"setTerminalWidth");var tx=(0,l.eW)((t,e)=>{l.cM.debug("Moving label abc88 ",t.id,t.label,tp[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath,a=(0,l.nV)(),{subGraphTitleTotalMargin:s}=(0,i.L)(a);if(t.label){let a=tp[t.id],i=t.x,o=t.y;if(r){let a=n.w8.calcLabelPosition(r);l.cM.debug("Moving label "+t.label+" from (",i,",",o,") to (",a.x,",",a.y,") abc88"),e.updatedPath&&(i=a.x,o=a.y)}a.attr("transform",`translate(${i}, ${o+s/2})`)}if(t.startLabelLeft){let e=ty[t.id].startLeft,a=t.x,i=t.y;if(r){let e=n.w8.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.startLabelRight){let e=ty[t.id].startRight,a=t.x,i=t.y;if(r){let e=n.w8.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelLeft){let e=ty[t.id].endLeft,a=t.x,i=t.y;if(r){let e=n.w8.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelRight){let e=ty[t.id].endRight,a=t.x,i=t.y;if(r){let e=n.w8.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}},"positionEdgeLabel"),tm=(0,l.eW)((t,e)=>{let r=t.x,a=t.y,i=Math.abs(e.x-r),s=Math.abs(e.y-a),n=t.width/2,l=t.height/2;return!!(i>=n)||!!(s>=l)},"outsideNode"),tw=(0,l.eW)((t,e,r)=>{l.cM.debug(`intersection calc abc89:
+ outsidePoint: ${JSON.stringify(e)}
+ insidePoint : ${JSON.stringify(r)}
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let a=t.x,i=t.y,s=Math.abs(a-r.x),n=t.width/2,o=r.x]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function a(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=5*parseInt(c.fontSize?c.fontSize:window.getComputedStyle(document.body).fontSize,10)+"px";e.style.minWidth=t,e.style.maxWidth=t}else e.style.width="100%";r(e)}(0,l.eW)(a,"setupImage"),setTimeout(()=>{e.complete&&a()}),e.addEventListener("error",a),e.addEventListener("load",a)})))}b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}return g?p.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"):p.attr("transform","translate(0, "+-b.height/2+")"),e.centerLabel&&p.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),p.insert("rect",":first-child"),{shapeSvg:u,bbox:b,halfPadding:f,label:p}},"labelHelper"),tM=(0,l.eW)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function tT(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,l.eW)(tT,"insertPolygonShape");var tO=(0,l.eW)(async(t,e)=>{e.useHtmlLabels||(0,l.nV)().flowchart.htmlLabels||(e.centerLabel=!0);let{shapeSvg:r,bbox:a,halfPadding:i}=await t$(t,e,"node "+e.classes,!0);l.cM.info("Classes = ",e.classes);let s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-i).attr("y",-a.height/2-i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),tM(e,s),e.intersect=function(t){return tN(e,t)},r},"note"),tI=(0,l.eW)(t=>t?" "+t:"","formatClass"),tB=(0,l.eW)((t,e)=>`${e||"node default"}${tI(t.classes)} ${tI(t.class)}`,"getClassesFromNode"),tz=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding+(a.height+e.padding),s=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];l.cM.info("Question main (Circle)");let n=tT(r,i,i,s);return n.attr("style",e.style),tM(e,n),e.intersect=function(t){return l.cM.warn("Intersect called"),tC(e,s,t)},r},"question"),tR=(0,l.eW)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].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 tv(e,14,t)},r},"choice"),tA=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.height+e.padding,s=i/4,n=a.width+2*s+e.padding,l=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=tT(r,n,i,l);return o.attr("style",e.style),tM(e,o),e.intersect=function(t){return tC(e,l,t)},r},"hexagon"),tP=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,void 0,!0),i=a.height+2*e.padding,s=i/2,n=a.width+2*s+e.padding,l=tS(e.directions,a,e),o=tT(r,n,i,l);return o.attr("style",e.style),tM(e,o),e.intersect=function(t){return tC(e,l,t)},r},"block_arrow"),tY=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-s/2,y:0},{x:i,y:0},{x:i,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return tT(r,i,s,n).attr("style",e.style),e.width=i+s,e.height=s,e.intersect=function(t){return tC(e,n,t)},r},"rect_left_inv_arrow"),tZ=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:s/6,y:-s}],l=tT(r,i,s,n);return l.attr("style",e.style),tM(e,l),e.intersect=function(t){return tC(e,n,t)},r},"lean_right"),tF=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:2*s/6,y:0},{x:i+s/6,y:0},{x:i-2*s/6,y:-s},{x:-s/6,y:-s}],l=tT(r,i,s,n);return l.attr("style",e.style),tM(e,l),e.intersect=function(t){return tC(e,n,t)},r},"lean_left"),tj=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i+2*s/6,y:0},{x:i-s/6,y:-s},{x:s/6,y:-s}],l=tT(r,i,s,n);return l.attr("style",e.style),tM(e,l),e.intersect=function(t){return tC(e,n,t)},r},"trapezoid"),tX=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=tT(r,i,s,n);return l.attr("style",e.style),tM(e,l),e.intersect=function(t){return tC(e,n,t)},r},"inv_trapezoid"),tH=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:0,y:0},{x:i+s/2,y:0},{x:i,y:-s/2},{x:i+s/2,y:-s},{x:0,y:-s}],l=tT(r,i,s,n);return l.attr("style",e.style),tM(e,l),e.intersect=function(t){return tC(e,n,t)},r},"rect_right_inv_arrow"),tU=(0,l.eW)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await t$(t,e,tB(e,void 0),!0),i=a.width+e.padding,s=i/2,n=s/(2.5+i/50),l=a.height+n+e.padding,o=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d","M 0,"+n+" a "+s+","+n+" 0,0,0 "+i+" 0 a "+s+","+n+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+s+","+n+" 0,0,0 "+i+" 0 l 0,"+-l).attr("transform","translate("+-i/2+","+-(l/2+n)+")");return tM(e,o),e.intersect=function(t){let r=tN(e,t),a=r.x-e.x;if(0!=s&&(Math.abs(a)
"):u,e.labelStyle,!0,!0));if((0,l.ku)((0,l.nV)().flowchart.htmlLabels)){let t=y.children[0],e=(0,h.Ys)(y);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}let b=e.padding/2;return(0,h.Ys)(y).attr("transform","translate( "+(g.width>p.width?0:(p.width-g.width)/2)+", "+(p.height+b+5)+")"),(0,h.Ys)(c).attr("transform","translate( "+(g.width{let t=e.trim(),s=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross",t.startsWith("x")&&(r="double_"+r,s=s.slice(1));break;case">":r="arrow_point",t.startsWith("<")&&(r="double_"+r,s=s.slice(1));break;case"o":r="arrow_circle",t.startsWith("o")&&(r="double_"+r,s=s.slice(1))}let i="normal",u=s.length-1;s.startsWith("=")&&(i="thick"),s.startsWith("~")&&(i="invisible");let n=eu(".",s);return n&&(i="dotted",u=n),{type:r,stroke:i,length:u}},"destructEndLink"),ea=(0,c.eW)((e,t)=>{let s;let r=en(e);if(t){if((s=ei(t)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===s.type)s.type=r.type;else{if(s.type!==r.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return"double_arrow"===s.type&&(s.type="double_arrow_point"),s.length=r.length,s}return r},"destructLink"),eo=(0,c.eW)((e,t)=>{for(let s of e)if(s.nodes.includes(t))return!0;return!1},"exists"),el=(0,c.eW)((e,t)=>{let s=[];return e.nodes.forEach((r,i)=>{eo(t,r)||s.push(e.nodes[i])}),{nodes:s}},"makeUniq"),ec=(0,c.eW)(e=>{if(e.img)return"imageSquare";if(e.icon)return"circle"===e.form?"iconCircle":"square"===e.form?"iconSquare":"rounded"===e.form?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}},"getTypeFromVertex"),eh=(0,c.eW)((e,t)=>e.find(e=>e.id===t),"findNode"),ed=(0,c.eW)(e=>{let t="none",s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":s=t=e.replace("double_","")}return{arrowTypeStart:t,arrowTypeEnd:s}},"destructEdgeType"),ep=(0,c.eW)((e,t,s,r,i,u)=>{let n=s.get(e.id),a=r.get(e.id)??!1,o=eh(t,e.id);if(o)o.cssStyles=e.styles,o.cssCompiledStyles=eA(e.classes),o.cssClasses=e.classes.join(" ");else{let s={id:e.id,label:e.text,labelStyle:"",parentId:n,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:eA(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:u,link:e.link,linkTarget:e.linkTarget,tooltip:P(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};a?t.push({...s,isGroup:!0,shape:"rect"}):t.push({...s,isGroup:!1,shape:ec(e)})}},"addNodeFromVertex");function eA(e){let t=[];for(let s of e){let e=b.get(s);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}(0,c.eW)(eA,"getCompiledStyles");var eg=(0,c.eW)(()=>{let e=(0,c.nV)(),t=[],s=[],r=es(),i=new Map,u=new Map;for(let e=r.length-1;e>=0;e--){let t=r[e];for(let e of(t.nodes.length>0&&u.set(t.id,!0),t.nodes))i.set(e,t.id)}for(let s=r.length-1;s>=0;s--){let u=r[s];t.push({id:u.id,label:u.title,labelStyle:"",parentId:i.get(u.id),padding:8,cssCompiledStyles:eA(u.classes),cssClasses:u.classes.join(" "),shape:"rect",dir:u.dir,isGroup:!0,look:e.look})}U().forEach(s=>{ep(s,t,i,u,e,e.look||"classic")});let n=G();return n.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:u}=ed(t.type),a=[...n.defaultStyle??[]];t.style&&a.push(...t.style);let o={id:(0,l.Ln)(t.start,t.end,{counter:r,prefix:"L"}),start:t.start,end:t.end,type:t.type??"normal",label:t.text,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"?"none":i,arrowTypeEnd:t?.stroke==="invisible"?"none":u,arrowheadStyle:"fill: #333",labelStyle:a,style:a,pattern:t.stroke,look:e.look};s.push(o)}),{nodes:t,edges:s,other:{},config:e}},"getData"),ef={defaultConfig:(0,c.eW)(()=>c.Fy.flowchart,"defaultConfig"),setAccTitle:c.GN,getAccTitle:c.eu,getAccDescription:c.Mx,getData:eg,setAccDescription:c.U$,addVertex:S,lookUpDomId:F,addLink:B,updateLinkInterpolate:v,updateLink:w,addClass:$,setDirection:L,setClass:W,setTooltip:I,getTooltip:P,setClickEvent:M,setLink:N,bindFunctions:O,getDirection:V,getVertices:U,getEdges:G,getClasses:Y,clear:j,setGen:z,defaultStyle:H,addSubGraph:q,getDepthFirstPos:ee,indexNodes:et,getSubGraphs:es,destructLink:ea,lex:{firstGraph:er},exists:eo,makeUniq:el,setDiagramTitle:c.g2,getDiagramTitle:c.Kr},ey=(0,c.eW)(function(e,t){return t.db.getClasses()},"getClasses"),eb=(0,c.eW)(async function(e,t,s,r){let i;c.cM.info("REF0:"),c.cM.info("Drawing state diagram (v2)",t);let{securityLevel:n,flowchart:o,layout:d}=(0,c.nV)();"sandbox"===n&&(i=(0,h.Ys)("#i"+t));let p="sandbox"===n?i.nodes()[0].contentDocument:document;c.cM.debug("Before getData: ");let A=r.db.getData();c.cM.debug("Data: ",A);let g=(0,u.q)(t,n),f=V();A.type=r.type,A.layoutAlgorithm=(0,a._b)(d),"dagre"===A.layoutAlgorithm&&"elk"===d&&c.cM.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),A.direction=f,A.nodeSpacing=o?.nodeSpacing||50,A.rankSpacing=o?.rankSpacing||50,A.markers=["point","circle","cross"],A.diagramId=t,c.cM.debug("REF1:",A),await (0,a.sY)(A,g);let y=A.config.flowchart?.diagramPadding??8;for(let e of(l.w8.insertTitle(g,"flowchartTitleText",o?.titleTopMargin||0,r.db.getDiagramTitle()),(0,u.j)(g,y,"flowchart",o?.useMaxWidth||!1),A.nodes)){let s=(0,h.Ys)(`#${t} [id="${e.id}"]`);if(!s||!e.link)continue;let r=p.createElementNS("http://www.w3.org/2000/svg","a");r.setAttributeNS("http://www.w3.org/2000/svg","class",e.cssClasses),r.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===n?r.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):e.linkTarget&&r.setAttributeNS("http://www.w3.org/2000/svg","target",e.linkTarget);let i=s.insert(function(){return r},":first-child"),u=s.select(".label-container");u&&i.append(function(){return u.node()});let a=s.select(".label");a&&i.append(function(){return a.node()})}},"draw"),ek=function(){var e=(0,c.eW)(function(e,t,s,r){for(s=s||{},r=e.length;r--;s[e[r]]=t);return s},"o"),t=[1,4],s=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],u=[2,2],n=[1,13],a=[1,14],o=[1,15],l=[1,16],h=[1,23],d=[1,25],p=[1,26],A=[1,27],g=[1,49],f=[1,48],y=[1,29],b=[1,30],k=[1,31],E=[1,32],m=[1,33],D=[1,44],x=[1,46],C=[1,42],T=[1,47],F=[1,43],S=[1,50],_=[1,45],B=[1,51],v=[1,52],w=[1,34],$=[1,35],L=[1,36],W=[1,37],I=[1,57],R=[1,8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],N=[1,61],P=[1,60],M=[1,62],O=[8,9,11,75,77],V=[1,77],U=[1,90],G=[1,95],Y=[1,94],K=[1,91],j=[1,87],z=[1,93],H=[1,89],q=[1,96],X=[1,92],Z=[1,97],Q=[1,88],J=[8,9,10,11,40,75,77],ee=[8,9,10,11,40,46,75,77],et=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,88,101,104,105,108,110,113,114,115],es=[8,9,11,44,60,75,77,88,101,104,105,108,110,113,114,115],er=[44,60,88,101,104,105,108,110,113,114,115],ei=[1,123],eu=[1,122],en=[1,130],ea=[1,144],eo=[1,145],el=[1,146],ec=[1,147],eh=[1,132],ed=[1,134],ep=[1,138],eA=[1,139],eg=[1,140],ef=[1,141],ey=[1,142],eb=[1,143],ek=[1,148],eE=[1,149],em=[1,128],eD=[1,129],ex=[1,136],eC=[1,131],eT=[1,135],eF=[1,133],eS=[8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],e_=[1,151],eB=[1,153],ev=[8,9,11],ew=[8,9,10,11,14,44,60,88,104,105,108,110,113,114,115],e$=[1,173],eL=[1,169],eW=[1,170],eI=[1,174],eR=[1,171],eN=[1,172],eP=[77,115,118],eM=[8,9,10,11,12,14,27,29,32,44,60,75,83,84,85,86,87,88,89,104,108,110,113,114,115],eO=[10,105],eV=[31,49,51,53,55,57,62,64,66,67,69,71,115,116,117],eU=[1,242],eG=[1,240],eY=[1,244],eK=[1,238],ej=[1,239],ez=[1,241],eH=[1,243],eq=[1,245],eX=[1,263],eZ=[8,9,11,105],eQ=[8,9,10,11,60,83,104,105,108,109,110,111],eJ={trace:(0,c.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,edgeTextToken:78,STR:79,MD_STR:80,textToken:81,keywords:82,STYLE:83,LINKSTYLE:84,CLASSDEF:85,CLASS:86,CLICK:87,DOWN:88,UP:89,textNoTagsToken:90,stylesOpt:91,"idString[vertex]":92,"idString[class]":93,CALLBACKNAME:94,CALLBACKARGS:95,HREF:96,LINK_TARGET:97,"STR[link]":98,"STR[tooltip]":99,alphaNum:100,DEFAULT:101,numList:102,INTERPOLATE:103,NUM:104,COMMA:105,style:106,styleComponent:107,NODE_STRING:108,UNIT:109,BRKT:110,PCT:111,idStringToken:112,MINUS:113,MULT:114,UNICODE_TEXT:115,TEXT:116,TAGSTART:117,EDGE_TEXT:118,alphaNumToken:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",79:"STR",80:"MD_STR",83:"STYLE",84:"LINKSTYLE",85:"CLASSDEF",86:"CLASS",87:"CLICK",88:"DOWN",89:"UP",92:"idString[vertex]",93:"idString[class]",94:"CALLBACKNAME",95:"CALLBACKARGS",96:"HREF",97:"LINK_TARGET",98:"STR[link]",99:"STR[tooltip]",101:"DEFAULT",103:"INTERPOLATE",104:"NUM",105:"COMMA",108:"NODE_STRING",109:"UNIT",110:"BRKT",111:"PCT",113:"MINUS",114:"MULT",115:"UNICODE_TEXT",116:"TEXT",117:"TAGSTART",118:"EDGE_TEXT",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[76,1],[76,2],[76,1],[76,1],[72,1],[73,3],[30,1],[30,2],[30,1],[30,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[102,1],[102,3],[91,1],[91,3],[106,1],[106,2],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[81,1],[81,1],[81,1],[81,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[78,1],[78,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[47,1],[47,2],[100,1],[100,2],[33,1],[33,1],[33,1],[33,1]],performAction:(0,c.eW)(function(e,t,s,r,i,u,n){var a=u.length-1;switch(i){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(u[a])||u[a].length>0)&&u[a-1].push(u[a]),this.$=u[a-1];break;case 4:case 181:case 44:case 54:case 76:case 179:this.$=u[a];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(u[a-1]),this.$=u[a-1];break;case 27:this.$=u[a-1].nodes;break;case 33:this.$=r.addSubGraph(u[a-6],u[a-1],u[a-4]);break;case 34:this.$=r.addSubGraph(u[a-3],u[a-1],u[a-3]);break;case 35:this.$=r.addSubGraph(void 0,u[a-1],void 0);break;case 37:this.$=u[a].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=u[a].trim(),r.setAccDescription(this.$);break;case 43:case 131:this.$=u[a-1]+u[a];break;case 45:r.addVertex(u[a-1][0],void 0,void 0,void 0,void 0,void 0,void 0,u[a]),r.addLink(u[a-3].stmt,u[a-1],u[a-2]),this.$={stmt:u[a-1],nodes:u[a-1].concat(u[a-3].nodes)};break;case 46:r.addLink(u[a-2].stmt,u[a],u[a-1]),this.$={stmt:u[a],nodes:u[a].concat(u[a-2].nodes)};break;case 47:r.addLink(u[a-3].stmt,u[a-1],u[a-2]),this.$={stmt:u[a-1],nodes:u[a-1].concat(u[a-3].nodes)};break;case 48:this.$={stmt:u[a-1],nodes:u[a-1]};break;case 49:r.addVertex(u[a-1][0],void 0,void 0,void 0,void 0,void 0,void 0,u[a]),this.$={stmt:u[a-1],nodes:u[a-1],shapeData:u[a]};break;case 50:this.$={stmt:u[a],nodes:u[a]};break;case 51:case 126:case 128:this.$=[u[a]];break;case 52:r.addVertex(u[a-5][0],void 0,void 0,void 0,void 0,void 0,void 0,u[a-4]),this.$=u[a-5].concat(u[a]);break;case 53:this.$=u[a-4].concat(u[a]);break;case 55:this.$=u[a-2],r.setClass(u[a-2],u[a]);break;case 56:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"square");break;case 57:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"doublecircle");break;case 58:this.$=u[a-5],r.addVertex(u[a-5],u[a-2],"circle");break;case 59:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"ellipse");break;case 60:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"stadium");break;case 61:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"subroutine");break;case 62:this.$=u[a-7],r.addVertex(u[a-7],u[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[u[a-5],u[a-3]]]));break;case 63:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"cylinder");break;case 64:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"round");break;case 65:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"diamond");break;case 66:this.$=u[a-5],r.addVertex(u[a-5],u[a-2],"hexagon");break;case 67:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"odd");break;case 68:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"trapezoid");break;case 69:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"inv_trapezoid");break;case 70:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"lean_right");break;case 71:this.$=u[a-3],r.addVertex(u[a-3],u[a-1],"lean_left");break;case 72:this.$=u[a],r.addVertex(u[a]);break;case 73:u[a-1].text=u[a],this.$=u[a-1];break;case 74:case 75:u[a-2].text=u[a-1],this.$=u[a-2];break;case 77:var o=r.destructLink(u[a],u[a-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:u[a-1]};break;case 78:case 84:case 99:case 101:this.$={text:u[a],type:"text"};break;case 79:case 85:case 100:this.$={text:u[a-1].text+""+u[a],type:u[a-1].type};break;case 80:case 86:this.$={text:u[a],type:"string"};break;case 81:case 87:case 102:this.$={text:u[a],type:"markdown"};break;case 82:var o=r.destructLink(u[a]);this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 83:this.$=u[a-1];break;case 103:this.$=u[a-4],r.addClass(u[a-2],u[a]);break;case 104:this.$=u[a-4],r.setClass(u[a-2],u[a]);break;case 105:case 113:this.$=u[a-1],r.setClickEvent(u[a-1],u[a]);break;case 106:case 114:this.$=u[a-3],r.setClickEvent(u[a-3],u[a-2]),r.setTooltip(u[a-3],u[a]);break;case 107:this.$=u[a-2],r.setClickEvent(u[a-2],u[a-1],u[a]);break;case 108:this.$=u[a-4],r.setClickEvent(u[a-4],u[a-3],u[a-2]),r.setTooltip(u[a-4],u[a]);break;case 109:this.$=u[a-2],r.setLink(u[a-2],u[a]);break;case 110:this.$=u[a-4],r.setLink(u[a-4],u[a-2]),r.setTooltip(u[a-4],u[a]);break;case 111:this.$=u[a-4],r.setLink(u[a-4],u[a-2],u[a]);break;case 112:this.$=u[a-6],r.setLink(u[a-6],u[a-4],u[a]),r.setTooltip(u[a-6],u[a-2]);break;case 115:this.$=u[a-1],r.setLink(u[a-1],u[a]);break;case 116:this.$=u[a-3],r.setLink(u[a-3],u[a-2]),r.setTooltip(u[a-3],u[a]);break;case 117:this.$=u[a-3],r.setLink(u[a-3],u[a-2],u[a]);break;case 118:this.$=u[a-5],r.setLink(u[a-5],u[a-4],u[a]),r.setTooltip(u[a-5],u[a-2]);break;case 119:this.$=u[a-4],r.addVertex(u[a-2],void 0,void 0,u[a]);break;case 120:this.$=u[a-4],r.updateLink([u[a-2]],u[a]);break;case 121:this.$=u[a-4],r.updateLink(u[a-2],u[a]);break;case 122:this.$=u[a-8],r.updateLinkInterpolate([u[a-6]],u[a-2]),r.updateLink([u[a-6]],u[a]);break;case 123:this.$=u[a-8],r.updateLinkInterpolate(u[a-6],u[a-2]),r.updateLink(u[a-6],u[a]);break;case 124:this.$=u[a-6],r.updateLinkInterpolate([u[a-4]],u[a]);break;case 125:this.$=u[a-6],r.updateLinkInterpolate(u[a-4],u[a]);break;case 127:case 129:u[a-2].push(u[a]),this.$=u[a-2];break;case 180:case 182:this.$=u[a-1]+""+u[a];break;case 183:this.$={stmt:"dir",value:"TB"};break;case 184:this.$={stmt:"dir",value:"BT"};break;case 185:this.$={stmt:"dir",value:"RL"};break;case 186:this.$={stmt:"dir",value:"LR"}}},"anonymous"),table:[{3:1,4:2,9:t,10:s,12:r},{1:[3]},e(i,u,{5:6}),{4:7,9:t,10:s,12:r},{4:8,9:t,10:s,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:n,9:a,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:h,33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:b,85:k,86:E,87:m,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:W},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,54],9:[1,55],10:I,15:53,18:56},e(R,[2,3]),e(R,[2,4]),e(R,[2,5]),e(R,[2,6]),e(R,[2,7]),e(R,[2,8]),{8:N,9:P,11:M,21:58,41:59,72:63,75:[1,64],77:[1,65]},{8:N,9:P,11:M,21:66},{8:N,9:P,11:M,21:67},{8:N,9:P,11:M,21:68},{8:N,9:P,11:M,21:69},{8:N,9:P,11:M,21:70},{8:N,9:P,10:[1,71],11:M,21:72},e(R,[2,36]),{35:[1,73]},{37:[1,74]},e(R,[2,39]),e(O,[2,50],{18:75,39:76,10:I,40:V}),{10:[1,78]},{10:[1,79]},{10:[1,80]},{10:[1,81]},{14:U,44:G,60:Y,79:[1,85],88:K,94:[1,82],96:[1,83],100:84,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q,119:86},e(R,[2,183]),e(R,[2,184]),e(R,[2,185]),e(R,[2,186]),e(J,[2,51]),e(J,[2,54],{46:[1,98]}),e(ee,[2,72],{112:111,29:[1,99],44:g,48:[1,100],50:[1,101],52:[1,102],54:[1,103],56:[1,104],58:[1,105],60:f,63:[1,106],65:[1,107],67:[1,108],68:[1,109],70:[1,110],88:D,101:x,104:C,105:T,108:F,110:S,113:_,114:B,115:v}),e(et,[2,179]),e(et,[2,140]),e(et,[2,141]),e(et,[2,142]),e(et,[2,143]),e(et,[2,144]),e(et,[2,145]),e(et,[2,146]),e(et,[2,147]),e(et,[2,148]),e(et,[2,149]),e(et,[2,150]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,112]},e(es,[2,26],{18:113,10:I}),e(R,[2,27]),{42:114,43:38,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},e(R,[2,40]),e(R,[2,41]),e(R,[2,42]),e(er,[2,76],{73:115,62:[1,117],74:[1,116]}),{76:118,78:119,79:[1,120],80:[1,121],115:ei,118:eu},e([44,60,62,74,88,101,104,105,108,110,113,114,115],[2,82]),e(R,[2,28]),e(R,[2,29]),e(R,[2,30]),e(R,[2,31]),e(R,[2,32]),{10:en,12:ea,14:eo,27:el,28:124,32:ec,44:eh,60:ed,75:ep,79:[1,126],80:[1,127],82:137,83:eA,84:eg,85:ef,86:ey,87:eb,88:ek,89:eE,90:125,104:em,108:eD,110:ex,113:eC,114:eT,115:eF},e(eS,u,{5:150}),e(R,[2,37]),e(R,[2,38]),e(O,[2,48],{44:e_}),e(O,[2,49],{18:152,10:I,40:eB}),e(J,[2,44]),{44:g,47:154,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},{101:[1,155],102:156,104:[1,157]},{44:g,47:158,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},{44:g,47:159,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},e(ev,[2,105],{10:[1,160],95:[1,161]}),{79:[1,162]},e(ev,[2,113],{119:164,10:[1,163],14:U,44:G,60:Y,88:K,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q}),e(ev,[2,115],{10:[1,165]}),e(ew,[2,181]),e(ew,[2,168]),e(ew,[2,169]),e(ew,[2,170]),e(ew,[2,171]),e(ew,[2,172]),e(ew,[2,173]),e(ew,[2,174]),e(ew,[2,175]),e(ew,[2,176]),e(ew,[2,177]),e(ew,[2,178]),{44:g,47:166,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},{30:167,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:175,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:177,50:[1,176],67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:178,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:179,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:180,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{108:[1,181]},{30:182,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:183,65:[1,184],67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:185,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:186,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{30:187,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},e(et,[2,180]),e(i,[2,20]),e(es,[2,25]),e(O,[2,46],{39:188,18:189,10:I,40:V}),e(er,[2,73],{10:[1,190]}),{10:[1,191]},{30:192,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{77:[1,193],78:194,115:ei,118:eu},e(eP,[2,78]),e(eP,[2,80]),e(eP,[2,81]),e(eP,[2,166]),e(eP,[2,167]),{8:N,9:P,10:en,11:M,12:ea,14:eo,21:196,27:el,29:[1,195],32:ec,44:eh,60:ed,75:ep,82:137,83:eA,84:eg,85:ef,86:ey,87:eb,88:ek,89:eE,90:197,104:em,108:eD,110:ex,113:eC,114:eT,115:eF},e(eM,[2,99]),e(eM,[2,101]),e(eM,[2,102]),e(eM,[2,155]),e(eM,[2,156]),e(eM,[2,157]),e(eM,[2,158]),e(eM,[2,159]),e(eM,[2,160]),e(eM,[2,161]),e(eM,[2,162]),e(eM,[2,163]),e(eM,[2,164]),e(eM,[2,165]),e(eM,[2,88]),e(eM,[2,89]),e(eM,[2,90]),e(eM,[2,91]),e(eM,[2,92]),e(eM,[2,93]),e(eM,[2,94]),e(eM,[2,95]),e(eM,[2,96]),e(eM,[2,97]),e(eM,[2,98]),{6:11,7:12,8:n,9:a,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,198],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:b,85:k,86:E,87:m,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:W},{10:I,18:199},{44:[1,200]},e(J,[2,43]),{10:[1,201],44:g,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:111,113:_,114:B,115:v},{10:[1,202]},{10:[1,203],105:[1,204]},e(eO,[2,126]),{10:[1,205],44:g,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:111,113:_,114:B,115:v},{10:[1,206],44:g,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:111,113:_,114:B,115:v},{79:[1,207]},e(ev,[2,107],{10:[1,208]}),e(ev,[2,109],{10:[1,209]}),{79:[1,210]},e(ew,[2,182]),{79:[1,211],97:[1,212]},e(J,[2,55],{112:111,44:g,60:f,88:D,101:x,104:C,105:T,108:F,110:S,113:_,114:B,115:v}),{31:[1,213],67:e$,81:214,115:eI,116:eR,117:eN},e(eV,[2,84]),e(eV,[2,86]),e(eV,[2,87]),e(eV,[2,151]),e(eV,[2,152]),e(eV,[2,153]),e(eV,[2,154]),{49:[1,215],67:e$,81:214,115:eI,116:eR,117:eN},{30:216,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{51:[1,217],67:e$,81:214,115:eI,116:eR,117:eN},{53:[1,218],67:e$,81:214,115:eI,116:eR,117:eN},{55:[1,219],67:e$,81:214,115:eI,116:eR,117:eN},{57:[1,220],67:e$,81:214,115:eI,116:eR,117:eN},{60:[1,221]},{64:[1,222],67:e$,81:214,115:eI,116:eR,117:eN},{66:[1,223],67:e$,81:214,115:eI,116:eR,117:eN},{30:224,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},{31:[1,225],67:e$,81:214,115:eI,116:eR,117:eN},{67:e$,69:[1,226],71:[1,227],81:214,115:eI,116:eR,117:eN},{67:e$,69:[1,229],71:[1,228],81:214,115:eI,116:eR,117:eN},e(O,[2,45],{18:152,10:I,40:eB}),e(O,[2,47],{44:e_}),e(er,[2,75]),e(er,[2,74]),{62:[1,230],67:e$,81:214,115:eI,116:eR,117:eN},e(er,[2,77]),e(eP,[2,79]),{30:231,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},e(eS,u,{5:232}),e(eM,[2,100]),e(R,[2,35]),{43:233,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},{10:I,18:234},{10:eU,60:eG,83:eY,91:235,104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},{10:eU,60:eG,83:eY,91:246,103:[1,247],104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},{10:eU,60:eG,83:eY,91:248,103:[1,249],104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},{104:[1,250]},{10:eU,60:eG,83:eY,91:251,104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},{44:g,47:252,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},e(ev,[2,106]),{79:[1,253]},{79:[1,254],97:[1,255]},e(ev,[2,114]),e(ev,[2,116],{10:[1,256]}),e(ev,[2,117]),e(ee,[2,56]),e(eV,[2,85]),e(ee,[2,57]),{51:[1,257],67:e$,81:214,115:eI,116:eR,117:eN},e(ee,[2,64]),e(ee,[2,59]),e(ee,[2,60]),e(ee,[2,61]),{108:[1,258]},e(ee,[2,63]),e(ee,[2,65]),{66:[1,259],67:e$,81:214,115:eI,116:eR,117:eN},e(ee,[2,67]),e(ee,[2,68]),e(ee,[2,70]),e(ee,[2,69]),e(ee,[2,71]),e([10,44,60,88,101,104,105,108,110,113,114,115],[2,83]),{31:[1,260],67:e$,81:214,115:eI,116:eR,117:eN},{6:11,7:12,8:n,9:a,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,261],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:b,85:k,86:E,87:m,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:W},e(J,[2,53]),{43:262,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v},e(ev,[2,119],{105:eX}),e(eZ,[2,128],{107:264,10:eU,60:eG,83:eY,104:eK,108:ej,109:ez,110:eH,111:eq}),e(eQ,[2,130]),e(eQ,[2,132]),e(eQ,[2,133]),e(eQ,[2,134]),e(eQ,[2,135]),e(eQ,[2,136]),e(eQ,[2,137]),e(eQ,[2,138]),e(eQ,[2,139]),e(ev,[2,120],{105:eX}),{10:[1,265]},e(ev,[2,121],{105:eX}),{10:[1,266]},e(eO,[2,127]),e(ev,[2,103],{105:eX}),e(ev,[2,104],{112:111,44:g,60:f,88:D,101:x,104:C,105:T,108:F,110:S,113:_,114:B,115:v}),e(ev,[2,108]),e(ev,[2,110],{10:[1,267]}),e(ev,[2,111]),{97:[1,268]},{51:[1,269]},{62:[1,270]},{66:[1,271]},{8:N,9:P,11:M,21:272},e(R,[2,34]),e(J,[2,52]),{10:eU,60:eG,83:eY,104:eK,106:273,107:237,108:ej,109:ez,110:eH,111:eq},e(eQ,[2,131]),{14:U,44:G,60:Y,88:K,100:274,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q,119:86},{14:U,44:G,60:Y,88:K,100:275,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q,119:86},{97:[1,276]},e(ev,[2,118]),e(ee,[2,58]),{30:277,67:e$,79:eL,80:eW,81:168,115:eI,116:eR,117:eN},e(ee,[2,66]),e(eS,u,{5:278}),e(eZ,[2,129],{107:264,10:eU,60:eG,83:eY,104:eK,108:ej,109:ez,110:eH,111:eq}),e(ev,[2,124],{119:164,10:[1,279],14:U,44:G,60:Y,88:K,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q}),e(ev,[2,125],{119:164,10:[1,280],14:U,44:G,60:Y,88:K,104:j,105:z,108:H,110:q,113:X,114:Z,115:Q}),e(ev,[2,112]),{31:[1,281],67:e$,81:214,115:eI,116:eR,117:eN},{6:11,7:12,8:n,9:a,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,282],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:b,85:k,86:E,87:m,88:D,101:x,104:C,105:T,108:F,110:S,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:W},{10:eU,60:eG,83:eY,91:283,104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},{10:eU,60:eG,83:eY,91:284,104:eK,106:236,107:237,108:ej,109:ez,110:eH,111:eq},e(ee,[2,62]),e(R,[2,33]),e(ev,[2,122],{105:eX}),e(ev,[2,123],{105:eX})],defaultActions:{},parseError:(0,c.eW)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,c.eW)(function(e){var t=this,s=[0],r=[],i=[null],u=[],n=this.table,a="",o=0,l=0,h=0,d=u.slice.call(arguments,1),p=Object.create(this.lexer),A={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(A.yy[g]=this.yy[g]);p.setInput(e,A.yy),A.yy.lexer=p,A.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;u.push(f);var y=p.options&&p.options.ranges;function b(){var e;return"number"!=typeof(e=r.pop()||p.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof A.yy.parseError?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.eW)(function(e){s.length=s.length-2*e,i.length=i.length-e,u.length=u.length-e},"popStack"),(0,c.eW)(b,"lex");for(var k,E,m,D,x,C,T,F,S,_={};;){if(m=s[s.length-1],this.defaultActions[m]?D=this.defaultActions[m]:(null==k&&(k=b()),D=n[m]&&n[m][k]),void 0===D||!D.length||!D[0]){var B="";for(C in S=[],n[m])this.terminals_[C]&&C>2&&S.push("'"+this.terminals_[C]+"'");B=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(B,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:f,expected:S})}if(D[0]instanceof Array&&D.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+k);switch(D[0]){case 1:s.push(k),i.push(p.yytext),u.push(p.yylloc),s.push(D[1]),k=null,E?(k=E,E=null):(l=p.yyleng,a=p.yytext,o=p.yylineno,f=p.yylloc,h>0&&h--);break;case 2:if(T=this.productions_[D[1]][1],_.$=i[i.length-T],_._$={first_line:u[u.length-(T||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(T||1)].first_column,last_column:u[u.length-1].last_column},y&&(_._$.range=[u[u.length-(T||1)].range[0],u[u.length-1].range[1]]),void 0!==(x=this.performAction.apply(_,[a,l,o,A.yy,D[1],i,u].concat(d))))return x;T&&(s=s.slice(0,-1*T*2),i=i.slice(0,-1*T),u=u.slice(0,-1*T)),s.push(this.productions_[D[1]][0]),i.push(_.$),u.push(_._$),F=n[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},e1={EOF:1,parseError:(0,c.eW)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,c.eW)(function(e,t){return this.yy=t||this.yy||{},this._input=e,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},"setInput"),input:(0,c.eW)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:(0,c.eW)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),s.length-1&&(this.yylineno-=s.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===r.length?this.yylloc.first_column:0)+r[r.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.eW)(function(){return this._more=!0,this},"more"),reject:(0,c.eW)(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})},"reject"),less:(0,c.eW)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,c.eW)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.eW)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.eW)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,c.eW)(function(e,t){var s,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var u in i)this[u]=i[u];return!1},"test_match"),next:(0,c.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,r,i=this._currentRules(),u=0;u
"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 94;case 18:return 95;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 83;case 26:return 101;case 27:return 84;case 28:return 103;case 29:return 85;case 30:return 86;case 31:return 96;case 32:this.begin("click");break;case 34:return 87;case 35:case 36:case 37:return e.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 97;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 120;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 104;case 60:case 101:return 110;case 61:return 46;case 62:return 60;case 63:case 102:return 44;case 64:return 8;case 65:return 105;case 66:case 100:return 114;case 67:case 70:case 73:return this.popState(),77;case 68:return this.pushState("edgeText"),75;case 69:case 72:case 75:return 118;case 71:return this.pushState("thickEdgeText"),75;case 74:return this.pushState("dottedEdgeText"),75;case 76:return 77;case 77:return this.popState(),53;case 78:case 114:return"TEXT";case 79:return this.pushState("ellipseText"),52;case 80:return this.popState(),55;case 81:return this.pushState("text"),54;case 82:return this.popState(),57;case 83:return this.pushState("text"),56;case 84:return 58;case 85:return this.pushState("text"),67;case 86:return this.popState(),64;case 87:return this.pushState("text"),63;case 88:return this.popState(),49;case 89:return this.pushState("text"),48;case 90:return this.popState(),69;case 91:return this.popState(),71;case 92:return 116;case 93:return this.pushState("trapText"),68;case 94:return this.pushState("trapText"),70;case 95:return 117;case 96:return 67;case 97:return 89;case 98:return"SEP";case 99:return 88;case 103:return 108;case 104:return 113;case 105:return 115;case 106:return this.popState(),62;case 107:return this.pushState("text"),62;case 108:return this.popState(),51;case 109:return this.pushState("text"),50;case 110:return this.popState(),31;case 111:return this.pushState("text"),29;case 112:return this.popState(),66;case 113:return this.pushState("text"),65;case 115:return"QUOTE";case 116:return 9;case 117:return 10;case 118:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_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<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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]|[\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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},href:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},click:{rules:[21,24,33,34,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dottedEdgeText:{rules:[21,24,73,75,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},thickEdgeText:{rules:[21,24,70,72,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},edgeText:{rules:[21,24,67,69,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},trapText:{rules:[21,24,76,79,81,83,87,89,90,91,92,93,94,107,109,111,113],inclusive:!1},ellipseText:{rules:[21,24,76,77,78,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},text:{rules:[21,24,76,79,80,81,82,83,86,87,88,89,93,94,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr:{rules:[3,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_title:{rules:[1,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},md_string:{rules:[19,20,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},string:{rules:[21,22,23,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,73,74,76,79,81,83,84,85,87,89,93,94,95,96,97,98,99,100,101,102,103,104,105,107,109,111,113,115,116,117,118],inclusive:!0}}};function e0(){this.yy={}}return eJ.lexer=e1,(0,c.eW)(e0,"Parser"),e0.prototype=eJ,eJ.Parser=e0,new e0}();ek.parser=ek;var eE=(0,c.eW)((e,t)=>{let s=d.Z,r=s(e,"r"),i=s(e,"g"),u=s(e,"b");return p.Z(r,i,u,t)},"fade"),em={parser:ek,db:ef,renderer:{getClasses:ey,draw:eb},styles:(0,c.eW)(e=>`.label {
+ font-family: ${e.fontFamily};
+ color: ${e.nodeTextColor||e.textColor};
+ }
+ .cluster-label text {
+ fill: ${e.titleColor};
+ }
+ .cluster-label span {
+ color: ${e.titleColor};
+ }
+ .cluster-label span p {
+ background-color: transparent;
+ }
+
+ .label text,span {
+ fill: ${e.nodeTextColor||e.textColor};
+ color: ${e.nodeTextColor||e.textColor};
+ }
+
+ .node rect,
+ .node circle,
+ .node ellipse,
+ .node polygon,
+ .node path {
+ fill: ${e.mainBkg};
+ stroke: ${e.nodeBorder};
+ stroke-width: 1px;
+ }
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
+ text-anchor: middle;
+ }
+ // .flowchart-label .text-outer-tspan {
+ // text-anchor: middle;
+ // }
+ // .flowchart-label .text-inner-tspan {
+ // text-anchor: start;
+ // }
+
+ .node .katex path {
+ fill: #000;
+ stroke: #000;
+ stroke-width: 1px;
+ }
+
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
+ text-align: center;
+ }
+ .node.clickable {
+ cursor: pointer;
+ }
+
+
+ .root .anchor path {
+ fill: ${e.lineColor} !important;
+ stroke-width: 0;
+ stroke: ${e.lineColor};
+ }
+
+ .arrowheadPath {
+ fill: ${e.arrowheadColor};
+ }
+
+ .edgePath .path {
+ stroke: ${e.lineColor};
+ stroke-width: 2.0px;
+ }
+
+ .flowchart-link {
+ stroke: ${e.lineColor};
+ fill: none;
+ }
+
+ .edgeLabel {
+ background-color: ${e.edgeLabelBackground};
+ p {
+ background-color: ${e.edgeLabelBackground};
+ }
+ rect {
+ opacity: 0.5;
+ background-color: ${e.edgeLabelBackground};
+ fill: ${e.edgeLabelBackground};
+ }
+ text-align: center;
+ }
+
+ /* For html labels only */
+ .labelBkg {
+ background-color: ${eE(e.edgeLabelBackground,.5)};
+ // background-color:
+ }
+
+ .cluster rect {
+ fill: ${e.clusterBkg};
+ stroke: ${e.clusterBorder};
+ stroke-width: 1px;
+ }
+
+ .cluster text {
+ fill: ${e.titleColor};
+ }
+
+ .cluster span {
+ color: ${e.titleColor};
+ }
+ /* .cluster div {
+ color: ${e.titleColor};
+ } */
+
+ div.mermaidTooltip {
+ position: absolute;
+ text-align: center;
+ max-width: 200px;
+ padding: 2px;
+ font-family: ${e.fontFamily};
+ font-size: 12px;
+ background: ${e.tertiaryColor};
+ border: 1px solid ${e.border2};
+ border-radius: 2px;
+ pointer-events: none;
+ z-index: 100;
+ }
+
+ .flowchartTitleText {
+ text-anchor: middle;
+ font-size: 18px;
+ fill: ${e.textColor};
+ }
+
+ rect.text {
+ fill: none;
+ stroke-width: 0;
+ }
+
+ .icon-shape, .image-shape {
+ background-color: ${e.edgeLabelBackground};
+ p {
+ background-color: ${e.edgeLabelBackground};
+ padding: 2px;
+ }
+ rect {
+ opacity: 0.5;
+ background-color: ${e.edgeLabelBackground};
+ fill: ${e.edgeLabelBackground};
+ }
+ text-align: center;
+ }
+`,"getStyles"),init:(0,c.eW)(e=>{e.flowchart||(e.flowchart={}),e.layout&&(0,c.Y4)({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,c.Y4)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),ef.clear(),ef.setGen("gen-2")},"init")}}}]);
\ No newline at end of file
diff --git a/assets/js/447.7b41769c.js b/assets/js/447.7b41769c.js
new file mode 100644
index 0000000..a2d2c4b
--- /dev/null
+++ b/assets/js/447.7b41769c.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_lab=self.webpackChunkdocusaurus_template_lab||[]).push([["447"],{7232:function(t,e,i){i.d(e,{diagram:function(){return W}});var a=i(5995),n=i(7818),s=function(){var t=(0,a.eW)(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,3],i=[1,4],n=[1,5],s=[1,6],r=[1,7],l=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],g=[1,35],f=[1,43],y=[1,41],p=[1,14],T=[1,23],m=[1,18],_=[1,19],q=[1,20],A=[1,21],b=[1,22],k=[1,24],S=[1,25],F=[1,26],P=[1,27],v=[1,28],C=[1,29],W=[1,32],L=[1,33],E=[1,34],D=[1,39],z=[1,40],I=[1,42],w=[1,44],N=[1,62],B=[1,61],R=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],$=[1,65],U=[1,66],O=[1,67],M=[1,68],Q=[1,69],X=[1,70],Y=[1,71],Z=[1,72],H=[1,73],j=[1,74],K=[1,75],G=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],tt=[1,91],te=[1,92],ti=[1,99],ta=[1,93],tn=[1,96],ts=[1,94],tr=[1,95],tl=[1,97],to=[1,98],th=[1,102],tc=[10,55,56,57],td=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],tu={trace:(0,a.eW)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,a.eW)(function(t,e,i,a,n,s,r){var l=s.length-1;switch(n){case 23:case 68:this.$=s[l];break;case 24:case 69:this.$=s[l-1]+""+s[l];break;case 26:this.$=s[l-1]+s[l];break;case 27:this.$=[s[l].trim()];break;case 28:s[l-2].push(s[l].trim()),this.$=s[l-2];break;case 29:this.$=s[l-4],a.addClass(s[l-2],s[l]);break;case 37:this.$=[];break;case 42:this.$=s[l].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[l].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[l].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 47:a.addPoint(s[l-3],"",s[l-1],s[l],[]);break;case 48:a.addPoint(s[l-4],s[l-3],s[l-1],s[l],[]);break;case 49:a.addPoint(s[l-4],"",s[l-2],s[l-1],s[l]);break;case 50:a.addPoint(s[l-5],s[l-4],s[l-2],s[l-1],s[l]);break;case 51:a.setXAxisLeftText(s[l-2]),a.setXAxisRightText(s[l]);break;case 52:s[l-1].text+=" \u27F6 ",a.setXAxisLeftText(s[l-1]);break;case 53:a.setXAxisLeftText(s[l]);break;case 54:a.setYAxisBottomText(s[l-2]),a.setYAxisTopText(s[l]);break;case 55:s[l-1].text+=" \u27F6 ",a.setYAxisBottomText(s[l-1]);break;case 56:a.setYAxisBottomText(s[l]);break;case 57:a.setQuadrant1Text(s[l]);break;case 58:a.setQuadrant2Text(s[l]);break;case 59:a.setQuadrant3Text(s[l]);break;case 60:a.setQuadrant4Text(s[l]);break;case 64:case 66:this.$={text:s[l],type:"text"};break;case 65:this.$={text:s[l-1].text+""+s[l],type:s[l-1].type};break;case 67:this.$={text:s[l],type:"markdown"}}},"anonymous"),table:[{18:e,26:1,27:2,28:i,55:n,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:i,55:n,56:s,57:r},{18:e,26:9,27:2,28:i,55:n,56:s,57:r},t(l,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:g,13:f,14:y,18:p,25:T,35:m,37:_,39:q,41:A,42:b,48:k,50:S,51:F,52:P,53:v,54:C,60:W,61:L,63:E,64:D,65:z,66:I,67:w}),t(l,[2,34]),{27:45,55:n,56:s,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:u,10:x,12:g,13:f,14:y,18:p,25:T,35:m,37:_,39:q,41:A,42:b,48:k,50:S,51:F,52:P,53:v,54:C,60:W,61:L,63:E,64:D,65:z,66:I,67:w}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(h,[2,45]),t(h,[2,46]),{18:[1,50]},{4:d,5:u,10:x,12:g,13:f,14:y,43:51,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,10:x,12:g,13:f,14:y,43:52,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,10:x,12:g,13:f,14:y,43:53,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,10:x,12:g,13:f,14:y,43:54,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,10:x,12:g,13:f,14:y,43:55,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,10:x,12:g,13:f,14:y,43:56,58:31,60:W,61:L,63:E,64:D,65:z,66:I,67:w},{4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,44:[1,57],47:[1,58],58:60,59:59,63:E,64:D,65:z,66:I,67:w},t(R,[2,64]),t(R,[2,66]),t(R,[2,67]),t(R,[2,70]),t(R,[2,71]),t(R,[2,72]),t(R,[2,73]),t(R,[2,74]),t(R,[2,75]),t(R,[2,76]),t(R,[2,77]),t(R,[2,78]),t(R,[2,79]),t(R,[2,80]),t(l,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:64,4:$,5:U,6:O,7:M,8:Q,9:X,10:Y,11:Z,12:H,13:j,14:K,15:G,21:63},t(h,[2,53],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,49:[1,77],63:E,64:D,65:z,66:I,67:w}),t(h,[2,56],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,49:[1,78],63:E,64:D,65:z,66:I,67:w}),t(h,[2,57],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),t(h,[2,58],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),t(h,[2,59],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),t(h,[2,60],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),{45:[1,79]},{44:[1,80]},t(R,[2,65]),t(R,[2,81]),t(R,[2,82]),t(R,[2,83]),{3:82,4:$,5:U,6:O,7:M,8:Q,9:X,10:Y,11:Z,12:H,13:j,14:K,15:G,18:[1,81]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(h,[2,52],{58:31,43:83,4:d,5:u,10:x,12:g,13:f,14:y,60:W,61:L,63:E,64:D,65:z,66:I,67:w}),t(h,[2,55],{58:31,43:84,4:d,5:u,10:x,12:g,13:f,14:y,60:W,61:L,63:E,64:D,65:z,66:I,67:w}),{46:[1,85]},{45:[1,86]},{4:J,5:tt,6:te,8:ti,11:ta,13:tn,16:89,17:ts,18:tr,19:tl,20:to,22:88,23:87},t(V,[2,24]),t(h,[2,51],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),t(h,[2,54],{59:59,58:60,4:d,5:u,8:N,10:x,12:g,13:f,14:y,18:B,63:E,64:D,65:z,66:I,67:w}),t(h,[2,47],{22:88,16:89,23:100,4:J,5:tt,6:te,8:ti,11:ta,13:tn,17:ts,18:tr,19:tl,20:to}),{46:[1,101]},t(h,[2,29],{10:th}),t(tc,[2,27],{16:103,4:J,5:tt,6:te,8:ti,11:ta,13:tn,17:ts,18:tr,19:tl,20:to}),t(td,[2,25]),t(td,[2,13]),t(td,[2,14]),t(td,[2,15]),t(td,[2,16]),t(td,[2,17]),t(td,[2,18]),t(td,[2,19]),t(td,[2,20]),t(td,[2,21]),t(td,[2,22]),t(h,[2,49],{10:th}),t(h,[2,48],{22:88,16:89,23:104,4:J,5:tt,6:te,8:ti,11:ta,13:tn,17:ts,18:tr,19:tl,20:to}),{4:J,5:tt,6:te,8:ti,11:ta,13:tn,16:89,17:ts,18:tr,19:tl,20:to,22:105},t(td,[2,26]),t(h,[2,50],{10:th}),t(tc,[2,28],{16:103,4:J,5:tt,6:te,8:ti,11:ta,13:tn,17:ts,18:tr,19:tl,20:to})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,a.eW)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,a.eW)(function(t){var e=this,i=[0],n=[],s=[null],r=[],l=this.table,o="",h=0,c=0,d=0,u=r.slice.call(arguments,1),x=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);x.setInput(t,g.yy),g.yy.lexer=x,g.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var y=x.yylloc;r.push(y);var p=x.options&&x.options.ranges;function T(){var t;return"number"!=typeof(t=n.pop()||x.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.eW)(function(t){i.length=i.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),(0,a.eW)(T,"lex");for(var m,_,q,A,b,k,S,F,P,v={};;){if(q=i[i.length-1],this.defaultActions[q]?A=this.defaultActions[q]:(null==m&&(m=T()),A=l[q]&&l[q][m]),void 0===A||!A.length||!A[0]){var C="";for(k in P=[],l[q])this.terminals_[k]&&k>2&&P.push("'"+this.terminals_[k]+"'");C=x.showPosition?"Parse error on line "+(h+1)+":\n"+x.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(C,{text:x.match,token:this.terminals_[m]||m,line:x.yylineno,loc:y,expected:P})}if(A[0]instanceof Array&&A.length>1)throw Error("Parse Error: multiple actions possible at state: "+q+", token: "+m);switch(A[0]){case 1:i.push(m),s.push(x.yytext),r.push(x.yylloc),i.push(A[1]),m=null,_?(m=_,_=null):(c=x.yyleng,o=x.yytext,h=x.yylineno,y=x.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[A[1]][1],v.$=s[s.length-S],v._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},p&&(v._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(v,[o,c,h,g.yy,A[1],s,r].concat(u))))return b;S&&(i=i.slice(0,-1*S*2),s=s.slice(0,-1*S),r=r.slice(0,-1*S)),i.push(this.productions_[A[1]][0]),s.push(v.$),r.push(v._$),F=l[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0},"parse")},tx={EOF:1,parseError:(0,a.eW)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.eW)(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},"setInput"),input:(0,a.eW)(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},"input"),unput:(0,a.eW)(function(t){var e=t.length,i=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 a=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),i.length-1&&(this.yylineno-=i.length-1);var n=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:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.eW)(function(){return this._more=!0,this},"more"),reject:(0,a.eW)(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})},"reject"),less:(0,a.eW)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.eW)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.eW)(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,"")},"upcomingInput"),showPosition:(0,a.eW)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.eW)(function(t,e){var i,a,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.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],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var s in n)this[s]=n[s];return!1},"test_match"),next:(0,a.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,a,n=this._currentRules(),s=0;s=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]s?(i[0]=n,i[1]=h,i[2]=o,i[3]=_):ro?(i[0]=a,i[1]=r,i[2]=E,i[3]=s):n
)/g,"\n");await (0,n.rw)(u,d,{useHtmlLabels:a,width:i.width,classes:"mindmap-node-label"},s),a||u.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let p=u.node().getBBox(),[f]=(0,r.VG)(s.fontSize);if(i.height=p.height+.55*f+i.padding,i.width=p.width+2*i.padding,i.icon){if(i.type===t.nodeType.CIRCLE)i.height+=50,i.width+=50,l.append("foreignObject").attr("height","50px").attr("width",i.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+h+" "+i.icon),u.attr("transform","translate("+i.width/2+", "+(i.height/2-1.5*i.padding)+")");else{i.width+=50;let t=i.height;i.height=Math.max(t,60);let e=Math.abs(i.height-t);l.append("foreignObject").attr("width","60px").attr("height",i.height).attr("style","text-align: center;margin-top:"+e/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+h+" "+i.icon),u.attr("transform","translate("+(25+i.width/2)+", "+(e/2+i.padding/2)+")")}}else if(a){let t=(i.width-p.width)/2,e=(i.height-p.height)/2;u.attr("transform","translate("+t+", "+e+")")}else{let t=i.width/2,e=i.padding/2;u.attr("transform","translate("+t+", "+e+")")}switch(i.type){case t.nodeType.DEFAULT:w(t,g,i,h);break;case t.nodeType.ROUNDED_RECT:b(t,g,i,h);break;case t.nodeType.RECT:R(t,g,i,h);break;case t.nodeType.CIRCLE:g.attr("transform","translate("+i.width/2+", "+ +i.height/2+")"),x(t,g,i,h);break;case t.nodeType.CLOUD:C(t,g,i,h);break;case t.nodeType.BANG:M(t,g,i,h);break;case t.nodeType.HEXAGON:S(t,g,i,h)}return t.setElementForId(i.id,l),i.height},"drawNode"),P=(0,s.eW)(function(t,e){let i=t.getElementById(e.id),n=e.x||0,r=e.y||0;i.attr("transform","translate("+n+","+r+")")},"positionNode");async function U(t,e,i,n,r){await F(t,e,i,n,r),i.children&&await Promise.all(i.children.map((i,o)=>U(t,e,i,n<0?o:n,r)))}function Y(t,e){e.edges().map((e,i)=>{let n=e.data();if(e[0]._private.bodyBounds){let r=e[0]._private.rscratch;s.cM.trace("Edge: ",i,n),t.insert("path").attr("d",`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})}function k(t,e,i,n){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:n,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(r=>{k(r,e,i,n+1),e.add({group:"edges",data:{id:`${t.id}_${r.id}`,source:t.id,target:r.id,depth:n,section:r.section}})})}function X(t,e){return new Promise(i=>{let n=(0,l.Ys)("body").append("div").attr("id","cy").attr("style","display:none"),r=(0,a.Z)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),k(t,r,e,0),r.nodes().forEach(function(t){t.layoutDimensions=()=>{let e=t.data();return{w:e.width,h:e.height}}}),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready(t=>{s.cM.info("Ready",t),i(r)})})}function W(t,e){e.nodes().map((e,i)=>{let n=e.data();n.x=e.position().x,n.y=e.position().y,P(t,n);let r=t.getElementById(n.nodeId);s.cM.info("Id:",i,"Position: (",e.position().x,", ",e.position().y,")",n),r.attr("transform",`translate(${e.position().x-n.width/2}, ${e.position().y-n.height/2})`),r.attr("attr",`apa-${i})`)})}a.Z.use(h),(0,s.eW)(U,"drawNodes"),(0,s.eW)(Y,"drawEdges"),(0,s.eW)(k,"addNodes"),(0,s.eW)(X,"layoutMindmap"),(0,s.eW)(W,"positionNodes");var B=(0,s.eW)(async(t,e,i,n)=>{s.cM.debug("Rendering mindmap diagram\n"+t);let r=n.db,a=r.getMindmap();if(!a)return;let h=(0,s.nV)();h.htmlLabels=!1;let l=(0,o.P)(e),c=l.append("g");c.attr("class","mindmap-edges");let g=l.append("g");g.attr("class","mindmap-nodes"),await U(r,g,a,-1,h);let u=await X(a,h);Y(c,u),W(r,u),(0,s.j7)(void 0,l,h.mindmap?.padding??s.vZ.mindmap.padding,h.mindmap?.useMaxWidth??s.vZ.mindmap.useMaxWidth)},"draw"),$=(0,s.eW)(t=>{let e="";for(let e=0;e