From 5bcafc79b82ed8bf496bd9bc8fb96d7393118b0e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Aug 2026 05:35:29 +0000 Subject: [PATCH] ci: release packages --- .changeset/tui-footer-decode-speed.md | 4 - .changeset/tui-hatch-easter-egg.md | 4 - .changeset/tui-shift-tab-thinking.md | 4 - .changeset/web-running-tool-emphasis.md | 4 - apps/pythinker-code/CHANGELOG.md | 12 + .../dist-web/assets/CodeBlockNode-BH6HsjxV.js | 29 + .../assets/DesignSystemView-B5fq8RL_.js | 13 + .../dist-web/assets/Tooltip-ms-XbEOq.js | 1 + .../dist-web/assets/arc-D9l9PU7k.js | 1 + .../architectureDiagram-3BPJPVTR-BN8zAxC8.js | 36 + .../assets/blockDiagram-GPEHLZMM-XVyKqmZc.js | 132 ++ .../assets/c4Diagram-AAUBKEIU-BmWl5vmY.js | 10 + .../dist-web/assets/channel-BHUY_2ZP.js | 1 + .../assets/chunk-2J33WTMH-BZ74n2hL.js | 1 + .../assets/chunk-4BX2VUAB-DQH-TItP.js | 1 + .../assets/chunk-55IACEB6-Q15Gq5Jr.js | 1 + .../assets/chunk-727SXJPM-CqN4oca1.js | 206 +++ .../assets/chunk-AQP2D5EJ-BFM758F_.js | 231 +++ .../assets/chunk-FMBD7UC4-DwQl0sgV.js | 15 + .../assets/chunk-ND2GUHAM-CyIE0WAw.js | 1 + .../assets/chunk-QZHKN3VN-CFNj3DLL.js | 1 + .../assets/classDiagram-4FO5ZUOK-DAYxyfHr.js | 1 + .../classDiagram-v2-Q7XG4LA2-DAYxyfHr.js | 1 + .../assets/cose-bilkent-S5V4N54A-CLcMSdq2.js | 1 + .../assets/dagre-BM42HDAG-CK2ZCPFa.js | 4 + .../assets/diagram-2AECGRRQ-CAFZIqvS.js | 43 + .../assets/diagram-5GNKFQAL-B-x7cYyh.js | 10 + .../assets/diagram-KO2AKTUF-BpolmxxX.js | 3 + .../assets/diagram-LMA3HP47-WIugDsao.js | 24 + .../assets/diagram-OG6HWLK6-BVODXXOF.js | 24 + .../assets/erDiagram-TEJ5UH35-0a3Ci0z-.js | 85 + .../assets/flowDiagram-I6XJVG4X-BScCkdLv.js | 162 ++ .../assets/ganttDiagram-6RSMTGT7-BAoCUx58.js | 292 ++++ .../gitGraphDiagram-PVQCEYII-DKmd5EUr.js | 106 ++ .../dist-web/assets/index-BhziHZyv.js | 7 + .../dist-web/assets/index-CqnA9d3X.js | 153 ++ .../dist-web/assets/index-DIfcwXP7.js | 788 ++++++++++ .../dist-web/assets/index-DpzVSFci.css | 1 + .../dist-web/assets/index-uKL_OrUg.js | 1400 +++++++++++++++++ .../dist-web/assets/index10-CC0Hp6-E.js | 2 + .../dist-web/assets/index11-CX4ZouxY.js | 8 + .../dist-web/assets/index5-DY62NjEd.js | 1 + .../dist-web/assets/index6-bmzqQkpE.js | 1 + .../dist-web/assets/index7-CK2miHWh.js | 1 + .../dist-web/assets/index8-XKHEN2kj.js | 1 + .../assets/infoDiagram-5YYISTIA-Mp-G8qLD.js | 2 + .../ishikawaDiagram-YF4QCWOH-CCWNs7uM.js | 70 + .../journeyDiagram-JHISSGLW-LG_crcOj.js | 139 ++ .../kanban-definition-UN3LZRKU-B3etkvd5.js | 89 ++ .../dist-web/assets/linear-DE2pdwDz.js | 1 + .../dist-web/assets/mermaid.core-bNlBBSwN.js | 309 ++++ .../mindmap-definition-RKZ34NQL-C1P96S_t.js | 96 ++ .../assets/pieDiagram-4H26LBE5-DPJUZ_u-.js | 30 + .../quadrantDiagram-W4KKPZXB-B5jp7meJ.js | 7 + .../requirementDiagram-4Y6WPE33-BBjsP8pA.js | 84 + .../assets/sankeyDiagram-5OEKKPKP-CTqxSYTD.js | 40 + .../sequenceDiagram-3UESZ5HK-xTx9Capo.js | 162 ++ .../assets/stateDiagram-AJRCARHV-Doj0UOhF.js | 1 + .../stateDiagram-v2-BHNVJYJU-C2XUTht9.js | 1 + .../timeline-definition-PNZ67QCA-D-pLufgQ.js | 120 ++ .../assets/vennDiagram-CIIHVFJN-CLjB7vfh.js | 34 + .../vue.runtime.esm-bundler-ASdcAnno.js | 5 + .../assets/wardley-L42UT6IY-BnkTWAjx.js | 173 ++ .../wardleyDiagram-YWT4CUSO-DxSUrMLH.js | 78 + .../xychartDiagram-2RQKCTM6-DPbUBtl1.js | 7 + apps/pythinker-code/package.json | 2 +- 66 files changed, 5260 insertions(+), 17 deletions(-) delete mode 100644 .changeset/tui-footer-decode-speed.md delete mode 100644 .changeset/tui-hatch-easter-egg.md delete mode 100644 .changeset/tui-shift-tab-thinking.md delete mode 100644 .changeset/web-running-tool-emphasis.md create mode 100644 apps/pythinker-code/dist-web/assets/CodeBlockNode-BH6HsjxV.js create mode 100644 apps/pythinker-code/dist-web/assets/DesignSystemView-B5fq8RL_.js create mode 100644 apps/pythinker-code/dist-web/assets/Tooltip-ms-XbEOq.js create mode 100644 apps/pythinker-code/dist-web/assets/arc-D9l9PU7k.js create mode 100644 apps/pythinker-code/dist-web/assets/architectureDiagram-3BPJPVTR-BN8zAxC8.js create mode 100644 apps/pythinker-code/dist-web/assets/blockDiagram-GPEHLZMM-XVyKqmZc.js create mode 100644 apps/pythinker-code/dist-web/assets/c4Diagram-AAUBKEIU-BmWl5vmY.js create mode 100644 apps/pythinker-code/dist-web/assets/channel-BHUY_2ZP.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-2J33WTMH-BZ74n2hL.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-4BX2VUAB-DQH-TItP.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-55IACEB6-Q15Gq5Jr.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-727SXJPM-CqN4oca1.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-AQP2D5EJ-BFM758F_.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-FMBD7UC4-DwQl0sgV.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-ND2GUHAM-CyIE0WAw.js create mode 100644 apps/pythinker-code/dist-web/assets/chunk-QZHKN3VN-CFNj3DLL.js create mode 100644 apps/pythinker-code/dist-web/assets/classDiagram-4FO5ZUOK-DAYxyfHr.js create mode 100644 apps/pythinker-code/dist-web/assets/classDiagram-v2-Q7XG4LA2-DAYxyfHr.js create mode 100644 apps/pythinker-code/dist-web/assets/cose-bilkent-S5V4N54A-CLcMSdq2.js create mode 100644 apps/pythinker-code/dist-web/assets/dagre-BM42HDAG-CK2ZCPFa.js create mode 100644 apps/pythinker-code/dist-web/assets/diagram-2AECGRRQ-CAFZIqvS.js create mode 100644 apps/pythinker-code/dist-web/assets/diagram-5GNKFQAL-B-x7cYyh.js create mode 100644 apps/pythinker-code/dist-web/assets/diagram-KO2AKTUF-BpolmxxX.js create mode 100644 apps/pythinker-code/dist-web/assets/diagram-LMA3HP47-WIugDsao.js create mode 100644 apps/pythinker-code/dist-web/assets/diagram-OG6HWLK6-BVODXXOF.js create mode 100644 apps/pythinker-code/dist-web/assets/erDiagram-TEJ5UH35-0a3Ci0z-.js create mode 100644 apps/pythinker-code/dist-web/assets/flowDiagram-I6XJVG4X-BScCkdLv.js create mode 100644 apps/pythinker-code/dist-web/assets/ganttDiagram-6RSMTGT7-BAoCUx58.js create mode 100644 apps/pythinker-code/dist-web/assets/gitGraphDiagram-PVQCEYII-DKmd5EUr.js create mode 100644 apps/pythinker-code/dist-web/assets/index-BhziHZyv.js create mode 100644 apps/pythinker-code/dist-web/assets/index-CqnA9d3X.js create mode 100644 apps/pythinker-code/dist-web/assets/index-DIfcwXP7.js create mode 100644 apps/pythinker-code/dist-web/assets/index-DpzVSFci.css create mode 100644 apps/pythinker-code/dist-web/assets/index-uKL_OrUg.js create mode 100644 apps/pythinker-code/dist-web/assets/index10-CC0Hp6-E.js create mode 100644 apps/pythinker-code/dist-web/assets/index11-CX4ZouxY.js create mode 100644 apps/pythinker-code/dist-web/assets/index5-DY62NjEd.js create mode 100644 apps/pythinker-code/dist-web/assets/index6-bmzqQkpE.js create mode 100644 apps/pythinker-code/dist-web/assets/index7-CK2miHWh.js create mode 100644 apps/pythinker-code/dist-web/assets/index8-XKHEN2kj.js create mode 100644 apps/pythinker-code/dist-web/assets/infoDiagram-5YYISTIA-Mp-G8qLD.js create mode 100644 apps/pythinker-code/dist-web/assets/ishikawaDiagram-YF4QCWOH-CCWNs7uM.js create mode 100644 apps/pythinker-code/dist-web/assets/journeyDiagram-JHISSGLW-LG_crcOj.js create mode 100644 apps/pythinker-code/dist-web/assets/kanban-definition-UN3LZRKU-B3etkvd5.js create mode 100644 apps/pythinker-code/dist-web/assets/linear-DE2pdwDz.js create mode 100644 apps/pythinker-code/dist-web/assets/mermaid.core-bNlBBSwN.js create mode 100644 apps/pythinker-code/dist-web/assets/mindmap-definition-RKZ34NQL-C1P96S_t.js create mode 100644 apps/pythinker-code/dist-web/assets/pieDiagram-4H26LBE5-DPJUZ_u-.js create mode 100644 apps/pythinker-code/dist-web/assets/quadrantDiagram-W4KKPZXB-B5jp7meJ.js create mode 100644 apps/pythinker-code/dist-web/assets/requirementDiagram-4Y6WPE33-BBjsP8pA.js create mode 100644 apps/pythinker-code/dist-web/assets/sankeyDiagram-5OEKKPKP-CTqxSYTD.js create mode 100644 apps/pythinker-code/dist-web/assets/sequenceDiagram-3UESZ5HK-xTx9Capo.js create mode 100644 apps/pythinker-code/dist-web/assets/stateDiagram-AJRCARHV-Doj0UOhF.js create mode 100644 apps/pythinker-code/dist-web/assets/stateDiagram-v2-BHNVJYJU-C2XUTht9.js create mode 100644 apps/pythinker-code/dist-web/assets/timeline-definition-PNZ67QCA-D-pLufgQ.js create mode 100644 apps/pythinker-code/dist-web/assets/vennDiagram-CIIHVFJN-CLjB7vfh.js create mode 100644 apps/pythinker-code/dist-web/assets/vue.runtime.esm-bundler-ASdcAnno.js create mode 100644 apps/pythinker-code/dist-web/assets/wardley-L42UT6IY-BnkTWAjx.js create mode 100644 apps/pythinker-code/dist-web/assets/wardleyDiagram-YWT4CUSO-DxSUrMLH.js create mode 100644 apps/pythinker-code/dist-web/assets/xychartDiagram-2RQKCTM6-DPbUBtl1.js diff --git a/.changeset/tui-footer-decode-speed.md b/.changeset/tui-footer-decode-speed.md deleted file mode 100644 index aaf15da06..000000000 --- a/.changeset/tui-footer-decode-speed.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@pymodel/pythinker-code": patch ---- -Show the step decode speed next to the context readout in the terminal footer. diff --git a/.changeset/tui-hatch-easter-egg.md b/.changeset/tui-hatch-easter-egg.md deleted file mode 100644 index ca8b86cd5..000000000 --- a/.changeset/tui-hatch-easter-egg.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@pymodel/pythinker-code": patch ---- -Rename the hidden /dance easter egg to /hatch. diff --git a/.changeset/tui-shift-tab-thinking.md b/.changeset/tui-shift-tab-thinking.md deleted file mode 100644 index 24fe2dd33..000000000 --- a/.changeset/tui-shift-tab-thinking.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@pymodel/pythinker-code": patch ---- -Use Shift-Tab in the terminal to cycle the model thinking effort. diff --git a/.changeset/web-running-tool-emphasis.md b/.changeset/web-running-tool-emphasis.md deleted file mode 100644 index 1e6150f71..000000000 --- a/.changeset/web-running-tool-emphasis.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"@pymodel/pythinker-code": patch ---- -Keep running tool rows at full text emphasis in the web transcript. diff --git a/apps/pythinker-code/CHANGELOG.md b/apps/pythinker-code/CHANGELOG.md index 65b2c2837..c404a7119 100644 --- a/apps/pythinker-code/CHANGELOG.md +++ b/apps/pythinker-code/CHANGELOG.md @@ -1,5 +1,17 @@ # @pymodel/pythinker-code +## 0.39.2 + +### Patch Changes + +- [#138](https://github.com/PyModel/pythinker-code/pull/138) [`443f201`](https://github.com/PyModel/pythinker-code/commit/443f2019b793db29486424d54d2d819f216162b9) Thanks [@elkaix](https://github.com/elkaix)! - Show the step decode speed next to the context readout in the terminal footer. + +- [#138](https://github.com/PyModel/pythinker-code/pull/138) [`443f201`](https://github.com/PyModel/pythinker-code/commit/443f2019b793db29486424d54d2d819f216162b9) Thanks [@elkaix](https://github.com/elkaix)! - Rename the hidden /dance easter egg to /hatch. + +- [#138](https://github.com/PyModel/pythinker-code/pull/138) [`443f201`](https://github.com/PyModel/pythinker-code/commit/443f2019b793db29486424d54d2d819f216162b9) Thanks [@elkaix](https://github.com/elkaix)! - Use Shift-Tab in the terminal to cycle the model thinking effort. + +- [#138](https://github.com/PyModel/pythinker-code/pull/138) [`443f201`](https://github.com/PyModel/pythinker-code/commit/443f2019b793db29486424d54d2d819f216162b9) Thanks [@elkaix](https://github.com/elkaix)! - Keep running tool rows at full text emphasis in the web transcript. + ## 0.39.1 ### Patch Changes diff --git a/apps/pythinker-code/dist-web/assets/CodeBlockNode-BH6HsjxV.js b/apps/pythinker-code/dist-web/assets/CodeBlockNode-BH6HsjxV.js new file mode 100644 index 000000000..5750d92ae --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/CodeBlockNode-BH6HsjxV.js @@ -0,0 +1,29 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BhziHZyv.js","assets/index-DIfcwXP7.js","assets/index-DpzVSFci.css"])))=>i.map(i=>d[i]); +import{bR as xi,cb as Si,bQ as zo,M as vl,bl as Ci,af as dl,bY as Mi,cc as Bi,b$ as ml,aU as O,c0 as Ei,c1 as Fi,c2 as Pi,a0 as Co,aD as Ho,bE as ae,az as Li,cd as hn,c8 as vt,aI as No,aL as G,s as bn,aw as It,au as mt,bk as V,ce as Mo,u as oe,I as To,A as Oi,bJ as Ut,aY as pt,bL as cl,v as b,t as ye,bB as fl,bb as Me,q as k,b7 as $i,cf as zi,cg as gn,ch as Hi,ci as Ni,cj as Ti,ck as Ri,as as j,cl as Bo,cm as Di,cn as Ai,co as jt,cp as Eo,bO as Ro,T as ji,G as qi,F as Fo,g as Wi,c7 as _i,b_ as Ii}from"./index-DIfcwXP7.js";import{i as fe,t as yn}from"./safeRaf-DGuzXxDK.js";var wn=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});let Po=!1,qt=null,Wt=null,_t=null;function Ui(){return wn(this,null,function*(){if(_t)return _t;_t=wn(null,null,function*(){if(!Wt)try{if(Wt=(function(x){const M=x;if(typeof M?.useMonaco=="function")return M;const w=x?.default;return typeof w?.useMonaco=="function"?w:null})(yield xi(()=>import("./index-BhziHZyv.js"),__vite__mapDeps([0,1,2]))),!Wt)return null}catch{return null}try{return yield(function(x){return wn(this,null,function*(){return Po?void 0:qt||(qt=wn(null,null,function*(){const w=globalThis?.MonacoEnvironment;w&&(typeof w.getWorker=="function"||typeof w.getWorkerUrl=="function")||typeof x?.preloadMonacoWorkers!="function"||(yield x.preloadMonacoWorkers()),Po=!0}).finally(()=>{qt=null}),qt)})})(Wt),Si(),Wt}catch{return null}});try{return yield _t}finally{_t=null}})}var Vi=Object.defineProperty,Gi=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Oo=(x,M,w)=>M in x?Vi(x,M,{enumerable:!0,configurable:!0,writable:!0,value:w}):x[M]=w,I=(x,M)=>{for(var w in M||(M={}))Yi.call(M,w)&&Oo(x,w,M[w]);if(Lo)for(var w of Lo(M))Qi.call(M,w)&&Oo(x,w,M[w]);return x},Ce=(x,M)=>Gi(x,Ji(M)),q=(x,M,w)=>new Promise((te,ne)=>{var we=E=>{try{r(w.next(E))}catch(z){ne(z)}},be=E=>{try{r(w.throw(E))}catch(z){ne(z)}},r=E=>E.done?te(E.value):Promise.resolve(E.value).then(we,be);r((w=w.apply(x,M)).next())});const Xi={key:0,class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},Ki={class:"flex items-center gap-0.5"},Zi=["aria-label"],er={class:"code-diff-stat removed"},tr={class:"code-diff-stat added"},nr=["aria-label"],lr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},or={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},ir=["aria-pressed"],rr={key:3,class:"relative"},ar=["aria-expanded"],ur=["disabled"],sr=["disabled"],dr=["disabled"],cr={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},fr={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},vr={class:"code-loading-placeholder"},mr={class:"sr-only","aria-live":"polite",role:"status"},pr=vl({__name:"CodeBlockShell",props:{showHeader:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showTooltips:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},stream:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1},copyText:{type:Boolean,default:!1},isPreviewable:{type:Boolean,default:!1},codeFontSize:{},codeFontMin:{},codeFontMax:{},defaultCodeFontSize:{},fontBaselineReady:{type:Boolean,default:!1},diffStats:{},diffStatsAriaLabel:{}},emits:["toggleCollapse","decreaseFont","resetFont","increaseFont","copy","toggleExpand","preview"],setup(x,{emit:M}){const w=x,te=M,ne=O(!1),we=O(null),be=O(null);function r(){vt(!0),ne.value=!ne.value,ne.value&&document.addEventListener("click",z,{once:!0,capture:!0})}function E(){vt(!0),ne.value=!1}function z(Y){var f,$;const yt=Y.target;(f=we.value)!=null&&f.contains(yt)||($=be.value)!=null&&$.contains(yt)?document.addEventListener("click",z,{once:!0,capture:!0}):E()}const ie=k(()=>w.showFontSizeButtons&&w.enableFontSizeControl||w.showExpandButton||w.isPreviewable&&w.showPreviewButton),{t:N}=ml(),ht=k(()=>w.showTooltips!==!1);function Ge(Y,f){ht.value&&_i(Y.currentTarget,f,"top",!1,void 0,w.isDark)}function Be(){ht.value&&vt()}function gt(Y){Ge(Y,w.copyText?N("common.copied")||"Copied":N("common.copy")||"Copy")}const pl=k(()=>{var Y,f;return!!Number.isFinite(w.codeFontSize)&&((Y=w.codeFontSize)!=null?Y:0)<=((f=w.codeFontMin)!=null?f:0)}),Vt=k(()=>!w.fontBaselineReady||w.codeFontSize===w.defaultCodeFontSize),Gt=k(()=>{var Y,f;return!!Number.isFinite(w.codeFontSize)&&((Y=w.codeFontSize)!=null?Y:0)>=((f=w.codeFontMax)!=null?f:100)});return(Y,f)=>(G(),oe(Fo,null,[w.showHeader?(G(),oe("div",Xi,[pt(Y.$slots,"header-left"),pt(Y.$slots,"header-right",{},()=>[b("div",Ki,[x.diffStats?(G(),oe("div",{key:0,class:"code-diff-stats","aria-label":x.diffStatsAriaLabel},[b("span",er,"-"+Me(x.diffStats.removed),1),b("span",tr,"+"+Me(x.diffStats.added),1)],8,Zi)):ye("",!0),w.showCopyButton?(G(),oe("button",{key:1,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-label":x.copyText?V(N)("common.copied")||"Copied":V(N)("common.copy")||"Copy",onClick:f[0]||(f[0]=$=>te("copy")),onMouseenter:f[1]||(f[1]=$=>gt($)),onFocus:f[2]||(f[2]=$=>gt($)),onMouseleave:Be,onBlur:Be},[x.copyText?(G(),oe("svg",or,[...f[14]||(f[14]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(G(),oe("svg",lr,[...f[13]||(f[13]=[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,nr)):ye("",!0),w.showCollapseButton?(G(),oe("button",{key:2,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] disabled:opacity-40 disabled:cursor-not-allowed transition-colors","aria-pressed":x.isCollapsed,onClick:f[3]||(f[3]=$=>te("toggleCollapse")),onMouseenter:f[4]||(f[4]=$=>Ge($,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onFocus:f[5]||(f[5]=$=>Ge($,x.isCollapsed?V(N)("common.expand")||"Expand":V(N)("common.collapse")||"Collapse")),onMouseleave:Be,onBlur:Be},[(G(),oe("svg",{style:It({rotate:x.isCollapsed?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...f[15]||(f[15]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,ir)):ye("",!0),ie.value?(G(),oe("div",rr,[b("button",{ref_key:"moreBtnRef",ref:be,type:"button",class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0 cursor-pointer text-[var(--code-action-fg)] hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] active:scale-[0.96] transition-colors","aria-expanded":ne.value,"aria-haspopup":"true",onClick:Ro(r,["stop"]),onMouseenter:f[6]||(f[6]=$=>Ge($,V(N)("common.more")||"More")),onFocus:f[7]||(f[7]=$=>Ge($,V(N)("common.more")||"More")),onMouseleave:Be,onBlur:Be},[...f[16]||(f[16]=[qi('',1)])],40,ar),To(Wi,{name:"code-menu"},{default:Ut(()=>[ne.value?(G(),oe("div",{key:0,ref_key:"moreMenuRef",ref:we,class:"code-more-menu min-w-[10rem] p-1 bg-[hsl(var(--ms-popover))] text-[hsl(var(--ms-popover-foreground))] border border-[var(--code-border)] shadow-[var(--ms-shadow-popover)]",role:"menu"},[w.showFontSizeButtons&&w.enableFontSizeControl?(G(),oe(Fo,{key:0},[b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:pl.value,onClick:f[8]||(f[8]=$=>{V(vt)(!0),te("decreaseFont")})},[f[17]||(f[17]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)),b("span",null,Me(V(N)("common.fontSmaller")||"Font size −"),1)],8,ur),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Vt.value,onClick:f[9]||(f[9]=$=>{V(vt)(!0),te("resetFont")})},[f[18]||(f[18]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),b("path",{d:"M3 3v5h5"})])],-1)),b("span",null,Me(V(N)("common.fontReset")||"Font size reset"),1)],8,sr),b("button",{type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",disabled:Gt.value,onClick:f[10]||(f[10]=$=>{V(vt)(!0),te("increaseFont")})},[f[19]||(f[19]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)),b("span",null,Me(V(N)("common.fontLarger")||"Font size +"),1)],8,dr)],64)):ye("",!0),w.showExpandButton?(G(),oe("button",{key:1,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[11]||(f[11]=$=>{E(),te("toggleExpand")})},[x.isExpanded?(G(),oe("svg",cr,[...f[20]||(f[20]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(G(),oe("svg",fr,[...f[21]||(f[21]=[b("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])),b("span",null,Me(x.isExpanded?V(N)("common.collapse")||"Collapse":V(N)("common.expand")||"Expand"),1)])):ye("",!0),x.isPreviewable&&w.showPreviewButton?(G(),oe("button",{key:2,type:"button",role:"menuitem",class:"flex items-center gap-2 w-full py-1.5 px-2 rounded text-xs text-[var(--code-action-fg)] cursor-pointer whitespace-nowrap hover:bg-[var(--code-action-hover-bg)] hover:text-[var(--code-action-hover-fg)] transition-colors",onClick:f[12]||(f[12]=$=>{E(),te("preview")})},[f[22]||(f[22]=b("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[b("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[b("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),b("circle",{cx:"12",cy:"12",r:"3"})])],-1)),b("span",null,Me(V(N)("common.preview")||"Preview"),1)])):ye("",!0)],512)):ye("",!0)]),_:1})])):ye("",!0)])])])):ye("",!0),cl(b("div",{class:mt(["code-block-shell-content",{"code-block-shell-content--collapsed":x.isCollapsed}])},[pt(Y.$slots,"default")],2),[[fl,!!x.stream||!x.loading]]),cl(b("div",vr,[pt(Y.$slots,"loading",{},()=>[f[23]||(f[23]=b("div",{class:"loading-skeleton"},[b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line short"})],-1))])],512),[[fl,!x.stream&&x.loading]]),b("span",mr,Me(x.copyText?V(N)("common.copied")||"Copied":""),1)],64))}}),hr={class:"html-preview-frame__header"},gr={class:"html-preview-frame__title"},yr={class:"html-preview-frame__label"},wr=["sandbox","srcdoc"],br=zo(vl({__name:"HtmlPreviewFrame",props:{code:{},isDark:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},onClose:{type:Function},title:{}},setup(x){const M=x,w=import.meta!==void 0&&!1;let te=null;const{t:ne}=ml(),we=k(()=>{const E=M.code||"",z=E.trim().toLowerCase();return z.startsWith(" + + + + + + + + ${E} + +`}),be=k(()=>{return E=M.htmlPreviewSandbox,z=M.htmlPreviewAllowScripts,typeof E=="string"?((function(ie){if(!w||typeof console>"u"||te===ie)return;const N=(function(ht){return new Set(ht.trim().toLowerCase().split(/\s+/).filter(Boolean))})(ie);N.has("allow-scripts")&&N.has("allow-same-origin")&&(te=ie,console.warn("[markstream-vue] htmlPreviewSandbox contains both allow-scripts and allow-same-origin. Use this only for fully trusted content served from an isolated origin."))})(E),E):E!==void 0?"":z===!0?"allow-scripts":"";var E,z});function r(E){var z;E.key!=="Escape"&&E.key!=="Esc"||(z=M.onClose)==null||z.call(M)}return Ho(()=>{typeof window<"u"&&window.addEventListener("keydown",r)}),No(()=>{typeof window<"u"&&window.removeEventListener("keydown",r)}),(E,z)=>(G(),bn(ji,{to:"body"},[b("div",{class:mt(["markstream-vue",{dark:M.isDark}])},[b("div",{class:"html-preview-frame__backdrop",onClick:z[2]||(z[2]=ie=>{var N;return(N=M.onClose)==null?void 0:N.call(M)})},[b("div",{class:"html-preview-frame",onClick:z[1]||(z[1]=Ro(()=>{},["stop"]))},[b("div",hr,[b("div",gr,[z[3]||(z[3]=b("span",{class:"html-preview-frame__dot"},null,-1)),b("span",yr,Me(M.title||V(ne)("common.preview")||"Preview"),1)]),b("button",{type:"button",class:"html-preview-frame__close",onClick:z[0]||(z[0]=ie=>{var N;return(N=M.onClose)==null?void 0:N.call(M)})}," × ")]),b("iframe",{class:"html-preview-frame__iframe",sandbox:be.value,referrerpolicy:"no-referrer",srcdoc:we.value},null,8,wr)])])],2)]))}}),[["__scopeId","data-v-24e66176"]]),kr=["data-markstream-enhanced","data-markstream-enhancement-state","data-markstream-code-block-state","data-markstream-pending","data-markstream-viewport-pending"],xr={class:"code-header-main"},Sr=["innerHTML"],Cr={class:"code-header-copy"},Mr={class:"code-header-title"},Br={key:0,class:"code-header-caption"},Er=["data-markstream-host-hidden"],$o="__markstreamMonacoPassiveTouchState__",Lr=zo(vl({__name:"CodeBlockNode",props:{node:{},isDark:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},theme:{},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showPreviewButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},showTooltips:{type:Boolean},htmlPreviewAllowScripts:{type:Boolean},htmlPreviewSandbox:{},customId:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},estimatedHeightPx:{},estimatedContentHeightPx:{},estimatedDiffInline:{type:Boolean}},emits:["previewCode","copy"],setup(x,{emit:M}){var w,te,ne,we,be;const r=x,E=M,z=Ci(),ie=dl(Mi,null),N=dl("markstreamHostScrollManaged",null),ht=dl(Bi,void 0),Ge=k(()=>Ii(r,z)),Be=new Set;function gt(e){return q(this,null,function*(){var t;if(typeof window>"u")return yield e();const n=(t=window.Element)==null?void 0:t.prototype,l=n?.addEventListener;if(!n||!l)return yield e();const o=(function(){const d=window,u=d[$o];if(u)return u;const a={depth:0,original:null};return d[$o]=a,a})();let i=null;try{o.depth===0&&(o.original=l,n.addEventListener=function(u,a,c){var s;const v=(s=o.original)!=null?s:l;return u==="touchstart"&&(function(p,y){if(!p)return!1;const h=p;return!(typeof h.closest!="function"||!h.closest(".monaco-editor, .monaco-diff-editor")||y&&typeof y=="object"&&"passive"in y)})(this,c)?v.call(this,u,a,(function(p){return p==null?{passive:!0}:typeof p=="boolean"?{capture:p,passive:!0}:typeof p=="object"?"passive"in p?p:Ce(I({},p),{passive:!0}):{passive:!0}})(c)):v.call(this,u,a,c)}),o.depth++;let d=!1;i=()=>{d||(d=!0,Be.delete(i),o.depth=Math.max(0,o.depth-1),o.depth===0&&o.original&&n.addEventListener!==o.original&&(n.addEventListener=o.original,o.original=null))},Be.add(i)}catch{return yield e()}try{return yield e()}finally{i?.()}})}function pl(e,t){}const Vt=Co(),Gt=k(()=>{const e=Vt?.vnode.props;return!(!e||!e.onPreviewCode&&!e["onPreview-code"])}),{t:Y}=ml(),f=O(null),$=O(null),yt=O(!1),ke=O(oo(r.node.language,r.node.code,Ue())),kn=k(()=>Bo(ke.value)),Ee=k(()=>kn.value==="plaintext"?"text":kn.value),xn=k(()=>kn.value==="plaintext"),Fe=O(!1),xe=O(!1),Q=O(!1),Se=O(!1),W=O(!1),wt=O(!1);let B=!1,bt=null,Bt=null,Je=null,Ye=0,Qe=!1,qe="";const We=O(null),ve=O(null);let Sn=null,Cn=0,Mn=!1;const Do=Ei(),Jt=Fi(),Bn=Pi(),_e=$i(null),Z=O(typeof window>"u"||!Bn.value),Ao=(ne=(te=(w=Co())==null?void 0:w.vnode.el)==null?void 0:te.textContent)!=null?ne:"",jo=typeof window<"u"&&String((we=r.node.code)!=null?we:"").length>0&&Ao.includes(String(r.node.code)),hl=O(!jo);Ho(()=>{hl.value=!0}),typeof window<"u"&&ae([()=>$.value,Bn],([e,t],n,l)=>{var o,i,d;if((o=_e.value)==null||o.destroy(),_e.value=null,!t||Z.value)return void(Z.value=!0);if(!e)return void(Z.value=!1);let u=!0;const a=(d=(i=Jt?.value.heavyBlockMargin)!=null?i:Jt?.value.rootMargin)!=null?d:"0px",c=Do(e,{rootMargin:a,allowIdle:!1});_e.value=c,Z.value=Z.value||c.isVisible.value,c.whenVisible.then(()=>{u&&_e.value===c&&(Z.value=!0)}).catch(()=>{}),l(()=>{u=!1,c.destroy(),_e.value===c&&(_e.value=null)})},{immediate:!0}),Li(()=>{var e;B=!0;for(const t of Array.from(Be))t();(function(){const t=qe;ie&&t&&(qe="",ie.markSettled(t))})(),(e=_e.value)==null||e.destroy(),_e.value=null});let ue=null,Yt=null,En=()=>{},Qt=()=>{},kt=()=>null,se=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),U=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),Fn=()=>{},Xe=()=>{},Pn=()=>{},Ke=null,$e=null,Et=null,Ft=null,gl=()=>{var e;return String((e=r.node.language)!=null?e:"plaintext")},Ln=()=>q(null,null,function*(){}),On=!1,Xt=null;const ze=[],$n=[];let He=null;const m=k(()=>zi(r.node)),Ze=O({removed:0,added:0}),qo=k(()=>`-${Ze.value.removed} +${Ze.value.added}`),yl=Object.freeze(Ce(I({},jt),{enabled:!1,revealLineCount:0}));function wl(e){var t,n,l;const o=((n=(t=$.value)==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t).width)||((l=$.value)==null?void 0:l.clientWidth)||(typeof window>"u"?0:window.innerWidth);return Di(e,o)}function Pt(e,t){return{original:Kt(e),updated:Kt(t)}}function Kt(e){return String(e??"").replace(/\r\n$|\n$|\r$/,"")}function Lt(e){var t;return String((t=e?.message)!=null?t:e).includes("no diff result available")}function xt(){if(!Oe())try{const e=Pn();e&&typeof e.catch=="function"&&e.catch(t=>{Lt(t)})}catch(e){Lt(e)}}const re=k(()=>{var e,t,n,l;const o=r.monacoOptions?I({},r.monacoOptions):{};if(!m.value)return I({lineDecorationsWidth:0,lineNumbersMinChars:2,glyphMargin:!1},o);const i=o.diffHideUnchangedRegions===void 0?I({},jt):gn(o.diffHideUnchangedRegions),d=o.hideUnchangedRegions===void 0?void 0:gn(o.hideUnchangedRegions),u=r.stream!==!1&&r.loading!==!1,a=u?I({},yl):i,c=u?I({},yl):d,s=(function(g){return g.diffWordWrap!==void 0?g.diffWordWrap:"off"})(o),v=I({},(e=o.experimental)!=null?e:{}),p=(t=o.diffUnchangedRegionStyle)!=null?t:"line-info",y=(function(g){const X=g.scrollbar&&typeof g.scrollbar=="object"?g.scrollbar:{};return I(Ce(I({},X),{verticalScrollbarSize:0,horizontalScrollbarSize:0}),wl(g)?{horizontal:"hidden"}:{})})(o),h={maxComputationTime:0,diffAlgorithm:"legacy",ignoreTrimWhitespace:!1,renderIndicators:!0,diffUpdateThrottleMs:120,renderLineHighlight:"none",renderLineHighlightOnlyWhenFocus:!0,selectionHighlight:!1,occurrencesHighlight:"off",matchBrackets:"never",lineDecorationsWidth:4,lineNumbersMinChars:2,glyphMargin:!1,padding:{top:0,bottom:0},minimap:{enabled:!1},renderOverviewRuler:!1,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,diffWordWrap:s,renderSideBySide:(n=o.renderSideBySide)==null||n,diffHideUnchangedRegions:a,useInlineViewWhenSpaceIsLimited:(l=o.useInlineViewWhenSpaceIsLimited)!=null&&l,diffLineStyle:"background",diffAppearance:"auto",diffUnchangedRegionStyle:p,diffHunkActionsOnHover:!1,experimental:v};return Ce(I(Ce(I(I({},h),o),{experimental:v}),c===void 0?{}:{hideUnchangedRegions:c}),{diffHideUnchangedRegions:a,diffWordWrap:s,scrollbar:y})}),zn=k(()=>(r.theme!==void 0?!fo(r.theme):vo(r.darkTheme,r.lightTheme))?(function(e){var t,n;if(e&&typeof e=="object"&&((t=e.colors)!=null&&t["editor.background"])){const o=Kn(e.colors["editor.background"]);if(o!=null)return o<128}const l=((n=rt(e))!=null?n:"").toLowerCase();return l?["dark","night","moon","black","dracula","mocha","frappe","macchiato","palenight","ocean","poimandres","monokai","laserwave","tokyo","slack-dark","rose-pine","github-dark","material-theme","one-dark","catppuccin-mocha","catppuccin-frappe","catppuccin-macchiato"].some(o=>l.includes(o))&&!["light","latte","dawn","lotus"].some(o=>l.includes(o)):!!r.isDark})(Tt()):!!r.isDark),Hn=k(()=>{var e;if(!m.value)return zn.value?"dark":"light";const t=(e=re.value)==null?void 0:e.diffAppearance;return t==="light"||t==="dark"?t:zn.value?"dark":"light"}),bl=k(()=>m.value?Hn.value==="dark":zn.value),Ot=k(()=>m.value?"diff":"single"),kl=O(Ot.value),ge=O(!1),D=O(!1),$t=O(!1),me=O(!1),et=O(null),Nn=O(0),xl=O(0),Zt=O(!1);let zt=null,tt=!1,Tn=null,Rn=!1;const Dn=k(()=>{var e,t,n;if(m.value){const o=(e=re.value)==null?void 0:e.diffWordWrap;if(o==="inherit"){const i=(t=r.monacoOptions)==null?void 0:t.wordWrap;return i==null||String(i)!=="off"}return o==="on"}const l=(n=r.monacoOptions)==null?void 0:n.wordWrap;return l==null||String(l)!=="off"}),Ie=k(()=>{var e;return!!m.value&&wl((e=re.value)!=null?e:{})}),An=k(()=>{var e;const t=(e=r.monacoOptions)==null?void 0:e.diffHideUnchangedRegions;return t===void 0?I({},jt):gn(t)});function Sl(e){return N?.value===!0||!!e&&(!!e.closest('[data-markstream-virtual-timeline="1"], .markstream-virtual-timeline')||!!e.closest(".vue-recycle-scroller, [data-virtualizer], [data-virtual-scroll-root]"))}const Wo=k(()=>Sl($.value)),Ne=k(()=>!(ge.value||!me.value&&D.value)),Cl=k(()=>Ne.value),_o=k(()=>Ne.value&&!$t.value),Io=k(()=>!ge.value&&!me.value&&Ne.value),Uo=k(()=>D.value&&!ge.value?"ready":me.value?"fallback":"pending"),en=O(!1),Te=k(()=>Kt(r.node.code)),Ml=k(()=>m.value?r.node.diff===!0?r.node:Ce(I({},r.node),{diff:!0}):Te.value===r.node.code?r.node:Ce(I({},r.node),{code:Te.value})),pe=O(typeof((be=r.monacoOptions)==null?void 0:be.fontSize)=="number"?r.monacoOptions.fontSize:Number.NaN),_=O(pe.value),jn=O(null),tn=O(null),nn=O(null),Vo=k(()=>{const e=pe.value,t=_.value;return typeof e=="number"&&Number.isFinite(e)&&e>0&&typeof t=="number"&&Number.isFinite(t)&&t>0}),ln=k(()=>{var e;const t=jn.value;if(typeof t=="number"&&Number.isFinite(t)&&t>0)return t;const n=(e=r.monacoOptions)==null?void 0:e.fontSize;if(typeof n=="number"&&Number.isFinite(n)&&n>0)return n;const l=_.value;return typeof l=="number"&&Number.isFinite(l)&&l>0?l:12}),Go=k(()=>{var e;const t=tn.value;if(typeof t=="number"&&Number.isFinite(t)&&t>0)return t;const n=(e=r.monacoOptions)==null?void 0:e.lineHeight;return typeof n=="number"&&Number.isFinite(n)&&n>0?n:ln.value===12?18:Math.max(12,Math.round(1.5*ln.value))}),on=k(()=>Go.value),Jo=k(()=>{var e;const t=(e=r.monacoOptions)==null?void 0:e.tabSize;return typeof t=="number"&&Number.isFinite(t)&&t>0?t:4}),qn=k(()=>{var e;const t=(e=r.monacoOptions)==null?void 0:e.padding,n=m.value?0:8;return{top:typeof t?.top=="number"&&Number.isFinite(t.top)&&t.top>=0?t.top:n,bottom:typeof t?.bottom=="number"&&Number.isFinite(t.bottom)&&t.bottom>=0?t.bottom:n}}),rn=k(()=>{const e=r.estimatedContentHeightPx;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null});function an(e){if(e==null)return null;const t=Math.ceil(e);return!Number.isFinite(t)||t<=0?null:Math.min(t,Math.ceil(Ct()))}function Wn(){return!m.value&&r.stream!==!1&&r.loading!==!1}const Bl=k(()=>m.value?null:rn.value==null||Wn()?Math.ceil((e=>{const t=String(e??"");return t?Math.max(1,t.split(/\r\n|\n|\r/).length):1})(Te.value)*on.value+1):null),El=k(()=>{if(m.value)return null;const e=rn.value;return e==null||Wn()?an(Bl.value):an(e)}),Yo=k(()=>{const e=r.estimatedHeightPx;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}),_n=O(null);function nt(){const e=_n.value;return typeof e=="number"&&Number.isFinite(e)&&e>0?Math.round(e):null}const In=k(()=>{const e=nt();return e??(!m.value&&Zt.value?null:Ne.value||!D.value?El.value:null)});function Fl(e){const t=e?"hsl(152 42% 60%)":"var(--diff-added-fg)",n=e?"hsl(0 58% 58%)":"var(--diff-removed-fg)",l=e?"hsl(152 42% 60% / 0.18)":"var(--diff-added-bg)",o=e?"hsl(0 58% 58% / 0.18)":"var(--diff-removed-bg)",i=e?"hsl(152 42% 60% / 0.28)":"var(--diff-added-inline-bg)",d=e?"hsl(0 58% 58% / 0.28)":"var(--diff-removed-inline-bg)",u=`linear-gradient(90deg, ${t} 0 4px, transparent 4px 100%)`,a=`linear-gradient(90deg, ${n} 0 4px, transparent 4px 100%)`,c=e?"hsl(0 0% 7% / 0.98)":"hsl(var(--ms-muted) / 0.45)",s="var(--markstream-code-layout-character-width, 1ch)",v=`calc(${s} + ${s})`,p=`calc(${s} + ${s} + ${s} + ${s} + ${s} + 2px)`,y=`calc(${p} + ${s})`;return{"--markstream-diff-line-number-bg":c,"--markstream-diff-added-fg":t,"--markstream-diff-removed-fg":n,"--markstream-diff-added-line":l,"--markstream-diff-removed-line":o,"--markstream-diff-added-line-fill":l,"--markstream-diff-removed-line-fill":o,"--markstream-diff-added-gutter":u,"--markstream-diff-removed-gutter":a,"--markstream-diff-added-inline":i,"--markstream-diff-removed-inline":d,"--stream-monaco-added-fg":t,"--stream-monaco-removed-fg":n,"--stream-monaco-added-line":l,"--stream-monaco-removed-line":o,"--stream-monaco-added-line-fill":l,"--stream-monaco-removed-line-fill":o,"--stream-monaco-added-gutter":u,"--stream-monaco-removed-gutter":a,"--stream-monaco-added-inline":i,"--stream-monaco-removed-inline":d,"--stream-monaco-gutter-marker-width":"4px","--stream-monaco-gutter-gap":"1ch","--stream-monaco-line-number-left":"0px","--stream-monaco-line-number-width":v,"--stream-monaco-line-number-padding-left":v,"--stream-monaco-line-number-padding-right":s,"--stream-monaco-line-number-separator-width":"2px","--stream-monaco-layout-character-width":s,"--stream-monaco-line-number-box-width":p,"--stream-monaco-line-number-gap-to-code":s,"--stream-monaco-line-number-bg":c,"--stream-monaco-diff-code-gap":s,"--stream-monaco-diff-code-padding":"0px","--stream-monaco-original-margin-width":y,"--stream-monaco-original-scrollable-left":y,"--stream-monaco-original-scrollable-width":`calc(100% - ${y})`,"--stream-monaco-modified-margin-width":y,"--stream-monaco-modified-scrollable-left":y,"--stream-monaco-modified-scrollable-width":`calc(100% - ${y})`}}const Pl=k(()=>{var e;const t=(e=r.monacoOptions)==null?void 0:e.fontFamily,n=an(rn.value),l=an(Bl.value),o=Wn(),i=I(I({fontSize:`${ln.value}px`,lineHeight:`${on.value}px`,tabSize:Jo.value,boxSizing:"border-box",maxHeight:`${Ct()}px`,overflow:"auto",paddingTop:`${qn.value.top}px`,paddingBottom:`${qn.value.bottom}px`},m.value||n==null||o?m.value||l==null?{}:{minHeight:`${l}px`}:{height:`${n}px`,minHeight:`${n}px`}),typeof t=="string"&&t.trim()?{"--markstream-code-font-family":t.trim()}:{});return i["--markstream-pre-line-number-top"]=`${qn.value.top}px`,i["--markstream-code-padding-left"]="calc(2ch + 2ch + 1ch + 2px + 1ch)",i["--markstream-pre-line-number-left"]="0px",i["--markstream-pre-line-number-width"]="2ch",i["--markstream-pre-line-number-padding-left"]="2ch",i["--markstream-pre-line-number-padding-right"]="1ch",i["--markstream-pre-line-number-separator-width"]="2px",m.value&&(i["--markstream-pre-diff-line-height"]=`${on.value}px`,i["--markstream-pre-diff-pane-bottom-padding"]=(Ie.value,"0px"),Object.assign(i,Fl(bl.value))),i}),Ll=k(()=>In.value!=null&&(!D.value||nt()!=null)),Qo=k(()=>{const e=In.value;if(e==null)return null;if(m.value)return Math.ceil(e);const t=Yo.value,n=rn.value;if(t==null||n==null)return Math.ceil(e);const l=Math.max(0,Math.ceil(t)-Math.ceil(n));return Math.ceil(e+l)}),Xo=k(()=>{if(m.value&&Ne.value)return{};const e=In.value;return Ll.value&&e!=null?{minHeight:`${e}px`}:{}});function Ol(){var e,t,n,l,o,i,d,u;const a=(e=$.value)==null?void 0:e.querySelector("pre.code-pre-fallback"),c=U(),s=(t=a?.scrollTop)!=null?t:0;(o=(l=(n=c?.getOriginalEditor)==null?void 0:n.call(c))==null?void 0:l.setScrollTop)==null||o.call(l,s),(u=(d=(i=c?.getModifiedEditor)==null?void 0:i.call(c))==null?void 0:d.setScrollTop)==null||u.call(d,s)}function $l(){return q(this,null,function*(){return m.value?(Zn()!=null||un(),ee(!0),Ol(),he(),$t.value=!0,yield j(),ee(!0),yield Pe(),ee(!0),!(Ke&&!(yield Ke())||(Nt(),un(),ee(!0),D.value=!0,yield j(),un(),ee(!0),Nt(),he(),de(),0))):!(Ke&&!(yield Ke())||(D.value=!0,yield j(),le(!1),ee(),0))})}function un(){const e=f.value;return e&&cn(e)?(he(),le({preferModelDiffHeight:!0}),it(),Number.parseFloat(e.style.height||"")||null):Zn()}function zl(){if(!m.value||!W.value||!D.value||Ne.value)return!1;const e=f.value;return!!e&&Ht(e)}function Hl(e,t=!1,n={}){const l=Math.ceil(e),o=nt();if(o==null)return l;const i=n.allowBelowEstimatedFloor===!0||zl();return l>=o||i?((t||i)&&W.value&&(_n.value=null),l):o}function Pe(){return new Promise(e=>{let t=!1,n=null,l=null;const o=()=>{t||(t=!0,l!=null&&globalThis.clearTimeout(l),n!=null&&yn(n),e())};l=globalThis.setTimeout(o,50),n=fe(o)})}function Nl(){try{const e=f.value;if(!e)return null;const t=e.querySelector(".view-lines .view-line");if(t){const n=Math.ceil(t.getBoundingClientRect().height);if(n>0)return n}}catch{}return null}function Un(){var e,t,n,l,o;try{const i=m.value?(n=(t=(e=U())==null?void 0:e.getModifiedEditor)==null?void 0:t.call(e))!=null?n:U():se(),d=kt(),u=(l=d?.EditorOption)==null?void 0:l.fontInfo;if(i&&u!=null){const a=(o=i.getOption)==null?void 0:o.call(i,u),c=a?.fontSize;if(typeof c=="number"&&Number.isFinite(c)&&c>0)return c}}catch{}try{const i=f.value;if(i){const d=i.querySelector(".view-lines .view-line");if(d)try{if(typeof window<"u"&&typeof window.getComputedStyle=="function"){const u=window.getComputedStyle(d).fontSize,a=u&&u.match(/^(\d+(?:\.\d+)?)/);if(a)return Number.parseFloat(a[1])}}catch{}}}catch{}return null}function St(e){var t,n;try{const i=kt(),d=(t=i?.EditorOption)==null?void 0:t.lineHeight;if(d!=null){const u=(n=e?.getOption)==null?void 0:n.call(e,d);if(typeof u=="number"&&u>0)return u}}catch{}const l=Nl();if(l&&l>0)return l;const o=Number.isFinite(_.value)&&_.value>0?_.value:14;return Math.max(12,Math.round(1.35*o))}function sn(e){var t,n,l;try{const i=kt(),d=(t=i?.EditorOption)==null?void 0:t.padding;if(d!=null){const u=(n=e?.getOption)==null?void 0:n.call(e,d);if(typeof u?.top=="number"||typeof u?.bottom=="number")return(typeof u?.top=="number"&&Number.isFinite(u.top)?Math.max(0,u.top):0)+(typeof u?.bottom=="number"&&Number.isFinite(u.bottom)?Math.max(0,u.bottom):0)}}catch{}const o=(l=re.value)==null?void 0:l.padding;return typeof o?.top=="number"||typeof o?.bottom=="number"?(typeof o?.top=="number"&&Number.isFinite(o.top)?Math.max(0,o.top):0)+(typeof o?.bottom=="number"&&Number.isFinite(o.bottom)?Math.max(0,o.bottom):0):m.value?24:0}function Tl(e,t){return typeof e!="number"||typeof t!="number"||e<1||t=o&&d>=o&&n[i]===l[d];)i--,d--;const u=Math.max(0,i-o+1),a=Math.max(0,d-o+1);if(u===0||a===0)return{removed:u,added:a};if((u+1)*(a+1)<=15e5){const c=a+1;let s=new Uint32Array(c),v=new Uint32Array(c);for(let y=u-1;y>=0;y--){v[a]=0;for(let g=a-1;g>=0;g--)v[g]=n[o+y]===l[o+g]?s[g+1]+1:Math.max(s[g],v[g+1]);const h=s;s=v,v=h}const p=s[0];return{removed:u-p,added:a-p}}return{removed:u,added:a}}function Dl(e){var t;if(!(function(){var d,u,a;return!(!m.value||!Ie.value)&&(r.node.originalCode!=null||r.node.updatedCode!=null?dn(String((d=r.node.originalCode)!=null?d:""),String((u=r.node.updatedCode)!=null?u:"")).removed>0:String((a=r.node.code)!=null?a:"").split(/\r\n|\n|\r/).some(c=>(function(s){return s.startsWith("-")&&!s.startsWith("---")})(c)))})())return!0;const n=e?.querySelector(".stream-monaco-fallback-inline-delete-line");if((t=n?.textContent)!=null&&t.trim()&&(n.hasAttribute("data-stream-monaco-colorize-signature")||n.querySelector('[class*="mtk"]')))return!0;const l=e?.querySelector([".editor.modified .view-zones .view-lines.line-delete",".editor.modified .view-lines .view-line.line-delete",".editor.original .view-zones .view-lines.line-delete",".editor.original .view-lines .view-line.line-delete"].join(","));if(!l||!l.matches(".view-line")&&!l.querySelector(".view-line"))return!1;const o=l.getBoundingClientRect(),i=e?.getBoundingClientRect();return i?.width===0&&i.height===0||o.width>0&&o.height>0}function Al(e,t){if(!e)return!1;const n=t.added<=0||!!e.querySelector([".line-insert",".gutter-insert",".stream-monaco-fallback-line-insert",".stream-monaco-fallback-gutter-insert",".stream-monaco-fallback-line-number-insert"].join(",")),l=t.removed<=0||!!e.querySelector([".line-delete",".gutter-delete",".inline-deleted-margin-view-zone",".stream-monaco-fallback-line-delete",".stream-monaco-fallback-gutter-delete",".stream-monaco-fallback-line-number-delete",".stream-monaco-fallback-inline-delete-line",".stream-monaco-fallback-inline-delete-margin"].join(","));return n&&l}function Vn(e,t){const n=e?.querySelector(t);return n instanceof HTMLElement?typeof window>"u"||typeof window.getComputedStyle!="function"?n:window.getComputedStyle(n).display==="none"?null:n:null}function jl(e,t){return Vn(e,t)!==null}function ql(e,t){if(!e)return!1;const n=t.added<=0||[".gutter-insert",".stream-monaco-fallback-gutter-insert"].some(o=>jl(e,o)),l=t.removed<=0||[".gutter-delete",".inline-deleted-margin-view-zone",".stream-monaco-fallback-gutter-delete",".stream-monaco-fallback-inline-delete-margin"].some(o=>jl(e,o));return n&&l}function Wl(e){var t;const n=Array.from((t=e?.querySelectorAll(".monaco-diff-editor .margin-view-overlays .line-numbers"))!=null?t:[]);return!!n.length&&n.some(l=>{var o;if(!((o=l.textContent)!=null&&o.trim()))return!1;if(typeof window>"u"||typeof window.getComputedStyle!="function")return!0;const i=window.getComputedStyle(l);if(i.display==="none")return!1;const d=l.getBoundingClientRect();if(d.width<=0&&d.height<=0)return!0;const u=Number.parseFloat(i.width||""),a=Number.parseFloat(i.paddingLeft||""),c=Number.parseFloat(i.paddingRight||""),s=Math.max(d.width,Number.isFinite(u)?u:0)>=8,v=Number.isFinite(a)&&a>=1&&Number.isFinite(c)&&c>=1;return s&&v})}function _l(e){const t=Vn(e,".monaco-diff-editor .view-lines .view-line");if(!t)return!1;if(!Jn())return!0;const n=Vn(e,".monaco-diff-editor .margin-view-overlays .line-numbers");if(!n)return!1;if(typeof window>"u"||typeof window.getComputedStyle!="function")return!0;const l=t.getBoundingClientRect(),o=n.getBoundingClientRect();if(l.width<=0&&l.height<=0||o.width<=0&&o.height<=0)return!0;const i=l.left-o.right;return i>=0&&i<=32}function Ko(e,t){return!Ie.value||!(t||e?.querySelector([".line-insert",".line-delete",".gutter-insert",".gutter-delete",".stream-monaco-line-number-insert",".stream-monaco-line-number-delete",".stream-monaco-line-insert-fill",".stream-monaco-line-delete-fill",".stream-monaco-fallback-line-insert",".stream-monaco-fallback-line-delete",".stream-monaco-fallback-inline-delete-line"].join(",")))||!!(e?.classList.contains("stream-monaco-diff-inline-native-ready")&&!e.classList.contains("stream-monaco-diff-native-stale"))}function Il(e,t,n,l){const o=e?.querySelector(`.monaco-diff-editor .editor.${t}`);if(!o)return!1;const i=Array.from(o.querySelectorAll(`.margin-view-overlays .line-numbers.${n}`));if(!i.length)return!0;const d=Array.from(o.querySelectorAll(".lines-content > .view-lines:not(.line-delete) > .view-line"));return!!d.length&&i.every(u=>{const a=u.getBoundingClientRect();let c=null;for(const s of d){const v=s.getBoundingClientRect(),p=Math.abs(v.top-a.top);(!c||p1.25||c.node.classList.contains(l)})}function Zo(e,t){if(!e)return!1;const n=t.added<=0||Il(e,"modified","stream-monaco-line-number-insert","stream-monaco-line-insert-fill"),l=t.removed<=0||(Ie.value?!!e.classList.contains("stream-monaco-diff-inline-native-ready"):Il(e,"original","stream-monaco-line-number-delete","stream-monaco-line-delete-fill"));return n&&l}function Gn(e){if(xn.value)return!0;if(!e)return!1;const t=Array.from(e.querySelectorAll(".monaco-diff-editor .view-lines .view-line, .monaco-editor .view-lines .view-line")).filter(l=>{var o;if(!((o=l.textContent)!=null&&o.trim()))return!1;const i=l.getBoundingClientRect();return i.width>0||i.height>0});if(!t.length)return!1;const n=t.filter(l=>{var o,i;return i=(o=l.textContent)!=null?o:"",/['"`{}()[\]:;=<>.,]|\/\/|\/\*|\b(?:async|await|class|const|enum|export|for|function|if|import|interface|let|return|switch|type|var|while)\b/.test(i.replace(/\u00A0/g," ").trim())});return!n.length||n.filter(l=>Array.from(l.querySelectorAll("span")).filter(o=>{var i;return(i=o.textContent)==null?void 0:i.trim()}).some(o=>String(o.className||"").split(/\s+/).some(i=>/^mtk\d+$/.test(i)&&i!=="mtk1"))).length>0}function Jn(){const e=re.value;return e?.lineNumbers!=="off"}function Yn(){var e,t;m.value?Ze.value=dn(String((e=r.node.originalCode)!=null?e:""),String((t=r.node.updatedCode)!=null?t:"")):Ze.value={removed:0,added:0}}function lt(){var e;if(m.value)try{const t=U(),n=(e=t?.getLineChanges)==null?void 0:e.call(t);if(!Array.isArray(n))return void Yn();let l=0,o=0;for(const i of n)l+=Tl(i.originalStartLineNumber,i.originalEndLineNumber),o+=Tl(i.modifiedStartLineNumber,i.modifiedEndLineNumber);Ze.value={removed:l,added:o}}catch{Yn()}else Ze.value={removed:0,added:0}}function Qn(){var e;if(Number.isFinite(_.value)&&_.value>0&&Number.isFinite(pe.value))return _.value;const t=Un();return typeof((e=r.monacoOptions)==null?void 0:e.fontSize)=="number"?(pe.value=r.monacoOptions.fontSize,_.value=r.monacoOptions.fontSize,_.value):t&&t>0?(pe.value=t,_.value=t,t):(pe.value=12,_.value=12,12)}function ei(){const e=Qn(),t=Math.min(36,e+1);_.value=t}function ti(){const e=Qn(),t=Math.max(10,e-1);_.value=t}function ni(){Qn(),Number.isFinite(pe.value)&&(_.value=pe.value)}function Ul(){var e,t,n,l,o,i,d,u,a,c,s,v,p,y;try{const h=m.value?U():null,g=m.value?h:se();if(!g)return null;if(h?.getOriginalEditor&&h?.getModifiedEditor){const C=(e=h.getOriginalEditor)==null?void 0:e.call(h),S=(t=h.getModifiedEditor)==null?void 0:t.call(h);(n=C?.layout)==null||n.call(C),(l=S?.layout)==null||l.call(S);const F=((o=C?.getContentHeight)==null?void 0:o.call(C))||0,P=((i=S?.getContentHeight)==null?void 0:i.call(S))||0,T=Math.max(F,P);if(T>0)return Math.ceil(T);const R=((a=(u=(d=C?.getModel)==null?void 0:d.call(C))==null?void 0:u.getLineCount)==null?void 0:a.call(u))||1,A=((v=(s=(c=S?.getModel)==null?void 0:c.call(S))==null?void 0:s.getLineCount)==null?void 0:v.call(s))||1,H=Math.max(R,A),J=Math.max(St(C),St(S)),K=Math.max(sn(C),sn(S));return Math.ceil(H*J+K+0)}if(g?.getContentHeight){(p=g?.layout)==null||p.call(g);const C=g.getContentHeight();if(C>0)return m.value||(Zt.value=!0),Math.ceil(C)}const X=(y=g?.getModel)==null?void 0:y.call(g);let ce=1;X&&typeof X.getLineCount=="function"&&(ce=X.getLineCount());const L=St(g);return Math.ceil(ce*(L+1.5)+0)}catch{return null}}function Vl(){var e,t;if(m.value)return!1;try{const n=(t=(e=se())==null?void 0:e.getContentHeight)==null?void 0:t.call(e),l=typeof n=="number"&&Number.isFinite(n)&&n>0;return l&&(Zt.value=!0),l}catch{return!1}}function Xn(e){var t,n,l;if(typeof window>"u")return null;try{const o=e.getBoundingClientRect(),i=window.getComputedStyle(e);if(i.display==="none"||i.visibility==="hidden")return null;const d=e.querySelector("diffs-container");if(d instanceof HTMLElement){const c=d.getBoundingClientRect();if(c.height>0&&c.bottom>o.top)return Math.ceil(c.bottom-o.top)}const u=[".editor.original .view-lines .view-line",".editor.modified .view-lines .view-line",".editor.original .view-zones > div",".editor.modified .view-zones > div",".editor.original .margin-view-zones > div",".editor.modified .margin-view-zones > div",".editor.original .diff-hidden-lines",".editor.modified .diff-hidden-lines",".stream-monaco-diff-unchanged-bridge"];let a=0;for(const c of Array.from(e.querySelectorAll(u.join(",")))){if(!(c instanceof HTMLElement)||((t=c.parentElement)!=null&&t.classList.contains("view-zones")||(n=c.parentElement)!=null&&n.classList.contains("margin-view-zones"))&&!((l=c.textContent)!=null&&l.trim()||c.matches(".line-delete, .line-insert, .cdr")||c.querySelector(".diff-hidden-lines, .stream-monaco-diff-unchanged-bridge, .line-delete, .line-insert, .cdr")))continue;const s=window.getComputedStyle(c);if(s.display==="none"||s.visibility==="hidden"||Number.parseFloat(s.opacity||"1")<=.01)continue;const v=c.getBoundingClientRect();v.height<=0||v.bottom<=o.top||(a=Math.max(a,v.bottom-o.top))}return a>0?Math.ceil(a):null}catch{return null}}function Ht(e){if(typeof window>"u")return!1;const t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;const n=e.querySelectorAll(".editor.modified .diff-hidden-lines, .editor.original .diff-hidden-lines, .stream-monaco-diff-unchanged-bridge");for(const l of Array.from(n)){if(!(l instanceof HTMLElement))continue;const o=window.getComputedStyle(l);if(o.display==="none"||o.visibility==="hidden"||Number.parseFloat(o.opacity||"1")<=.01)continue;const i=l.getBoundingClientRect();if(!(i.width<=0||i.height<=0||i.bottom<=t.top||i.top>=t.bottom))return!0}return!1}function Kn(e){var t;const n=String(e??"").trim(),l=(t=n.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i))==null?void 0:t[1];if(l){const a=l.length===3?l.split("").map(c=>`${c}${c}`).join(""):l;return .2126*Number.parseInt(a.slice(0,2),16)+.7152*Number.parseInt(a.slice(2,4),16)+.0722*Number.parseInt(a.slice(4,6),16)}const o=n.match(/\d+(?:\.\d+)?/g);if(!o||o.length<3)return null;const[i,d,u]=o.slice(0,3).map(Number);return .2126*i+.7152*d+.0722*u}function Nt(){var e,t,n;if(Gl())return;const l=Un();l&&l>0&&(jn.value=l,_.value=l,pe.value=l);try{const o=St(m.value?(n=(t=(e=U())==null?void 0:e.getModifiedEditor)==null?void 0:t.call(e))!=null?n:U():se());o&&o>0&&(tn.value=o)}catch{}try{const o=Nl();o&&o>0&&(tn.value=o)}catch{}}function Gl(){return m.value&&Cl.value}function Zn(){var e;if(!m.value||!Ne.value)return null;const t=f.value,n=(e=$.value)==null?void 0:e.querySelector("pre.code-pre-fallback");if(!t||!n)return null;const l=Math.ceil(n.getBoundingClientRect().height);return!Number.isFinite(l)||l<=0?null:(t.style.height=`${l}px`,t.style.minHeight=`${l}px`,t.style.maxHeight=`${Math.ceil(Ct())}px`,t.style.overflow="hidden",l)}function el(){var e,t,n,l,o,i,d,u;const a=f.value,c=$.value;if(!a||!c)return;const s=a,v=a.querySelector(".monaco-editor")||a,p=v.querySelector(".monaco-editor-background")||v,y=v.querySelector(".view-lines")||v;let h=null,g=null,X=null;try{typeof window<"u"&&typeof window.getComputedStyle=="function"&&(h=window.getComputedStyle(v),g=p===v?h:window.getComputedStyle(p),X=y===v?h:window.getComputedStyle(y))}catch{h=null,g=null,X=null}const ce=String((e=h?.getPropertyValue("--vscode-editor-foreground"))!=null?e:"").trim(),L=String((t=h?.getPropertyValue("--vscode-editor-background"))!=null?t:"").trim(),C=String((l=(n=h?.getPropertyValue("--vscode-editor-selectionBackground"))!=null?n:h?.getPropertyValue("--vscode-editor-hoverHighlightBackground"))!=null?l:"").trim(),S=ce||String((i=(o=X?.color)!=null?o:h?.color)!=null?i:"").trim(),F=L||String((u=(d=g?.backgroundColor)!=null?d:h?.backgroundColor)!=null?u:"").trim(),P=(function(){var T,R,A,H,J;try{const K=m.value?(A=(R=(T=U())==null?void 0:T.getModifiedEditor)==null?void 0:R.call(T))!=null?A:U():se(),st=kt(),Dt=(H=st?.EditorOption)==null?void 0:H.fontInfo;if(K&&Dt!=null){const At=(J=K.getOption)==null?void 0:J.call(K,Dt),Ve=At?.typicalHalfwidthCharacterWidth;if(typeof Ve=="number"&&Number.isFinite(Ve)&&Ve>0)return Ve}}catch{}return null})();if(P!=null&&(nn.value=P),m.value){const T=(R,A)=>{A?(c.style.setProperty(R,A),s.style.setProperty(R,A)):(c.style.removeProperty(R),s.style.removeProperty(R))};for(const[R,A]of Object.entries(Fl(c.classList.contains("is-dark"))))T(R,A);return S?(c.style.setProperty("--markstream-diff-editor-fg",S),s.style.setProperty("--vscode-editor-foreground",S),s.style.setProperty("--stream-monaco-editor-fg",S)):(c.style.removeProperty("--markstream-diff-editor-fg"),s.style.removeProperty("--vscode-editor-foreground"),s.style.removeProperty("--stream-monaco-editor-fg")),F?(c.style.setProperty("--markstream-diff-editor-bg",F),c.style.setProperty("--markstream-diff-panel-bg",F),c.style.setProperty("--markstream-diff-panel-bg-soft",F),c.style.setProperty("--markstream-diff-panel-bg-strong",F),s.style.setProperty("--vscode-editor-background",F),s.style.setProperty("--stream-monaco-editor-bg",F),s.style.setProperty("--stream-monaco-fixed-editor-bg",F),s.style.setProperty("--stream-monaco-panel-bg",F),s.style.setProperty("--stream-monaco-panel-bg-soft",F),s.style.setProperty("--stream-monaco-panel-bg-strong",F),s.style.backgroundColor=F):(c.style.removeProperty("--markstream-diff-editor-bg"),c.style.removeProperty("--markstream-diff-panel-bg"),c.style.removeProperty("--markstream-diff-panel-bg-soft"),c.style.removeProperty("--markstream-diff-panel-bg-strong"),s.style.removeProperty("--vscode-editor-background"),s.style.removeProperty("--stream-monaco-editor-bg"),s.style.removeProperty("--stream-monaco-fixed-editor-bg"),s.style.removeProperty("--stream-monaco-panel-bg"),s.style.removeProperty("--stream-monaco-panel-bg-soft"),s.style.removeProperty("--stream-monaco-panel-bg-strong"),s.style.backgroundColor=""),void(C?s.style.setProperty("--vscode-editor-selectionBackground",C):s.style.removeProperty("--vscode-editor-selectionBackground"))}if((function(T,R,A){if(!xn.value)return!1;const H=Kn(T),J=Kn(R);return A?H!=null&&H>170||J!=null&&J<110:H!=null&&H<85||J!=null&&J>190})(F,S,c.classList.contains("is-dark")))return s.style.removeProperty("--vscode-editor-foreground"),s.style.removeProperty("--vscode-editor-background"),void s.style.removeProperty("--vscode-editor-selectionBackground");S&&s.style.setProperty("--vscode-editor-foreground",S),F&&s.style.setProperty("--vscode-editor-background",F),C&&s.style.setProperty("--vscode-editor-selectionBackground",C)}let tl=0,nl=0;const Jl=/auto|scroll|overlay/i;function Le(e,t,n){var l;if(typeof window>"u"||m.value||(function(s){return Wo.value||Sl(s)})(e))return;const o=Math.ceil(t),i=Math.ceil(n)-o;if(Math.abs(i)<=1)return;const d=(function(s){var v,p;if(typeof window>"u")return null;const y=(v=s?.ownerDocument)!=null?v:document,h=y.scrollingElement||y.documentElement||y.body;let g=(p=s?.parentElement)!=null?p:null;for(;g&&g!==y.body&&g!==h;){const X=window.getComputedStyle(g),ce=(X.overflowY||"").toLowerCase(),L=(X.overflow||"").toLowerCase();if(Jl.test(ce)||Jl.test(L))return g;g=g.parentElement}return h})(e);if(!d)return;const u=(l=e.ownerDocument)!=null?l:document,a=d===u.body||d===u.documentElement||d===u.scrollingElement,c=a?0:d.getBoundingClientRect().top;e.getBoundingClientRect().top-c>=0||(a&&typeof window.scrollBy=="function"?window.scrollBy(0,i):d.scrollTop+=i)}function ll(){try{const e=f.value;if(!e)return;const t=e.getBoundingClientRect().height,n=Ul();if(n!=null&&n>0){const o=Hl(n,!0,{allowBelowEstimatedFloor:!m.value&&W.value&&Vl()}),i=nt();return e.style.minHeight=i!=null?`${i}px`:"0px",e.style.height=`${o}px`,e.style.maxHeight="none",e.style.overflow="visible",void Le(e,t,o)}const l=nt();l!=null&&(e.style.minHeight=`${l}px`,e.style.height=`${l}px`,e.style.maxHeight="none",e.style.overflow="visible",Le(e,t,l))}catch{}}function ot(){for(var e,t;ze.length>0;)try{(t=(e=ze.pop())==null?void 0:e.dispose)==null||t.call(e)}catch{}bt!=null&&(yn(bt),bt=null),Bt!=null&&(yn(Bt),Bt=null),Je!=null&&(yn(Je),Je=null),Ye=0,Qe=!1}function Re(){for(var e;$n.length>0;)try{(e=$n.pop())==null||e()}catch{}}function le(e=!1){xe.value||(Fe.value?ll():(function(t={}){var n,l,o;try{const i=f.value;if(!i)return;const d=i.getBoundingClientRect().height,u=Ct(),a=Math.ceil(((n=i.getBoundingClientRect)==null?void 0:n.call(i).height)||0),c=Number.parseFloat(i.style.height||""),s=a>0?a:Number.isFinite(c)&&c>0?Math.ceil(c):0,v=m.value?(function(){var H,J,K,st,Dt,At,Ve,wo,bo,ko,xo,So;if(Oe())return null;try{const dt=U(),ct=(H=dt?.getOriginalEditor)==null?void 0:H.call(dt),ft=(J=dt?.getModifiedEditor)==null?void 0:J.call(dt);if(!ct||!ft)return null;const hi=((Dt=(st=(K=ct.getModel)==null?void 0:K.call(ct))==null?void 0:st.getLineCount)==null?void 0:Dt.call(st))||1,gi=((wo=(Ve=(At=ft.getModel)==null?void 0:At.call(ft))==null?void 0:Ve.getLineCount)==null?void 0:wo.call(Ve))||1,yi=Math.max(hi,gi),wi=Math.max(St(ct),St(ft)),bi=Math.max(sn(ct),sn(ft)),ki=Math.max((ko=(bo=ct.getContentHeight)==null?void 0:bo.call(ct))!=null?ko:0,(So=(xo=ft.getContentHeight)==null?void 0:xo.call(ft))!=null?So:0);return Math.ceil(Math.max(ki,yi*wi+bi+0))}catch{return null}})():null,p=m.value&&Ht(i),y=m.value&&cn(i),h=m.value&&i.classList.contains("stream-monaco-diff-native-stale"),g=p&&W.value&&D.value&&!Ne.value;if(p||(ve.value=null),Cn>0&&(Cn--,We.value!=null))return void Le(i,d,De(i,We.value,u,{allowBelowEstimatedFloor:g,preserveScrollableOverflow:ol(i)}));if(m.value&&!y&&!p&&Ne.value){const H=Zn();if(H!=null){const J=De(i,H,u,{allowBelowEstimatedFloor:!0});return ee(!0),void Le(i,d,J)}}const X=m.value&&t.preferModelDiffHeight===!0,ce=m.value?Xn(i):null,L=ce,C=!m.value&&W.value&&Vl(),S=m.value&&r.loading!==!1&&(L!=null||v!=null&&a>0&&v0&&v0&&v0?s:null:v;else P=Ul();if(m.value&&r.loading===!1&&h&&!g&&P!=null&&v!=null&&(P=Math.min(P,v)),m.value&&P!=null&&s>0&&(r.loading!==!1||r.loading===!1&&h&&!g||t.holdCurrentDiffHeight===!0&&!g)&&(P=Math.max(P,s)),P!=null&&P>0){const H=p&&ve.value!=null,J=p&&a>0&&a=u-1,K=De(i,H?Math.max(ve.value,P):J?a:P,u,{clearEstimatedFloor:!0,allowBelowEstimatedFloor:g||C||S,preserveScrollableOverflow:ol(i)});return p&&K0?v:0);if(T>0){const H=p&&ve.value!=null,J=p&&a>0&&a=u-1,K=De(i,H?Math.max(ve.value,T):J?a:T,u,{allowBelowEstimatedFloor:g});return p&&K0?Le(i,d,De(i,A,u,{allowBelowEstimatedFloor:g})):m.value||Le(i,d,De(i,u,u))}catch{}})(typeof e=="object"?e:{}))}function Yl(){tl=0,nl=0}function ee(e=!1){var t,n,l;if(xe.value)return;const o=f.value;if(!o)return;const i=m.value?U():se();if(i&&typeof i.layout=="function")try{const d=(t=o.getBoundingClientRect)==null?void 0:t.call(o),u=Math.ceil(((n=d?.width)!=null?n:0)||o.clientWidth||0),a=Math.ceil(((l=d?.height)!=null?l:0)||o.clientHeight||Number.parseFloat(o.style.height||"")||0);if(u>0&&a>0){if(!e&&u===tl&&a===nl)return;tl=u,nl=a,i.layout({width:u,height:a})}else Yl(),i.layout()}catch{}}function he(){if(!m.value)return void Re();const e=f.value;if(!e)return void Re();const t=e.querySelector(".monaco-diff-editor");if(!t||t.classList.contains("side-by-side"))return void Re();const n=Array.from(t.querySelectorAll(".editor.original .diff-hidden-lines")),l=Array.from(t.querySelectorAll(".editor.modified .diff-hidden-lines")),o=Math.min(n.length,l.length);for(let i=0;i div:first-child"),c=d.querySelector(".center");if(!u||!a||!c||c.querySelector(".markstream-inline-fold-proxy"))continue;const s=document.createElement("button");s.type="button",s.className="markstream-inline-fold-proxy",s.dataset.markstreamInlineFoldProxy="true";const v=u.getAttribute("title")||"Show Unchanged Region";s.title=v,s.setAttribute("aria-label",v);const p=g=>{g.preventDefault(),g.stopPropagation()},y=g=>{g.preventDefault(),g.stopPropagation(),u.click(),fe(()=>de())},h=g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.stopPropagation(),u.click(),fe(()=>de()))};s.addEventListener("mousedown",p),s.addEventListener("click",y),s.addEventListener("keydown",h),c.appendChild(s),$n.push(()=>{s.removeEventListener("mousedown",p),s.removeEventListener("click",y),s.removeEventListener("keydown",h),s.parentElement===c&&c.removeChild(s)})}}function de(e=!1){if(B||bt!=null)return;const t=()=>{B||(he(),le(e),ee())};bt=fe(()=>{bt=null,t(),Bt=fe(()=>{Bt=null,t()})}),it()}function it(e=!1){if(!m.value||B||!e&&r.loading===!1||(Qe=Qe||e,Ye=Math.max(Ye,e?18:6),Je!=null))return;const t=()=>{if(Je=null,!m.value||B||Ye<=0||!Qe&&r.loading===!1)return Ye=0,void(Qe=!1);Ye--,he(),le({preferModelDiffHeight:!0,holdCurrentDiffHeight:Qe}),ee(),Ye>0?Je=fe(t):Qe=!1};Je=fe(t)}function De(e,t,n,l={}){const o=m.value&&r.loading!==!1?Xn(e):null,i=o!=null&&o>t+1?o:t,d=Math.min(i,n),u=l.allowBelowEstimatedFloor===!0||zl(),a=Hl(d,l.clearEstimatedFloor===!0,{allowBelowEstimatedFloor:u}),c=nt();if(e.style.minHeight=c==null||u?"0px":`${Math.min(c,Math.ceil(n))}px`,e.style.height=`${a}px`,e.style.maxHeight=`${Math.ceil(n)}px`,m.value)e.style.overflow="hidden";else{const s=l.preserveScrollableOverflow===!0||t>n+1;e.style.overflow=s?"auto":"hidden"}return a}function Ql(e,t=0){var n;const l=Math.ceil(((n=e.getBoundingClientRect)==null?void 0:n.call(e).height)||0),o=Math.max(t,e.clientHeight||0,l);return o>0&&e.scrollHeight>o+1}function ol(e){var t;return!m.value&&(Mn||Ql(e,(t=We.value)!=null?t:0))}function il(e){var t,n,l,o,i,d,u,a;if(!m.value)return;const c=Fe.value||!Ht(e)||e.getBoundingClientRect().height>=Ct()-1;if(Sn===c)return;Sn=c;const s=Ce(I({},(n=(t=r.monacoOptions)==null?void 0:t.scrollbar)!=null?n:{}),{handleMouseWheel:c}),v=U();try{(i=(o=(l=v?.getOriginalEditor)==null?void 0:l.call(v))==null?void 0:o.updateOptions)==null||i.call(o,{scrollbar:s}),(a=(u=(d=v?.getModifiedEditor)==null?void 0:d.call(v))==null?void 0:u.updateOptions)==null||a.call(u,{scrollbar:s})}catch{}}function cn(e=f.value){return!!Oe(e)||!!e?.querySelector(".monaco-diff-editor .view-lines .view-line")}function Xl(e=f.value){return!!Oe(e)||!!e?.querySelector(".monaco-editor .view-lines .view-line")}function Kl(){var e,t;if(Oe())return!0;const n=(t=(e=se())==null?void 0:e.getModel)==null?void 0:t.call(e);return typeof n?.getValue=="function"&&n.getValue()===Te.value}function Zl(e=f.value){return!!Oe(e)||!!e?.classList.contains("stream-monaco-diff-root")&&!(Ie.value&&!e.classList.contains("stream-monaco-diff-inline"))}function Oe(e=f.value){return!!e?.querySelector("diffs-container")}function eo(e){return r.loading!==!1||D.value||e.classList.contains("stream-monaco-diff-native-stale")||Ht(e)}function li(){const e=U();return typeof e?.getOriginalEditor=="function"||typeof e?.getModifiedEditor=="function"||typeof e?.getLineChanges=="function"}function to(){return q(this,arguments,function*(e={}){var t,n,l;if(!m.value)return!0;if(Oe())return yield j(),yield Pe(),Oe();const o=e.requireHighlight!==!1;let i=0,d=Pt(String((t=r.node.originalCode)!=null?t:""),String((n=r.node.updatedCode)!=null?n:"")),u=dn(d.original,d.updated),a=u.added>0||u.removed>0;const c=()=>{var s,v;const p=Pt(String((s=r.node.originalCode)!=null?s:""),String((v=r.node.updatedCode)!=null?v:""));p.original===d.original&&p.updated===d.updated||(d=p,u=dn(d.original,d.updated),a=u.added>0||u.removed>0)};for(let s=0;s<30;s++){if(B)return!1;c();const v=f.value,p=U(),y=Jn();let h=!1;try{const S=(l=p?.getLineChanges)==null?void 0:l.call(p);h=Array.isArray(S)&&(!a||S.length>0)}catch{h=!1}const g=!!v?.querySelector(".monaco-diff-editor"),X=cn(v),ce=!a||Al(v,u),L=!a||ql(v,u),C=!y||Wl(v);if(g&&X&&h&&ce&&L&&C&&Dl(v)){try{xt(),he(),lt(),de()}catch{}if(yield j(),yield Pe(),B)return!1;const S=f.value,F=!Jn()||Wl(S),P=!a||Al(S,u),T=!a||ql(S,u),R=Ko(S,a),A=Zo(S,u),H=!o||Gn(S),J=Zl(S)&&F&&_l(S)&&P&&T&&R&&A&&H,K=Zl(S)&&F&&_l(S)&&P&&T&&Dl(S)&&H;if(J||K){if(i++,i>=2)return!0}else i=0}yield j(),yield Pe()}return B||(xt(),he(),lt(),de(),c()),!1})}function no(e,t,n){return q(this,null,function*(){try{return void(yield Qt(e,t,n))}catch(l){if(!Lt(l))throw l}if(yield j(),yield Pe(),!B&&m.value)try{yield Qt(e,t,n)}catch(l){if(!Lt(l))throw l}})}function Ct(){var e,t;const n=(t=(e=r.monacoOptions)==null?void 0:e.MAX_HEIGHT)!=null?t:500;if(typeof n=="number")return n;const l=String(n).match(/^(\d+(?:\.\d+)?)/);return l?Number.parseFloat(l[1]):500}const rl=k(()=>r.isShowPreview&&(ke.value==="html"||ke.value==="svg"));function Ue(){return typeof r.node.loading=="boolean"?r.node.loading:r.loading===!0}function lo(){var e,t,n;if(!Ue())return!0;const l=String((e=r.node.raw)!=null?e:""),o=(n=(t=l.split(/\r\n|\n|\r/,1)[0])==null?void 0:t.trimStart())!=null?n:"";return!/^(?:`{3,}|~{3,})/.test(o)||/\r\n|\n|\r/.test(l)}function oo(e,t,n){return!n||lo()&&String(t??"")?hn(String(e??"")):"plain"}function fn(){return Ue()}let Mt=null,al=!1,vn=0;function io(){Mt=null,vn++}function ro(){return q(this,arguments,function*(e=vn){if(!al){al=!0;try{for(;Mt&&!B&&!m.value&&e===vn;){const t=Mt;Mt=null;try{yield Promise.resolve(En(t.code,t.language)),yield j(),B||m.value||(le(!1),ee())}catch{}}}finally{al=!1,!Mt||B||m.value||ro()}}})}function ao(e,t){Mt={code:e,language:t},ro(vn)}ae(()=>[r.node.language,r.node.code,r.node.raw,r.node.loading,r.loading],([e,t,n,l,o])=>{ke.value=oo(e,t,typeof l=="boolean"?l:o===!0)}),ae(()=>[r.node.originalCode,r.node.updatedCode,m.value],()=>{ve.value=null,Yn(),fe(()=>lt())},{immediate:!0});let mn=0;ae(()=>[r.node.originalCode,r.node.updatedCode,Ee.value,m.value,r.stream],e=>q(null,[e],function*([,,,t,n]){var l,o;const i=++mn;if(!t||Ue()||n===!1&&!Q.value)return;if(n!==!1&&ue&&!Q.value&&f.value)try{yield Ae(f.value)}catch{}const d=Et;if(d&&!Se.value){try{yield d}catch{}if(B||!m.value||i!==mn)return}if(i!==mn)return;const u=Pt(String((l=r.node.originalCode)!=null?l:""),String((o=r.node.updatedCode)!=null?o:"")),a=r.loading===!1;a&&at();try{if(yield no(u.original,u.updated,Ee.value),B||!m.value||i!==mn)return;yield j(),ee(!0),he(),le(r.loading===!1||{preferModelDiffHeight:!0}),ee(!0),de(!0)}catch{return}if(a){if(B||!m.value)return;xt(),he(),lt(),de(),it(!0)}Fe.value&&fe(()=>ll())})),ae(()=>r.node.code,e=>q(null,null,function*(){if(Ue()||r.stream===!1||(ke.value||(ke.value=hn(gl(e))),m.value))return;const t=Et;if(t&&!Se.value){try{yield t}catch{}if(B||m.value)return}if(ue&&!Q.value&&f.value)try{yield Ae(f.value)}catch{}ao(Kt(r.node.code),Ee.value),Fe.value&&fe(()=>ll())}));const oi=k(()=>{const e=ke.value;return e?Eo[e]||e.charAt(0).toUpperCase()+e.slice(1):Eo[""]}),uo=k(()=>{var e;return Ai(String((e=r.node.raw)!=null?e:""),oi.value,m.value)}),ii=k(()=>uo.value.title),so=k(()=>uo.value.caption),ri=k(()=>(Hi.value,(function(e,t){if(t===void 0)return Ni(e);if(t){const l=t(e);if(l!=null&&l!=="")return l}const n=hn(e);return Ti(n)||Ri()})(ke.value||"",ht))),ai=k(()=>{const e={};e["--markstream-code-layout-character-width"]=nn.value==null?"1ch":`${nn.value}px`;const t=o=>{if(o!=null)return typeof o=="number"?`${o}px`:String(o)},n=t(r.minWidth),l=t(r.maxWidth);if(n&&(e.minWidth=n),l&&(e.maxWidth=l),Ll.value&&!m.value&&!xe.value){const o=Qo.value;o!=null&&(e.minHeight=`${o}px`)}return m.value||(e.color="var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))",e.backgroundColor="var(--vscode-editor-background, var(--markstream-code-fallback-bg))",e.borderColor="var(--markstream-code-border-color)"),e}),ui=k(()=>r.showTooltips!==!1);function si(){return q(this,null,function*(){try{typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(r.node.code)),yt.value=!0,E("copy",r.node.code),setTimeout(()=>{yt.value=!1},1e3)}catch(e){console.error("复制失败:",e)}})}function di(){Fe.value=!Fe.value;const e=m.value?U():se(),t=f.value;e&&t&&(Fe.value?(pn(!0),t.style.maxHeight="none",t.style.overflow="visible",le(!0)):(pn(!1),t.style.overflow=m.value?"hidden":"auto",le(!0)),il(t))}function ci(){var e,t;if(xe.value=!xe.value,xe.value){if(Mn=!1,f.value){const n=Math.ceil(((t=(e=f.value).getBoundingClientRect)==null?void 0:t.call(e).height)||0);Mn=!m.value&&(Ql(f.value,n)||f.value.style.overflow==="auto"||f.value.style.overflowY==="auto"),n>0&&(We.value=n)}pn(!1)}else Fe.value&&pn(!0),f.value&&We.value!=null&&(f.value.style.height=`${We.value}px`),Cn=2,j(()=>{xe.value||B||(le(!0),ee(!0))})}function fi(){if(!rl.value)return;const e=ke.value;if(Gt.value){const t=e==="html"?"text/html":"image/svg+xml",n=e==="html"?Y("artifacts.htmlPreviewTitle")||"HTML Preview":Y("artifacts.svgPreviewTitle")||"SVG Preview";return void E("previewCode",{node:r.node,artifactType:t,artifactTitle:n,id:`temp-${e}-${Date.now()}`})}e==="html"&&(en.value=!en.value)}function pn(e){var t,n;try{if(m.value){const l=U();(t=l?.updateOptions)==null||t.call(l,{automaticLayout:e})}else{const l=se();(n=l?.updateOptions)==null||n.call(l,{automaticLayout:e})}}catch{}}function vi(e){return q(this,null,function*(){var t;if(!ue||B)return;const n=Ot.value;if(Rn=!1,me.value=!1,et.value=null,Se.value=!1,D.value=!1,$t.value=!1,Sn=null,jn.value=null,tn.value=null,nn.value=null,(function(){const a=(function(){var c;const s=(c=f.value)==null?void 0:c.parentElement;return s instanceof HTMLElement?s:null})();a&&(a.style.removeProperty("--stream-monaco-line-number-left"),a.style.removeProperty("--stream-monaco-line-number-width"),a.style.removeProperty("--stream-monaco-line-number-gap-to-code"),a.style.removeProperty("--stream-monaco-original-line-number-gap-to-code"),a.style.removeProperty("--stream-monaco-modified-line-number-gap-to-code"),a.style.removeProperty("--stream-monaco-original-scrollable-left"),a.style.removeProperty("--stream-monaco-modified-scrollable-left"))})(),Yl(),(function(){Zt.value=!1;const a=El.value;_n.value=W.value||a==null?null:a})(),ot(),Re(),(function(a){a.replaceChildren()})(e),at(),B)return;const l=q(null,null,function*(){var a,c;if(n==="diff"){(function(){if(On||typeof window>"u")return;On=!0;const v=p=>{var y;Lt("reason"in p?p.reason:(y=p.error)!=null?y:p.message)&&(p.preventDefault(),p.stopImmediatePropagation())};window.addEventListener("error",v,!0),window.addEventListener("unhandledrejection",v,!0),Xt=()=>{window.removeEventListener("error",v,!0),window.removeEventListener("unhandledrejection",v,!0),On=!1,Xt=null}})(),Xe();const s=Pt(String((a=r.node.originalCode)!=null?a:""),String((c=r.node.updatedCode)!=null?c:""));Yt?yield gt(()=>Yt(e,s.original,s.updated,Ee.value)):yield gt(()=>ue(e,r.node.code,Ee.value))}else yield gt(()=>ue(e,Te.value,Ee.value));Se.value=!0}),o=l.finally(()=>{Et===o&&(Et=null)});if(Et=o,yield(function(a){return q(this,null,function*(){if(!m.value)return void(yield a);let c,s=!1;for(a.then(()=>{s=!0},v=>{s=!0,c=v});;){if(B)return;if(s){if(c)throw c;return}if(cn()&&li())return;yield j(),yield Pe()}})})(o),B||Ot.value!==n)return;Se.value=!0;const i=n==="diff"?U():se();if(typeof((t=r.monacoOptions)==null?void 0:t.fontSize)=="number")i?.updateOptions({fontSize:r.monacoOptions.fontSize,automaticLayout:!1}),pe.value=r.monacoOptions.fontSize,_.value=r.monacoOptions.fontSize;else if(!Gl()){const a=Un();a&&a>0?(pe.value=a,_.value=a):(pe.value=12,_.value=12)}Nt(),yield mo(),Fe.value||xe.value||le(!1),W.value=!0,kl.value=n,(function(){var a,c,s,v,p;if(ot(),m.value){const h=U(),g=(a=h?.getOriginalEditor)==null?void 0:a.call(h),X=(c=h?.getModifiedEditor)==null?void 0:c.call(h),ce=(C,S)=>{try{const F=C?.[S];if(typeof F!="function")return;const P=F.call(C,()=>de());P&&ze.push(P)}catch{}};try{const C=(s=h?.onDidUpdateDiff)==null?void 0:s.call(h,()=>{de(),fe(()=>lt())});C&&ze.push(C)}catch{}ce(g,"onDidContentSizeChange"),ce(X,"onDidContentSizeChange");const L=f.value;if(L&&typeof MutationObserver<"u"){const C=[".view-line",".view-lines",".view-zones",".margin-view-zones",".diff-hidden-lines",".stream-monaco-diff-unchanged-bridge",".stream-monaco-fallback-inline-delete-zone",".stream-monaco-fallback-inline-delete-margin"].join(","),S=T=>{var R;const A=T instanceof HTMLElement?T:T.parentElement;return!!((R=A?.closest)!=null&&R.call(A,C))},F=T=>{var R,A;const H=T instanceof HTMLElement?T:T.parentElement;return!!((R=H?.closest)!=null&&R.call(H,C)||(A=H?.querySelector)!=null&&A.call(H,C))},P=new MutationObserver(T=>{m.value&&eo(L)&&T.some(R=>S(R.target)||Array.from(R.addedNodes).some(F)||Array.from(R.removedNodes).some(S))&&(he(),le({preferModelDiffHeight:!0}),ee(),it())});P.observe(L,{attributeFilter:["class"],attributes:!0,childList:!0,characterData:!0,subtree:!0}),ze.push({dispose:()=>P.disconnect()})}if(L){const C=S=>{const F=S.target instanceof Element?S.target:null;if(!F?.closest([".stream-monaco-unchanged-summary",".stream-monaco-unchanged-reveal",".stream-monaco-unchanged-expand",".markstream-inline-fold-proxy",".diff-hidden-lines .center"].join(",")))return;const P=Math.ceil(L.getBoundingClientRect().height||0);P>0&&(ve.value=P)};L.addEventListener("click",C,!0),ze.push({dispose:()=>L.removeEventListener("click",C,!0)})}if(L&&typeof ResizeObserver<"u"){const C=new ResizeObserver(()=>{if(!m.value||(ee(),!eo(L)))return;const S=Xn(L);if(S==null)return;const F=Math.ceil(L.getBoundingClientRect().height||0),P=ve.value;if(Ht(L)&&P!=null){if(F>P+1)ve.value=F;else if(FC.disconnect()})}return}const y=se();try{const h=(v=y?.onDidContentSizeChange)==null?void 0:v.call(y,()=>de());h&&ze.push(h)}catch{}try{const h=(p=y?.onDidLayoutChange)==null?void 0:p.call(y,()=>de());h&&ze.push(h)}catch{}})(),el(),Nt(),he(),lt(),de(),yield j();let d=null;Ke&&(d=yield Ke(),d&&(yield j(),yield Pe()));const u=d??(n==="diff"?yield to({requireHighlight:!0}):yield(function(){return q(this,null,function*(){if(Oe())return yield j(),yield Pe(),Oe();for(let a=0;a<30;a++){if(B||m.value)return!1;const c=f.value,s=Kl(),v=Xl(c),p=!Te.value.trim()||Gn(c);if(s&&v&&p&&(yield j(),yield Pe(),!B&&!m.value&&Kl()&&Xl(f.value)&&(!Te.value.trim()||Gn(f.value))))return!0;yield j(),yield Pe()}return!1})})());B||(u?(Nt(),un(),(yield $l())||je()):je())})}function Ae(e,t={}){if(!ue||B||r.stream===!1&&r.loading!==!1||(sl(),yo())||ge.value||f.value!==e||fn())return null;if($e)return $e;if(Q.value&&W.value)return Promise.resolve();const n=ul(),l=Nn.value;let o=!1;Q.value=!0,(function(){const d=Ge.value;ie&&d&&qe!==d&&(qe&&ie.markSettled(qe),qe=d,ie.markPending(d))})();const i=q(null,null,function*(){try{yield vi(e),zt=null}catch(d){const u=ul(),a=l!==Nn.value,c=t.allowStaleContentRetry!==!1&&a&&zt!==u;if(n!==u||c)return c&&(zt=u),o=!0,Q.value=!1,W.value=!1,Se.value=!1,void(D.value=!1);throw je(n),d}}).finally(()=>{$e===i&&($e=null),(function(){const d=qe;ie&&d&&(qe="",j(()=>{var u,a;if(!B){const c=(a=(u=$.value)==null?void 0:u.offsetHeight)!=null?a:0;c>0&&ie.reportHeight(d,c)}ie.markSettled(d)}))})(),o&&!B&&queueMicrotask(()=>{var d;const u=f.value;u&&!B&&((d=Ae(u))==null||d.catch(a=>{W.value=!1,D.value=!1,je()}))})});return $e=i,i}ae(ui,e=>{e||vt()}),ae(()=>_.value,(e,t)=>{const n=m.value?U():se();n&&typeof e=="number"&&Number.isFinite(e)&&e>0&&(n.updateOptions({fontSize:e}),xe.value||le(!0))},{flush:"post",immediate:!1});let co=0;const mi=ae(()=>[f.value,m.value,r.stream,r.loading,wt.value,Z.value,r.node.language,r.node.raw,r.node.code,r.node.loading],e=>q(null,[e],function*([t,n,l,o,i,d]){const u=++co;if(!t||!d||Ue()||tt||l===!1&&o!==!1||!ue&&(yield(function(){return q(this,null,function*(){if(typeof window>"u"||B||wt.value||ge.value)return;if(Ft)return Ft;const c=q(null,null,function*(){try{const s=yield Ui();if(B)return;if(!s)return void(ge.value=!0);const v=s.useMonaco,p=s.detectLanguage;if(typeof p=="function"&&(gl=p),typeof v!="function")return;He=po();const y=v(He);ue=y.createEditor||ue,Yt=y.createDiffEditor||Yt,En=y.updateCode||En,Qt=y.updateDiff||Qt,kt=y.getEditor||kt,se=y.getEditorView||se,U=y.getDiffEditorView||U,Fn=y.cleanupEditor||Fn,Xe=y.safeClean||y.cleanupEditor||Xe,Pn=y.refreshDiffPresentation||Pn,Ln=y.setTheme||Ln,Ke=y.whenVisualReady||null,wt.value=!0}catch{if(B)return;ge.value=!0}}).finally(()=>{Ft===c&&(Ft=null)});return Ft=c,c})})(),u!==co||r.stream===!1&&r.loading!==!1||fn()||!Z.value||!ue||ge.value||Q.value||yo()||B||f.value!==t)||fn())return;const a=Ae(t);if(a){try{yield a}catch{W.value=!1,D.value=!1,je()}W.value&&D.value&&mi()}}));function fo(e){return!!e&&typeof e=="object"&&"light"in e&&"dark"in e}function rt(e){return typeof e=="string"?e:e&&typeof e=="object"&&"name"in e?String(e.name):null}function vo(e,t){if(e===t)return!0;const n=rt(e),l=rt(t);return!!n&&n===l}function Tt(){var e;const t=(function(){if(r.theme!==void 0){const a=r.theme;return fo(a)?r.isDark?a.dark:a.light:a}return r.isDark?r.darkTheme:r.lightTheme})(),n=(e=re.value)==null?void 0:e.theme,l=t??n;if(l!=null&&typeof l=="object")return l;const o=Array.isArray(r.themes)?r.themes:[];if(!o.length||l==null)return l;const i=rt(l),d=o.map(a=>rt(a)).filter(a=>!!a);if(!i||d.includes(i))return l;const u=rt(n);return n!=null&&u&&d.includes(u)?n:o[0]}function mo(){return q(this,arguments,function*(e={}){at();const t=()=>{m.value&&xt(),fe(()=>{el(),de()})};if(e.appearanceOnly)return void t();const n=Tt();if(n)try{yield Ln(n),t()}catch{}else t()})}function Rt(e,t){if(typeof t!="string")return;const n=hn(t),l=Bo(n),o=["plain","objectivec","objectivecpp"].includes(n)?l:n;for(const i of[o,l])i&&!e.includes(i)&&e.push(i)}ae(Ot,(e,t)=>q(null,null,function*(){if(e===t||me.value||tt||(io(),!ue||!f.value)||!Q.value||r.stream===!1&&r.loading!==!1||!Z.value)return;const n=$e;if(n){try{yield n}catch{}if(B||!f.value)return}if(kl.value!==e||!Q.value||!W.value)try{W.value=!1,D.value=!1,Q.value=!1,Se.value=!1,ot(),Re(),Xe(),yield j(),yield Ae(f.value)}catch{W.value=!1,D.value=!1,je()}}));const pi=k(()=>{var e;const t=[],n=(e=re.value)==null?void 0:e.languages;if(Array.isArray(n))for(const l of n)Rt(t,l);return lo()&&Rt(t,r.node.language),Rt(t,ke.value),Rt(t,Ee.value),Rt(t,"plaintext"),t});function po(){const e=Ce(I(Ce(I({wordWrap:"on",wrappingIndent:"same",themes:r.themes},re.value||{}),{languages:pi.value,stream:!1,fontSize:ln.value,lineHeight:on.value,theme:Tt(),disableFileHeader:!0}),m.value?{diffAppearance:Hn.value}:{}),{onThemeChange(){el()}}),t=(function(){var n;const l=(n=re.value)==null?void 0:n.fontFamily;return typeof l=="string"&&l.trim()?l.trim():m.value?(function(){var o;if(typeof window>"u")return;const i=(o=$.value)==null?void 0:o.querySelector("pre.code-pre-fallback");if(i)return window.getComputedStyle(i).fontFamily.trim()||void 0})():void 0})();if(t&&(e.fontFamily!=null||(e.fontFamily=t)),m.value){e.wordWrap=Dn.value?"on":"off";const n=typeof e.unsafeCSS=="string"?`${e.unsafeCSS} +`:"",l=(function(){var o,i;const d=An.value;if(d===!1||typeof d=="object"&&d.enabled===!1)return null;const u=typeof d=="object"?d:jt,a=Math.max(0,Math.floor((o=u.contextLineCount)!=null?o:2));return{contextLineCount:a,collapsedContextThreshold:a+Math.max(1,Math.floor((i=u.minimumLineCount)!=null?i:4))-1}})();e.unsafeCSS=`${n} +pre { column-gap: 0; } +pre > code { column-gap: 0; padding-block: 0; } +[data-separator="line-info"] { margin-top: 0; } +`,l?(e.parseDiffOptions=Ce(I({},e.parseDiffOptions),{context:l.contextLineCount}),e.collapsedContextThreshold=l.collapsedContextThreshold,e.expandUnchanged=!1,e.hunkSeparators="line-info",e.unsafeCSS+=`[data-separator="line-info"][data-separator-last] { height: 28px; } +`):(e.expandUnchanged=!0,e.hunkSeparators="simple")}return e}function at(){const e=po();if(!He)return He=e,He;for(const t of Object.keys(He))t in e||delete He[t];return Object.assign(He,e),He}const ho=k(()=>{var e,t,n,l,o,i,d,u,a,c,s,v,p,y,h;return JSON.stringify({diffLineStyle:(t=(e=re.value)==null?void 0:e.diffLineStyle)!=null?t:"background",diffUnchangedRegionStyle:(l=(n=re.value)==null?void 0:n.diffUnchangedRegionStyle)!=null?l:"line-info",diffHideUnchangedRegions:((o=r.monacoOptions)==null?void 0:o.diffHideUnchangedRegions)===void 0?I({},jt):gn(r.monacoOptions.diffHideUnchangedRegions),renderSideBySide:(d=(i=re.value)==null?void 0:i.renderSideBySide)==null||d,useInlineViewWhenSpaceIsLimited:(a=(u=re.value)==null?void 0:u.useInlineViewWhenSpaceIsLimited)!=null&&a,enableSplitViewResizing:(s=(c=re.value)==null?void 0:c.enableSplitViewResizing)==null||s,ignoreTrimWhitespace:(p=(v=re.value)==null?void 0:v.ignoreTrimWhitespace)==null||p,originalEditable:(h=(y=re.value)==null?void 0:y.originalEditable)!=null&&h})}),go=O(0);function ul(){var e;const t=Tt();return JSON.stringify({kind:Ot.value,language:Ee.value,structural:ho.value,optionsRevision:go.value,settledContentGeneration:xl.value,theme:(e=rt(t))!=null?e:t==null?null:"custom",isDark:r.isDark})}ae(()=>[r.monacoOptions,r.theme,r.themes,r.lightTheme,r.darkTheme],()=>{go.value+=1},{deep:!0}),ae(()=>[Te.value,r.node.originalCode,r.node.updatedCode],()=>{Nn.value+=1,Ue()||(xl.value+=1)});const ut=k(()=>ul());function sl(){me.value&&et.value!==ut.value&&(me.value=!1,et.value=null,zt=null,Tn=null,Q.value=!1,W.value=!1,Se.value=!1,D.value=!1,$t.value=!1)}function yo(){return sl(),me.value&&et.value===ut.value}function je(e=ut.value){et.value=e,me.value=!0,$t.value=!1}return ae(ut,()=>q(null,null,function*(){if(tt||!me.value||et.value===ut.value||!ue||!f.value||ge.value||B||!Z.value||r.stream===!1&&r.loading!==!1||fn())return;const e=ut.value;tt=!0;try{if(sl(),me.value)return;yield Ae(f.value)}catch{W.value=!1,D.value=!1,je()}finally{Tn=e,yield j(),tt=!1}})),ae(()=>[r.monacoOptions,Z.value],()=>{var e,t;if(at(),!ue||!Z.value)return;const n=m.value?U():se(),l=typeof((e=r.monacoOptions)==null?void 0:e.fontSize)=="number"?r.monacoOptions.fontSize:Number.isFinite(_.value)?_.value:void 0;typeof l=="number"&&Number.isFinite(l)&&l>0&&((t=n?.updateOptions)==null||t.call(n,{fontSize:l})),le(!1)},{deep:!0}),ae(()=>[Tt(),Hn.value,wt.value,Q.value,Z.value],([e],t)=>{wt.value&&W.value&&Z.value&&mo({appearanceOnly:t!=null&&vo(e,t[0])})},{flush:"post"}),ae(()=>[ho.value,wt.value,Z.value],(e,t)=>q(null,[e,t],function*([n,l,o],[i]){if(at(),!l||!o||!ue||!f.value||!Q.value||n===i||r.stream===!1&&r.loading!==!1)return;const d=$e;if(d){try{yield d}catch{}if(B||!f.value)return}try{W.value=!1,D.value=!1,Q.value=!1,Se.value=!1,ot(),Re(),Xe(),yield j(),yield Ae(f.value,{allowStaleContentRetry:!1})}catch{W.value=!1,D.value=!1,je()}}),{flush:"post"}),ae(()=>[r.loading,Z.value],(e,t)=>q(null,[e,t],function*([n,l],o){if(!l)return;const i=o?.[0];if(i===!1&&n!==!1&&m.value&&Q.value&&(yield j(),fe(()=>{q(null,null,function*(){const u=$e;if(u)try{yield u}catch{}!B&&m.value&&r.loading!==!1&&(at(),xt(),de())})})),n)return;const d=i!==void 0&&i!==!1;yield j(),fe(()=>{q(null,null,function*(){var u,a;try{if(d&&(yield(function(){return q(this,null,function*(){if(!me.value||!ue||!f.value||ge.value||B||!Z.value)return!1;if(Tn===ut.value)return!0;tt=!0;try{me.value=!1,et.value=null,zt=null,Q.value=!1,W.value=!1,Se.value=!1,D.value=!1,ot(),Re(),Xe(),yield j();try{yield Ae(f.value)}catch{W.value=!1,D.value=!1,je()}}finally{yield j(),tt=!1}return!0})})()))return void le(!1);if(d&&m.value&&Q.value&&Rn&&f.value)return Rn=!1,W.value=!1,D.value=!1,Q.value=!1,Se.value=!1,ot(),Re(),Xe(),yield j(),yield Ae(f.value,{allowStaleContentRetry:!1}),void it(!0);if(d&&Q.value)if(m.value&&f.value){const c=$e;if(c)try{yield c}catch{}at();const s=Pt(String((u=r.node.originalCode)!=null?u:""),String((a=r.node.updatedCode)!=null?a:""));if(yield no(s.original,s.updated,Ee.value),B||!m.value)return;xt(),ee(!0),Ol(),he(),lt();const v=yield to({requireHighlight:!0});B||!v||D.value||(yield $l()),de(),it(!0)}else io(),ao(Te.value,Ee.value);d&&m.value?(le({preferModelDiffHeight:!0,holdCurrentDiffHeight:!0}),it(!0)):le(!1)}catch{}})})}),{immediate:!0,flush:"post"}),No(()=>{ot(),Re(),Fn(),Xt?.()}),(e,t)=>ge.value?(G(),bn(V(Mo),{key:0,class:mt(["code-pre-fallback",{"is-wrap":Dn.value}]),style:It(Pl.value),node:Ml.value,loading:r.loading,"show-line-numbers":!0,"diff-inline":Ie.value,"diff-hide-unchanged-regions":An.value},null,8,["class","style","node","loading","diff-inline","diff-hide-unchanged-regions"])):(G(),oe("div",{key:1,ref_key:"container",ref:$,style:It(ai.value),class:mt(["code-block-container rounded-lg border",[{dark:r.isDark,"is-rendering":r.loading,"is-dark":bl.value,"is-diff":m.value,"is-plain-text":xn.value}]]),"data-markstream-code-block":"1","data-markstream-enhanced":D.value&&!ge.value?"true":"false","data-markstream-enhancement-state":Uo.value,"data-markstream-code-block-state":Ue()?"streaming":"settled","data-markstream-pending":Io.value?"true":void 0,"data-markstream-viewport-pending":hl.value&&V(Bn)&&!Z.value?"true":void 0},[To(pr,{"show-header":r.showHeader,"show-collapse-button":r.showCollapseButton,"show-font-size-buttons":r.showFontSizeButtons,"enable-font-size-control":r.enableFontSizeControl,"show-copy-button":r.showCopyButton,"show-expand-button":r.showExpandButton,"show-preview-button":r.showPreviewButton,"show-tooltips":r.showTooltips,"is-dark":r.isDark,loading:r.loading,stream:x.stream,"is-collapsed":xe.value,"is-expanded":Fe.value,"copy-text":yt.value,"is-previewable":rl.value,"code-font-size":_.value,"code-font-min":10,"code-font-max":36,"default-code-font-size":pe.value,"font-baseline-ready":Vo.value,"diff-stats":m.value?Ze.value:null,"diff-stats-aria-label":qo.value,onToggleCollapse:ci,onDecreaseFont:ti,onResetFont:ni,onIncreaseFont:ei,onCopy:si,onToggleExpand:di,onPreview:fi},Oi({"header-left":Ut(()=>[pt(e.$slots,"header-left",{},()=>[b("div",xr,[b("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:ri.value},null,8,Sr),b("div",Cr,[b("div",Mr,Me(ii.value),1),so.value?(G(),oe("div",Br,Me(so.value),1)):ye("",!0)])])],!0)]),loading:Ut(()=>[pt(e.$slots,"loading",{loading:x.loading,stream:x.stream},()=>[t[0]||(t[0]=b("div",{class:"loading-skeleton"},[b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line"}),b("div",{class:"skeleton-line short"})],-1))],!0)]),default:Ut(()=>[cl(b("div",{class:mt(["code-editor-layer",{"code-editor-layer--collapsed":xe.value}])},[b("div",{ref_key:"codeEditor",ref:f,class:mt(["code-editor-container",x.stream?"":"code-height-placeholder"]),"data-markstream-host-hidden":_o.value?"true":void 0,style:It(Xo.value)},null,14,Er),Cl.value?(G(),bn(V(Mo),{key:0,class:mt(["code-pre-fallback",{"is-wrap":Dn.value}]),style:It(Pl.value),node:Ml.value,"show-line-numbers":!0,"diff-inline":Ie.value,"diff-hide-unchanged-regions":An.value},null,8,["class","style","node","diff-inline","diff-hide-unchanged-regions"])):ye("",!0)],2),[[fl,!!x.stream||!x.loading]]),en.value&&!Gt.value&&rl.value&&ke.value==="html"?(G(),bn(br,{key:0,code:r.node.code,"html-preview-allow-scripts":r.htmlPreviewAllowScripts,"html-preview-sandbox":r.htmlPreviewSandbox,"is-dark":r.isDark,"on-close":()=>en.value=!1},null,8,["code","html-preview-allow-scripts","html-preview-sandbox","is-dark","on-close"])):ye("",!0)]),_:2},[e.$slots["header-right"]?{name:"header-right",fn:Ut(()=>[pt(e.$slots,"header-right",{},void 0,!0)]),key:"0"}:void 0]),1032,["show-header","show-collapse-button","show-font-size-buttons","enable-font-size-control","show-copy-button","show-expand-button","show-preview-button","show-tooltips","is-dark","loading","stream","is-collapsed","is-expanded","copy-text","is-previewable","code-font-size","default-code-font-size","font-baseline-ready","diff-stats","diff-stats-aria-label"])],14,kr))}}),[["__scopeId","data-v-72200115"]]);export{Lr as default}; diff --git a/apps/pythinker-code/dist-web/assets/DesignSystemView-B5fq8RL_.js b/apps/pythinker-code/dist-web/assets/DesignSystemView-B5fq8RL_.js new file mode 100644 index 000000000..76bd79fb6 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/DesignSystemView-B5fq8RL_.js @@ -0,0 +1,13 @@ +import{M as x,aD as k,aI as C,aL as e,u as d,v as t,G as s,H as o,F as f,aX as g,bb as m,I as r,cx as z,bk as T,cy as B,cz as b,cA as S}from"./index-DIfcwXP7.js";const q={class:"ds-page"},I={class:"layout"},A={class:"content"},M={class:"content-inner"},H={id:"tokens"},L={class:"icon-sizes"},V={class:"sz"},D={class:"p-ic",style:{width:"14px",height:"14px"},viewBox:"0 0 24 24",fill:"currentColor"},P={class:"sz"},U={class:"p-ic",style:{width:"16px",height:"16px"},viewBox:"0 0 24 24",fill:"currentColor"},W={class:"sz"},R={class:"p-ic",style:{width:"20px",height:"20px"},viewBox:"0 0 24 24",fill:"currentColor"},N={class:"icon-grid"},O={class:"icon-group-label"},E={class:"ic-name"},j={id:"primitives"},F={class:"stage-wrap"},K={class:"stage p col"},_={class:"demo-row"},G={class:"p-btn primary disabled"},J={class:"p-spinner sm",viewBox:"0 0 24 24",style:{"--p-accent":"#fff","--p-line":"rgba(255,255,255,.35)"}},Q={class:"stage-wrap"},Y={class:"stage p col"},X={class:"demo-row",style:{"font-size":"22px","line-height":"1"}},Z={class:"demo-row"},$={class:"p-thinking"},aa={class:"p-thinking"},ta={class:"stage-wrap"},ea={class:"stage p col",style:{gap:"0",background:"var(--p-surface)",padding:"0","max-width":"300px","align-items":"stretch"}},da={style:{display:"flex","align-items":"center",gap:"8px",padding:"7px 10px",margin:"1px 6px","border-radius":"8px",color:"var(--p-text)","font-size":"13px"}},sa={style:{color:"var(--d-fg-faint)",flex:"none"},width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},oa={style:{display:"flex","align-items":"center",gap:"8px",padding:"7px 10px",margin:"1px 6px","border-radius":"8px",color:"var(--p-text)","font-size":"13px"}},ia={style:{color:"var(--d-fg-faint)",flex:"none"},width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},la={id:"chat"},na={class:"stage-wrap"},va={class:"stage p col",style:{"align-items":"center",background:"#fff"}},ca={class:"demo-chat"},ra={class:"p-thinking"},ba={class:"p-action"},fa={class:"p-action-head"},pa={class:"p-ic",style:{color:"var(--p-accent)"},viewBox:"0 0 24 24",fill:"currentColor"},ha={class:"p-action warn"},ua={class:"p-action-head"},ga={class:"p-ic",style:{color:"var(--p-warning)"},viewBox:"0 0 24 24",fill:"currentColor"},ma=x({__name:"DesignSystemView",emits:["close"],setup(ya,{emit:y}){const w=y;function p(){w("close")}let c=null;function h(v){v.key==="Escape"&&p()}return k(()=>{document.addEventListener("keydown",h);const v=Array.prototype.slice.call(document.querySelectorAll('#nav a[href^="#"]')),a=new Map;v.forEach(n=>{const i=n.getAttribute("href");if(!i)return;const u=document.getElementById(i.slice(1));u&&a.set(u,n)});let l=null;c=new IntersectionObserver(n=>{n.forEach(i=>{i.isIntersecting&&(l&&l.classList.remove("active"),l=a.get(i.target)??null,l&&l.classList.add("active"))})},{rootMargin:"-20% 0px -70% 0px",threshold:0}),a.forEach((n,i)=>c.observe(i)),v.length&&v[0].classList.add("active")}),C(()=>{document.removeEventListener("keydown",h),c&&(c.disconnect(),c=null)}),(v,a)=>(e(),d("div",q,[t("div",{class:"ds-topbar"},[t("button",{class:"ds-back",type:"button",onClick:p},"← Back"),a[0]||(a[0]=t("span",{class:"ds-topbar-title"},"Design system",-1))]),t("div",I,[a[46]||(a[46]=s('',1)),t("main",A,[t("div",M,[a[44]||(a[44]=s('
● Design System · v1.0

Pythinker Web Design System

This document defines the visual language and component specification for Pythinker Web — design tokens, component primitives, the chat interface, theming, and style rules. All UI work is grounded in it: unified, restrained, token-driven, and themeable.

Scope apps/pythinker-webComponent primitivesTheme 1 set · 4 customizable colorsLight / dark mode
i
This spec is the single reference when changing the web UI. Before adding or modifying a component, style, layout, or theme, read this document first; color, font, radius, spacing, shadow, z-index, and motion always use the §02 tokens, components reuse the §03 primitives, and the §06 style rules are followed.
01

Design Principles

Every UI decision traces back to the following principles. Pythinker Web is a local Agent tool for developers: quick scanning, long stretches of staring, often in the dark — the design serves the task, and is restrained, clinical, and density-first.

  • Consistency —— The same semantics use the same component. The primary button, dialog, input, and badge should each have exactly "one" correct way to be written across the entire site.
  • Hierarchy —— Build a clear hierarchy through size, weight, color, and whitespace; emphasize through "restraint" rather than "bolder and bigger".
  • Proximity —— Group related elements, leave whitespace between unrelated ones. A card's padding, line spacing, and group spacing all come from the same spacing scale.
  • Feedback —— hover / active / focus / loading / success / error all have visible states, and the state language is unified.
  • Breathing room —— Control density with the spacing scale rather than arbitrary pixels; prefer restrained whitespace over cramming controls together.
  • Accessibility (A11y) —— Text contrast ≥ 4.5:1, visible focus rings, touch targets ≥ 32px, and states that don't rely on color alone.
  • Reduction —— The number of colors, radii, shadow levels, and type sizes all converge to a finite set of tokens; delete stray values.
Brand tone (the do-not list): calm, clinical, never exaggerated. Reject purple gradients, glassmorphism, glowing shadows, AI purple / blue glows, endlessly looping fussy micro-animations, "Boost your productivity"-style marketing copy, and using emoji as icons. These are all common tells of AI-generated interfaces (an "AI tell"), deliberately avoided.
i
Declare design intent first (Design Read): before adding a component / page, write one sentence describing its scenario, audience, and tone (for example, "a lightweight tool card embedded in a conversation, for developers, calm and restrained"), then build. If the intent isn't clear, ask one question first rather than defaulting to the nearest existing style.
',2)),t("section",H,[a[7]||(a[7]=s(`
02

Design Tokens

Collapse every visual decision into tokens. Color tokens keep the existing short names and fill out the semantics (lowering migration cost), while spacing, z-index, motion, and font-weight fill in the scales that are currently missing. Every token has: name, light value, dark value, and usage.

i
Naming convention: --<category>-<role>-<state>. For example --color-text-muted, --radius-md, --space-4. To reduce churn, the existing short names (--bg / --ink / --line / --blue …) are kept as compatibility aliases for one release cycle.

Color

Semantic-first, in three layers: background / text / border + accent + status colors. All colors are defined in light / dark pairs, with contrast ≥ 4.5:1.

i
The table below shows the derived semantic tokens. The neutrals and the accent are derived from the 4 color seeds in §05 — for example --color-accent comes from --accent-primary, and --color-bg comes from the current light / dark surface. The semantic status colors (success / warning / danger / info) are independent palettes paired with the seeds, one set each for light / dark; they are not auto-derived from the seeds. Day-to-day reskinning usually only needs the 4 seeds, with the status colors fine-tuned as needed.
bg
#ffffff / #121212
surface
#fafbfc / #1f1f1f
surface-sunken
#f3f5f8 / #121212
selected
#eceff3 / #2d333b
fg
#14171c / #e8eaed
fg-muted
#6b7280 / #9aa0a8
line
#e7eaee / #2d333b
accent (KMBlue)
#1783ff / #58a6ff
accent-soft
#e8f3ff / rgba(88,166,255,.14)
TokenLightDarkUsage
--color-bg#ffffff#121212Page background
--color-surface#fafbfc#1f1f1fPanel / sidebar / card head
--color-surface-raised#ffffff#292929Raised card / dialog / input
--color-text#14171c#e8eaedBody text / headings
--color-text-muted#6b7280#9aa0a8Secondary text / placeholder
--color-line#e7eaee#2d333bDivider / card border
--color-selected#00000014#ffffff14Neutral selected fill (sidebar rows, list pickers) — translucent, never accent-tinted
--color-hover#0000000d#ffffff0dRow hover wash — lighter than the selected fill (hover < selected); translucent, sits on any surface
--color-media-alpha-bg-1≈#858585≈#676b72Checkerboard square A of the <img> alpha canvas — color-mix of --color-bg/--color-text (52/48); applied via --media-alpha-canvas (16px period)
--color-media-alpha-bg-2≈#6b6b6b≈#7a7e85Checkerboard square B (42/58) — both squares stay ≥3:1 against white and black; opaque images cover the canvas
--color-sidebar-bg#fbfaf9#181817Sidebar surface — one step off --color-bg so the session column reads as its own plane
--color-accent#1783ff#58a6ffPrimary action / link / focus
--color-success#0e7a38#3fb950Success / pass
--color-warning#a9610a#d29922Warning / pending
--color-danger#c0392b#f85149Danger / error / abort

Surface usage

The four surface layers each have a role — choose by "raised layer / default flat layer / sunken layer / page background", and avoid treating --p-surface-raised as a universal background.

TokenLightDarkUsage
--p-surface-raised#ffffff#292929Raised card / dialog / input (raised layer)
--p-surface#fafbfc#1f1f1fPanel / sidebar / card head (default flat layer)
--p-surface-sunken#f3f5f8#121212Code block / inline input / recessed area (sunken layer)
--p-bg#ffffff#121212Page background

Focus ring

All focusable controls (button, input, link, menu item, switch, checkbox) use the focus-ring token uniformly; do not hand-write a box-shadow focus ring.

TokenValueUsage
--p-focus-ring0 0 0 3px var(--p-accent-soft)Default focus ring (link, menu item, switch, checkbox)
--p-focus-ring-strong0 0 0 3px var(--p-accent-soft), 0 0 0 1px var(--p-accent)Strong focus ring (button, primary action)

Text selection

The text-selection color uses --p-selection uniformly (light rgba(23,131,255,.18) / dark rgba(88,166,255,.32)), applied by the global ::selection rule; do not set a separate highlight background.

Disabled state

All disabled controls use opacity:.5 + cursor:not-allowed uniformly; do not separately grey out or recolor.

Font families

Pythinker Web uses two font families: --font-ui (UI and body, Inter first) and --font-mono (code and monospace). Components always reference the variables; do not hard-code font names.

--font-ui · UI & body (Inter first)

Body and UI use self-hosted Inter as the primary face. CJK and platform system UI fonts sit late in the fallback chain so Latin glyphs resolve to Inter while Chinese text can fall through to native CJK fonts:

--font-ui
--font-ui: "Inter Variable", "Inter", "Helvetica Neue", Arial,
+      "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
+      -apple-system, BlinkMacSystemFont, "Segoe UI",
+      Roboto, Ubuntu, sans-serif,
+      "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  • Inter first: self-hosted Latin UI and body text, loaded through the optical-size normal and italic variable faces.
  • Western fallbacks next: Helvetica Neue / Arial for environments where Inter cannot load.
  • CJK and system UI fallbacks late: PingFang SC / Microsoft YaHei / Noto Sans SC, then platform UI fonts and emoji fonts.

--font-mono · Code & monospace

Code, tool names, line numbers, diffs, etc. use JetBrains Mono (a self-hosted variable font), falling back to the system monospace:

--font-mono
--font-mono: "JetBrains Mono Variable", "JetBrains Mono",
+      ui-monospace, "SF Mono", Menlo, Consolas, monospace;

Loading strategy

FontSourceBundledUsage
JetBrains Mono@fontsource-variable/jetbrains-mono✓ self-hostedmonospace / code (--font-mono)
Inter@fontsource-variable/inter/opsz.css + opsz-italic.css✓ self-hostedUI / body / display (--font-ui, --font-display), wght 100-900, opsz 14-32, normal + italic
System UI / CJK fontsoperating systemlate fallback for UI / body, not bundled
Self-hosted Inter / JetBrains Mono: no external network requests, no FOUT, works offline; system fonts are not bundled, consistent with the local-first approach.

Usage rules

  • Components always use var(--font-ui) / var(--font-mono); do not hard-code font names like 'Inter' / 'JetBrains Mono'.
  • Body / UI use --font-ui (Inter first); code / monospace use --font-mono (JetBrains Mono).
  • Inter is loaded from the complete optical-size variable faces, including normal and italic styles; font-optical-sizing: auto is enabled globally.
  • CJK and platform system UI fonts stay late in the --font-ui fallback chain, after Inter and Western fallbacks.

Type scale & weight

The user font-size preference sets data-font-scale on the root element, which the CSS uses to pick --base-font (12 / 14 / 16 / 18px). Compact UI chrome and the sidebar follow it through --ui-font-size, while chat reading surfaces derive one readable step above it through --content-font-size.

The fixed product type tokens still define component defaults: UI controls / buttons / forms use --text-base (14px); reading body — including chat Markdown, message bubbles, etc. stays one step larger than compact chrome for readability; the sidebar session list follows that same readable step while keeping list density. Drop stray font-weight: 650 / 750; converge on two weights, 400 / 500 (regular / emphasis).

Page Title
--text-2xl · 22 / 500
Section Title
--text-xl · 18 / 500
Chat body / card title
--text-lg · 16 / 400
UI control / button / form
--text-base · 14 / 500
Helper text / table
--text-sm · 13 / 400
Badge / timestamp / line number
--text-xs · 12 / 500
TokenValueUsage
--font-ui"Inter Variable", "Inter", "Helvetica Neue", Arial…UI & body (Inter first)
--font-monoJetBrains Mono…code, tool names, line numbers, diffs
--base-font14px (data-font-scale: 12/14/16/18)root setting that drives UI, reading body, and sidebar font sizes
--content-font-sizecalc(base + 1px)chat Markdown, message bubbles, composer
--leading-tight/normal/relaxed1.25 / 1.5 / 1.7headings / UI / long text
--weight-regular/medium400 / 500body / emphasis

Icon size

Icons use three size tokens uniformly. The global .p-ic default is 16px (--p-ic-md); components pick as needed, and random pixel sizes are forbidden.

TokenValueUsage
--p-ic-sm14pxsmall button, badge, menu item, inline link icon
--p-ic-md16pxdefault (button, icon button, toolbar)
--p-ic-lg20pxToast status icon, empty-state illustration

Icon

Icons always come from the centralized registry lib/icons.ts: in templates use the <Icon name size /> component (components/ui/Icon.vue); for v-html contexts (such as a tool glyph) use iconSvg(name, size). Do not hand-write <svg> — the scripts/check-style.mjs icon-from-registry rule flags stray SVGs. Icons come from Remix Icon (Apache-2.0), uniformly in a fill style (fill="currentColor", 24×24 source grid), with color following the text; size uses the three tokens below. The registry is bundled on demand by unplugin-icons at build time from @iconify-json/ri — only icons imported in lib/icons.ts end up in the production bundle, fully offline and tree-shaken. The whole site uses only this one icon family; do not mix in other icon libraries, and never hand-write SVG paths. When an icon is missing, add it to the registry — two static ~icons/ri/* imports (component + ?raw string) plus one entry in ICONS in lib/icons.ts; the import names (e.g. RiFolderOpenLine / RawFolderOpenLine) show the ri: icon id. Do not draw it in a component.

Size scale

`,43)),t("div",L,[t("div",V,[(e(),d("svg",D,[...a[1]||(a[1]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[2]||(a[2]=o("sm · 14",-1))]),t("div",P,[(e(),d("svg",U,[...a[3]||(a[3]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[4]||(a[4]=o("md · 16",-1))]),t("div",W,[(e(),d("svg",R,[...a[5]||(a[5]=[t("path",{fill:"currentColor",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"},null,-1)])])),a[6]||(a[6]=o("lg · 20",-1))])]),a[8]||(a[8]=t("h4",{class:"mini"},"Icon library",-1)),a[9]||(a[9]=t("p",null,[o("Currently registered icons, grouped by purpose. The display order and grouping are defined by "),t("code",null,"ICON_GROUPS"),o(" in "),t("code",null,"lib/icons.ts"),o(" (a hand-maintained array covering the same icon names), and this catalog is rendered directly from that array so the registry and the document never drift.")],-1)),t("div",N,[(e(!0),d(f,null,g(T(B),([l,n])=>(e(),d(f,{key:l},[t("div",O,m(l),1),(e(!0),d(f,null,g(n,i=>(e(),d("div",{key:i,class:"icon-cell"},[r(z,{name:i},null,8,["name"]),t("span",E,m(i),1)]))),128))],64))),128))]),a[10]||(a[10]=s('

Do not use emoji as functional icons. The Pythinker robot mascot is a brand asset and is not part of this icon system.

A few special graphics are not in the registry; each has a dedicated component maintained in one place, and must not be copied by hand: <ContextRing :pct /> (the Composer context progress ring, data-driven), <AuthStateIcon kind /> (the success / expired / error colored illustrations in the login flow), <Spinner /> (loading state). Status dots (such as in the Provider list) always use CSS dots (border-radius:50%), not SVG. The scripts/check-style.mjs icon-from-registry rule exempts the above and the brand mark; all other hand-written <svg> is flagged.

Spacing

A 4px base grid. All spacing, gaps, and padding inside and outside components come from this scale — no arbitrary pixels.

--space-1 · 4
icon gap, badge padding
--space-2 · 8
control gap, small padding
--space-3 · 12
button padding, form-item gap
--space-4 · 16
card padding, grid gap
--space-5 · 20
dialog padding
--space-6 · 24
section gap
--space-8 · 32
large section gap

Dense list (sidebar / file tree)

High-density navigation lists like the sidebar share one rhythm, all on the 4px grid: in-row vertical padding --space-1 (4px), no margin between rows (the hover pill provides the separation); section gap (between logo / search / action buttons / group title / list) uniformly --space-2 (8px); between groups --space-2; the brand header is slightly looser at the top (--space-3). When building similar lists, reuse this scale — do not hand-write 1/6/7/10px.

Radius

Merge the existing 14 values into the nearest of 7 scale steps. Rule: the component type determines the radius, not the author's feel.

xs · 4
sm · 6
md · 8
lg · 12
xl · 16
2xl · 20
full · 999
TokenValueUsageMerged from
--radius-xs4pxsmall badge, inline tag2/3/4px →
--radius-sm6pxsmall button, icon button, menu item5/6px →
--radius-md8pxbutton, input, badge, card7/8/9px →
--radius-lg12pxdropdown panel10/12px →
--radius-xl16pxdialog, bottom Sheet, Composer14/16px →
--radius-2xl20pxaccent container / large panel20px
--radius-full999pxpill badge, avatar, send button999px / 50%

Elevation & z-index

Shadows express only "elevation", never decoration (no colored glow). z-index is unified into a scale, eradicating 9999-style one-upping.

sm · dropdown menu / sticky
md · Toast
lg · overlay (reserved)
xl · dialog
Z-index TokenValueUsage
--z-base0normal flow
--z-sticky100sticky header / sidebar
--z-dropdown200dropdown menu / tooltip
--z-overlay300overlay / bottom Sheet
--z-modal400dialog
--z-toast600toast
--z-max9999reserved: only this tier for extreme fallback

Motion

TokenValueUsage
--ease-outcubic-bezier(0.16, 1, 0.3, 1)enter, hover, expand
--ease-in-outcubic-bezier(0.4, 0, 0.2, 1)panel width, layout changes
--duration-fast120mspress, focus
--duration-base160mshover, show/hide
--duration-slow260msdialog, Sheet, layout

Reduced motion

i
Under @media (prefers-reduced-motion: reduce), all animation and transition durations drop to about 0.001ms (effectively off), and the Braille thinking indicator stops pulsing. Components should not check this individually; it is handled uniformly in the global styles.

Layout & breakpoints

Layout sizes and responsive breakpoints are tokenized too: sidebar width, content reading-column width, and two global breakpoints. Components should not hard-code pixels.

TokenValueUsage
--p-sidebar-w264pxleft session sidebar width
--p-content-max760pxchat reading-column max width (regular chat prose)
--p-content-wide920pxwide content (settings / panel)
--p-table-max1040pxdesktop wide-table max width (see §04)
--p-table-cell-max700pxmax width of a single table column; longer cell content wraps (see §04)
--p-bp-sm640pxmobile / desktop boundary
--p-bp-md980pxnarrow / wide screen boundary
i
At ≤640px: dialogs become bottom Sheets, the sidebar collapses into an expandable drawer, and Composer toolbar controls are allowed to wrap.
',23))]),t("section",j,[a[26]||(a[26]=s(`
03

Primitives

Component primitives are the "smallest correct units" of the site UI. Each primitive exposes variants along only two dimensions — variant / size — with appearance driven by tokens, so it naturally supports light / dark mode and customizable theme colors.

i
For every interactive primitive, the keyboard behavior, focus, and ARIA contract are in §08 Accessibility. New primitives must ship with a keyboard model — mouse-only interaction is not enough.

Component selection guide

ScenarioUse
Primary action (submit / confirm)Button variant=primary
Secondary action / cancelButton secondary / ghost
Destructive action (delete / abort)Button danger / danger-soft
Status markerBadge
Toolbar filter / model switchPill
2–4 mutually exclusive optionsSegmentedControl
Top tabsTabs
Switch / multi-selectSwitch / Checkbox
Floating content card / list action menuCard / Menu
Inline notice / global toastBanner / Toast
Dialog / confirmation · bottom panel (mobile)Dialog / Sheet

Button

4 semantic variants × 3 sizes. The primary action primary takes its color from the current theme color (§05 can switch between the blue and black families). Radius uses --radius-md uniformly (small size --radius-sm), weight 600, with a visible focus ring.

Variant matrix lightpreview
medium · default
small
With icon / state
Dark skin dark

API

Button.vue · usage
<Button variant="primary" size="md" :loading="submitting">Save</Button>
+    // variant: primary | secondary | ghost | danger | danger-soft
+    // size:    sm | md | lg
States

IconButton

Unified into three sizes — 26 / 32 / 44px — with a light-grey hover background and a visible focus ring. Replaces the ad-hoc icon + click areas scattered across components today.

IconButton
i
The desktop IconButton comes in sm 26 / md 32; on touch devices the tap target should be ≥ 44px, so use lg 44px, satisfying the §01 accessibility principle (the mobile three-piece set uses lg).

Badge · Chip · Pill

Collapsed into two kinds: Badge (status badge, with an optional status dot) and Pill (the clickable pill in the composer toolbar). Radius, font size, and padding are all unified.

Badge · status badge
Semantic variants
pendingrunningcompletedneeds confirmationfailedPYTHINKER
With icon / small size
planpassedread-only
Pill · toolbar pill (composer)
kimi-k2· thinkingyolo12k / 200k

Kbd · keyboard shortcut

Kbd renders a shortcut as keycaps — one block per key, never inline text like (⌘K). Caps are 18px tall (Badge sm rhythm): sunken surface, 1px border with a 2px bottom edge, 11px UI font, muted text. Typical placement: pushed to the row's trailing edge, opposite the label (e.g. the sidebar search row).

Kbd · keycaps
KCtrlKP

Card / Surface

All cards across the site share one shell: flat, 1px border, --radius-md radius, no shadow. The structure is split into three parts — head / body / foot. Cards differ only in the head — in two tiers by visual weight, while the shell stays consistent:

  • Operation card —— "process" content such as tool calls, Agent, Todo. The head is compact mono with no fill, low weight by default, not competing with the conversation.
  • Attention card —— content that needs a user decision, such as Question / Approval. The head carries a semantic color band (accent / warning) to stand out from the message stream.
Operation card · compact mono head (no fill)
read_filesession.ts
The head uses mono + a neutral background to emphasize its "code / process" nature; the body uses sans for readability. Flat, radius-md, same shape as the tool group and Agent group.
Attention card · semantic color-band head (accent / warning)
A decision needs your confirmationquestion
The head uses a semantic light background (accent-soft / warning-soft) to stand out from the message stream, signaling that the user must step in. The shell is exactly the same as the operation card.
Group · the container owns the border, rows are separated by hairlines
3 tool calls· completed
read_filesession.ts
grep"jwt" · 4 hits
  • Unified shell: all cards are flat + 1px border + radius-md, casting no shadow.
  • Differences are intentional: only the head distinguishes the type (compact mono vs semantic color band); the shell stays consistent.
  • Grouping: the outer container owns the border and radius; inner rows are separated by border-top hairlines, rather than each row being its own card.
  • Status dots: running (pulsing blue) / done (green) / failed (red), sharing one color vocabulary (see §04 tool calls).

Input / Select / Textarea

Unified 38px height (32px small), --radius-md radius, --color-surface-raised background, and a unified blue focus ring (0 0 0 3px accent-soft).

Form primitives
Only letters, numbers, and hyphens are allowed.
States
Please enter a valid workspace name
Normal state · validation passed

Code / Diff

Inline code, code blocks, and diffs all use the monospace font (--p-font-mono). Code blocks have a filename title bar and a copy button. Diffs use + / - row colors to express additions and deletions — additions use a success light background, deletions use a danger light background, with no gradients.

Code / Diff
inline code
The server uses jwt.verify(token) to verify the signature, returning 401 on failure.
code block
session.ts
import { verify } from './jwt';
+
+    export function auth(token: string) {
+      return verify(token, process.env.JWT_SECRET!);
+    }
diff
session.ts · +3 -1
import { verify } from './jwt';
-const secret = 'dev-secret';
+const secret = process.env.JWT_SECRET!;
return verify(token, secret);

Dialog

One dialog primitive replaces 6 hand-written implementations: unified --radius-xl radius, --shadow-xl shadow, 20px head padding, right-aligned footer actions, and an IconButton close button.

Dialog primitive
New chat
Create an independent Agent chat in the current workspace.
i
Size & height: Dialog offers three widths — md 440 / lg 640 / xl 760 (--p-content-max) — chosen by content weight. Height comes in two kinds: auto (default, grows with content up to max-height) and fixed (constant height min(680px, 100vh - 64px), with overflow scrolled inside the body). Content / multi-tab dialogs (settings, model picker, provider manager, folder browser) always use fixed so the frame size stays constant and doesn't jump when switching tabs or content length; short confirmation dialogs keep auto.

Toast

Unified information architecture: status icon + title + description. The status color appears only on the icon, avoiding large colored areas that create visual noise.

Toast
Connected to server
The local daemon is responding normally; you can start a new chat.
Context usage 82%
Consider running /compact to free up space.

Spinner

Loaders fall into two categories by scenario — do not mix them:

  • Spinner (plain · SVG ring) —— the default loader. Used for button loading, app startup (GlobalLoading), and general inline waits — "everything else".
  • ThinkingIndicator (Braille mark · brand signature) —— used only for the chat waiting state of "message sent, waiting for the Agent's first response" (the sending placeholder in ChatPane and SideChatPanel).

Spinner · plain loader (default)

`,48)),t("div",F,[a[14]||(a[14]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Spinner · common scenarios")],-1)),t("div",K,[t("div",_,[a[13]||(a[13]=s('Loading…',2)),t("button",G,[(e(),d("svg",J,[...a[11]||(a[11]=[t("circle",{class:"track",cx:"12",cy:"12",r:"9"},null,-1),t("circle",{class:"arc",cx:"12",cy:"12",r:"9"},null,-1)])])),a[12]||(a[12]=o("Submitting",-1))])])])]),a[27]||(a[27]=t("h4",{class:"mini"},'ThinkingIndicator · Braille mark (only "waiting for the Agent")',-1)),t("div",Q,[a[19]||(a[19]=t("div",{class:"stage-bar"},[t("span",{class:"st"},[o("ThinkingIndicator · chat waiting state only "),t("span",{class:"tag spec"},"signature")])],-1)),t("div",Y,[a[17]||(a[17]=t("span",{class:"stage-label"},"Shared mark",-1)),t("div",X,[r(b,{size:"lg"})]),a[18]||(a[18]=t("span",{class:"stage-label"},"Usage · only while the chat waits for a response",-1)),t("div",Z,[t("span",$,[r(b,{size:"sm"}),a[15]||(a[15]=o("Thinking…",-1))]),t("span",aa,[r(b,{size:"sm"}),a[16]||(a[16]=o("Waiting for response…",-1))])])])]),a[28]||(a[28]=s('
i
The Braille cycle is limited to the "waiting for the Agent's first response" scenario. It is rendered by ThinkingIndicator.vue, sized via tokens, and stops animating under prefers-reduced-motion. All other loading states use the plain Spinner.

Link

Inline text link: the default is the accent color with no underline; on hover it shows an underline and darkens. The .muted variant uses the secondary text color. Used for in-text jumps, external links, "view all", and other lightweight actions.

Link · inline link
Read the full design token docs before building.View on GitHubView history

Menu / Dropdown

Dropdown menu panel: raised surface + border + light shadow (--shadow-sm, flat-leaning). Menu items support icons, the current (active) state, the danger state, and the disabled state, with separators grouping items. On touch / mobile, use lg (≥44px row height) for menu items.

Menu · dropdown menu
Open file
Selected item
Disabled item
Delete chat

SegmentedControl

Mutually exclusive short option groups, commonly used for 2–4 option switches such as "light / dark / follow system". The current item is highlighted with a raised surface + subtle shadow.

SegmentedControl
LightDarkFollow system

Tabs

Tabs with a bottom hairline, used for grouping and switching sibling content. The current tab is marked with accent text + an accent underline.

Tabs
GeneralAgentAdvanced

Switch

A two-state switch for settings that take effect immediately. 36×20 track with full radius, 16px knob; when on, the track turns accent and the knob slides right, with the transition driven by tokens.

Switch

Checkbox

A 17×17 checkbox. When checked it fills with the accent color and shows a white tick (inline SVG). Often paired with a text label.

Checkbox

Avatar

A 32px default avatar with md radius; .sm is 24px. Can hold an initial or an icon; falls back to this placeholder when there is no image.

Avatar
KK

EmptyState

A centered placeholder for empty lists / panels: a 48px faint icon + title + hint, avoiding blank pages.

EmptyState
No chats yet
Click "New chat" to start a conversation with Pythinker

Divider

A 1px horizontal divider (--p-line); .p-divider-v is the vertical divider, used between inline elements.

Divider
Content above

Content below
kimi-k2thinking

Tooltip

A CSS-only hover hint, wrapped in .p-tip. Inverted background (--p-text / --p-bg), single line, no wrapping — carries only short notes.

Tooltip (hover the button)
New chat

Banner

An inline notice bar placed at the top of a content area. Three states — .info / .warning / .danger — each with a matching 18px icon.

Banner
Connected to server
Currently in yolo mode; tool calls will run automatically

Sheet / BottomSheet

A mobile bottom slide-up panel: xl top radius + drag handle, xl shadow. At ≤640px, dialogs become bottom-anchored Sheets.

BottomSheet
Choose a model
kimi-k2 · thinking
kimi-k2 · instant

Skeleton

A placeholder for loading content, using a breathing opacity animation (no gradients), following the no-gradient-text rule. Composed into titles / text lines / avatars.

Skeleton

Command Bar

An inline combination of "primary action + command text + copy", sitting between a button and a code block — used for install / onboarding / one-click execution. The primary action reuses Button primary; the command area uses a mono light-grey background.

Command Bar
curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash

TopBar

The application top bar. Solid by default; the .frost variant is translucent + background blur, used only for sticky navigation bars, and is the sole exception to the no-glassmorphism rule (see §06).

TopBar · solid / frosted glass
Solid TopBar
Frosted-glass TopBar · .frost

SectionLabel

A small group title for sidebar lists, used to section the content below (such as Workspaces in the sidebar). Spec: 13px / 700 / uppercase / letter-spacing .08em, color --color-fg-faint; left-aligned to the row's starting padding (--sb-pad-x), keeping the same indent as the group rows below. For scripts without case (such as Chinese), text-transform:uppercase simply has no effect — no special handling needed.

',48)),t("div",ta,[a[25]||(a[25]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Sidebar · group title")],-1)),t("div",ea,[a[24]||(a[24]=t("div",{class:"p-section-label",style:{padding:"12px 16px 4px"}},"Workspaces",-1)),t("div",da,[(e(),d("svg",sa,[...a[20]||(a[20]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[21]||(a[21]=o(" pythinker-code-web ",-1))]),t("div",oa,[(e(),d("svg",ia,[...a[22]||(a[22]=[t("path",{fill:"currentColor",d:"M4 5v14h16V7h-8.414l-2-2zm8.414 0H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414z"},null,-1)])])),a[23]||(a[23]=o(" playground ",-1))])])])]),t("section",la,[a[42]||(a[42]=s('
04

Chat Interface Overhaul

The message stream is the core of Pythinker Web. The goal of the overhaul: have the 6 card types (Agent / Tool / Question / Approval / DynamicWorkflow / Todo) share one card skeleton, distinguished only by the head icon and semantic color; and collapse the Composer into a single rounded container.

Unified message stream

',3)),t("div",na,[a[41]||(a[41]=t("div",{class:"stage-bar"},[t("span",{class:"st"},"Conversation · 760px reading column")],-1)),t("div",va,[t("div",ca,[a[38]||(a[38]=t("div",{class:"p-bubble-user"},"Please change the login endpoint to JWT and add the corresponding unit tests.",-1)),t("span",ra,[r(b,{size:"sm"}),a[29]||(a[29]=o("Analyzing the auth module…",-1))]),a[39]||(a[39]=s('
3 tool calls· completed · 0.8s
read_filesrc/auth/session.ts0.2s
12 export function verify(token: string) {
13 return jwt.verify(token, getSecret());
14 }
read_filesrc/auth/middleware.ts0.2s
grep"jwt.verify" · 4 matches0.1s

I looked at the structure of src/auth; it is currently based on a session cookie. The scope of the change is below — once you confirm, I'll start.

',2)),t("div",ba,[t("div",fa,[(e(),d("svg",pa,[...a[30]||(a[30]=[t("path",{fill:"currentColor",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m-1-5h2v2h-2zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1a1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.501 3.501 0 1 1 13 13.355"},null,-1)])])),a[31]||(a[31]=t("span",{class:"p-action-title"},"A decision needs your confirmation",-1))]),a[32]||(a[32]=t("div",{class:"p-action-body"},"How long should the JWT expiry be? Default 7 days, refresh token 30 days.",-1)),a[33]||(a[33]=t("div",{class:"p-action-foot"},[t("button",{class:"p-btn secondary sm"},"Customize"),t("button",{class:"p-btn primary sm"},"Use default")],-1))]),t("div",ha,[t("div",ua,[(e(),d("svg",ga,[...a[34]||(a[34]=[t("path",{fill:"currentColor",d:"m12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0m-8.66 16h15.588L12 5.5zM11 16h2v2h-2zm0-7h2v5h-2z"},null,-1)])])),a[35]||(a[35]=t("span",{class:"p-action-title"},"Write permission required",-1)),a[36]||(a[36]=t("span",{class:"p-badge warning sm",style:{"margin-left":"auto"}},"write_file",-1))]),a[37]||(a[37]=s('
About to modify src/auth/middleware.ts, 42 lines changed. Allow?
',2))]),a[40]||(a[40]=s('
Replace session with JWT signing
Refactor the auth middleware
Add unit tests
',1))])])]),a[43]||(a[43]=s('

Wide markdown tables (desktop): regular chat prose stays within the 760px reading column (--p-content-max). On desktop a wide table may grow naturally with its content up to 1040px (--p-table-max), centred within the conversation pane; beyond that the excess scrolls horizontally inside the table's own wrapper — the page and the chat area never scroll sideways. A single column is capped at 700px (--p-table-cell-max), so long cell content wraps inside the cell instead of stretching the table. The conversation outline (TOC) keeps its usual position just outside the reading column; when a table grows past it and scrolls under the rail, the TOC is hidden temporarily and returns as soon as the table leaves, without touching the user's TOC setting. On mobile a table never breaks out of the reading column.

Tool calls: compact by default, grouped, expand on demand

High-frequency calls like read_file / bash / grep are "operational noise" — if each one took a full card, parallel triggers would quickly drown out the conversation. The new strategy splits tool calls into three tiers by visual weight, pushing them as light as possible:

Three visual-weight tiers
① Tool row · lightest (default)
read_filesrc/auth/session.ts0.2s
② Tool group · medium (consecutive / parallel auto-merged; collapsed to one line)
3 tool calls· completed · 0.8s
③ Decision card · heavy (only question / approval, needs user input)
Write permission requiredwrite_file
About to modify src/auth/middleware.ts, 42 lines changed.
  • Tool calls render as compact rows by default (30px single-line mono + status dot + key argument); no head / body / shadow.
  • Consecutive or parallel calls auto-merge into one tool group; when collapsed, the whole group takes one line (N tool calls · status).
  • Clicking a row expands it in place to show details (code / output); click again to collapse — details don't grab attention by default.
  • Status is expressed with a colored dot: running (pulsing blue) / done (green) / failed (red), taking no extra space.
  • Only two types keep a full card: Question (needs an answer) and Approval (needs authorization) — they genuinely need the user's attention.
Tool Call · compact row (expand on demand)
3 tool calls· completed
read_filesession.ts
12 export function verify(…
read_filemiddleware.ts
grep"jwt" · 4 hits

Composer

Unified into a single rounded container: --radius-xl, with the whole border turning blue + a soft focus ring on focus. Toolbar controls all use the Pill / IconButton primitives, and the send button is a 32px circle.

Composer
Message Pythinker, / to run a command, @ to reference a file…
yoloplan
kimi-k2· thinking
i
Site-wide consistency: the composer has only one radius (--radius-xl · 16px) and one height; toolbar controls all use the Pill / IconButton primitives, and the send button is a 32px circle — it no longer drifts with the theme.

Responsive

See §02 --p-bp-sm for the breakpoint. This section only gives mobile-adaptation pointers for the chat interface; a full mobile mockup is out of scope for this spec.

i
At ≤640px: dialogs anchor to the bottom as Sheets (xl top radius, top drag handle), the sidebar collapses into an expandable drawer, the Composer toolbar is allowed to wrap, and the chat reading column drops its max-width to fill the screen.
',13))]),a[45]||(a[45]=s(`
05

Theming

Pythinker Web uses one unified theme: the same components, fonts, radii, shadows, and surfaces — "reskinning" only changes colors. Colors are collapsed into 4 seed tokens — two theme colors + one light surface + one dark surface; the neutrals and accent are derived from them, and the semantic status colors (success / warning / danger) ship as independent palettes paired with the seeds, one set each for light / dark.

Color seeds

Day-to-day customization only needs these 4 seeds; the whole site's neutrals and accent change with them:

Theme color · primary
--accent-primary
Theme color · secondary
--accent-secondary
Light surface
--surface-light
Dark surface
--surface-dark

Accent families

Within one theme, the theme color (accent) can switch among several color families. Two parallel families are provided today: blue (default, brand blue, carrying semantic emphasis) and black (neutral black, carrying the most restrained strong action). Both share the same components, fonts, radii, and surfaces — switching families only swaps the accent token set, with zero structural change; more families (green / purple, etc.) can be added later. The two cards below show the same primary button under the two families.

Family switch · same primary, different theme color
Blue family · default
accent
--accent #1783ff · soft #e8f3ff
Black family · neutral
accent
--accent #14171c · soft #f1f2f4

Theme console · change 4 colors, light & dark change together

Theme Console
Primary #1783ffSecondary #6b7280Light surface #ffffffDark surface #121212
Light surface previewWhite background + accent button + neutral text
Dark surface previewDark background + same accent + derived text

Light / dark mode

Driven by the two surfaces --surface-light / --surface-dark: whichever surface is current derives the corresponding foreground, border, shadow, and status colors. Switching light / dark simply swaps between these two sets of derived tokens, with zero structural change.

Benefits of one theme: components, fonts, radii, and surfaces are consistent site-wide; reskinning only changes 4 color seeds; light / dark mode works out of the box; semantic status colors are independently tunable.
06

Style Rules

Anti-pattern rules that all UI code must follow. These rules are also the basis of the check-style detection script, one-to-one with a warning.

Rule IDWhat it detectsAction
no-gradient-textgradient text / gradient backgroundForbidden
no-glassmorphismbackdrop-filter: blur (TopBar sticky nav bar is the sole exception)TopBar exempt
no-color-glowcolored / large-radius box-shadow glowForbidden
no-emoji-iconusing emoji as a functional iconForbidden
no-hardcoded-hexunregistered hex color inside a component <style>Warning
no-hardcoded-fonthard-coded font-family in a component (e.g. 'Inter') instead of var(--font-ui)Warning
radius-from-scaleradius value not in {4,6,8,12,16,20,999}Warning
z-from-scalez-index using an unregistered large numberWarning
weight-from-scalefont-weight not in {400,500}Warning

State matrix

Every interactive primitive should define the following states where applicable; missing ones are flagged by the style rules. focus-visible always uses --p-focus-ring (appears only on keyboard focus, see §08); disabled is uniformly opacity:.5.

StateButtonInputCardMenu itemSwitch
default
hover
active / pressed
focus-visible
disabled
loading
selected / active
error
readonly

Braille thinking indicator

The Braille mark is a brand signature of Pythinker Web, used only in the chat state of "message sent, waiting for the Agent's first response", and rendered uniformly by the ThinkingIndicator component. All other loading states use the plain Spinner.

Glassmorphism exemption

backdrop-filter: blur is banned site-wide, with the sole exception of the .frost variant of TopBar — and only in the one place of the "sticky navigation bar", used to stay readable over scrolling content. No other component (card, dialog, Toast, panel) may use glassmorphism; violations are flagged under no-glassmorphism.
07

App Shell & Sidebar

The structural spec for the app shell (three-column grid + right preview panel) and the left session sidebar. These are business-agnostic "skeletons" — components, fonts, radii, and surfaces are reused from §02 / §03, but layout and alignment have their own conventions.

Layout grid

On desktop it is a single-row 5-track grid: the sidebar and the right panel each occupy a permanent auto track, with the conversation column in the middle; two 0-width tracks are for the ResizeHandles.

App.vue · .app
grid-template-columns: auto 0 minmax(0, 1fr) 0 auto;
+    /*         sidebar ↑    ↑handle  ↑conversation  ↑handle ↑right panel (auto) */
TokenValueUsage
sidebar width270px default (adjustable)expanded sidebar width, changed by dragging the ResizeHandle; should approach §02's --p-sidebar-w (264px)
--preview-w460pxwidth of the right preview panel when open
--panel-head-h48pxunified height for all right panel heads + the conversation column head, so the hairline runs as one line
--p-bp-sm640px≤640 switches to a mobile single column (top bar + conversation), no sidebar / handle / right panel
  • The right panel track exists permanently, with its width transitioning between 0 ↔ var(--preview-w) (when open it squeezes the conversation column, rather than switching templates).
  • The sidebar collapses SYMMETRICALLY to the right panel: its container width animates to 0 while the content keeps its fixed width anchored to the right edge (clipped, sliding out left — no reflow, hairline stays on the clipped content). No rail remains. The collapse control differs by platform: on macOS desktop the toggle is a single resident floating IconButton pinned beside the traffic lights (rendered in both states, only the glyph swaps — the sidebar slides underneath it, never moves or flashes); on Windows / web the collapse button lives inside the sidebar header (right-aligned), and a floating expand button appears at the top-left only while collapsed. The conversation header pads left in step with the transition while collapsed.
  • All grid children must have min-height:0; min-width:0, so only the inner scroll containers scroll and the page itself does not scroll.

Sidebar alignment system (--sb-*)

All sidebar rows (group head, session row, New chat button) share 4 custom properties, so the "session title" aligns precisely under the "workspace name".

TokenValueUsage
--sb-inset12pxrow box (hover/selected pill) inset from the sidebar edges — matches the brand header's 12px padding
--sb-pad-x20pxcontent start x (= --sb-inset + 8px row padding)
--sb-gutter16pxleading icon slot width — matches the workspace folder icon so the session title aligns under the workspace name
--sb-gap6pxgap between the icon slot and the text
i
The session title's starting x = --sb-pad-x + --sb-gutter + --sb-gap. The group head has a folder icon and the session row has a status slot; both icons are the same width and position, so the titles align naturally.

Sidebar structure

The sidebar from top to bottom: brand header → New chat → search → grouped list (workspace head + session rows) → settings footer. Controls reuse the §03 primitives as much as possible. The sidebar sits on --color-sidebar-bg (one step off --color-bg: warm off-white in light, near-black in dark — the session column reads as its own plane; the hairline still separates it from the conversation pane). Vertical rhythm: the brand header keeps 12px padding (on macOS desktop the left padding grows to 80px to clear the traffic lights); rows inside the actions group (New chat + search) stack flush (0 gap, same rhythm as the list rows); adjacent groups are separated by 12px. Row hover uses --sb-hover (= the global --color-hover wash); the selected row uses --color-selected — neutral, never the accent.

BlockUseNote
Brand headerrobot mascot + name + collapse IconButton (right-aligned)on Windows / web the brand is left and the collapse IconButton sm is right-aligned inside the header. On macOS desktop the header is a bare drag strip (brand hidden, traffic lights + resident floating toggle over it)
New chatfull-width left-aligned button (custom)same rhythm as the session rows in the list (left-aligned, hover = --sb-hover). Do not use Button (centered, breaks the rhythm)
Searchbare search row (custom)no border, hover/focus shows a sunken background; icon + label, with the Kbd keycaps (⌘K / Ctrl K) pushed to the trailing edge — label and shortcut are justified apart. Do not use Input (the 38px bordered version is too heavy). Last fixed row above the list — its wrapper carries the scroll-linked seam
Section label.p-section-labeluppercase muted small titles like "Workspaces"
Workspace head / session rowsee next two sectionsshare --sb-* alignment
Settings footerfull-width left-aligned button (custom)pinned row under the session list, separated by a 1px --line top border; icon + label, same list-style family as New chat
!
Why New chat / search / inline rename don't use Button / Input: they are "list-style" controls (full-width, left-aligned, compact, borderless), while Button is centered and Input is a 38px bordered control — forcing them in would break the sidebar's visual density and alignment. This is an intentional custom exception, not an oversight.

Session row

A session row is an inset rounded pill, structured as: status slot → title → time → attention Badge → kebab.

PartRule
Containerpadding: 8px 8px inside the list's --sb-inset gutter, radius-sm; no fixed/min height — row height is font-driven (title line-height: --leading-tight, ≈16px) → ≈32px total, the sidebar-wide row rhythm. The hover kebab is absolutely positioned so it never forces the row taller (no hover jitter). hover = --sb-hover (the global --color-hover wash); active = --color-selected — neutral, no accent tint, no border, no weight change
Status slot (lead)fixed --sb-gutter width; running = Spinner sm, otherwise unread = 7px accent dot
Titleflex:1 with truncation; double-click enters inline rename (compact input, not Input)
Timemono xs, fg-faint; yields to the kebab on hover
Attention BadgeBadge sm: info (needs answer) / warning (needs approval) / danger (aborted)
kebabIconButton sm, shown on hover; dropdown uses Menu/MenuItem
Archive confirmationreplaces the title area, Button sm (danger confirm / secondary cancel)

Workspace group

The group head and session rows share --sb-*: folder icon (open/closed) → name, with the kebab and "+" revealed on hover.

  • The folder icon leads the row (switching icons between open and closed states) with the plain --sb-gap before the name — it does not pad out the --sb-gutter slot.
  • The name is quiet by design — regular weight, muted color (--color-text-muted, one step lighter than session titles), so group heads read as grouping labels. No path subtitle; hovering the name shows the full root path in a Tooltip.
  • The kebab (menu) and "+" (new chat in this workspace) both use IconButton sm inside a floating actions layer anchored to the row's right edge — no reserved layout space, so the name uses the full row width when idle. Shown on hover, keyboard focus, or while the menu is open; the layer backs itself with the sidebar surface (container background) plus the row hover wash (an ::after shown only while the row is hovered), so its color exactly equals the row's current background and the overlapped name tail doesn't bleed through (hidden via opacity:0, staying in the tab order).
  • The group is collapsible; when collapsed its session list is hidden.

Show more & collapse

The "load more / show less" control at the bottom of each workspace group is a session-row-shaped compact list control (same family as search, New chat, inline rename — not a Button). It doubles as the pagination trigger and the in-group expand / collapse toggle.

PartRule
Containersession-row pill: display:flex; gap:--sb-gap; padding:8px …, no fixed/min height (font-driven, ≈32px like a session row), same padding as a session row, radius-sm; hover = --sb-hover (no text recolor); :focus-visible uses --p-focus-ring
Lead slotempty, --sb-gutter wide, so the label's start x aligns with the session titles (--sb-pad-x + --sb-gutter + --sb-gap)
Labelfont-ui, text-xs, --color-text; flex:1, truncated
Behavior"Load more" fetches the next page and auto-expands; once more than the first page is loaded, "Show less" appears and collapses back to the first page (view-layer trim — data is kept, no refetch); "Show all" re-expands

ResizeHandle

A 4px vertical drag bar, layered over the 1px column border (margin: 0 -2px makes the whole 4px grabbable), turning accent on hover / drag.

RuleValue
Width / cursor4px / col-resize
Normal / activetransparent / accent fill
Layer--z-dropdown, above pane-level sticky chrome (chat dock at --z-sticky) so the overhang stays visible and grabbable
Behaviorpanel width follows the pointer 1:1 while dragging (the parent disables transitions to avoid lag); on release it is persisted to localStorage

Right panel

The right panels (file preview / Diff / thinking / sub-agent / side chat) share one track and one head primitive.

  • The panel head uses the PanelHeader primitive (48px = --panel-head-h), the same height as the conversation column head, so the hairline runs as one line.
  • Panel head: bold mono title + optional muted subtitle + middle slot (Badge / control / path) + close IconButton on the right.
  • When opened, the panel width goes from 0 → var(--preview-w), smoothly squeezing the conversation column.
  • At ≤640px the panel becomes a full-screen overlay (position:fixed; inset:0).
i
One-sentence principle: the sidebar / shell is a "list + grid" skeleton that reuses the §02 tokens and §03 primitives (Button / IconButton / Badge / Kbd / Menu / Spinner / PanelHeader); compact list controls that don't fit a primitive (search, New chat, inline rename, show-more) keep their custom form, governed by this section.
08

Accessibility (pragmatic edition)

Pythinker Web is a local developer tool; it does not target a specific WCAG conformance level, nor maintain a full screen-reader QA matrix. This section collects only the rules that are "low-cost, don't hurt the look, and directly benefit keyboard-heavy users", as the baseline contract for each primitive; the more expensive, lower-ROI parts (such as real-time announcement orchestration for streaming output) are not mandatory for now.

i
On the "ugly" focus ring: the focus visibility required below always uses :focus-visible (not :focus). It appears only on keyboard focus; mouse clicks don't trigger it, so it doesn't pollute the mouse-driven visual; the ring's strength is tuned uniformly with --p-focus-ring, not overridden per place.

1. Contrast & color

  • Body text vs. background contrast ≥ 4.5:1; control borders, icons, and key graphics ≥ 3:1. When changing theme colors / dark mode, verify against §05 together.
  • Button text vs. button background, and form controls (input, placeholder, helper / error text) vs. their section background must all have contrast ≥ 4.5:1 (large text ≥ 3:1). White-on-white text, a transparent borderless button floating over the page background, and a light placeholder on a near-white background are all flagged by the style rules.
  • State is not conveyed by color alone. Error, selected, and disabled states also carry text, an icon, or a shape change (for example an error state is not just red, but also carries text or an icon).

2. Keyboard operable

Anything doable with a mouse must also be doable with a keyboard; Tab order follows the DOM, with no invented skipping. Composite controls define their keyboard model per the table below; a missing model is treated as incomplete:

ControlKeyboard behavior
DialogTab cycles within the dialog (focus trap); Esc closes; focus returns to the trigger element after closing.
Menu / move the highlight, Enter selects, Esc closes.
Tabs / switch tabs (roving tabindex); only the current tab is in the Tab sequence.
Switch / Segmented / or Space / Enter to toggle.

3. Focus visibility

  • Every interactive element must have a visible focus indicator on keyboard focus, uniformly via :focus-visible + --p-focus-ring (primary actions may use --p-focus-ring-strong).
  • Bare outline: none is forbidden. To remove the default outline, you must provide an equivalent replacement style.

4. Labels & semantics

  • Semantic HTML first (button / a / input / dialog…); ARIA is added only when native semantics fall short.
  • Icon-only buttons must have an aria-labelIconButton already enforces this with a required label prop.
  • Dialog: role="dialog" + aria-modal="true", with the title as the dialog's accessible name.
  • Purely decorative SVG / icons get aria-hidden="true" to avoid being read out by screen readers.

5. Target size

Desktop click targets ≥ 32px; touch devices ≥ 44px (consistent with the §01 principle and the IconButton lg tier).

6. Reduced motion

Handled uniformly in the global styles per §02's @media (prefers-reduced-motion: reduce); components do not check this individually. The Braille thinking indicator stops pulsing.

7. Live announcements (non-mandatory)

Screen-reader announcements are not a mandatory contract in this product. Short hints like Toast can use role="status" / aria-live; chat streaming output is currently not announced word-by-word, which is an acceptable trade-off, to be added later if a real need arises.

Explicitly not mandatory for now: a WCAG conformance-level claim, a complete ARIA pattern table, a per-screen-reader QA matrix, and real-time announcement orchestration for streaming output — these are not written into the primitive contract, to avoid becoming slogans no one maintains.
`,4))])])])]))}}),xa=S(ma,[["__scopeId","data-v-b034e5af"]]);export{xa as default}; diff --git a/apps/pythinker-code/dist-web/assets/Tooltip-ms-XbEOq.js b/apps/pythinker-code/dist-web/assets/Tooltip-ms-XbEOq.js new file mode 100644 index 000000000..fec3b9fb5 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/Tooltip-ms-XbEOq.js @@ -0,0 +1 @@ +import{bQ as A,M as H,aU as b,bE as V,az as J,aL as O,s as Q,v as R,I as F,bJ as G,bL as K,aw as L,H as W,bb as Z,bB as ee,g as te,au as le,T as ae,as as B,bR as ne}from"./index-DIfcwXP7.js";var k=(h,E,e)=>new Promise((o,p)=>{var i=a=>{try{d(e.next(a))}catch(c){p(c)}},y=a=>{try{d(e.throw(a))}catch(c){p(c)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,y);d((e=e.apply(h,E)).next())});const oe=["id"],ie=["data-placement"],ue=A(H({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(h){var E;const e=h,o=b(null),p=b(null),i=b({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),y=b({}),d=b((E=e.placement)!=null?E:"top"),a=b(!1);let c=null,$=null,T=null,C=null,w=null,s=0;function X(){return C?Promise.resolve(C):(w||(w=ne(()=>import("./floating-ui.dom-xGUaHE3m.js"),[]).then(l=>(C=l,l)).catch(l=>{throw w=null,l})),w)}function D(){c&&(c(),c=null),$=null,T=null}function P(l){return k(this,null,function*(){const t=e.anchorEl,n=o.value;if(!e.visible||!t||!n||$===t&&T===n)return;const{autoUpdate:r}=yield X();l()&&e.visible&&e.anchorEl===t&&o.value===n&&(D(),$=t,T=n,c=r(t,n,()=>{N().catch(()=>{_()})}))})}function N(){return k(this,null,function*(){var l,t;const n=e.anchorEl,r=o.value;if(!e.visible||!n||!r)return!1;const{arrow:u,computePosition:m,flip:v,offset:f,shift:x}=yield X();if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;const g=[f((l=e.offset)!=null?l:6),v(),x({padding:6}),...p.value?[u({element:p.value,padding:4})]:[]],{x:S,y:j,placement:Y,middlewareData:z}=yield m(n,r,{placement:(t=e.placement)!=null?t:"top",middleware:g,strategy:"fixed"});if(!e.visible||e.anchorEl!==n||o.value!==r)return!1;if(i.value.transform=`translate3d(${Math.round(S)}px, ${Math.round(j)}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=Y,z.arrow&&p.value){const{x:I,y:U}=z.arrow,q={top:"bottom",bottom:"top",left:"right",right:"left"}[Y.split("-")[0]];y.value={left:I!=null?`${I}px`:"",top:U!=null?`${U}px`:"",[q]:"-3px"}}return!0})}function _(){var l,t;const n=e.anchorEl,r=o.value;if(!n||!r)return!1;const u=n.getBoundingClientRect(),m=r.getBoundingClientRect(),v=(l=e.offset)!=null?l:6,f=(t=e.placement)!=null?t:"top";let x=u.left,g=u.top;return f==="bottom"?g=u.bottom+v:f==="left"?x=u.left-m.width-v:f==="right"?x=u.right+v:g=u.top-m.height-v,i.value.transform=`translate3d(${Math.round(Math.max(0,x))}px, ${Math.round(Math.max(0,g))}px, 0)`,i.value.left="0px",i.value.top="0px",d.value=f,y.value={},!0}V(()=>e.visible,l=>k(null,null,function*(){const t=++s;if(l){if(a.value=!1,yield B(),t!==s||!e.visible)return;if(e.anchorEl&&o.value)try{const n=e.anchorEl,r=o.value,u=n.getBoundingClientRect();if(!(yield N())||t!==s||!e.visible||e.anchorEl!==n||o.value!==r)return;const m=i.value.transform;if(e.originX!=null&&e.originY!=null){const v=Math.abs(Number(e.originX)-u.left),f=Math.abs(Number(e.originY)-u.top);if(Math.hypot(v,f)>120){if(i.value.transform=`translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`,yield B(),t!==s||!e.visible||(a.value=!0,yield B(),t!==s||!e.visible))return;i.value.transform=m}else a.value=!0}else a.value=!0;yield P(()=>t===s)}catch{if(t!==s||!e.visible)return;if(a.value=_(),e.anchorEl&&o.value)try{yield P(()=>t===s)}catch{}}else a.value=!0}else a.value=!1,D()}));let M=0;return V([()=>e.anchorEl,()=>e.placement,()=>e.content],()=>k(null,null,function*(){const l=++M;if(e.visible&&e.anchorEl&&o.value){if(yield B(),l!==M||!e.visible||!e.anchorEl||!o.value)return;try{const t=yield N();if(l!==M||!e.visible||!e.anchorEl||!o.value)return;t||_()}catch{_()}yield P(()=>l===M)}})),J(()=>{s+=1,D()}),(l,t)=>(O(),Q(ae,{to:"body"},[R("div",{class:le(["markstream-vue",{dark:h.isDark}])},[F(te,{name:"tooltip",appear:""},{default:G(()=>[K(R("div",{id:e.id,ref_key:"tooltip",ref:o,style:L({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform,visibility:a.value?"visible":"hidden",pointerEvents:a.value?void 0:"none"}),class:"tooltip-element",role:"tooltip"},[W(Z(h.content)+" ",1),R("div",{ref_key:"arrowEl",ref:p,class:"tooltip-arrow","data-placement":d.value,style:L(y.value)},null,12,ie)],12,oe),[[ee,h.visible]])]),_:1})],2)]))}}),[["__scopeId","data-v-c606ee4c"]]);export{ue as default}; diff --git a/apps/pythinker-code/dist-web/assets/arc-D9l9PU7k.js b/apps/pythinker-code/dist-web/assets/arc-D9l9PU7k.js new file mode 100644 index 000000000..817c9542e --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/arc-D9l9PU7k.js @@ -0,0 +1 @@ +import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as on,$ as sn,a0 as fn}from"./mermaid.core-bNlBBSwN.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*ur*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),sy))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(Wy?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),ps?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},r.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},r.prototype.transform=function(t){var s=this.rect.x;s>e.WORLD_BOUNDARY?s=e.WORLD_BOUNDARY:s<-e.WORLD_BOUNDARY&&(s=-e.WORLD_BOUNDARY);var o=this.rect.y;o>e.WORLD_BOUNDARY?o=e.WORLD_BOUNDARY:o<-e.WORLD_BOUNDARY&&(o=-e.WORLD_BOUNDARY);var c=new f(s,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},r.prototype.getLeft=function(){return this.rect.x},r.prototype.getRight=function(){return this.rect.x+this.rect.width},r.prototype.getTop=function(){return this.rect.y},r.prototype.getBottom=function(){return this.rect.y+this.rect.height},r.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},w.exports=r}),(function(w,U,L){var u=L(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,w.exports=h}),(function(w,U,L){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},w.exports=u}),(function(w,U,L){var u=L(2),h=L(10),a=L(0),e=L(7),i=L(3),f=L(1),r=L(13),v=L(12),t=L(11);function s(c,l,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof e?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}s.prototype=Object.create(u.prototype);for(var o in u)s[o]=u[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,l,T){if(l==null&&T==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},s.prototype.remove=function(c){var l=c;if(c instanceof i){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),g,d=T.length,N=0;N-1&&S>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(A,1),g.target!=g.source&&g.target.edges.splice(S,1);var b=g.source.owner.getEdges().indexOf(g);if(b==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(b,1)}},s.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,g,d,N=this.getNodes(),b=N.length,A=0;AT&&(c=T),l>g&&(l=g)}return c==h.MAX_VALUE?null:(N[0].getParent().paddingLeft!=null?d=N[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new v(this.left,this.top))},s.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,g=h.MAX_VALUE,d=-h.MAX_VALUE,N,b,A,S,V,X=this.nodes,Z=X.length,D=0;DN&&(l=N),TA&&(g=A),dN&&(l=N),TA&&(g=A),d=this.nodes.length){var Z=0;T.forEach(function(D){D.owner==c&&Z++}),Z==this.nodes.length&&(this.isConnected=!0)}},w.exports=s}),(function(w,U,L){var u,h=L(1);function a(e){u=L(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),i=this.layout.newNode(null),f=this.add(e,i);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(e,i,f,r,v){if(f==null&&r==null&&v==null){if(e==null)throw"Graph is null!";if(i==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(i.child!=null)throw"Already has a child!";return e.parent=i,i.child=e,e}else{v=f,r=i,f=e;var t=r.getOwner(),s=v.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,r,v);if(f.isInterGraph=!0,f.source=r,f.target=v,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(e){if(e instanceof u){var i=e;if(i.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(i==this.rootGraph||i.parent!=null&&i.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(i.getEdges());for(var r,v=f.length,t=0;t=e.getRight()?i[0]+=Math.min(e.getX()-a.getX(),a.getRight()-e.getRight()):e.getX()<=a.getX()&&e.getRight()>=a.getRight()&&(i[0]+=Math.min(a.getX()-e.getX(),e.getRight()-a.getRight())),a.getY()<=e.getY()&&a.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-a.getY(),a.getBottom()-e.getBottom()):e.getY()<=a.getY()&&e.getBottom()>=a.getBottom()&&(i[1]+=Math.min(a.getY()-e.getY(),e.getBottom()-a.getBottom()));var v=Math.abs((e.getCenterY()-a.getCenterY())/(e.getCenterX()-a.getCenterX()));e.getCenterY()===a.getCenterY()&&e.getCenterX()===a.getCenterX()&&(v=1);var t=v*i[0],s=i[1]/v;i[0]t)return i[0]=f,i[1]=o,i[2]=v,i[3]=X,!1;if(rv)return i[0]=s,i[1]=r,i[2]=S,i[3]=t,!1;if(fv?(i[0]=l,i[1]=T,n=!0):(i[0]=c,i[1]=o,n=!0):p===y&&(f>v?(i[0]=s,i[1]=o,n=!0):(i[0]=g,i[1]=T,n=!0)),-E===y?v>f?(i[2]=V,i[3]=X,m=!0):(i[2]=S,i[3]=A,m=!0):E===y&&(v>f?(i[2]=b,i[3]=A,m=!0):(i[2]=Z,i[3]=X,m=!0)),n&&m)return!1;if(f>v?r>t?(I=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(E,y,2)):(I=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-E,y,1)):r>t?(I=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-E,y,3)):(I=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(E,y,4)),!n)switch(I){case 1:W=o,R=f+-N/y,i[0]=R,i[1]=W;break;case 2:R=g,W=r+d*y,i[0]=R,i[1]=W;break;case 3:W=T,R=f+N/y,i[0]=R,i[1]=W;break;case 4:R=l,W=r+-d*y,i[0]=R,i[1]=W;break}if(!m)switch(M){case 1:Q=A,x=v+-_/y,i[2]=x,i[3]=Q;break;case 2:x=Z,Q=t+D*y,i[2]=x,i[3]=Q;break;case 3:Q=X,x=v+_/y,i[2]=x,i[3]=Q;break;case 4:x=V,Q=t+-D*y,i[2]=x,i[3]=Q;break}}return!1},h.getCardinalDirection=function(a,e,i){return a>e?i:1+i%4},h.getIntersection=function(a,e,i,f){if(f==null)return this.getIntersection2(a,e,i);var r=a.x,v=a.y,t=e.x,s=e.y,o=i.x,c=i.y,l=f.x,T=f.y,g=void 0,d=void 0,N=void 0,b=void 0,A=void 0,S=void 0,V=void 0,X=void 0,Z=void 0;return N=s-v,A=r-t,V=t*v-r*s,b=T-c,S=o-l,X=l*c-o*T,Z=N*S-b*A,Z===0?null:(g=(A*X-S*V)/Z,d=(b*V-N*X)/Z,new u(g,d))},h.angleOfVector=function(a,e,i,f){var r=void 0;return a!==i?(r=Math.atan((f-e)/(i-a)),i=0){var T=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return T>=0&&T<=1?[T]:g>=0&&g<=1?[g]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,w.exports=h}),(function(w,U,L){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},w.exports=u}),(function(w,U,L){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,w.exports=u}),(function(w,U,L){var u=(function(){function r(v,t){for(var s=0;s"u"?"undefined":u(a);return a==null||e!="object"&&e!="function"},w.exports=h}),(function(w,U,L){function u(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(N.push(A[0]);N.length>0&&c;){var S=N[0];N.splice(0,1),d.add(S);for(var V=S.getEdges(),g=0;g-1&&A.splice(_,1)}d=new Set,b=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g0){for(var T=this.edgeToDummyNodes.get(l),g=0;g=0&&c.splice(X,1);var Z=b.getNeighborsList();Z.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&S.push(n),T.set(n,p)}})}l=l.concat(S),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},w.exports=s}),(function(w,U,L){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},w.exports=u}),(function(w,U,L){var u=L(5);function h(a,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var e=0,i=this.lworldExtX;return i!=0&&(e=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/i),e},h.prototype.transformY=function(a){var e=0,i=this.lworldExtY;return i!=0&&(e=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/i),e},h.prototype.inverseTransformX=function(a){var e=0,i=this.ldeviceExtX;return i!=0&&(e=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/i),e},h.prototype.inverseTransformY=function(a){var e=0,i=this.ldeviceExtY;return i!=0&&(e=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/i),e},h.prototype.inverseTransformPoint=function(a){var e=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return e},w.exports=h}),(function(w,U,L){function u(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);sa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},r.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;oN||d>N)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(N=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>N||d>N)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},r.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=g.length||N>=g[0].length)){for(var b=0;br}}]),i})();w.exports=e}),(function(w,U,L){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function $t(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),i=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,r=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;z--){if((function(Tt,Ct){return Tt&&Ct})(z0;){var J=void 0,It=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(e[J])<=ht+tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){e[J]=0;break}if(J===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=J&&Nt!==J;Nt--){var vt=(Nt!==n?Math.abs(e[Nt]):0)+(Nt!==J+1?Math.abs(e[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+tt*vt){this.s[Nt]=0;break}}Nt===J?It=3:Nt===n-1?It=1:(It=2,J=Nt)}switch(J++,It){case 1:{var it=e[n-2];e[n-2]=0;for(var gt=n-2;gt>=J;gt--){var mt=u.hypot(this.s[gt],it),At=this.s[gt]/mt,Ot=it/mt;this.s[gt]=mt,gt!==J&&(it=-Ot*e[gt-1],e[gt-1]=At*e[gt-1]);for(var Et=0;Et=this.s[J+1]);){var Lt=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Lt,JMath.abs(a)?(e=a/h,e=Math.abs(h)*Math.sqrt(1+e*e)):a!=0?(e=h/a,e=Math.abs(a)*Math.sqrt(1+e*e)):e=0,e},w.exports=u}),(function(w,U,L){var u=(function(){function e(i,f){for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,e),this.sequence1=i,this.sequence2=f,this.match_score=r,this.mismatch_penalty=v,this.gap_penalty=t,this.iMax=i.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s=0;i--){var f=this.listeners[i];f.event===a&&f.callback===e&&this.listeners.splice(i,1)}},h.emit=function(a,e){for(var i=0;i{var U={45:((a,e,i)=>{var f={};f.layoutBase=i(551),f.CoSEConstants=i(806),f.CoSEEdge=i(767),f.CoSEGraph=i(880),f.CoSEGraphManager=i(578),f.CoSELayout=i(765),f.CoSENode=i(991),f.ConstraintHandler=i(902),a.exports=f}),806:((a,e,i)=>{var f=i(551).FDLayoutConstants;function r(){}for(var v in f)r[v]=f[v];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0,r.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,r.TREE_REDUCTION_ON_INCREMENTAL=!0,r.PURE_INCREMENTAL=r.DEFAULT_INCREMENTAL,a.exports=r}),767:((a,e,i)=>{var f=i(551).FDLayoutEdge;function r(t,s,o){f.call(this,t,s,o)}r.prototype=Object.create(f.prototype);for(var v in f)r[v]=f[v];a.exports=r}),880:((a,e,i)=>{var f=i(551).LGraph;function r(t,s,o){f.call(this,t,s,o)}r.prototype=Object.create(f.prototype);for(var v in f)r[v]=f[v];a.exports=r}),578:((a,e,i)=>{var f=i(551).LGraphManager;function r(t){f.call(this,t)}r.prototype=Object.create(f.prototype);for(var v in f)r[v]=f[v];a.exports=r}),765:((a,e,i)=>{var f=i(551).FDLayout,r=i(578),v=i(880),t=i(991),s=i(767),o=i(806),c=i(902),l=i(551).FDLayoutConstants,T=i(551).LayoutConstants,g=i(551).Point,d=i(551).PointD,N=i(551).DimensionD,b=i(551).Layout,A=i(551).Integer,S=i(551).IGeometry,V=i(551).LGraph,X=i(551).Transform,Z=i(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var _ in f)D[_]=f[_];D.prototype.newGraphManager=function(){var n=new r(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new v(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new s(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var M=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*O.length/3;tt--)H=Math.floor(Math.random()*(tt+1)),B=O[tt],O[tt]=O[H],O[H]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=M.has(O.left)?M.get(O.left):O.left,B=M.has(O.right)?M.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:H,gap:O.gap})}else{var tt=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(tt)||(n.nodesInRelativeVertical.push(tt),n.nodeToRelativeConstraintMapVertical.set(tt,[]),n.dummyToNodeForHorizontalAlignment.has(tt)?n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(tt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(tt,n.idToNodeMap.get(tt).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(tt).push({bottom:ht,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:tt,gap:O.gap})}});else{var Q=new Map,z=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=M.has(O.left)?M.get(O.left):O.left,B=M.has(O.right)?M.get(O.right):O.right;Q.has(H)?Q.get(H).push(B):Q.set(H,[B]),Q.has(B)?Q.get(B).push(H):Q.set(B,[H])}else{var tt=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;z.has(tt)?z.get(tt).push(ht):z.set(tt,[ht]),z.has(ht)?z.get(ht).push(tt):z.set(ht,[tt])}});var Y=function(H,B){var tt=[],ht=[],J=new Z,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){tt[Nt]=[],ht[Nt]=!1;var gt=it;for(J.push(gt),It.add(gt),tt[Nt].push(gt);J.length!=0;){gt=J.shift(),B.has(gt)&&(ht[Nt]=!0);var mt=H.get(gt);mt.forEach(function(At){It.has(At)||(J.push(At),It.add(At),tt[Nt].push(At))})}Nt++}}),{components:tt,isFixed:ht}},rt=Y(Q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=rt.components,this.fixedComponentsOnHorizontal=rt.isFixed;var $=Y(z,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var O=n.idToNodeMap.get($.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p1){var R;for(R=0;RE&&(E=Math.floor(M.y)),I=Math.floor(M.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},D.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var y=V.calculateBounds(n),I=new X;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var M=0;M1;){var B=H[0];H.splice(0,1);var tt=z.indexOf(B);tt>=0&&z.splice(tt,1),$--,Y--}m!=null?O=(z.indexOf(H[0])+1)%$:O=0;for(var ht=Math.abs(E-p)/Y,J=O;rt!=Y;J=++J%$){var It=z[J].getOtherEnd(n);if(It!=m){var Nt=(p+rt*ht)%360,vt=(Nt+ht)%360;D.branchRadialLayout(It,n,Nt,vt,y+I,I),rt++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,p=0;pm&&(m=y)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(W){if(m[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=m[W];var Q=m[W][0].getParent(),z=new t(n.graphManager);z.id=x,z.paddingLeft=Q.paddingLeft||0,z.paddingRight=Q.paddingRight||0,z.paddingBottom=Q.paddingBottom||0,z.paddingTop=Q.paddingTop||0,n.idToDummyNode[x]=z;var Y=n.getGraphManager().add(n.newGraph(),z),rt=Q.getChild();rt.add(z);for(var $=0;$y?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,I=m.labelMarginLeft,M=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,I,M)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,I=E.paddingTop,M=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,I,M,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;EQ&&(Q=Y.rect.height)}p+=Q+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},D.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(E),M;return IR&&(R=$.getWidth())});var W=I/y,x=M/y,Q=Math.pow(p-E,2)+4*(W+E)*(x+p)*y,z=(E-p+Math.sqrt(Q))/(2*(W+E)),Y;m?(Y=Math.ceil(z),Y==z&&Y++):Y=Math.floor(z);var rt=Y*(W+E)-E;return R>rt&&(rt=R),rt+=E*2,rt},D.prototype.tileNodesByFavoringDim=function(n,m,p){var E=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};I&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(O){return O.rect.width*O.rect.height},W=function(O,H){return R(H)-R(O)};n.sort(function($,O){var H=W;return M.idealRowWidth?(H=I,H($.id,O.id)):H($,O)});for(var x=0,Q=0,z=0;z0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;Ep&&(m=E,p=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var M=n.rowWidth[I];if(M+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-M>=m+n.horizontalPadding?W=(n.height+R)/(M+m+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.widthI&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,R=0;RM&&(M=E[R].height);m>0&&(M+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=M,n.rowHeight[p]0)for(var rt=y;rt<=I;rt++)Y[0]+=this.grid[rt][M-1].length+this.grid[rt][M].length-1;if(I0)for(var rt=M;rt<=R;rt++)Y[3]+=this.grid[y-1][rt].length+this.grid[y][rt].length-1;for(var $=A.MAX_VALUE,O,H,B=0;B{var f=i(551).FDLayoutNode,r=i(551).IMath;function v(s,o,c,l){f.call(this,s,o,c,l)}v.prototype=Object.create(f.prototype);for(var t in f)v[t]=f[t];v.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*r.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},v.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){k=="horizontal"?(et.set(st,g.has(st)?d[g.get(st)]:q.get(st)),Lt+=et.get(st)):(et.set(st,g.has(st)?N[g.get(st)]:q.get(st)),Lt+=et.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){K.has(st)||et.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){k=="horizontal"?ft+=g.has(st)?d[g.get(st)]:q.get(st):ft+=g.has(st)?N[g.get(st)]:q.get(st)}),ft=ft/lt.length,lt.forEach(function(st){et.set(st,ft)})}});for(var wt=function(){var ot=ut.shift(),Lt=P.get(ot);Lt.forEach(function(ft){if(et.get(ft.id)st&&(st=kt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,$t=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw $t}}var fe=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),ne;!(Qt=(ne=Jt.next()).done);Qt=!0){var te=ne.value;et.set(te,et.get(te)+fe)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return et},_=function(P){var k=0,K=0,q=0,at=0;if(P.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?k++:K++:N[g.get(j.top)]-N[g.get(j.bottom)]>=0?q++:at++}),k>K&&q>at)for(var ct=0;ctK)for(var nt=0;ntat)for(var et=0;et1)l.fixedNodeConstraint.forEach(function(F,P){E[P]=[F.position.x,F.position.y],y[P]=[d[g.get(F.nodeId)],N[g.get(F.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var F=0;if(l.alignmentConstraint.vertical){for(var P=l.alignmentConstraint.vertical,k=function(et){var j=new Set;P[et].forEach(function(pt){j.add(pt)});var ut=new Set([].concat(f(j)).filter(function(pt){return R.has(pt)})),wt=void 0;ut.size>0?wt=d[g.get(ut.values().next().value)]:wt=Z(j).x,P[et].forEach(function(pt){E[F]=[wt,N[g.get(pt)]],y[F]=[d[g.get(pt)],N[g.get(pt)]],F++})},K=0;K0?wt=d[g.get(ut.values().next().value)]:wt=Z(j).y,q[et].forEach(function(pt){E[F]=[d[g.get(pt)],wt],y[F]=[d[g.get(pt)],N[g.get(pt)]],F++})},ct=0;ctz&&(z=Q[rt].length,Y=rt);if(z0){var Et={x:0,y:0};l.fixedNodeConstraint.forEach(function(F,P){var k={x:d[g.get(F.nodeId)],y:N[g.get(F.nodeId)]},K=F.position,q=X(K,k);Et.x+=q.x,Et.y+=q.y}),Et.x/=l.fixedNodeConstraint.length,Et.y/=l.fixedNodeConstraint.length,d.forEach(function(F,P){d[P]+=Et.x}),N.forEach(function(F,P){N[P]+=Et.y}),l.fixedNodeConstraint.forEach(function(F){d[g.get(F.nodeId)]=F.position.x,N[g.get(F.nodeId)]=F.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(P){var k=new Set;Dt[P].forEach(function(at){k.add(at)});var K=new Set([].concat(f(k)).filter(function(at){return R.has(at)})),q=void 0;K.size>0?q=d[g.get(K.values().next().value)]:q=Z(k).x,k.forEach(function(at){R.has(at)||(d[g.get(at)]=q)})},Ht=0;Ht0?q=N[g.get(K.values().next().value)]:q=Z(k).y,k.forEach(function(at){R.has(at)||(N[g.get(at)]=q)})},Ft=0;Ft{a.exports=w})},L={};function u(a){var e=L[a];if(e!==void 0)return e.exports;var i=L[a]={exports:{}};return U[a](i,i.exports,u),i.exports}var h=u(45);return h})()})})(he)),he.exports}var vr=se.exports,Oe;function pr(){return Oe||(Oe=1,(function(C,G){(function(U,L){C.exports=L(dr())})(vr,function(w){return(()=>{var U={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var i=arguments.length,f=Array(i>1?i-1:0),r=1;r{var f=(function(){function t(s,o){var c=[],l=!0,T=!1,g=void 0;try{for(var d=s[Symbol.iterator](),N;!(l=(N=d.next()).done)&&(c.push(N.value),!(o&&c.length===o));l=!0);}catch(b){T=!0,g=b}finally{try{!l&&d.return&&d.return()}finally{if(T)throw g}}return c}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),r=i(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(t){for(var s={},o=0;o0&&I.merge(x)});for(var M=0;M1){N=g[0],b=N.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),V),X},v.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,N=!1,b=void 0;try{for(var A=s.nodeIndexes[Symbol.iterator](),S;!(d=(S=A.next()).done);d=!0){var V=S.value,X=f(V,2),Z=X[0],D=X[1],_=o.cy.getElementById(Z);if(_){var n=_.boundingBox(),m=s.xCoords[D]-n.w/2,p=s.xCoords[D]+n.w/2,E=s.yCoords[D]-n.h/2,y=s.yCoords[D]+n.h/2;ml&&(l=p),Eg&&(g=y)}}}catch(x){N=!0,b=x}finally{try{!d&&A.return&&A.return()}finally{if(N)throw b}}var I=t.x-(l+c)/2,M=t.y-(g+T)/2;s.xCoords=s.xCoords.map(function(x){return x+I}),s.yCoords=s.yCoords.map(function(x){return x+M})}else{Object.keys(s).forEach(function(x){var Q=s[x],z=Q.getRect().x,Y=Q.getRect().x+Q.getRect().width,rt=Q.getRect().y,$=Q.getRect().y+Q.getRect().height;zl&&(l=Y),rtg&&(g=$)});var R=t.x-(l+c)/2,W=t.y-(g+T)/2;Object.keys(s).forEach(function(x){var Q=s[x];Q.setCenter(Q.getCenterX()+R,Q.getCenterY()+W)})}}},v.calcBoundingBox=function(t,s,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,N=void 0,b=void 0,A=void 0,S=void 0,V=t.descendants().not(":parent"),X=V.length,Z=0;ZN&&(l=N),TA&&(g=A),d{var f=i(548),r=i(140).CoSELayout,v=i(140).CoSENode,t=i(140).layoutBase.PointD,s=i(140).layoutBase.DimensionD,o=i(140).layoutBase.LayoutConstants,c=i(140).layoutBase.FDLayoutConstants,l=i(140).CoSEConstants,T=function(d,N){var b=d.cy,A=d.eles,S=A.nodes(),V=A.edges(),X=void 0,Z=void 0,D=void 0,_={};d.randomize&&(X=N.nodeIndexes,Z=N.xCoords,D=N.yCoords);var n=function(x){return typeof x=="function"},m=function(x,Q){return n(x)?x(Q):x},p=f.calcParentsWithoutChildren(b,A),E=function W(x,Q,z,Y){for(var rt=Q.length,$=0;$0){var J=void 0;J=z.getGraphManager().add(z.newGraph(),B),W(J,H,z,Y)}}},y=function(x,Q,z){for(var Y=0,rt=0,$=0;$0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/rt:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,Q){Q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=Q.fixedNodeConstraint),Q.alignmentConstraint&&(x.constraints.alignmentConstraint=Q.alignmentConstraint),Q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=Q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new r,R=M.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(S),M,d),y(M,R,V),I(M,d),M.runLayout(),_};a.exports={coseLayout:T}}),212:((a,e,i)=>{var f=(function(){function d(N,b){for(var A=0;A0)if(p){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(S,A.eles,I),D.forEach(function(vt){var it=vt.boundingBox();_.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(vt){A.eles=vt,X.push(o(A))}),A.quality=="default"||A.quality=="proof"){var M=S.collection();if(A.tile){var R=new Map,W=[],x=[],Q=0,z={nodeIndexes:R,xCoords:W,yCoords:x},Y=[];if(D.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(gt,mt){M.merge(vt.nodes()[mt]),gt.isParent()||(z.nodeIndexes.set(vt.nodes()[mt].id(),Q++),z.xCoords.push(vt.nodes()[0].position().x),z.yCoords.push(vt.nodes()[0].position().y))}),Y.push(it))}),M.length>1){var rt=M.boundingBox();_.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2}),D.push(M),X.push(z);for(var $=Y.length-1;$>=0;$--)D.splice(Y[$],1),X.splice(Y[$],1),_.splice(Y[$],1)}}D.forEach(function(vt,it){A.eles=vt,Z.push(l(A,X[it])),t.relocateComponent(_[it],Z[it],A)})}else D.forEach(function(vt,it){t.relocateComponent(_[it],X[it],A)});var O=new Set;if(D.length>1){var H=[],B=V.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,it){var gt=void 0;if(A.quality=="draft"&&(gt=X[it].nodeIndexes),vt.nodes().not(B).length>0){var mt={};mt.edges=[],mt.nodes=[];var At=void 0;vt.nodes().not(B).forEach(function(Ot){if(A.quality=="draft")if(!Ot.isParent())At=gt.get(Ot.id()),mt.nodes.push({x:X[it].xCoords[At]-Ot.boundingbox().w/2,y:X[it].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,X[it].xCoords,X[it].yCoords,gt);mt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else Z[it][Ot.id()]&&mt.nodes.push({x:Z[it][Ot.id()].getLeft(),y:Z[it][Ot.id()].getTop(),width:Z[it][Ot.id()].getWidth(),height:Z[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var Et=Ot.source(),Dt=Ot.target();if(Et.css("display")!="none"&&Dt.css("display")!="none")if(A.quality=="draft"){var Rt=gt.get(Et.id()),Ht=gt.get(Dt.id()),Ut=[],Pt=[];if(Et.isParent()){var Ft=t.calcBoundingBox(Et,X[it].xCoords,X[it].yCoords,gt);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(X[it].xCoords[Rt]),Ut.push(X[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,X[it].xCoords,X[it].yCoords,gt);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(X[it].xCoords[Ht]),Pt.push(X[it].yCoords[Ht]);mt.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else Z[it][Et.id()]&&Z[it][Dt.id()]&&mt.edges.push({startX:Z[it][Et.id()].getCenterX(),startY:Z[it][Et.id()].getCenterY(),endX:Z[it][Dt.id()].getCenterX(),endY:Z[it][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(H.push(mt),O.add(it))}});var tt=m.packComponents(H,A.randomize).shifts;if(A.quality=="draft")X.forEach(function(vt,it){var gt=vt.xCoords.map(function(At){return At+tt[it].dx}),mt=vt.yCoords.map(function(At){return At+tt[it].dy});vt.xCoords=gt,vt.yCoords=mt});else{var ht=0;O.forEach(function(vt){Object.keys(Z[vt]).forEach(function(it){var gt=Z[vt][it];gt.setCenter(gt.getCenterX()+tt[ht].dx,gt.getCenterY()+tt[ht].dy)}),ht++})}}}else{var E=A.eles.boundingBox();if(_.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var y=o(A);X.push(y)}A.quality=="default"||A.quality=="proof"?(Z.push(l(A,X[0])),t.relocateComponent(_[0],Z[0],A)):t.relocateComponent(_[0],X[0],A)}var J=function(it,gt){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=gt);var mt=void 0,At=void 0,Ot=it.data("id");return Z.forEach(function(Dt){Ot in Dt&&(mt={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),A.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?mt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(mt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?mt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(mt.y-=At.labelHeight/2))),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}else{var Et=void 0;return X.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(Et={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var It=t.calcParentsWithoutChildren(S,V),Nt=V.filter(function(vt){return vt.css("display")=="none"});A.eles=V.not(Nt),V.nodes().not(":parent").not(Nt).layoutPositions(b,A,J),It.length>0&&It.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();a.exports=g}),657:((a,e,i)=>{var f=i(548),r=i(140).layoutBase.Matrix,v=i(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),g=l.nodes(":parent"),d=new Map,N=new Map,b=new Map,A=[],S=[],V=[],X=[],Z=[],D=[],_=[],n=[],m=void 0,p=1e8,E=1e-9,y=o.piTol,I=o.samplingType,M=o.nodeSeparation,R=void 0,W=function(){for(var P=0,k=0,K=!1;k=at;){nt=q[at++];for(var xt=A[nt],lt=0;ltut&&(ut=Z[Lt],wt=Lt)}return wt},Q=function(P){var k=void 0;if(P){k=Math.floor(Math.random()*m);for(var q=0;q=1)break;j=et}for(var pt=0;pt=1)break;j=et}for(var lt=0;lt0&&(k.isParent()?A[P].push(b.get(k.id())):A[P].push(k.id()))})});var Nt=function(P){var k=N.get(P),K=void 0;d.get(P).forEach(function(q){c.getElementById(q).isParent()?K=b.get(q):K=q,A[k].push(K),A[N.get(K)].push(P)})},vt=!0,it=!1,gt=void 0;try{for(var mt=d.keys()[Symbol.iterator](),At;!(vt=(At=mt.next()).done);vt=!0){var Ot=At.value;Nt(Ot)}}catch(F){it=!0,gt=F}finally{try{!vt&&mt.return&&mt.return()}finally{if(it)throw gt}}m=N.size;var Et=void 0;if(m>2){R=m{var f=i(212),r=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&r(cytoscape),a.exports=r}),140:(a=>{a.exports=w})},L={};function u(a){var e=L[a];if(e!==void 0)return e.exports;var i=L[a]={exports:{}};return U[a](i,i.exports,u),i.exports}var h=u(579);return h})()})})(se)),se.exports}var yr=pr();const Er=Be(yr);var De={L:"left",R:"right",T:"top",B:"bottom"},xe={L:dt(C=>`${C},${C/2} 0,${C} 0,0`,"L"),R:dt(C=>`0,${C/2} ${C},0 ${C},${C}`,"R"),T:dt(C=>`0,0 ${C},0 ${C/2},${C}`,"T"),B:dt(C=>`${C/2},0 ${C},${C} 0,${C}`,"B")},oe={L:dt((C,G)=>C-G+2,"L"),R:dt((C,G)=>C-2,"R"),T:dt((C,G)=>C-G+2,"T"),B:dt((C,G)=>C-2,"B")},mr=dt(function(C){return Wt(C)?C==="L"?"R":"L":C==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ie=dt(function(C){const G=C;return G==="L"||G==="R"||G==="T"||G==="B"},"isArchitectureDirection"),Wt=dt(function(C){const G=C;return G==="L"||G==="R"},"isArchitectureDirectionX"),qt=dt(function(C){const G=C;return G==="T"||G==="B"},"isArchitectureDirectionY"),me=dt(function(C,G){const w=Wt(C)&&qt(G),U=qt(C)&&Wt(G);return w||U},"isArchitectureDirectionXY"),Tr=dt(function(C){const G=C[0],w=C[1],U=Wt(G)&&qt(w),L=qt(G)&&Wt(w);return U||L},"isArchitecturePairXY"),Nr=dt(function(C){return C!=="LL"&&C!=="RR"&&C!=="TT"&&C!=="BB"},"isValidArchitectureDirectionPair"),pe=dt(function(C,G){const w=`${C}${G}`;return Nr(w)?w:void 0},"getArchitectureDirectionPair"),Lr=dt(function([C,G],w){const U=w[0],L=w[1];return Wt(U)?qt(L)?[C+(U==="L"?-1:1),G+(L==="T"?1:-1)]:[C+(U==="L"?-1:1),G]:Wt(L)?[C+(L==="L"?1:-1),G+(U==="T"?1:-1)]:[C,G+(U==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Cr=dt(function(C){return C==="LT"||C==="TL"?[1,1]:C==="BL"||C==="LB"?[1,-1]:C==="BR"||C==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Ar=dt(function(C,G){return me(C,G)?"bend":Wt(C)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wr=dt(function(C){return C.type==="service"},"isArchitectureService"),Mr=dt(function(C){return C.type==="junction"},"isArchitectureJunction"),Fe=dt(C=>C.data(),"edgeData"),ie=dt(C=>C.data(),"nodeData"),Or=ir.architecture,be=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=qe,this.getAccTitle=Qe,this.setDiagramTitle=Je,this.getDiagramTitle=Ke,this.getAccDescription=je,this.setAccDescription=_e,this.clear()}static{dt(this,"ArchitectureDB")}setDiagramId(C){this.diagramId=C}getDiagramId(){return this.diagramId}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",tr()}addService({id:C,icon:G,in:w,title:U,iconText:L}){if(this.registeredIds[C]!==void 0)throw new Error(`The service id [${C}] is already in use by another ${this.registeredIds[C]}`);if(w!==void 0){if(C===w)throw new Error(`The service [${C}] cannot be placed within itself`);if(this.registeredIds[w]===void 0)throw new Error(`The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[w]==="node")throw new Error(`The service [${C}]'s parent is not a group`)}this.registeredIds[C]="node",this.nodes[C]={id:C,type:"service",icon:G,iconText:L,title:U,edges:[],in:w}}getServices(){return Object.values(this.nodes).filter(wr)}addJunction({id:C,in:G}){if(this.registeredIds[C]!==void 0)throw new Error(`The junction id [${C}] is already in use by another ${this.registeredIds[C]}`);if(G!==void 0){if(C===G)throw new Error(`The junction [${C}] cannot be placed within itself`);if(this.registeredIds[G]===void 0)throw new Error(`The junction [${C}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds[G]==="node")throw new Error(`The junction [${C}]'s parent is not a group`)}this.registeredIds[C]="node",this.nodes[C]={id:C,type:"junction",edges:[],in:G}}getJunctions(){return Object.values(this.nodes).filter(Mr)}getNodes(){return Object.values(this.nodes)}getNode(C){return this.nodes[C]??null}addGroup({id:C,icon:G,in:w,title:U}){if(this.registeredIds?.[C]!==void 0)throw new Error(`The group id [${C}] is already in use by another ${this.registeredIds[C]}`);if(w!==void 0){if(C===w)throw new Error(`The group [${C}] cannot be placed within itself`);if(this.registeredIds?.[w]===void 0)throw new Error(`The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[w]==="node")throw new Error(`The group [${C}]'s parent is not a group`)}this.registeredIds[C]="group",this.groups[C]={id:C,icon:G,title:U,in:w}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:C,rhsId:G,lhsDir:w,rhsDir:U,lhsInto:L,rhsInto:u,lhsGroup:h,rhsGroup:a,title:e}){if(!Ie(w))throw new Error(`Invalid direction given for left hand side of edge ${C}--${G}. Expected (L,R,T,B) got ${String(w)}`);if(!Ie(U))throw new Error(`Invalid direction given for right hand side of edge ${C}--${G}. Expected (L,R,T,B) got ${String(U)}`);if(this.nodes[C]===void 0&&this.groups[C]===void 0)throw new Error(`The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[G]===void 0&&this.groups[G]===void 0)throw new Error(`The right-hand id [${G}] does not yet exist. Please create the service/group before declaring an edge to it.`);const i=this.nodes[C].in,f=this.nodes[G].in;if(h&&i&&f&&i==f)throw new Error(`The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(a&&i&&f&&i==f)throw new Error(`The right-hand id [${G}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const r={lhsId:C,lhsDir:w,lhsInto:L,lhsGroup:h,rhsId:G,rhsDir:U,rhsInto:u,rhsGroup:a,title:e};this.edges.push(r),this.nodes[C]&&this.nodes[G]&&(this.nodes[C].edges.push(this.edges[this.edges.length-1]),this.nodes[G].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const C={},G=Object.entries(this.nodes).reduce((a,[e,i])=>(a[e]=i.edges.reduce((f,r)=>{const v=this.getNode(r.lhsId)?.in,t=this.getNode(r.rhsId)?.in;if(v&&t&&v!==t){const s=Ar(r.lhsDir,r.rhsDir);s!=="bend"&&(C[v]??={},C[v][t]=s,C[t]??={},C[t][v]=s)}if(r.lhsId===e){const s=pe(r.lhsDir,r.rhsDir);s&&(f[s]=r.rhsId)}else{const s=pe(r.rhsDir,r.lhsDir);s&&(f[s]=r.lhsId)}return f},{}),a),{}),w=Object.keys(G)[0],U={[w]:1},L=Object.keys(G).reduce((a,e)=>e===w?a:{...a,[e]:1},{}),u=dt(a=>{const e={[a]:[0,0]},i=[a];for(;i.length>0;){const f=i.shift();if(f){U[f]=1,delete L[f];const r=G[f],[v,t]=e[f];Object.entries(r).forEach(([s,o])=>{U[o]||(e[o]=Lr([v,t],s),i.push(o))})}}return e},"BFS"),h=[u(w)];for(;Object.keys(L).length>0;)h.push(u(Object.keys(L)[0]));this.dataStructures={adjList:G,spatialMaps:h,groupAlignments:C}}return this.dataStructures}setElementForId(C,G){this.elements[C]=G}getElementById(C){return this.elements[C]}getConfig(){return er({...Or,...rr().architecture})}getConfigField(C){return this.getConfig()[C]}},Dr=dt((C,G)=>{lr(C,G),C.groups.map(w=>G.addGroup(w)),C.services.map(w=>G.addService({...w,type:"service"})),C.junctions.map(w=>G.addJunction({...w,type:"junction"})),C.edges.map(w=>G.addEdge(w))},"populateDb"),Pe={parser:{yy:void 0},parse:dt(async C=>{const G=await fr("architecture",C);Re.debug(G);const w=Pe.parser?.yy;if(!(w instanceof be))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Dr(G,w)},"parse")},xr=dt(C=>` + .edge { + stroke-width: ${C.archEdgeWidth}; + stroke: ${C.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${C.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${C.archGroupBorderColor}; + stroke-width: ${C.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,"getStyles"),Ir=xr,re=dt(C=>`${C}`,"wrapIcon"),ae={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:re('')},server:{body:re('')},disk:{body:re('')},internet:{body:re('')},cloud:{body:re('')},unknown:hr,blank:{body:re("")}}},Rr=dt(async function(C,G,w,U){const L=w.getConfigField("padding"),u=w.getConfigField("iconSize"),h=u/2,a=u/6,e=a/2;await Promise.all(G.edges().map(async i=>{const{source:f,sourceDir:r,sourceArrow:v,sourceGroup:t,target:s,targetDir:o,targetArrow:c,targetGroup:l,label:T}=Fe(i);let{x:g,y:d}=i[0].sourceEndpoint();const{x:N,y:b}=i[0].midpoint();let{x:A,y:S}=i[0].targetEndpoint();const V=L+4;if(t&&(Wt(r)?g+=r==="L"?-V:V:d+=r==="T"?-V:V+18),l&&(Wt(o)?A+=o==="L"?-V:V:S+=o==="T"?-V:V+18),!t&&w.getNode(f)?.type==="junction"&&(Wt(r)?g+=r==="L"?h:-h:d+=r==="T"?h:-h),!l&&w.getNode(s)?.type==="junction"&&(Wt(o)?A+=o==="L"?h:-h:S+=o==="T"?h:-h),i[0]._private.rscratch){const X=C.insert("g");if(X.insert("path").attr("d",`M ${g},${d} L ${N},${b} L${A},${S} `).attr("class","edge").attr("id",`${U}-${or(f,s,{prefix:"L"})}`),v){const Z=Wt(r)?oe[r](g,a):g-e,D=qt(r)?oe[r](d,a):d-e;X.insert("polygon").attr("points",xe[r](a)).attr("transform",`translate(${Z},${D})`).attr("class","arrow")}if(c){const Z=Wt(o)?oe[o](A,a):A-e,D=qt(o)?oe[o](S,a):S-e;X.insert("polygon").attr("points",xe[o](a)).attr("transform",`translate(${Z},${D})`).attr("class","arrow")}if(T){const Z=me(r,o)?"XY":Wt(r)?"X":"Y";let D=0;Z==="X"?D=Math.abs(g-A):Z==="Y"?D=Math.abs(d-S)/1.5:D=Math.abs(g-A)/2;const _=X.append("g");if(await Ee(_,T,{useHtmlLabels:!1,width:D,classes:"architecture-service-label"},ye()),_.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),Z==="X")_.attr("transform","translate("+N+", "+b+")");else if(Z==="Y")_.attr("transform","translate("+N+", "+b+") rotate(-90)");else if(Z==="XY"){const n=pe(r,o);if(n&&Tr(n)){const m=_.node().getBoundingClientRect(),[p,E]=Cr(n);_.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*p*E*45})`);const y=_.node().getBoundingClientRect();_.attr("transform",` + translate(${N}, ${b-m.height/2}) + translate(${p*y.width/2}, ${E*y.height/2}) + rotate(${-1*p*E*45}, 0, ${m.height/2}) + `)}}}}}))},"drawEdges"),Sr=dt(async function(C,G,w,U){const u=w.getConfigField("padding")*.75,h=w.getConfigField("fontSize"),e=w.getConfigField("iconSize")/2;await Promise.all(G.nodes().map(async i=>{const f=ie(i);if(f.type==="group"){const{h:r,w:v,x1:t,y1:s}=i.boundingBox(),o=C.append("rect");o.attr("id",`${U}-group-${f.id}`).attr("x",t+e).attr("y",s+e).attr("width",v).attr("height",r).attr("class","node-bkg");const c=C.append("g");let l=t,T=s;if(f.icon){const g=c.append("g");g.html(`${await ve(f.icon,{height:u,width:u,fallbackPrefix:ae.prefix})}`),g.attr("transform","translate("+(l+e+1)+", "+(T+e+1)+")"),l+=u,T+=h/2-1-2}if(f.label){const g=c.append("g");await Ee(g,f.label,{useHtmlLabels:!1,width:v,classes:"architecture-service-label"},ye()),g.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),g.attr("transform","translate("+(l+e+4)+", "+(T+e+2)+")")}w.setElementForId(f.id,o)}}))},"drawGroups"),Fr=dt(async function(C,G,w,U){const L=ye();for(const u of w){const h=G.append("g"),a=C.getConfigField("iconSize");if(u.title){const r=h.append("g");await Ee(r,u.title,{useHtmlLabels:!1,width:a*1.5,classes:"architecture-service-label"},L),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),r.attr("transform","translate("+a/2+", "+a+")")}const e=h.append("g");if(u.icon)e.html(`${await ve(u.icon,{height:a,width:a,fallbackPrefix:ae.prefix})}`);else if(u.iconText){e.html(`${await ve("blank",{height:a,width:a,fallbackPrefix:ae.prefix})}`);const t=e.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(ar(u.iconText,L)),s=parseInt(window.getComputedStyle(t.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;t.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/s)};`)}else e.append("path").attr("class","node-bkg").attr("id",`${U}-node-${u.id}`).attr("d",`M0,${a} V5 Q0,0 5,0 H${a-5} Q${a},0 ${a},5 V${a} Z`);h.attr("id",`${U}-service-${u.id}`).attr("class","architecture-service");const{width:i,height:f}=h.node().getBBox();u.width=i,u.height=f,C.setElementForId(u.id,h)}return 0},"drawServices"),br=dt(function(C,G,w,U){w.forEach(L=>{const u=G.append("g"),h=C.getConfigField("iconSize");u.append("g").append("rect").attr("id",`${U}-node-${L.id}`).attr("fill-opacity","0").attr("width",h).attr("height",h),u.attr("class","architecture-junction");const{width:e,height:i}=u._groups[0][0].getBBox();u.width=e,u.height=i,C.setElementForId(L.id,u)})},"drawJunctions");sr([{name:ae.prefix,icons:ae}]);Se.use(Er);function Ge(C,G,w){C.forEach(U=>{G.add({group:"nodes",data:{type:"service",id:U.id,icon:U.icon,label:U.title,parent:U.in,width:w.getConfigField("iconSize"),height:w.getConfigField("iconSize")},classes:"node-service"})})}dt(Ge,"addServices");function Ue(C,G,w){C.forEach(U=>{G.add({group:"nodes",data:{type:"junction",id:U.id,parent:U.in,width:w.getConfigField("iconSize"),height:w.getConfigField("iconSize")},classes:"node-junction"})})}dt(Ue,"addJunctions");function Ye(C,G){G.nodes().map(w=>{const U=ie(w);if(U.type==="group")return;U.x=w.position().x,U.y=w.position().y,C.getElementById(U.id).attr("transform","translate("+(U.x||0)+","+(U.y||0)+")")})}dt(Ye,"positionNodes");function Xe(C,G){C.forEach(w=>{G.add({group:"nodes",data:{type:"group",id:w.id,icon:w.icon,label:w.title,parent:w.in},classes:"node-group"})})}dt(Xe,"addGroups");function He(C,G){C.forEach(w=>{const{lhsId:U,rhsId:L,lhsInto:u,lhsGroup:h,rhsInto:a,lhsDir:e,rhsDir:i,rhsGroup:f,title:r}=w,v=me(w.lhsDir,w.rhsDir)?"segments":"straight",t={id:`${U}-${L}`,label:r,source:U,sourceDir:e,sourceArrow:u,sourceGroup:h,sourceEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%",target:L,targetDir:i,targetArrow:a,targetGroup:f,targetEndpoint:i==="L"?"0 50%":i==="R"?"100% 50%":i==="T"?"50% 0":"50% 100%"};G.add({group:"edges",data:t,classes:v})})}dt(He,"addEdges");function We(C,G,w){const U=dt((a,e)=>Object.entries(a).reduce((i,[f,r])=>{let v=0;const t=Object.entries(r);if(t.length===1)return i[f]=t[0][1],i;for(let s=0;s{const e={},i={};return Object.entries(a).forEach(([f,[r,v]])=>{const t=C.getNode(f)?.in??"default";e[v]??={},e[v][t]??=[],e[v][t].push(f),i[r]??={},i[r][t]??=[],i[r][t].push(f)}),{horiz:Object.values(U(e,"horizontal")).filter(f=>f.length>1),vert:Object.values(U(i,"vertical")).filter(f=>f.length>1)}}),[u,h]=L.reduce(([a,e],{horiz:i,vert:f})=>[[...a,...i],[...e,...f]],[[],[]]);return{horizontal:u,vertical:h}}dt(We,"getAlignments");function Ve(C,G){const w=[],U=dt(u=>`${u[0]},${u[1]}`,"posToStr"),L=dt(u=>u.split(",").map(h=>parseInt(h)),"strToPos");return C.forEach(u=>{const h=Object.fromEntries(Object.entries(u).map(([f,r])=>[U(r),f])),a=[U([0,0])],e={},i={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;a.length>0;){const f=a.shift();if(f){e[f]=1;const r=h[f];if(r){const v=L(f);Object.entries(i).forEach(([t,s])=>{const o=U([v[0]+s[0],v[1]+s[1]]),c=h[o];c&&!e[o]&&(a.push(o),w.push({[De[t]]:c,[De[mr(t)]]:r,gap:1.5*G.getConfigField("iconSize")}))})}}}}),w}dt(Ve,"getRelativeConstraints");function ze(C,G,w,U,L,{spatialMaps:u,groupAlignments:h}){return new Promise(a=>{const e=nr("body").append("div").attr("id","cy").attr("style","display:none"),i=Se({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${L.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${L.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});e.remove(),Xe(w,i),Ge(C,i,L),Ue(G,i,L),He(U,i);const f=We(L,u,h),r=Ve(u,L),v=L.getConfigField("iconSize"),t=L.getConfigField("idealEdgeLengthMultiplier")*v,s=.5*v,o=L.getConfigField("edgeElasticity"),c=i.layout({name:"fcose",quality:"proof",randomize:L.getConfigField("randomize"),nodeSeparation:L.getConfigField("nodeSeparation"),numIter:L.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(l){const[T,g]=l.connectedNodes(),{parent:d}=ie(T),{parent:N}=ie(g);return d===N?t:s},edgeElasticity(l){const[T,g]=l.connectedNodes(),{parent:d}=ie(T),{parent:N}=ie(g);return d===N?o:.001},alignmentConstraint:f,relativePlacementConstraint:r});c.one("layoutstop",()=>{function l(T,g,d,N){let b,A;const{x:S,y:V}=T,{x:X,y:Z}=g;A=(N-V+(S-d)*(V-Z)/(S-X))/Math.sqrt(1+Math.pow((V-Z)/(S-X),2)),b=Math.sqrt(Math.pow(N-V,2)+Math.pow(d-S,2)-Math.pow(A,2));const D=Math.sqrt(Math.pow(X-S,2)+Math.pow(Z-V,2));b=b/D;let _=(X-S)*(N-V)-(Z-V)*(d-S);switch(!0){case _>=0:_=1;break;case _<0:_=-1;break}let n=(X-S)*(d-S)+(Z-V)*(N-V);switch(!0){case n>=0:n=1;break;case n<0:n=-1;break}return A=Math.abs(A)*_,b=b*n,{distances:A,weights:b}}dt(l,"getSegmentWeights"),i.startBatch();for(const T of Object.values(i.edges()))if(T.data?.()){const{x:g,y:d}=T.source().position(),{x:N,y:b}=T.target().position();if(g!==N&&d!==b){const A=T.sourceEndpoint(),S=T.targetEndpoint(),{sourceDir:V}=Fe(T),[X,Z]=qt(V)?[A.x,S.y]:[S.x,A.y],{weights:D,distances:_}=l(A,S,X,Z);T.style("segment-distances",_),T.style("segment-weights",D)}}i.endBatch(),c.run()}),c.run(),i.ready(l=>{Re.info("Ready",l),a(i)})})}dt(ze,"layoutArchitecture");var Pr=dt(async(C,G,w,U)=>{const L=U.db;L.setDiagramId(G);const u=L.getServices(),h=L.getJunctions(),a=L.getGroups(),e=L.getEdges(),i=L.getDataStructures(),f=ke(G),r=f.append("g");r.attr("class","architecture-edges");const v=f.append("g");v.attr("class","architecture-services");const t=f.append("g");t.attr("class","architecture-groups"),await Fr(L,v,u,G),br(L,v,h,G);const s=await ze(u,h,a,e,L,i);await Rr(r,s,L,G),await Sr(t,s,L,G),Ye(L,s),Ze(void 0,f,L.getConfigField("padding"),L.getConfigField("useMaxWidth"))},"draw"),Gr={draw:Pr},Vr={parser:Pe,get db(){return new be},renderer:Gr,styles:Ir};export{Vr as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/blockDiagram-GPEHLZMM-XVyKqmZc.js b/apps/pythinker-code/dist-web/assets/blockDiagram-GPEHLZMM-XVyKqmZc.js new file mode 100644 index 000000000..877537170 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/blockDiagram-GPEHLZMM-XVyKqmZc.js @@ -0,0 +1,132 @@ +import{g as pe}from"./chunk-FMBD7UC4-DwQl0sgV.js";import{an as fe,ao as Ut,ap as xe,aq as ye,ar as be,as as we,at as me,au as Se,av as Le,aw as ke,ax as ve,ay as Ee,az as _e,aA as Te,aB as De,aC as Be,aD as Ne,aE as Ie,aF as Ce,aG as Oe,aH as Re,aI as Ae,aJ as ze,aK as Me,aL as Pe,_ as d,F as at,d as D,e as Fe,l as k,A as We,C as Ye,aM as He,a9 as Ke,aa as Ue,c as A,a6 as Xe,aN as P,aO as vt,aP as $,aQ as Ve,u as tt,k as je,aR as Ge,i as Ot,aS as Rt,aT as Ze}from"./mermaid.core-bNlBBSwN.js";import{G as qe}from"./graph--OzhPTMs.js";import{c as Je}from"./channel-BHUY_2ZP.js";import"./index-DIfcwXP7.js";function Qe(e){return Array.isArray(e)}function $e(e){if(fe(e))return e;const t=Ut(e);if(!tr(e))return{};if(Qe(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(xe(e)){const s=e,i=s.constructor;return new i(s.buffer,s.byteOffset,s.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const s=e,i=s.buffer,c=s.byteOffset,r=s.byteLength,n=new ArrayBuffer(r),l=new Uint8Array(i,c,r);return new Uint8Array(n).set(l),new DataView(n)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const s=e.constructor,i=new s(e.valueOf());return t==="[object String]"?rr(i,e):yt(i,e),i}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const s=e,i=new RegExp(s.source,s.flags);return i.lastIndex=s.lastIndex,i}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const s=e,i=new Map;return s.forEach((c,r)=>{i.set(r,c)}),i}if(t==="[object Set]"){const s=e,i=new Set;return s.forEach(c=>{i.add(c)}),i}if(t==="[object Arguments]"){const s=e,i={};return yt(i,s),i.length=s.length,i[Symbol.iterator]=s[Symbol.iterator],i}const a={};return ar(a,e),yt(a,e),er(a,e),a}function tr(e){switch(Ut(e)){case Pe:case Me:case ze:case Ae:case Re:case Oe:case Ce:case Ie:case Ne:case Be:case De:case Te:case _e:case Ee:case ve:case ke:case Le:case Se:case me:case we:case be:case ye:return!0;default:return!1}}function yt(e,t){for(const a in t)Object.hasOwn(t,a)&&(e[a]=t[a])}function er(e,t){const a=Object.getOwnPropertySymbols(t);for(let s=0;s=a)&&(e[s]=t[s])}function ar(e,t){const a=Object.getPrototypeOf(t);a!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,a)}var wt=(function(){var e=d(function(T,m,u,y){for(u=u||{},y=T.length;y--;u[T[y]]=m);return u},"o"),t=[1,15],a=[1,7],s=[1,13],i=[1,14],c=[1,19],r=[1,16],n=[1,17],l=[1,18],g=[8,30],o=[8,10,21,28,29,30,31,39,43,46],p=[1,23],b=[1,24],x=[8,10,15,16,21,28,29,30,31,39,43,46],w=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],S={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(m,u,y,L,E,h,W){var f=h.length-1;switch(E){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",h[f-1]),L.setHierarchy(h[f-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",h[f]),typeof h[f].length=="number"?this.$=h[f]:this.$=[h[f]];break;case 13:L.getLogger().debug("Rule: statement #2: ",h[f-1]),this.$=[h[f-1]].concat(h[f]);break;case 14:L.getLogger().debug("Rule: link: ",h[f],m),this.$={edgeTypeStr:h[f],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",h[f-3],h[f-1],h[f]),this.$={edgeTypeStr:h[f],label:h[f-1]};break;case 18:const O=parseInt(h[f]),q=L.generateId();this.$={id:q,type:"space",label:"",width:O,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",h[f-2],h[f-1],h[f]," typestr: ",h[f-1].edgeTypeStr);const j=L.edgeStrToEdgeData(h[f-1].edgeTypeStr),st=L.edgeStrToEdgeStartData(h[f-1].edgeTypeStr),dt=L.edgeStrToThickness(h[f-1].edgeTypeStr),R=L.edgeStrToPattern(h[f-1].edgeTypeStr);this.$=[{id:h[f-2].id,label:h[f-2].label,type:h[f-2].type,directions:h[f-2].directions},{id:h[f-2].id+"-"+h[f].id,start:h[f-2].id,end:h[f].id,label:h[f-1].label,type:"edge",thickness:dt,pattern:R,directions:h[f].directions,arrowTypeEnd:j,arrowTypeStart:st},{id:h[f].id,label:h[f].label,type:L.typeStr2Type(h[f].typeStr),directions:h[f].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[f-1],h[f]),this.$={id:h[f-1].id,label:h[f-1].label,type:L.typeStr2Type(h[f-1].typeStr),directions:h[f-1].directions,widthInColumns:parseInt(h[f],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",h[f]),this.$={id:h[f].id,label:h[f].label,type:L.typeStr2Type(h[f].typeStr),directions:h[f].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",h[f]),this.$={type:"column-setting",columns:h[f]==="auto"?-1:parseInt(h[f])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",h[f-2],h[f-1]),L.generateId(),this.$={...h[f-2],type:"composite",children:h[f-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",h[f-2],h[f-1],h[f]);const G=L.generateId();this.$={id:G,type:"composite",label:"",children:h[f-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",h[f]),this.$={id:h[f]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[f-1],h[f]),this.$={id:h[f-1],label:h[f].label,typeStr:h[f].typeStr,directions:h[f].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",h[f]),this.$=[h[f]];break;case 32:L.getLogger().debug("Rule: dirList: ",h[f-1],h[f]),this.$=[h[f-1]].concat(h[f]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",h[f-2],h[f-1],h[f]),this.$={typeStr:h[f-2]+h[f],label:h[f-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[f-3],h[f-2]," #3:",h[f-1],h[f]),this.$={typeStr:h[f-3]+h[f],label:h[f-2],directions:h[f-1]};break;case 35:case 36:this.$={type:"classDef",id:h[f-1].trim(),css:h[f].trim()};break;case 37:this.$={type:"applyClass",id:h[f-1].trim(),styleClass:h[f].trim()};break;case 38:this.$={type:"applyStyles",id:h[f-1].trim(),stylesStr:h[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{8:[1,20]},e(g,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:s,29:i,31:c,39:r,43:n,46:l}),e(o,[2,16],{14:22,15:p,16:b}),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(x,[2,25],{27:[1,25]}),e(o,[2,26]),{19:26,26:12,31:c},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(w,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(g,[2,13]),{26:35,31:c},{31:[2,14]},{17:[1,36]},e(x,[2,24]),{10:t,11:37,13:4,14:22,15:p,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:c,39:r,43:n,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(w,[2,30]),{18:[1,43]},{18:[1,44]},e(x,[2,23]),{18:[1,45]},{30:[1,46]},e(o,[2,28]),e(o,[2,35]),e(o,[2,36]),e(o,[2,37]),e(o,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(o,[2,27]),e(w,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(w,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(m,u){if(u.recoverable)this.trace(m);else{var y=new Error(m);throw y.hash=u,y}},"parseError"),parse:d(function(m){var u=this,y=[0],L=[],E=[null],h=[],W=this.table,f="",O=0,q=0,j=2,st=1,dt=h.slice.call(arguments,1),R=Object.create(this.lexer),G={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(G.yy[ut]=this.yy[ut]);R.setInput(m,G.yy),G.yy.lexer=R,G.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var pt=R.yylloc;h.push(pt);var de=R.options&&R.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(Y){y.length=y.length-2*Y,E.length=E.length-Y,h.length=h.length-Y}d(ue,"popStack");function It(){var Y;return Y=L.pop()||R.lex()||st,typeof Y!="number"&&(Y instanceof Array&&(L=Y,Y=L.pop()),Y=u.symbols_[Y]||Y),Y}d(It,"lex");for(var F,J,K,ft,Q={},it,Z,Ct,nt;;){if(J=y[y.length-1],this.defaultActions[J]?K=this.defaultActions[J]:((F===null||typeof F>"u")&&(F=It()),K=W[J]&&W[J][F]),typeof K>"u"||!K.length||!K[0]){var xt="";nt=[];for(it in W[J])this.terminals_[it]&&it>j&&nt.push("'"+this.terminals_[it]+"'");R.showPosition?xt="Parse error on line "+(O+1)+`: +`+R.showPosition()+` +Expecting `+nt.join(", ")+", got '"+(this.terminals_[F]||F)+"'":xt="Parse error on line "+(O+1)+": Unexpected "+(F==st?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(xt,{text:R.match,token:this.terminals_[F]||F,line:R.yylineno,loc:pt,expected:nt})}if(K[0]instanceof Array&&K.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+F);switch(K[0]){case 1:y.push(F),E.push(R.yytext),h.push(R.yylloc),y.push(K[1]),F=null,q=R.yyleng,f=R.yytext,O=R.yylineno,pt=R.yylloc;break;case 2:if(Z=this.productions_[K[1]][1],Q.$=E[E.length-Z],Q._$={first_line:h[h.length-(Z||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(Z||1)].first_column,last_column:h[h.length-1].last_column},de&&(Q._$.range=[h[h.length-(Z||1)].range[0],h[h.length-1].range[1]]),ft=this.performAction.apply(Q,[f,q,O,G.yy,K[1],E,h].concat(dt)),typeof ft<"u")return ft;Z&&(y=y.slice(0,-1*Z*2),E=E.slice(0,-1*Z),h=h.slice(0,-1*Z)),y.push(this.productions_[K[1]][0]),E.push(Q.$),h.push(Q._$),Ct=W[y[y.length-2]][y[y.length-1]],y.push(Ct);break;case 3:return!0}}return!0},"parse")},_=(function(){var T={EOF:1,parseError:d(function(u,y){if(this.yy.parser)this.yy.parser.parseError(u,y);else throw new Error(u)},"parseError"),setInput:d(function(m,u){return this.yy=u||this.yy||{},this._input=m,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:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var u=m.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var u=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var L=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),y.length-1&&(this.yylineno-=y.length-1);var E=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:y?(y.length===L.length?this.yylloc.first_column:0)+L[L.length-y.length].length-y[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),u=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+u+"^"},"showPosition"),test_match:d(function(m,u){var y,L,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),L=m[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var h in E)this[h]=E[h];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,u,y,L;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),h=0;hu[0].length)){if(u=y,L=h,this.options.backtrack_lexer){if(m=this.test_match(y,E[h]),m!==!1)return m;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(m=this.test_match(u,E[L]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var u=this.next();return u||this.lex()},"lex"),begin:d(function(u){this.conditionStack.push(u)},"begin"),popState:d(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:d(function(u){this.begin(u)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(u,y,L,E){switch(L){case 0:return u.getLogger().debug("Found block-beta"),10;case 1:return u.getLogger().debug("Found id-block"),29;case 2:return u.getLogger().debug("Found block"),10;case 3:u.getLogger().debug(".",y.yytext);break;case 4:u.getLogger().debug("_",y.yytext);break;case 5:return 5;case 6:return y.yytext=-1,28;case 7:return y.yytext=y.yytext.replace(/columns\s+/,""),u.getLogger().debug("COLUMNS (LEX)",y.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:u.getLogger().debug("LEX: POPPING STR:",y.yytext),this.popState();break;case 13:return u.getLogger().debug("LEX: STR end:",y.yytext),"STR";case 14:return y.yytext=y.yytext.replace(/space\:/,""),u.getLogger().debug("SPACE NUM (LEX)",y.yytext),21;case 15:return y.yytext="1",u.getLogger().debug("COLUMNS (LEX)",y.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),u.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),u.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),u.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),u.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),u.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),u.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),u.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),u.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),u.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),u.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),u.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),u.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),u.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),u.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),u.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),u.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),u.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return u.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return u.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return u.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return u.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return u.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return u.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return u.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return u.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return u.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return u.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return u.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return u.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),u.getLogger().debug("LEX ARR START"),37;case 74:return u.getLogger().debug("Lex: NODE_ID",y.yytext),31;case 75:return u.getLogger().debug("Lex: EOF",y.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:u.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:u.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return u.getLogger().debug("LEX: NODE_DESCR:",y.yytext),"NODE_DESCR";case 83:u.getLogger().debug("LEX POPPING"),this.popState();break;case 84:u.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (right): dir:",y.yytext),"DIR";case 86:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (left):",y.yytext),"DIR";case 87:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (x):",y.yytext),"DIR";case 88:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (y):",y.yytext),"DIR";case 89:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (up):",y.yytext),"DIR";case 90:return y.yytext=y.yytext.replace(/^,\s*/,""),u.getLogger().debug("Lex (down):",y.yytext),"DIR";case 91:return y.yytext="]>",u.getLogger().debug("Lex (ARROW_DIR end):",y.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return u.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 93:return u.getLogger().debug("Lex: LINK",y.yytext),15;case 94:return u.getLogger().debug("Lex: LINK",y.yytext),15;case 95:return u.getLogger().debug("Lex: LINK",y.yytext),15;case 96:return u.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 97:return u.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 98:return u.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return u.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),u.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 102:return this.popState(),u.getLogger().debug("Lex: LINK",y.yytext),15;case 103:return this.popState(),u.getLogger().debug("Lex: LINK",y.yytext),15;case 104:return u.getLogger().debug("Lex: COLON",y.yytext),y.yytext=y.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return T})();S.lexer=_;function I(){this.yy={}}return d(I,"Parser"),I.prototype=S,S.Parser=I,new I})();wt.parser=wt;var sr=wt,X=new Map,Et=[],mt=new Map,At="color",zt="fill",ir="bgFill",Xt=",",nr=A(),lt=new Map,_t="",cr=d(e=>je.sanitizeText(e,nr),"sanitizeText"),lr=d(function(e,t=""){let a=lt.get(e);a||(a={id:e,styles:[],textStyles:[]},lt.set(e,a)),t?.split(Xt).forEach(s=>{const i=s.replace(/([^;]*);/,"$1").trim();if(RegExp(At).exec(s)){const r=i.replace(zt,ir).replace(At,zt);a.textStyles.push(r)}a.styles.push(i)})},"addStyleClass"),or=d(function(e,t=""){const a=X.get(e);t!=null&&(a.styles=t.split(Xt))},"addStyle2Node"),hr=d(function(e,t){e.split(",").forEach(function(a){let s=X.get(a);if(s===void 0){const i=a.trim();s={id:i,type:"na",children:[]},X.set(i,s)}s.classes||(s.classes=[]),s.classes.push(t)})},"setCssClass"),Vt=d((e,t)=>{const a=e.flat(),s=[],c=a.find(r=>r?.type==="column-setting")?.columns??-1;for(const r of a){if(typeof c=="number"&&c>0&&r.type!=="column-setting"&&typeof r.widthInColumns=="number"&&r.widthInColumns>c&&k.warn(`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${c}`),r.label&&(r.label=cr(r.label)),r.type==="classDef"){lr(r.id,r.css);continue}if(r.type==="applyClass"){hr(r.id,r?.styleClass??"");continue}if(r.type==="applyStyles"){r?.stylesStr&&or(r.id,r?.stylesStr);continue}if(r.type==="column-setting")t.columns=r.columns??-1;else if(r.type==="edge"){const n=(mt.get(r.id)??0)+1;mt.set(r.id,n),r.id=n+"-"+r.id,Et.push(r)}else{r.label||(r.type==="composite"?r.label="":r.label=r.id);const n=X.get(r.id);if(n===void 0?X.set(r.id,r):(r.type!=="na"&&(n.type=r.type),r.label!==r.id&&(n.label=r.label)),r.children&&Vt(r.children,r),r.type==="space"){const l=r.width??1;for(let g=0;g{k.debug("Clear called"),We(),rt={id:"root",type:"composite",children:[],columns:-1},X=new Map([["root",rt]]),Tt=[],lt=new Map,Et=[],mt=new Map,_t=""},"clear");function jt(e){switch(k.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return k.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}d(jt,"typeStr2Type");function Gt(e){switch(k.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}d(Gt,"edgeTypeStr2Type");function Zt(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}d(Zt,"edgeStrToEdgeData");function qt(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}d(qt,"edgeStrToEdgeStartData");function Jt(e){return e.includes("==")?"thick":"normal"}d(Jt,"edgeStrToThickness");function Qt(e){return e.includes(".-")?"dotted":"solid"}d(Qt,"edgeStrToPattern");var Mt=0,dr=d(()=>(Mt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Mt),"generateId"),ur=d(e=>{rt.children=e,Vt(e,rt),Tt=rt.children},"setHierarchy"),pr=d(e=>{const t=X.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),fr=d(()=>[...X.values()],"getBlocksFlat"),xr=d(()=>Tt||[],"getBlocks"),yr=d(()=>Et,"getEdges"),br=d(e=>X.get(e),"getBlock"),wr=d(e=>{X.set(e.id,e)},"setBlock"),mr=d(e=>{_t=e},"setDiagramId"),Sr=d(()=>_t,"getDiagramId"),Lr=d(()=>k,"getLogger"),kr=d(function(){return lt},"getClasses"),vr={getConfig:d(()=>at().block,"getConfig"),typeStr2Type:jt,edgeTypeStr2Type:Gt,edgeStrToEdgeData:Zt,edgeStrToEdgeStartData:qt,edgeStrToThickness:Jt,edgeStrToPattern:Qt,getLogger:Lr,getBlocksFlat:fr,getBlocks:xr,getEdges:yr,setHierarchy:ur,getBlock:br,setBlock:wr,getColumns:pr,getClasses:kr,clear:gr,generateId:dr,setDiagramId:mr,getDiagramId:Sr},Er=vr,bt=d((e,t)=>{const a=Je,s=a(e,"r"),i=a(e,"g"),c=a(e,"b");return Ye(s,i,c,t)},"fade"),_r=d(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + 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; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .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}; + /* + * This is for backward compatibility with existing code that didn't + * add a \`

\` around edge labels. + * + * TODO: We should probably remove this in a future release. + */ + p { + margin: 0; + padding: 0; + display: inline; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } + + .node .cluster { + // fill: ${bt(e.mainBkg,.5)}; + fill: ${bt(e.clusterBkg,.5)}; + stroke: ${bt(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + 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}; + } + ${pe()} +`,"getStyles"),Tr=_r,Dr=d((e,t,a,s)=>{t.forEach(i=>{Pr[i](e,a,s)})},"insertMarkers"),Br=d((e,t,a)=>{k.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Nr=d((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Ir=d((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Cr=d((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Or=d((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Rr=d((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Ar=d((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),zr=d((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Mr=d((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Pr={extension:Br,composition:Nr,aggregation:Ir,dependency:Cr,lollipop:Or,point:Rr,circle:Ar,cross:zr,barb:Mr},Fr=Dr,C=A()?.block?.padding??8;function St(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const a=t%e,s=Math.floor(t/e);return{px:a,py:s}}d(St,"calculateBlockPosition");var Wr=d(e=>{let t=0,a=0;for(const s of e.children){const{width:i,height:c,x:r,y:n}=s.size??{width:0,height:0,x:0,y:0};if(k.debug("getMaxChildSize abc95 child:",s.id,"width:",i,"height:",c,"x:",r,"y:",n,s.type),s.type==="space")continue;const l=i/(s.widthInColumns??1);l>t&&(t=l),c>a&&(a=c)}return{width:t,height:a}},"getMaxChildSize");function ot(e,t,a=0,s=0){k.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",a),e?.size?.width||(e.size={width:a,height:s,x:0,y:0});let i=0,c=0;if(e.children?.length>0){for(const x of e.children)ot(x,t);const r=Wr(e);i=r.width,c=r.height,k.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,c);for(const x of e.children)x.size&&(k.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${i} ${c} ${JSON.stringify(x.size)}`),x.size.width=i*(x.widthInColumns??1)+C*((x.widthInColumns??1)-1),x.size.height=c,x.size.x=0,x.size.y=0,k.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${i} maxHeight:${c}`));for(const x of e.children)ot(x,t,i,c);const n=e.columns??-1;let l=0;for(const x of e.children)l+=x.widthInColumns??1;let g=e.children.length;n>0&&n0?Math.min(e.children.length,n):e.children.length;if(x>0){const w=(p-x*C-C)/x;k.debug("abc95 (growing to fit) width",e.id,p,e.size?.width,w);for(const v of e.children)v.size&&(v.size.width=w)}}e.size={width:p,height:b,x:0,y:0}}k.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}d(ot,"setBlockSizes");function Dt(e,t){k.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const a=e.columns??-1;if(k.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){const s=e?.children[0]?.size?.width??0,i=e.children.length*s+(e.children.length-1)*C;k.debug("widthOfChildren 88",i,"posX");const c=new Map;{let o=0;for(const p of e.children){if(!p.size)continue;const{py:b}=St(a,o),x=c.get(b)??0;p.size.height>x&&c.set(b,p.size.height);let w=p?.widthInColumns??1;a>0&&(w=Math.min(w,a-o%a)),o+=w}}const r=new Map;{let o=0;const p=[...c.keys()].sort((b,x)=>b-x);for(const b of p)r.set(b,o),o+=(c.get(b)??0)+C}let n=0;k.debug("abc91 block?.size?.x",e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-C,g=0;for(const o of e.children){const p=e;if(!o.size)continue;const{width:b,height:x}=o.size,{px:w,py:v}=St(a,n);if(v!=g&&(g=v,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-C,k.debug("New row in layout for block",e.id," and child ",o.id,g)),k.debug(`abc89 layout blocks (child) id: ${o.id} Pos: ${n} (px, py) ${w},${v} (${p?.size?.x},${p?.size?.y}) parent: ${p.id} width: ${b}${C}`),p.size){const _=b/2;o.size.x=l+C+_,k.debug(`abc91 layout blocks (calc) px, pyid:${o.id} startingPos=X${l} new startingPosX${o.size.x} ${_} padding=${C} width=${b} halfWidth=${_} => x:${o.size.x} y:${o.size.y} ${o.widthInColumns} (width * (child?.w || 1)) / 2 ${b*(o?.widthInColumns??1)/2}`),l=o.size.x+_;const I=r.get(v)??0,T=c.get(v)??x;o.size.y=p.size.y-p.size.height/2+I+T/2+C,k.debug(`abc88 layout blocks (calc) px, pyid:${o.id}startingPosX${l}${C}${_}=>x:${o.size.x}y:${o.size.y}${o.widthInColumns}(width * (child?.w || 1)) / 2${b*(o?.widthInColumns??1)/2}`)}o.children&&Dt(o);let S=o?.widthInColumns??1;a>0&&(S=Math.min(S,a-n%a)),n+=S,k.debug("abc88 columnsPos",o,n)}}k.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}d(Dt,"layoutBlocks");function Bt(e,{minX:t,minY:a,maxX:s,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:c,y:r,width:n,height:l}=e.size;c-n/2s&&(s=c+n/2),r+l/2>i&&(i=r+l/2)}if(e.children)for(const c of e.children)({minX:t,minY:a,maxX:s,maxY:i}=Bt(c,{minX:t,minY:a,maxX:s,maxY:i}));return{minX:t,minY:a,maxX:s,maxY:i}}d(Bt,"findBounds");function $t(e){const t=e.getBlock("root");if(!t)return;ot(t,e,0,0),Dt(t),k.debug("getBlocks",JSON.stringify(t,null,2));const{minX:a,minY:s,maxX:i,maxY:c}=Bt(t),r=c-s,n=i-a;return{x:a,y:s,width:n,height:r}}d($t,"layout");var Yr=d(async(e,t,a,s=!1,i=!1)=>{let c=t||"";typeof c=="object"&&(c=c[0]);const r=A(),n=P(r);return await vt(e,c,{style:a,isTitle:s,useHtmlLabels:n,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},r)},"createLabel"),U=Yr,Hr=d((e,t,a,s,i)=>{t.arrowTypeStart&&Pt(e,"start",t.arrowTypeStart,a,s,i),t.arrowTypeEnd&&Pt(e,"end",t.arrowTypeEnd,a,s,i)},"addEdgeMarkers"),Kr={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Pt=d((e,t,a,s,i,c)=>{const r=Kr[a];if(!r){k.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${s}#${i}_${c}-${r}${n})`)},"addEdgeMarker"),Lt={},M={},Ur=d(async(e,t)=>{const a=A(),s=P(a),i=e.insert("g").attr("class","edgeLabel"),c=i.insert("g").attr("class","label"),r=t.labelType==="markdown",n=await vt(e,t.label,{style:t.labelStyle,useHtmlLabels:s,addSvgBackground:r,isNode:!1,markdown:r,width:r?void 0:Number.POSITIVE_INFINITY},a);c.node().appendChild(n);let l=n.getBBox(),g=l;if(s){const p=n.children[0],b=D(n);l=p.getBoundingClientRect(),g=l,b.attr("width",l.width),b.attr("height",l.height)}else{const p=D(n).select("text").node();p&&typeof p.getBBox=="function"&&(g=p.getBBox())}c.attr("transform",$(g,s)),Lt[t.id]=i,t.width=l.width,t.height=l.height;let o;if(t.startLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),b=p.insert("g").attr("class","inner"),x=await U(b,t.startLabelLeft,t.labelStyle);o=x;let w=x.getBBox();if(s){const v=x.children[0],S=D(x);w=v.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}b.attr("transform",$(w,s)),M[t.id]||(M[t.id]={}),M[t.id].startLeft=p,et(o,t.startLabelLeft)}if(t.startLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),b=p.insert("g").attr("class","inner"),x=await U(b,t.startLabelRight,t.labelStyle);o=x;let w=x.getBBox();if(s){const v=x.children[0],S=D(x);w=v.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}b.attr("transform",$(w,s)),M[t.id]||(M[t.id]={}),M[t.id].startRight=p,et(o,t.startLabelRight)}if(t.endLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),b=p.insert("g").attr("class","inner"),x=await U(p,t.endLabelLeft,t.labelStyle);o=x;let w=x.getBBox();if(s){const v=x.children[0],S=D(x);w=v.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}b.attr("transform",$(w,s)),M[t.id]||(M[t.id]={}),M[t.id].endLeft=p,et(o,t.endLabelLeft)}if(t.endLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),b=p.insert("g").attr("class","inner"),x=await U(p,t.endLabelRight,t.labelStyle);o=x;let w=x.getBBox();if(s){const v=x.children[0],S=D(x);w=v.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}b.attr("transform",$(w,s)),M[t.id]||(M[t.id]={}),M[t.id].endRight=p,et(o,t.endLabelRight)}return n},"insertEdgeLabel");function et(e,t){P(A())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}d(et,"setTerminalWidth");var Xr=d((e,t)=>{k.debug("Moving label abc88 ",e.id,e.label,Lt[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const s=A(),{subGraphTitleTotalMargin:i}=Ve(s);if(e.label){const c=Lt[e.id];let r=e.x,n=e.y;if(a){const l=tt.calcLabelPosition(a);k.debug("Moving label "+e.label+" from (",r,",",n,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(r=l.x,n=l.y)}c.attr("transform",`translate(${r}, ${n+i/2})`)}if(e.startLabelLeft){const c=M[e.id].startLeft;let r=e.x,n=e.y;if(a){const l=tt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);r=l.x,n=l.y}c.attr("transform",`translate(${r}, ${n})`)}if(e.startLabelRight){const c=M[e.id].startRight;let r=e.x,n=e.y;if(a){const l=tt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);r=l.x,n=l.y}c.attr("transform",`translate(${r}, ${n})`)}if(e.endLabelLeft){const c=M[e.id].endLeft;let r=e.x,n=e.y;if(a){const l=tt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);r=l.x,n=l.y}c.attr("transform",`translate(${r}, ${n})`)}if(e.endLabelRight){const c=M[e.id].endRight;let r=e.x,n=e.y;if(a){const l=tt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);r=l.x,n=l.y}c.attr("transform",`translate(${r}, ${n})`)}},"positionEdgeLabel"),Vr=d((e,t)=>{const a=e.x,s=e.y,i=Math.abs(t.x-a),c=Math.abs(t.y-s),r=e.width/2,n=e.height/2;return i>=r||c>=n},"outsideNode"),jr=d((e,t,a)=>{k.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(a)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const s=e.x,i=e.y,c=Math.abs(s-a.x),r=e.width/2;let n=a.xMath.abs(s-t.x)*l){let p=a.y{k.debug("abc88 cutPathAtIntersect",e,t);let a=[],s=e[0],i=!1;return e.forEach(c=>{if(!Vr(t,c)&&!i){const r=jr(t,s,c);let n=!1;a.forEach(l=>{n=n||l.x===r.x&&l.y===r.y}),a.some(l=>l.x===r.x&&l.y===r.y)||a.push(r),i=!0}else s=c,i||a.push(c)}),a},"cutPathAtIntersect"),Gr=d(function(e,t,a,s,i,c,r){let n=a.points;k.debug("abc88 InsertEdge: edge=",a,"e=",t);let l=!1;const g=c.node(t.v);var o=c.node(t.w);o?.intersect&&g?.intersect&&(n=n.slice(1,a.points.length-1),n.unshift(g.intersect(n[0])),n.push(o.intersect(n[n.length-1]))),a.toCluster&&(k.debug("to cluster abc88",s[a.toCluster]),n=Ft(a.points,s[a.toCluster].node),l=!0),a.fromCluster&&(k.debug("from cluster abc88",s[a.fromCluster]),n=Ft(n.reverse(),s[a.fromCluster].node).reverse(),l=!0);const p=n.filter(m=>!Number.isNaN(m.y));let b=Ue;a.curve&&(i==="graph"||i==="flowchart")&&(b=a.curve);const{x,y:w}=He(a),v=Ke().x(x).y(w).curve(b);let S;switch(a.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-thick";break;default:S=""}switch(a.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break}const _=e.append("path").attr("d",v(p)).attr("id",a.id).attr("class"," "+S+(a.classes?" "+a.classes:"")).attr("style",a.style);let I="";(A().flowchart.arrowMarkerAbsolute||A().state.arrowMarkerAbsolute)&&(I=Xe(!0)),Hr(_,a,I,r,i);let T={};return l&&(T.updatedPath=n),T.originalPath=a.points,T},"insertEdge"),Zr=d(e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},"expandAndDeduplicateDirections"),qr=d((e,t,a,s)=>{const i=Zr(e),c=2,r=t.height+2*a.padding,n=r/c,l=s??t.width+2*n+a.padding,g=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:l/2,y:2*g},{x:l-n,y:0},{x:l,y:0},{x:l,y:-r/3},{x:l+2*g,y:-r/2},{x:l,y:-2*r/3},{x:l,y:-r},{x:l-n,y:-r},{x:l/2,y:-r-2*g},{x:n,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*g,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:n,y:0},{x:l-n,y:0},{x:l,y:-r/2},{x:l-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:n,y:-r},{x:l-n,y:-r},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-n},{x:l,y:-r+n},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-n},{x:0,y:-r+n},{x:l,y:-r}]:i.has("right")&&i.has("left")?[{x:n,y:0},{x:n,y:-g},{x:l-n,y:-g},{x:l-n,y:0},{x:l,y:-r/2},{x:l-n,y:-r},{x:l-n,y:-r+g},{x:n,y:-r+g},{x:n,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-g},{x:n,y:-g},{x:n,y:-r+g},{x:0,y:-r+g},{x:l/2,y:-r},{x:l,y:-r+g},{x:l-n,y:-r+g},{x:l-n,y:-g},{x:l,y:-g}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-n},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-n},{x:l,y:-r}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-r}]:i.has("right")?[{x:n,y:-g},{x:n,y:-g},{x:l-n,y:-g},{x:l-n,y:0},{x:l,y:-r/2},{x:l-n,y:-r},{x:l-n,y:-r+g},{x:n,y:-r+g},{x:n,y:-r+g}]:i.has("left")?[{x:n,y:0},{x:n,y:-g},{x:l-n,y:-g},{x:l-n,y:-r+g},{x:n,y:-r+g},{x:n,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:n,y:-g},{x:n,y:-r+g},{x:0,y:-r+g},{x:l/2,y:-r},{x:l,y:-r+g},{x:l-n,y:-r+g},{x:l-n,y:-g}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-g},{x:n,y:-g},{x:n,y:-r+g},{x:l-n,y:-r+g},{x:l-n,y:-g},{x:l,y:-g}]:[{x:0,y:0}]},"getArrowPoints");function te(e,t){return e.intersect(t)}d(te,"intersectNode");var Jr=te;function ee(e,t,a,s){var i=e.x,c=e.y,r=i-s.x,n=c-s.y,l=Math.sqrt(t*t*n*n+a*a*r*r),g=Math.abs(t*a*r/l);s.x0}d(kt,"sameSign");var $r=se,ta=ie;function ie(e,t,a){var s=e.x,i=e.y,c=[],r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(w){r=Math.min(r,w.x),n=Math.min(n,w.y)}):(r=Math.min(r,t.x),n=Math.min(n,t.y));for(var l=s-e.width/2-r,g=i-e.height/2-n,o=0;o1&&c.sort(function(w,v){var S=w.x-a.x,_=w.y-a.y,I=Math.sqrt(S*S+_*_),T=v.x-a.x,m=v.y-a.y,u=Math.sqrt(T*T+m*m);return I{var a=e.x,s=e.y,i=t.x-a,c=t.y-s,r=e.width/2,n=e.height/2,l,g;return Math.abs(c)*r>Math.abs(i)*n?(c<0&&(n=-n),l=c===0?0:n*i/c,g=n):(i<0&&(r=-r),l=r,g=i===0?0:r*c/i),{x:a+l,y:s+g}},"intersectRect"),ra=ea,B={node:Jr,circle:Qr,ellipse:re,polygon:ta,rect:ra},z=d(async(e,t,a,s)=>{const i=A();let c;const r=t.useHtmlLabels||P(i);a?c=a:c="node default";const n=e.insert("g").attr("class",c).attr("id",t.domId||t.id),l=n.insert("g").attr("class","label").attr("style",t.labelStyle);let g;t.labelText===void 0?g="":g=typeof t.labelText=="string"?t.labelText:t.labelText[0];let o;t.labelType==="markdown"?o=vt(l,Ot(Rt(g),i),{useHtmlLabels:r,width:t.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):o=await U(l,Ot(Rt(g),i),t.labelStyle,!1,s);let p=o.getBBox();const b=t.padding/2;if(P(i)){const x=o.children[0],w=D(o);await Ze(x,g),p=x.getBoundingClientRect(),w.attr("width",p.width),w.attr("height",p.height)}return r?l.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):l.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:n,bbox:p,halfPadding:b,label:l}},"labelHelper"),N=d((e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height},"updateNodeBounds");function V(e,t,a,s){return e.insert("polygon",":first-child").attr("points",s.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}d(V,"insertPolygonShape");var aa=d(async(e,t)=>{t.useHtmlLabels||P(A())||(t.centerLabel=!0);const{shapeSvg:s,bbox:i,halfPadding:c}=await z(e,t,"node "+t.classes,!0);k.info("Classes = ",t.classes);const r=s.insert("rect",":first-child");return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-c).attr("y",-i.height/2-c).attr("width",i.width+t.padding).attr("height",i.height+t.padding),N(t,r),t.intersect=function(n){return B.rect(t,n)},s},"note"),sa=aa,Wt=d(e=>e?" "+e:"","formatClass"),H=d((e,t)=>`${t||"node default"}${Wt(e.classes)} ${Wt(e.class)}`,"getClassesFromNode"),Yt=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=i+c,n=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];k.info("Question main (Circle)");const l=V(a,r,r,n);return l.attr("style",t.style),N(t,l),t.intersect=function(g){return k.warn("Intersect called"),B.polygon(t,n,g)},a},"question"),ia=d((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=28,i=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}];return a.insert("polygon",":first-child").attr("points",i.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(r){return B.circle(t,14,r)},a},"choice"),na=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=4,c=t.positioned?t.height:s.height+t.padding,r=c/i,n=t.positioned?t.width:s.width+2*r+t.padding,l=[{x:r,y:0},{x:n-r,y:0},{x:n,y:-c/2},{x:n-r,y:-c},{x:r,y:-c},{x:0,y:-c/2}],g=V(a,n,c,l);return g.attr("style",t.style),N(t,g),t.intersect=function(o){return B.polygon(t,l,o)},a},"hexagon"),ca=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,void 0,!0),i=2,c=s.height+2*t.padding,r=c/i,n=s.width+2*r+t.padding,g=t.positioned&&(t.widthInColumns??1)>1&&t.width>n?t.width:n,o=qr(t.directions,s,t,g),p=V(a,g,c,o);return p.attr("style",t.style),N(t,p),t.intersect=function(b){return B.polygon(t,o,b)},a},"block_arrow"),la=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:-c/2,y:0},{x:i,y:0},{x:i,y:-c},{x:-c/2,y:-c},{x:0,y:-c/2}];return V(a,i,c,r).attr("style",t.style),t.width=i+c,t.height=c,t.intersect=function(l){return B.polygon(t,r,l)},a},"rect_left_inv_arrow"),oa=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:-2*c/6,y:0},{x:i-c/6,y:0},{x:i+2*c/6,y:-c},{x:c/6,y:-c}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"lean_right"),ha=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:2*c/6,y:0},{x:i+c/6,y:0},{x:i-2*c/6,y:-c},{x:-c/6,y:-c}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"lean_left"),ga=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:-2*c/6,y:0},{x:i+2*c/6,y:0},{x:i-c/6,y:-c},{x:c/6,y:-c}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"trapezoid"),da=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:c/6,y:0},{x:i-c/6,y:0},{x:i+2*c/6,y:-c},{x:-2*c/6,y:-c}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"inv_trapezoid"),ua=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:0,y:0},{x:i+c/2,y:0},{x:i,y:-c/2},{x:i+c/2,y:-c},{x:0,y:-c}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"rect_right_inv_arrow"),pa=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=i/2,r=c/(2.5+i/50),n=s.height+r+t.padding,l="M 0,"+r+" a "+c+","+r+" 0,0,0 "+i+" 0 a "+c+","+r+" 0,0,0 "+-i+" 0 l 0,"+n+" a "+c+","+r+" 0,0,0 "+i+" 0 l 0,"+-n,g=a.attr("label-offset-y",r).insert("path",":first-child").attr("style",t.style).attr("d",l).attr("transform","translate("+-i/2+","+-(n/2+r)+")");return N(t,g),t.intersect=function(o){const p=B.rect(t,o),b=p.x-t.x;if(c!=0&&(Math.abs(b)t.height/2-r)){let x=r*r*(1-b*b/(c*c));x!=0&&(x=Math.sqrt(x)),x=r-x,o.y-t.y>0&&(x=-x),p.y+=x}return p},a},"cylinder"),fa=d(async(e,t)=>{const{shapeSvg:a,bbox:s,halfPadding:i}=await z(e,t,"node "+t.classes+" "+t.class,!0),c=a.insert("rect",":first-child"),r=t.positioned?t.width:s.width+t.padding,n=t.positioned?t.height:s.height+t.padding,l=t.positioned?-r/2:-s.width/2-i,g=t.positioned?-n/2:-s.height/2-i;if(c.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",g).attr("width",r).attr("height",n),t.props){const o=new Set(Object.keys(t.props));t.props.borders&&(ht(c,t.props.borders,r,n),o.delete("borders")),o.forEach(p=>{k.warn(`Unknown node property ${p}`)})}return N(t,c),t.intersect=function(o){return B.rect(t,o)},a},"rect"),xa=d(async(e,t)=>{const{shapeSvg:a,bbox:s,halfPadding:i}=await z(e,t,"node "+t.classes,!0),c=a.insert("rect",":first-child"),r=t.positioned?t.width:s.width+t.padding,n=t.positioned?t.height:s.height+t.padding,l=t.positioned?-r/2:-s.width/2-i,g=t.positioned?-n/2:-s.height/2-i;if(c.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",l).attr("y",g).attr("width",r).attr("height",n),t.props){const o=new Set(Object.keys(t.props));t.props.borders&&(ht(c,t.props.borders,r,n),o.delete("borders")),o.forEach(p=>{k.warn(`Unknown node property ${p}`)})}return N(t,c),t.intersect=function(o){return B.rect(t,o)},a},"composite"),ya=d(async(e,t)=>{const{shapeSvg:a}=await z(e,t,"label",!0);k.trace("Classes = ",t.class);const s=a.insert("rect",":first-child"),i=0,c=0;if(s.attr("width",i).attr("height",c),a.attr("class","label edgeLabel"),t.props){const r=new Set(Object.keys(t.props));t.props.borders&&(ht(s,t.props.borders,i,c),r.delete("borders")),r.forEach(n=>{k.warn(`Unknown node property ${n}`)})}return N(t,s),t.intersect=function(r){return B.rect(t,r)},a},"labelRect");function ht(e,t,a,s){const i=[],c=d(n=>{i.push(n,0)},"addBorder"),r=d(n=>{i.push(0,n)},"skipBorder");t.includes("t")?(k.debug("add top border"),c(a)):r(a),t.includes("r")?(k.debug("add right border"),c(s)):r(s),t.includes("b")?(k.debug("add bottom border"),c(a)):r(a),t.includes("l")?(k.debug("add left border"),c(s)):r(s),e.attr("stroke-dasharray",i.join(" "))}d(ht,"applyNodePropertyBorders");var ba=d(async(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const s=e.insert("g").attr("class",a).attr("id",t.domId||t.id),i=s.insert("rect",":first-child"),c=s.insert("line"),r=s.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let l="";typeof n=="object"?l=n[0]:l=n,k.info("Label text abc79",l,n,typeof n=="object");const g=await U(r,l,t.labelStyle,!0,!0);let o={width:0,height:0};if(P(A())){const v=g.children[0],S=D(g);o=v.getBoundingClientRect(),S.attr("width",o.width),S.attr("height",o.height)}k.info("Text 2",n);const p=n.slice(1,n.length);let b=g.getBBox();const x=await U(r,p.join?p.join("
"):p,t.labelStyle,!0,!0);if(P(A())){const v=x.children[0],S=D(x);o=v.getBoundingClientRect(),S.attr("width",o.width),S.attr("height",o.height)}const w=t.padding/2;return D(x).attr("transform","translate( "+(o.width>b.width?0:(b.width-o.width)/2)+", "+(b.height+w+5)+")"),D(g).attr("transform","translate( "+(o.width{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.height+t.padding,c=s.width+i/4+t.padding,r=a.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-c/2).attr("y",-i/2).attr("width",c).attr("height",i);return N(t,r),t.intersect=function(n){return B.rect(t,n)},a},"stadium"),ma=d(async(e,t)=>{const{shapeSvg:a,bbox:s,halfPadding:i}=await z(e,t,H(t,void 0),!0),c=a.insert("circle",":first-child");return c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),k.info("Circle main"),N(t,c),t.intersect=function(r){return k.info("Circle intersect",t,s.width/2+i,r),B.circle(t,s.width/2+i,r)},a},"circle"),Sa=d(async(e,t)=>{const{shapeSvg:a,bbox:s,halfPadding:i}=await z(e,t,H(t,void 0),!0),c=5,r=a.insert("g",":first-child"),n=r.insert("circle"),l=r.insert("circle");return r.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i+c).attr("width",s.width+t.padding+c*2).attr("height",s.height+t.padding+c*2),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+i).attr("width",s.width+t.padding).attr("height",s.height+t.padding),k.info("DoubleCircle main"),N(t,n),t.intersect=function(g){return k.info("DoubleCircle intersect",t,s.width/2+i+c,g),B.circle(t,s.width/2+i+c,g)},a},"doublecircle"),La=d(async(e,t)=>{const{shapeSvg:a,bbox:s}=await z(e,t,H(t,void 0),!0),i=s.width+t.padding,c=s.height+t.padding,r=[{x:0,y:0},{x:i,y:0},{x:i,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-c},{x:-8,y:-c},{x:-8,y:0}],n=V(a,i,c,r);return n.attr("style",t.style),N(t,n),t.intersect=function(l){return B.polygon(t,r,l)},a},"subroutine"),ka=d((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=a.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),N(t,s),t.intersect=function(i){return B.circle(t,7,i)},a},"start"),Ht=d((e,t,a)=>{const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i=70,c=10;a==="LR"&&(i=10,c=70);const r=s.append("rect").attr("x",-1*i/2).attr("y",-1*c/2).attr("width",i).attr("height",c).attr("class","fork-join");return N(t,r),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return B.rect(t,n)},s},"forkJoin"),va=d((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s=a.insert("circle",":first-child"),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),N(t,i),t.intersect=function(c){return B.circle(t,7,c)},a},"end"),Ea=d(async(e,t)=>{const a=t.padding/2,s=4,i=8;let c;t.classes?c="node "+t.classes:c="node default";const r=e.insert("g").attr("class",c).attr("id",t.domId||t.id),n=r.insert("rect",":first-child"),l=r.insert("line"),g=r.insert("line");let o=0,p=s;const b=r.insert("g").attr("class","label");let x=0;const w=t.classData.annotations?.[0],v=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",S=await U(b,v,t.labelStyle,!0,!0);let _=S.getBBox();if(P(A())){const E=S.children[0],h=D(S);_=E.getBoundingClientRect(),h.attr("width",_.width),h.attr("height",_.height)}t.classData.annotations[0]&&(p+=_.height+s,o+=_.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(P(A())?I+="<"+t.classData.type+">":I+="<"+t.classData.type+">");const T=await U(b,I,t.labelStyle,!0,!0);D(T).attr("class","classTitle");let m=T.getBBox();if(P(A())){const E=T.children[0],h=D(T);m=E.getBoundingClientRect(),h.attr("width",m.width),h.attr("height",m.height)}p+=m.height+s,m.width>o&&(o=m.width);const u=[];t.classData.members.forEach(async E=>{const h=E.getDisplayDetails();let W=h.displayText;P(A())&&(W=W.replace(//g,">"));const f=await U(b,W,h.cssStyle?h.cssStyle:t.labelStyle,!0,!0);let O=f.getBBox();if(P(A())){const q=f.children[0],j=D(f);O=q.getBoundingClientRect(),j.attr("width",O.width),j.attr("height",O.height)}O.width>o&&(o=O.width),p+=O.height+s,u.push(f)}),p+=i;const y=[];if(t.classData.methods.forEach(async E=>{const h=E.getDisplayDetails();let W=h.displayText;P(A())&&(W=W.replace(//g,">"));const f=await U(b,W,h.cssStyle?h.cssStyle:t.labelStyle,!0,!0);let O=f.getBBox();if(P(A())){const q=f.children[0],j=D(f);O=q.getBoundingClientRect(),j.attr("width",O.width),j.attr("height",O.height)}O.width>o&&(o=O.width),p+=O.height+s,y.push(f)}),p+=i,w){let E=(o-_.width)/2;D(S).attr("transform","translate( "+(-1*o/2+E)+", "+-1*p/2+")"),x=_.height+s}let L=(o-m.width)/2;return D(T).attr("transform","translate( "+(-1*o/2+L)+", "+(-1*p/2+x)+")"),x+=m.height+s,l.attr("class","divider").attr("x1",-o/2-a).attr("x2",o/2+a).attr("y1",-p/2-a+i+x).attr("y2",-p/2-a+i+x),x+=i,u.forEach(E=>{D(E).attr("transform","translate( "+-o/2+", "+(-1*p/2+x+i/2)+")");const h=E?.getBBox();x+=(h?.height??0)+s}),x+=i,g.attr("class","divider").attr("x1",-o/2-a).attr("x2",o/2+a).attr("y1",-p/2-a+i+x).attr("y2",-p/2-a+i+x),x+=i,y.forEach(E=>{D(E).attr("transform","translate( "+-o/2+", "+(-1*p/2+x)+")");const h=E?.getBBox();x+=(h?.height??0)+s}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-o/2-a).attr("y",-(p/2)-a).attr("width",o+t.padding).attr("height",p+t.padding),N(t,n),t.intersect=function(E){return B.rect(t,E)},r},"class_box"),Kt={rhombus:Yt,composite:xa,question:Yt,rect:fa,labelRect:ya,rectWithTitle:ba,choice:ia,circle:ma,doublecircle:Sa,stadium:wa,hexagon:na,block_arrow:ca,rect_left_inv_arrow:la,lean_right:oa,lean_left:ha,trapezoid:ga,inv_trapezoid:da,rect_right_inv_arrow:ua,cylinder:pa,start:ka,end:va,note:sa,subroutine:La,fork:Ht,join:Ht,class_box:Ea},ct={},ne=d(async(e,t,a)=>{let s,i;if(t.link){let c;A().securityLevel==="sandbox"?c="_top":t.linkTarget&&(c=t.linkTarget||"_blank"),s=e.insert("svg:a").attr("xlink:href",t.link).attr("target",c),i=await Kt[t.shape](s,t,a)}else i=await Kt[t.shape](e,t,a),s=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),ct[t.id]=s,t.haveCallback&&ct[t.id].attr("class",ct[t.id].attr("class")+" clickable"),s},"insertNode"),_a=d(e=>{const t=ct[e.id];k.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,s=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+s-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),s},"positionNode");function Nt(e,t,a=!1){const s=e;let i="default";(s?.classes?.length||0)>0&&(i=(s?.classes??[]).join(" ")),i=i+" flowchart-label";let c=0,r="",n;switch(s.type){case"round":c=5,r="rect";break;case"composite":c=0,r="composite",n=0;break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"block_arrow":r="block_arrow";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"rect_left_inv_arrow":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}const l=Ge(s?.styles??[]),g=s.label,o=s.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:l.labelStyle,shape:r,labelText:g,rx:c,ry:c,class:i,style:l.style,id:s.id,domId:p?`${p}-${s.id}`:s.id,directions:s.directions,width:o.width,height:o.height,x:o.x,y:o.y,positioned:a,intersect:void 0,type:s.type,padding:n??at()?.block?.padding??0,widthInColumns:s.widthInColumns??1}}d(Nt,"getNodeFromBlock");async function ce(e,t,a){const s=Nt(t,a,!1);if(s.type==="group")return;const i=at(),c=await ne(e,s,{config:i}),r=c.node().getBBox(),n=a.getBlock(s.id);n.size={width:r.width,height:r.height,x:0,y:0,node:c},a.setBlock(n),c.remove()}d(ce,"calculateBlockSize");async function le(e,t,a){const s=Nt(t,a,!0);if(a.getBlock(s.id).type!=="space"){const c=at();await ne(e,s,{config:c}),t.intersect=s?.intersect,_a(s)}}d(le,"insertBlockPositioned");async function gt(e,t,a,s){for(const i of t)await s(e,i,a),i.children&&await gt(e,i.children,a,s)}d(gt,"performOperations");async function oe(e,t,a){await gt(e,t,a,ce)}d(oe,"calculateBlockSizes");async function he(e,t,a){await gt(e,t,a,le)}d(he,"insertBlocks");async function ge(e,t,a,s,i){const c=new qe({multigraph:!0,compound:!0});c.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const r of a)r.size&&c.setNode(r.id,{width:r.size.width,height:r.size.height,intersect:r.intersect});for(const r of t)if(r.start&&r.end){const n=s.getBlock(r.start),l=s.getBlock(r.end);if(n?.size&&l?.size){const g=n.size,o=l.size,p=[{x:g.x,y:g.y},{x:g.x+(o.x-g.x)/2,y:g.y+(o.y-g.y)/2},{x:o.x,y:o.y}],b=i?`${i}-${r.id}`:r.id,x=r.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",w=r.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",v=`${x} ${w} flowchart-link LS-a1 LE-b1`;Gr(e,{v:r.start,w:r.end,name:b},{...r,id:b,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:p,classes:v},void 0,"block",c,i),r.label&&(await Ur(e,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:p,classes:v}),Xr({...r,x:p[1].x,y:p[1].y},{originalPath:p}))}}}d(ge,"insertEdges");var Ta=d(function(e,t){return t.db.getClasses()},"getClasses"),Da=d(async function(e,t,a,s){const{securityLevel:i,block:c}=at(),r=s.db;r.setDiagramId(t);let n;i==="sandbox"&&(n=D("#i"+t));const l=i==="sandbox"?D(n.nodes()[0].contentDocument.body):D("body"),g=i==="sandbox"?l.select(`[id="${t}"]`):D(`[id="${t}"]`);Fr(g,["point","circle","cross"],s.type,t);const p=r.getBlocks(),b=r.getBlocksFlat(),x=r.getEdges(),w=g.insert("g").attr("class","block");await oe(w,p,r);const v=$t(r);if(await he(w,p,r),await ge(w,x,b,r,t),v){const S=v,_=Math.max(1,Math.round(.125*(S.width/S.height))),I=S.height+_+10,T=S.width+10,{useMaxWidth:m}=c;Fe(g,I,T,!!m),k.debug("Here Bounds",v,S),g.attr("viewBox",`${S.x-5} ${S.y-5} ${S.width+10} ${S.height+10}`)}},"draw"),Ba={draw:Da,getClasses:Ta},Aa={parser:sr,db:Er,renderer:Ba,styles:Tr};export{Aa as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/c4Diagram-AAUBKEIU-BmWl5vmY.js b/apps/pythinker-code/dist-web/assets/c4Diagram-AAUBKEIU-BmWl5vmY.js new file mode 100644 index 000000000..928b0b9a9 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/c4Diagram-AAUBKEIU-BmWl5vmY.js @@ -0,0 +1,10 @@ +import{g as Oe,d as Re}from"./chunk-ND2GUHAM-CyIE0WAw.js";import{s as Se,g as De,a as Pe,b as Be,_ as y,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-bNlBBSwN.js";import"./index-DIfcwXP7.js";var jt=(function(){var e=y(function(_t,x,v,E){for(v=v||{},E=_t.length;E--;v[_t[E]]=x);return v},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],a=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],m=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],st=[1,47],rt=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],se=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(x,v,E,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:a,36:n,37:i,38:u,39:d,40:p,41:g,43:23,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:a,36:n,37:i,38:u,39:d,40:p,41:g,44:m,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:st,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(se,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(se,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(x,v){if(v.recoverable)this.trace(x);else{var E=new Error(x);throw E.hash=v,E}},"parseError"),parse:y(function(x){var v=this,E=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,re=0,ke=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(At.yy[Ht]=this.yy[Ht]);D.setInput(x,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){E.length=E.length-2*L,R.length=R.length-L,h.length=h.length-L}y(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=v.symbols_[L]||L),L}y(oe,"lex");for(var I,kt,N,Gt,wt={},Mt,W,ce,Lt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[kt]&&Rt[kt][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[kt])this.terminals_[Mt]&&Mt>ke&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`: +`+D.showPosition()+` +Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Kt="Parse error on line "+(Et+1)+": Unexpected "+(I==le?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Kt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:qt,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:E.push(I),R.push(D.yytext),h.push(D.yylloc),E.push(N[1]),I=null,re=D.yyleng,f=D.yytext,Et=D.yylineno,qt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},we&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Gt=this.performAction.apply(wt,[f,re,Et,At.yy,N[1],R,h].concat(Ce)),typeof Gt<"u")return Gt;W&&(E=E.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),E.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ce=Rt[E[E.length-2]][E[E.length-1]],E.push(ce);break;case 3:return!0}}return!0},"parse")},Ae=(function(){var _t={EOF:1,parseError:y(function(v,E){if(this.yy.parser)this.yy.parser.parseError(v,E);else throw new Error(v)},"parseError"),setInput:y(function(x,v){return this.yy=v||this.yy||{},this._input=x,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:y(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var v=x.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:y(function(x){var v=x.length,E=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var b=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),E.length-1&&(this.yylineno-=E.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===b.length?this.yylloc.first_column:0)+b[b.length-E.length].length-E[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(x){this.unput(this.match.slice(x))},"less"),pastInput:y(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var x=this.pastInput(),v=new Array(x.length+1).join("-");return x+this.upcomingInput()+` +`+v+"^"},"showPosition"),test_match:y(function(x,v){var E,b,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),b=x[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,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(x[0].length),this.matched+=x[0],E=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var h in R)this[h]=R[h];return!1}return!1},"test_match"),next:y(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var x,v,E,b;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),h=0;hv[0].length)){if(v=E,b=h,this.options.backtrack_lexer){if(x=this.test_match(E,R[h]),x!==!1)return x;if(this._backtrack){v=!1;continue}else return!1}else if(!this.options.flex)break}return v?(x=this.test_match(v,R[b]),x!==!1?x:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:y(function(){var v=this.next();return v||this.lex()},"lex"),begin:y(function(v){this.conditionStack.push(v)},"begin"),popState:y(function(){var v=this.conditionStack.length-1;return v>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:y(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:y(function(v){return v=this.conditionStack.length-1-Math.abs(v||0),v>=0?this.conditionStack[v]:"INITIAL"},"topState"),pushState:y(function(v){this.begin(v)},"pushState"),stateStackSize:y(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:y(function(v,E,b,R){switch(b){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return _t})();Qt.lexer=Ae;function It(){this.yy={}}return y(It,"Parser"),It.prototype=Qt,Qt.Parser=It,new It})();jt.parser=jt;var Ye=jt,V=[],xt=[""],B="global",F="",X=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Pt=[],ee="",ae=!1,Ut=4,Ft=2,ye,je=y(function(){return ye},"getC4Type"),Ue=y(function(e){ye=pe(e,Dt())},"setC4Type"),Fe=y(function(e,t,s,o,l,r,a,n,i){if(e==null||t===void 0||t===null||s===void 0||s===null||o===void 0||o===null)return;let u={};const d=Pt.find(p=>p.from===t&&p.to===s);if(d?u=d:Pt.push(u),u.type=e,u.from=t,u.to=s,u.label={text:o},l==null)u.techn={text:""};else if(typeof l=="object"){let[p,g]=Object.entries(l)[0];u[p]={text:g}}else u.techn={text:l};if(r==null)u.descr={text:""};else if(typeof r=="object"){let[p,g]=Object.entries(r)[0];u[p]={text:g}}else u.descr={text:r};if(typeof a=="object"){let[p,g]=Object.entries(a)[0];u[p]=g}else u.sprite=a;if(typeof n=="object"){let[p,g]=Object.entries(n)[0];u[p]=g}else u.tags=n;if(typeof i=="object"){let[p,g]=Object.entries(i)[0];u[p]=g}else u.link=i;u.wrap=mt()},"addRel"),Ve=y(function(e,t,s,o,l,r,a){if(t===null||s===null)return;let n={};const i=V.find(u=>u.alias===t);if(i&&t===i.alias?n=i:(n.alias=t,V.push(n)),s==null?n.label={text:""}:n.label={text:s},o==null)n.descr={text:""};else if(typeof o=="object"){let[u,d]=Object.entries(o)[0];n[u]={text:d}}else n.descr={text:o};if(typeof l=="object"){let[u,d]=Object.entries(l)[0];n[u]=d}else n.sprite=l;if(typeof r=="object"){let[u,d]=Object.entries(r)[0];n[u]=d}else n.tags=r;if(typeof a=="object"){let[u,d]=Object.entries(a)[0];n[u]=d}else n.link=a;n.typeC4Shape={text:e},n.parentBoundary=B,n.wrap=mt()},"addPersonOrSystem"),ze=y(function(e,t,s,o,l,r,a,n){if(t===null||s===null)return;let i={};const u=V.find(d=>d.alias===t);if(u&&t===u.alias?i=u:(i.alias=t,V.push(i)),s==null?i.label={text:""}:i.label={text:s},o==null)i.techn={text:""};else if(typeof o=="object"){let[d,p]=Object.entries(o)[0];i[d]={text:p}}else i.techn={text:o};if(l==null)i.descr={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];i[d]={text:p}}else i.descr={text:l};if(typeof r=="object"){let[d,p]=Object.entries(r)[0];i[d]=p}else i.sprite=r;if(typeof a=="object"){let[d,p]=Object.entries(a)[0];i[d]=p}else i.tags=a;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];i[d]=p}else i.link=n;i.wrap=mt(),i.typeC4Shape={text:e},i.parentBoundary=B},"addContainer"),Xe=y(function(e,t,s,o,l,r,a,n){if(t===null||s===null)return;let i={};const u=V.find(d=>d.alias===t);if(u&&t===u.alias?i=u:(i.alias=t,V.push(i)),s==null?i.label={text:""}:i.label={text:s},o==null)i.techn={text:""};else if(typeof o=="object"){let[d,p]=Object.entries(o)[0];i[d]={text:p}}else i.techn={text:o};if(l==null)i.descr={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];i[d]={text:p}}else i.descr={text:l};if(typeof r=="object"){let[d,p]=Object.entries(r)[0];i[d]=p}else i.sprite=r;if(typeof a=="object"){let[d,p]=Object.entries(a)[0];i[d]=p}else i.tags=a;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];i[d]=p}else i.link=n;i.wrap=mt(),i.typeC4Shape={text:e},i.parentBoundary=B},"addComponent"),We=y(function(e,t,s,o,l){if(e===null||t===null)return;let r={};const a=X.find(n=>n.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,X.push(r)),t==null?r.label={text:""}:r.label={text:t},s==null)r.type={text:"system"};else if(typeof s=="object"){let[n,i]=Object.entries(s)[0];r[n]={text:i}}else r.type={text:s};if(typeof o=="object"){let[n,i]=Object.entries(o)[0];r[n]=i}else r.tags=o;if(typeof l=="object"){let[n,i]=Object.entries(l)[0];r[n]=i}else r.link=l;r.parentBoundary=B,r.wrap=mt(),F=B,B=e,xt.push(F)},"addPersonOrSystemBoundary"),Qe=y(function(e,t,s,o,l){if(e===null||t===null)return;let r={};const a=X.find(n=>n.alias===e);if(a&&e===a.alias?r=a:(r.alias=e,X.push(r)),t==null?r.label={text:""}:r.label={text:t},s==null)r.type={text:"container"};else if(typeof s=="object"){let[n,i]=Object.entries(s)[0];r[n]={text:i}}else r.type={text:s};if(typeof o=="object"){let[n,i]=Object.entries(o)[0];r[n]=i}else r.tags=o;if(typeof l=="object"){let[n,i]=Object.entries(l)[0];r[n]=i}else r.link=l;r.parentBoundary=B,r.wrap=mt(),F=B,B=e,xt.push(F)},"addContainerBoundary"),He=y(function(e,t,s,o,l,r,a,n){if(t===null||s===null)return;let i={};const u=X.find(d=>d.alias===t);if(u&&t===u.alias?i=u:(i.alias=t,X.push(i)),s==null?i.label={text:""}:i.label={text:s},o==null)i.type={text:"node"};else if(typeof o=="object"){let[d,p]=Object.entries(o)[0];i[d]={text:p}}else i.type={text:o};if(l==null)i.descr={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];i[d]={text:p}}else i.descr={text:l};if(typeof a=="object"){let[d,p]=Object.entries(a)[0];i[d]=p}else i.tags=a;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];i[d]=p}else i.link=n;i.nodeType=e,i.parentBoundary=B,i.wrap=mt(),F=B,B=t,xt.push(F)},"addDeploymentNode"),qe=y(function(){B=F,xt.pop(),F=xt.pop(),xt.push(F)},"popBoundaryParseStack"),Ge=y(function(e,t,s,o,l,r,a,n,i,u,d){let p=V.find(g=>g.alias===t);if(!(p===void 0&&(p=X.find(g=>g.alias===t),p===void 0))){if(s!=null)if(typeof s=="object"){let[g,m]=Object.entries(s)[0];p[g]=m}else p.bgColor=s;if(o!=null)if(typeof o=="object"){let[g,m]=Object.entries(o)[0];p[g]=m}else p.fontColor=o;if(l!=null)if(typeof l=="object"){let[g,m]=Object.entries(l)[0];p[g]=m}else p.borderColor=l;if(r!=null)if(typeof r=="object"){let[g,m]=Object.entries(r)[0];p[g]=m}else p.shadowing=r;if(a!=null)if(typeof a=="object"){let[g,m]=Object.entries(a)[0];p[g]=m}else p.shape=a;if(n!=null)if(typeof n=="object"){let[g,m]=Object.entries(n)[0];p[g]=m}else p.sprite=n;if(i!=null)if(typeof i=="object"){let[g,m]=Object.entries(i)[0];p[g]=m}else p.techn=i;if(u!=null)if(typeof u=="object"){let[g,m]=Object.entries(u)[0];p[g]=m}else p.legendText=u;if(d!=null)if(typeof d=="object"){let[g,m]=Object.entries(d)[0];p[g]=m}else p.legendSprite=d}},"updateElStyle"),Ke=y(function(e,t,s,o,l,r,a){const n=Pt.find(i=>i.from===t&&i.to===s);if(n!==void 0){if(o!=null)if(typeof o=="object"){let[i,u]=Object.entries(o)[0];n[i]=u}else n.textColor=o;if(l!=null)if(typeof l=="object"){let[i,u]=Object.entries(l)[0];n[i]=u}else n.lineColor=l;if(r!=null)if(typeof r=="object"){let[i,u]=Object.entries(r)[0];n[i]=parseInt(u)}else n.offsetX=parseInt(r);if(a!=null)if(typeof a=="object"){let[i,u]=Object.entries(a)[0];n[i]=parseInt(u)}else n.offsetY=parseInt(a)}},"updateRelStyle"),Je=y(function(e,t,s){let o=Ut,l=Ft;if(typeof t=="object"){const r=Object.values(t)[0];o=parseInt(r)}else o=parseInt(t);if(typeof s=="object"){const r=Object.values(s)[0];l=parseInt(r)}else l=parseInt(s);o>=1&&(Ut=o),l>=1&&(Ft=l)},"updateLayoutConfig"),Ze=y(function(){return Ut},"getC4ShapeInRow"),$e=y(function(){return Ft},"getC4BoundaryInRow"),t0=y(function(){return B},"getCurrentBoundaryParse"),e0=y(function(){return F},"getParentBoundaryParse"),ge=y(function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),a0=y(function(e){return V.find(t=>t.alias===e)},"getC4Shape"),i0=y(function(e){return Object.keys(ge(e))},"getC4ShapeKeys"),be=y(function(e){return e==null?X:X.filter(t=>t.parentBoundary===e)},"getBoundaries"),n0=be,s0=y(function(){return Pt},"getRels"),r0=y(function(){return ee},"getTitle"),l0=y(function(e){ae=e},"setWrap"),mt=y(function(){return ae},"autoWrap"),o0=y(function(){V=[],X=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],F="",B="global",xt=[""],Pt=[],xt=[""],ee="",ae=!1,Ut=4,Ft=2},"clear"),c0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},h0={FILLED:0,OPEN:1},u0={LEFTOF:0,RIGHTOF:1,OVER:2},d0=y(function(e){ee=pe(e,Dt())},"setTitle"),Zt={addPersonOrSystem:Ve,addPersonOrSystemBoundary:We,addContainer:ze,addContainerBoundary:Qe,addComponent:Xe,addDeploymentNode:He,popBoundaryParseStack:qe,addRel:Fe,updateElStyle:Ge,updateRelStyle:Ke,updateLayoutConfig:Je,autoWrap:mt,setWrap:l0,getC4ShapeArray:ge,getC4Shape:a0,getC4ShapeKeys:i0,getBoundaries:be,getBoundarys:n0,getCurrentBoundaryParse:t0,getParentBoundaryParse:e0,getRels:s0,getTitle:r0,getC4Type:je,getC4ShapeInRow:Ze,getC4BoundaryInRow:$e,setAccTitle:Be,getAccTitle:Pe,getAccDescription:De,setAccDescription:Se,getConfig:y(()=>Dt().c4,"getConfig"),clear:o0,LINETYPE:c0,ARROWTYPE:h0,PLACEMENT:u0,setTitle:d0,setC4Type:Ue},ie=y(function(e,t){return Re(e,t)},"drawRect"),_e=y(function(e,t,s,o,l,r){const a=e.append("image");a.attr("width",t),a.attr("height",s),a.attr("x",o),a.attr("y",l);let n=r.startsWith("data:image/png;base64")?r:Le.sanitizeUrl(r);a.attr("xlink:href",n)},"drawImage"),f0=y((e,t,s,o)=>{const l=e.append("g");let r=0;for(let a of t){let n=a.textColor?a.textColor:"#444444",i=a.lineColor?a.lineColor:"#444444",u=a.offsetX?parseInt(a.offsetX):0,d=a.offsetY?parseInt(a.offsetY):0,p="";if(r===0){let m=l.append("line");m.attr("x1",a.startPoint.x),m.attr("y1",a.startPoint.y),m.attr("x2",a.endPoint.x),m.attr("y2",a.endPoint.y),m.attr("stroke-width","1"),m.attr("stroke",i),m.style("fill","none"),a.type!=="rel_b"&&m.attr("marker-end","url("+p+"#"+o+"-arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&m.attr("marker-start","url("+p+"#"+o+"-arrowend)"),r=-1}else{let m=l.append("path");m.attr("fill","none").attr("stroke-width","1").attr("stroke",i).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&m.attr("marker-end","url("+p+"#"+o+"-arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&m.attr("marker-start","url("+p+"#"+o+"-arrowend)")}let g=s.messageFont();Q(s)(a.label.text,l,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+d,a.label.width,a.label.height,{fill:n},g),a.techn&&a.techn.text!==""&&(g=s.messageFont(),Q(s)("["+a.techn.text+"]",l,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+s.messageFontSize+5+d,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:n,"font-style":"italic"},g))}},"drawRels"),p0=y(function(e,t,s){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",r=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",n={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(n={"stroke-width":1});let i={x:t.x,y:t.y,fill:l,stroke:r,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:n};ie(o,i);let u=s.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=a,Q(s)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},u),t.type&&t.type.text!==""&&(u=s.boundaryFont(),u.fontColor=a,Q(s)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},u)),t.descr&&t.descr.text!==""&&(u=s.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=a,Q(s)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},u))},"drawBoundary"),y0=y(function(e,t,s){let o=t.bgColor?t.bgColor:s[t.typeC4Shape.text+"_bg_color"],l=t.borderColor?t.borderColor:s[t.typeC4Shape.text+"_border_color"],r=t.fontColor?t.fontColor:"#FFFFFF",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const i=Oe();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":i.x=t.x,i.y=t.y,i.fill=o,i.width=t.width,i.height=t.height,i.stroke=l,i.rx=2.5,i.ry=2.5,i.attrs={"stroke-width":.5},ie(n,i);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let u=A0(s,t.typeC4Shape.text);switch(n.append("text").attr("fill",r).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":_e(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,a);break}let d=s[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=r,Q(s)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:r},d),d=s[t.typeC4Shape.text+"Font"](),d.fontColor=r,t.techn&&t.techn?.text!==""?Q(s)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:r,"font-style":"italic"},d):t.type&&t.type.text!==""&&Q(s)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:r,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=s.personFont(),d.fontColor=r,Q(s)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:r},d)),t.height},"drawC4Shape"),g0=y(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),b0=y(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),_0=y(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),x0=y(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),m0=y(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),v0=y(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),E0=y(function(e,t){const o=e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),A0=y((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),Q=(function(){function e(l,r,a,n,i,u,d){const p=r.append("text").attr("x",a+i/2).attr("y",n+u/2+5).style("text-anchor","middle").text(l);o(p,d)}y(e,"byText");function t(l,r,a,n,i,u,d,p){const{fontSize:g,fontFamily:m,fontWeight:O}=p,S=l.split(Jt.lineBreakRegex);for(let P=0;P=this.data.widthLimit||s>=this.data.widthLimit||this.nextData.cnt>xe)&&(t=this.nextData.startx+e.margin+_.nextLinePaddingX,o=this.nextData.stopy+e.margin*2,this.nextData.stopx=s=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=l=o+e.height,this.nextData.cnt=1),e.x=t,e.y=o,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",o,Math.min),this.updateVal(this.data,"stopx",s,Math.max),this.updateVal(this.data,"stopy",l,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",o,Math.min),this.updateVal(this.nextData,"stopx",s,Math.max),this.updateVal(this.nextData,"stopy",l,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},te(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},te=y(function(e){Me(_,e),e.fontFamily&&(_.personFontFamily=_.systemFontFamily=_.messageFontFamily=e.fontFamily),e.fontSize&&(_.personFontSize=_.systemFontSize=_.messageFontSize=e.fontSize),e.fontWeight&&(_.personFontWeight=_.systemFontWeight=_.messageFontWeight=e.fontWeight)},"setConf"),St=y((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Yt=y(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),k0=y(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function j(e,t,s,o,l){if(!t[e].width)if(s)t[e].text=Ne(t[e].text,l,o),t[e].textLines=t[e].text.split(Jt.lineBreakRegex).length,t[e].width=l,t[e].height=ue(t[e].text,o);else{let r=t[e].text.split(Jt.lineBreakRegex);t[e].textLines=r.length;let a=0;t[e].height=0,t[e].width=0;for(const n of r)t[e].width=Math.max(Tt(n,o),t[e].width),a=ue(n,o),t[e].height=t[e].height+a}}y(j,"calcC4ShapeTextWH");var ve=y(function(e,t,s){t.x=s.data.startx,t.y=s.data.starty,t.width=s.data.stopx-s.data.startx,t.height=s.data.stopy-s.data.starty,t.label.y=_.c4ShapeMargin-35;let o=t.wrap&&_.wrap,l=Yt(_);l.fontSize=l.fontSize+2,l.fontWeight="bold";let r=Tt(t.label.text,l);j("label",t,o,l,r),z.drawBoundary(e,t,_)},"drawBoundary"),Ee=y(function(e,t,s,o){let l=0;for(const r of o){l=0;const a=s[r];let n=St(_,a.typeC4Shape.text);switch(n.fontSize=n.fontSize-2,a.typeC4Shape.width=Tt("«"+a.typeC4Shape.text+"»",n),a.typeC4Shape.height=n.fontSize+2,a.typeC4Shape.Y=_.c4ShapePadding,l=a.typeC4Shape.Y+a.typeC4Shape.height-4,a.image={width:0,height:0,Y:0},a.typeC4Shape.text){case"person":case"external_person":a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height;break}a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height);let i=a.wrap&&_.wrap,u=_.width-_.c4ShapePadding*2,d=St(_,a.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",j("label",a,i,d,u),a.label.Y=l+8,l=a.label.Y+a.label.height,a.type&&a.type.text!==""){a.type.text="["+a.type.text+"]";let m=St(_,a.typeC4Shape.text);j("type",a,i,m,u),a.type.Y=l+5,l=a.type.Y+a.type.height}else if(a.techn&&a.techn.text!==""){a.techn.text="["+a.techn.text+"]";let m=St(_,a.techn.text);j("techn",a,i,m,u),a.techn.Y=l+5,l=a.techn.Y+a.techn.height}let p=l,g=a.label.width;if(a.descr&&a.descr.text!==""){let m=St(_,a.typeC4Shape.text);j("descr",a,i,m,u),a.descr.Y=l+20,l=a.descr.Y+a.descr.height,g=Math.max(a.label.width,a.descr.width),p=l-a.descr.textLines*5}g=g+_.c4ShapePadding,a.width=Math.max(a.width||_.width,g,_.width),a.height=Math.max(a.height||_.height,p,_.height),a.margin=a.margin||_.c4ShapeMargin,e.insert(a),z.drawC4Shape(t,a,_)}e.bumpLastMargin(_.c4ShapeMargin)},"drawC4ShapeArray"),Y=class{static{y(this,"Point")}constructor(e,t){this.x=e,this.y=t}},de=y(function(e,t){let s=e.x,o=e.y,l=t.x,r=t.y,a=s+e.width/2,n=o+e.height/2,i=Math.abs(s-l),u=Math.abs(o-r),d=u/i,p=e.height/e.width,g=null;return o==r&&sl?g=new Y(s,n):s==l&&or&&(g=new Y(a,o)),s>l&&o=d?g=new Y(s,n+d*e.width/2):g=new Y(a-i/u*e.height/2,o+e.height):s=d?g=new Y(s+e.width,n+d*e.width/2):g=new Y(a+i/u*e.height/2,o+e.height):sr?p>=d?g=new Y(s+e.width,n-d*e.width/2):g=new Y(a+e.height/2*i/u,o):s>l&&o>r&&(p>=d?g=new Y(s,n-e.width/2*d):g=new Y(a-e.height/2*i/u,o)),g},"getIntersectPoint"),C0=y(function(e,t){let s={x:0,y:0};s.x=t.x+t.width/2,s.y=t.y+t.height/2;let o=de(e,s);s.x=e.x+e.width/2,s.y=e.y+e.height/2;let l=de(t,s);return{startPoint:o,endPoint:l}},"getIntersectPoints"),w0=y(function(e,t,s,o,l){let r=0;for(let a of t){r=r+1;let n=a.wrap&&_.wrap,i=k0(_);o.db.getC4Type()==="C4Dynamic"&&(a.label.text=r+": "+a.label.text);let d=Tt(a.label.text,i);j("label",a,n,i,d),a.techn&&a.techn.text!==""&&(d=Tt(a.techn.text,i),j("techn",a,n,i,d)),a.descr&&a.descr.text!==""&&(d=Tt(a.descr.text,i),j("descr",a,n,i,d));let p=s(a.from),g=s(a.to),m=C0(p,g);a.startPoint=m.startPoint,a.endPoint=m.endPoint}z.drawRels(e,t,_,l)},"drawRels");function ne(e,t,s,o,l){let r=new me(l);r.data.widthLimit=s.data.widthLimit/Math.min($t,o.length);for(let[a,n]of o.entries()){let i=0;n.image={width:0,height:0,Y:0},n.sprite&&(n.image.width=48,n.image.height=48,n.image.Y=i,i=n.image.Y+n.image.height);let u=n.wrap&&_.wrap,d=Yt(_);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",j("label",n,u,d,r.data.widthLimit),n.label.Y=i+8,i=n.label.Y+n.label.height,n.type&&n.type.text!==""){n.type.text="["+n.type.text+"]";let O=Yt(_);j("type",n,u,O,r.data.widthLimit),n.type.Y=i+5,i=n.type.Y+n.type.height}if(n.descr&&n.descr.text!==""){let O=Yt(_);O.fontSize=O.fontSize-2,j("descr",n,u,O,r.data.widthLimit),n.descr.Y=i+20,i=n.descr.Y+n.descr.height}if(a==0||a%$t===0){let O=s.data.startx+_.diagramMarginX,S=s.data.stopy+_.diagramMarginY+i;r.setData(O,O,S,S)}else{let O=r.data.stopx!==r.data.startx?r.data.stopx+_.diagramMarginX:r.data.startx,S=r.data.starty;r.setData(O,O,S,S)}r.name=n.alias;let p=l.db.getC4ShapeArray(n.alias),g=l.db.getC4ShapeKeys(n.alias);g.length>0&&Ee(r,e,p,g),t=n.alias;let m=l.db.getBoundaries(t);m.length>0&&ne(e,t,r,m,l),n.alias!=="global"&&ve(e,n,r),s.data.stopy=Math.max(r.data.stopy+_.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(r.data.stopx+_.c4ShapeMargin,s.data.stopx),Vt=Math.max(Vt,s.data.stopx),zt=Math.max(zt,s.data.stopy)}}y(ne,"drawInsideBoundary");var T0=y(function(e,t,s,o){_=Dt().c4;const l=Dt().securityLevel;let r;l==="sandbox"&&(r=Nt("#i"+t));const a=l==="sandbox"?Nt(r.nodes()[0].contentDocument.body):Nt("body");let n=o.db;o.db.setWrap(_.wrap),xe=n.getC4ShapeInRow(),$t=n.getC4BoundaryInRow(),he.debug(`C:${JSON.stringify(_,null,2)}`);const i=l==="sandbox"?a.select(`[id="${t}"]`):Nt(`[id="${t}"]`);z.insertComputerIcon(i,t),z.insertDatabaseIcon(i,t),z.insertClockIcon(i,t);let u=new me(o);u.setData(_.diagramMarginX,_.diagramMarginX,_.diagramMarginY,_.diagramMarginY),u.data.widthLimit=screen.availWidth,Vt=_.diagramMarginX,zt=_.diagramMarginY;const d=o.db.getTitle();let p=o.db.getBoundaries("");ne(i,"",u,p,o),z.insertArrowHead(i,t),z.insertArrowEnd(i,t),z.insertArrowCrossHead(i,t),z.insertArrowFilledHead(i,t),w0(i,o.db.getRels(),o.db.getC4Shape,o,t),u.data.stopx=Vt,u.data.stopy=zt;const g=u.data;let O=g.stopy-g.starty+2*_.diagramMarginY;const P=g.stopx-g.startx+2*_.diagramMarginX;d&&i.append("text").text(d).attr("x",(g.stopx-g.startx)/2-4*_.diagramMarginX).attr("y",g.starty+_.diagramMarginY),Ie(i,O,P,_.useMaxWidth);const M=d?60:0;i.attr("viewBox",g.startx-_.diagramMarginX+" -"+(_.diagramMarginY+M)+" "+P+" "+(O+M)),he.debug("models:",g)},"draw"),fe={drawPersonOrSystemArray:Ee,drawBoundary:ve,setConf:te,draw:T0},O0=y(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,"getStyles"),R0=O0,B0={parser:Ye,db:Zt,renderer:fe,styles:R0,init:y(({c4:e,wrap:t})=>{fe.setConf(e),Zt.setWrap(t)},"init")};export{B0 as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/channel-BHUY_2ZP.js b/apps/pythinker-code/dist-web/assets/channel-BHUY_2ZP.js new file mode 100644 index 000000000..2134da50a --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/channel-BHUY_2ZP.js @@ -0,0 +1 @@ +import{U as a,D as n}from"./mermaid.core-bNlBBSwN.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-2J33WTMH-BZ74n2hL.js b/apps/pythinker-code/dist-web/assets/chunk-2J33WTMH-BZ74n2hL.js new file mode 100644 index 000000000..359d67a91 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-2J33WTMH-BZ74n2hL.js @@ -0,0 +1 @@ +import{_ as a,e as w,l as x}from"./mermaid.core-bNlBBSwN.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-4BX2VUAB-DQH-TItP.js b/apps/pythinker-code/dist-web/assets/chunk-4BX2VUAB-DQH-TItP.js new file mode 100644 index 000000000..7ba804a8f --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-4BX2VUAB-DQH-TItP.js @@ -0,0 +1 @@ +import{_ as i}from"./mermaid.core-bNlBBSwN.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-55IACEB6-Q15Gq5Jr.js b/apps/pythinker-code/dist-web/assets/chunk-55IACEB6-Q15Gq5Jr.js new file mode 100644 index 000000000..0517f5027 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-55IACEB6-Q15Gq5Jr.js @@ -0,0 +1 @@ +import{_ as a,d as o}from"./mermaid.core-bNlBBSwN.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-727SXJPM-CqN4oca1.js b/apps/pythinker-code/dist-web/assets/chunk-727SXJPM-CqN4oca1.js new file mode 100644 index 000000000..35491155d --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-727SXJPM-CqN4oca1.js @@ -0,0 +1,206 @@ +import{g as tt}from"./chunk-FMBD7UC4-DwQl0sgV.js";import{c as st}from"./chunk-ND2GUHAM-CyIE0WAw.js";import{g as it}from"./chunk-55IACEB6-Q15Gq5Jr.js";import{s as at}from"./chunk-2J33WTMH-BZ74n2hL.js";import{_ as f,l as Ie,c as F,p as rt,r as nt,u as Oe,d as de,z as ut,b as lt,a as ct,s as ot,g as ht,q as dt,t as pt,k as I,A as At,y as ft,i as gt,a8 as G}from"./mermaid.core-bNlBBSwN.js";var we=(function(){var t=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],l=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],Ae=[1,34],b=[1,45],fe=[1,35],ge=[1,36],me=[1,37],Ce=[1,38],be=[1,27],ke=[1,28],Ee=[1,29],Te=[1,30],ye=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],De=[1,9],A=[1,8,9],Z=[1,58],$=[1,59],ee=[1,60],te=[1,61],se=[1,62],Fe=[1,63],Be=[1,64],_=[1,8,9,41],Pe=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ie=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ae=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],re=[1,103],z=[1,121],Y=[1,117],K=[1,113],W=[1,119],Q=[1,114],j=[1,115],X=[1,116],q=[1,118],H=[1,120],Re=[22,50,60,61,82,86,87,88,89,90],Ge=[1,128],ne=[12,39],_e=[1,8,9,39,41,44,46],ue=[1,8,9,22],Ue=[1,153],ze=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,u,C,e,J){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:u.addRelation(e[s]);break;case 20:e[s-1].title=u.cleanupLabel(e[s]),u.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),u.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),u.setAccDescription(this.$);break;case 34:u.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),u.popNamespace();break;case 35:u.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),u.popNamespace();break;case 36:this.$=u.addNamespace(e[s]);break;case 37:this.$=u.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:u.setCssClass(e[s-2],e[s]);break;case 49:u.addMembers(e[s-3],e[s-1]);break;case 51:u.setCssClass(e[s-5],e[s-3]),u.addMembers(e[s-5],e[s-1]);break;case 52:u.addAnnotation(e[s-3],e[s-1]);break;case 53:u.addAnnotation(e[s-6],e[s-4]),u.addMembers(e[s-6],e[s-1]);break;case 54:u.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],u.addClass(e[s]);break;case 56:this.$=e[s-1],u.addClass(e[s-1]),u.setClassLabel(e[s-1],e[s]);break;case 60:u.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:u.addMember(e[s-1],u.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=u.addNote(e[s],e[s-1]);break;case 72:this.$=u.addNote(e[s]);break;case 73:this.$=e[s-2],u.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:u.setDirection("TB");break;case 77:u.setDirection("BT");break;case 78:u.setDirection("RL");break;case 79:u.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=u.relationType.AGGREGATION;break;case 85:this.$=u.relationType.EXTENSION;break;case 86:this.$=u.relationType.COMPOSITION;break;case 87:this.$=u.relationType.DEPENDENCY;break;case 88:this.$=u.relationType.LOLLIPOP;break;case 89:this.$=u.lineType.LINE;break;case 90:this.$=u.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],u.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],u.setClickEvent(e[s-2],e[s-1]),u.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],u.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],u.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],u.setLink(e[s-2],e[s-1]),u.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],u.setLink(e[s-3],e[s-2],e[s]),u.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],u.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],u.setClickEvent(e[s-3],e[s-2],e[s-1]),u.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],u.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],u.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],u.setLink(e[s-3],e[s-1]),u.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],u.setLink(e[s-4],e[s-2],e[s]),u.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],u.setCssStyle(e[s-1],e[s]);break;case 106:u.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:l,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(De,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be}),{39:[1,65]},t(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ie,[2,133]),t(ie,[2,134]),t(ie,[2,135]),t(ie,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:l,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:l,51:d,52:m,54:g,56:N,57:Ae,60:b,62:fe,63:ge,64:me,65:Ce,75:be,76:ke,78:Ee,82:Te,83:ye,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:Z,69:$,70:ee,71:te,72:se,73:Fe,74:Be},t(A,[2,64]),{67:93,73:Fe,74:Be},t(ae,[2,83],{66:94,68:Z,69:$,70:ee,71:te,72:se}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Me,[2,89]),t(Me,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:l,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:re},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},{60:[1,122]},{13:Pe,55:123},t(_,[2,72]),t(_,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:W,84:111,85:112,86:Q,87:j,88:X,89:q,90:H},t(Re,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:Ge,39:[2,36]},t(ne,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(ne,[2,10]),t(_e,[2,55],{11:131,12:Ge}),t(De,[2,7]),{9:[1,132]},t(ue,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(ae,[2,82],{66:136,68:Z,69:$,70:ee,71:te,72:se}),t(ae,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:l,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(_,[2,48],{39:[1,142]}),{41:[1,143]},t(_,[2,50]),{41:[2,61],45:144,51:re},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:Ue}),t(ze,[2,107],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(_,[2,71]),t(A,[2,73],{61:Ue}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(ne,[2,12]),t(_e,[2,56]),{1:[2,4]},t(ue,[2,69]),t(ue,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(ae,[2,80]),t(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:l,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:l,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:l,54:g,56:N},{45:163,51:re},t(_,[2,49]),{41:[2,62]},t(_,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:W,84:169,85:112,86:Q,87:j,88:X,89:q,90:H},t(x,[2,110]),t(Re,[2,75]),{14:[1,170]},t(ne,[2,11]),t(ue,[2,70]),t(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:re},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(ze,[2,108],{85:154,22:z,50:Y,60:K,82:W,86:Q,87:j,88:X,89:q,90:H}),t(_e,[2,8]),t(_,[2,51]),{41:[1,175]},t(_,[2,54]),t(A,[2,104]),t(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],u=[],C=[null],e=[],J=this.table,s="",ce=0,Ye=0,Je=2,Ke=1,Ze=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(w.yy[Ne]=this.yy[Ne]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Le=D.yylloc;e.push(Le);var $e=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(et,"popStack");function We(){var S;return S=u.pop()||D.lex()||Ke,typeof S!="number"&&(S instanceof Array&&(u=S,S=u.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,V,L,xe,R={},oe,v,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?L=this.defaultActions[V]:((B===null||typeof B>"u")&&(B=We()),L=J[V]&&J[V][B]),typeof L>"u"||!L.length||!L[0]){var ve="";he=[];for(oe in J[V])this.terminals_[oe]&&oe>Je&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?ve="Parse error on line "+(ce+1)+`: +`+D.showPosition()+` +Expecting `+he.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ve="Parse error on line "+(ce+1)+": Unexpected "+(B==Ke?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ve,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Le,expected:he})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ye=D.yyleng,s=D.yytext,ce=D.yylineno,Le=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],R.$=C[C.length-v],R._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},$e&&(R._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),xe=this.performAction.apply(R,[s,Ye,ce,w.yy,L[1],C,e].concat(Ze)),typeof xe<"u")return xe;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(R.$),e.push(R._$),Qe=J[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},He=(function(){var O={EOF:1,parseError:f(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,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:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:f(function(o,h){var p,u,C;if(this.options.backtrack_lexer&&(C={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&&(C.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in C)this[e]=C[e];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,h,p,u;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),e=0;eh[0].length)){if(h=p,u=e,this.options.backtrack_lexer){if(o=this.test_match(p,C[e]),o!==!1)return o;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(o=this.test_match(h,C[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var h=this.next();return h||this.lex()},"lex"),begin:f(function(h){this.conditionStack.push(h)},"begin"),popState:f(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:f(function(h){this.begin(h)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:f(function(h,p,u,C){switch(u){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 44:return this.popState(),41;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();Se.lexer=He;function le(){this.yy={}}return f(le,"Parser"),le.prototype=Se,Se.Parser=le,new le})();we.parser=we;var Bt=we,je=["#","+","~","-",""],Xe=class{static{f(this,"ClassMember")}constructor(t,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";const a=gt(t,F());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+G(this.id);this.memberType==="method"&&(t+=`(${G(this.parameters.trim())})`,this.returnType&&(t+=" : "+G(this.returnType))),t=t.trim();const i=this.parseClassifier();return{displayText:t,cssStyle:i}}parseMember(t){let i="";if(this.memberType==="method"){const n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(n){const c=n[1]?n[1].trim():"";if(je.includes(c)&&(this.visibility=c),this.id=n[2],this.parameters=n[3]?n[3].trim():"",i=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",i===""){const l=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(l)&&(i=l,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const r=t.length,n=t.substring(0,1),c=t.substring(r-1);je.includes(n)&&(this.visibility=n),/[$*]/.exec(c)&&(i=c),this.id=t.substring(this.visibility===""?0:1,i===""?r:r-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const a=`${this.visibility?"\\"+this.visibility:""}${G(this.id)}${this.memberType==="method"?`(${G(this.parameters)})${this.returnType?" : "+G(this.returnType):""}`:""}`;this.text=a.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},pe="classId-",qe=0,P=f(t=>I.sanitizeText(t,F()),"sanitizeText"),_t=class Ve{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=f(i=>{const a=st();de(i).select("svg").selectAll("g").filter(function(){return de(this).attr("title")!==null}).on("mouseover",c=>{const l=de(c.currentTarget),d=l.attr("title");if(!d)return;const m=c.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(ut.sanitize(d)).style("left",`${window.scrollX+m.left+m.width/2}px`).style("top",`${window.scrollY+m.bottom+4}px`),l.classed("hover",!0)}).on("mouseout",c=>{a.transition().duration(500).style("opacity",0),de(c.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=lt,this.getAccTitle=ct,this.setAccDescription=ot,this.getAccDescription=ht,this.setDiagramTitle=dt,this.getDiagramTitle=pt,this.getConfig=f(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{f(this,"ClassDB")}splitClassNameAndType(i){const a=I.sanitizeText(i,F());let r="",n=a;if(a.indexOf("~")>0){const c=a.split("~");n=P(c[0]),r=P(c[1])}return{className:n,type:r}}setClassLabel(i,a){const r=I.sanitizeText(i,F());a&&(a=P(a));const{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){const a=I.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;const c=I.sanitizeText(r,F());this.classes.set(c,{id:c,type:n,label:c,text:`${c}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:pe+c+"-"+qe}),qe++}addInterface(i,a){const r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){const a=I.sanitizeText(i,F());if(this.classes.has(a)){const r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",At()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){const a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ie.debug("Adding relation: "+JSON.stringify(i));const a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=I.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=I.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){const r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);const r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){const c=a.trim();c.startsWith("<<")&&c.endsWith(">>")?n.annotations.push(P(c.substring(2,c.length-2))):c.indexOf(")")>0?n.methods.push(new Xe(c,"method")):c&&n.members.push(new Xe(c,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){const r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),P(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=pe+n);const c=this.classes.get(n);c&&(c.cssClasses+=" "+a)})}defineClass(i,a){for(const r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(c=>{if(/color/.exec(c)){const l=c.replace("fill","bgFill");n.textStyles.push(l)}n.styles.push(c)}),this.classes.forEach(c=>{c.cssClasses.includes(r)&&c.styles.push(...a.flatMap(l=>l.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{a!==void 0&&(this.classes.get(r).tooltip=P(a))})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){const n=F();i.split(",").forEach(c=>{let l=c;/\d/.exec(c[0])&&(l=pe+l);const d=this.classes.get(l);d&&(d.link=Oe.formatUrl(a,n),n.securityLevel==="sandbox"?d.linkTarget="_top":typeof r=="string"?d.linkTarget=P(r):d.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r),this.classes.get(n).haveCallback=!0}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){const n=I.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;const l=n;if(this.classes.has(l)){let d=[];if(typeof r=="string"){d=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m{const m=this.lookUpDomId(l),g=document.querySelector(`[id="${m}"]`);g!==null&&g.addEventListener("click",()=>{Oe.runFunc(a,...d)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){const r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){const a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n0?c[l-1]:void 0,g=l===c.length-1,N=g&&a?a:n[l];this.namespaces.has(d)?g&&(this.namespaces.get(d).explicit=!0):this.namespaces.set(d,this.createNamespaceNode(d,N,m,g)),m&&this.linkParentChild(m,d)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(const n of a){const{className:c}=this.splitClassNameAndType(n),l=this.getClass(c);l.parent=i,this.namespaces.get(i).classes.set(c,l)}for(const n of r){const c=this.getNote(n);c.parent=i,this.namespaces.get(i).notes.set(n,c)}}}setCssStyle(i,a){const r=this.classes.get(i);if(!(!a||!r))for(const n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){const r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){const i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(const l of this.namespaces.values()){if(!n&&!l.explicit)continue;const d={id:l.id,label:n?l.label:l.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?l.parent:void 0};i.push(d)}for(const l of this.classes.values()){const d=n?l.parent:this.resolveExplicitAncestor(l.parent),m={...l,type:void 0,isGroup:!1,parentId:d,look:r.look};i.push(m)}for(const l of this.notes.values()){const d=n?l.parent:this.resolveExplicitAncestor(l.parent),m={id:l.id,label:l.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:d,labelType:"markdown"};i.push(m);const g=this.classes.get(l.class)?.id;if(g){const N={id:`edgeNote${l.index}`,start:l.id,end:g,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(N)}}for(const l of this.interfaces){const d={id:l.id,label:l.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(d)}let c=0;for(const l of this.relations){c++;const d={id:ft(l.id1,l.id2,{prefix:"id",counter:c}),start:l.id1,end:l.id2,type:"normal",label:l.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(l.relation.type1),arrowTypeEnd:this.getArrowMarker(l.relation.type2),startLabelRight:l.relationTitle1==="none"?"":l.relationTitle1,endLabelLeft:l.relationTitle2==="none"?"":l.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:l.style||"",pattern:l.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(d)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},mt=f(t=>`g.classGroup text { + fill: ${t.nodeBorder||t.classText}; + stroke: none; + font-family: ${t.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span { + color: ${t.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .cluster rect { + fill: ${t.clusterBkg}; + stroke: ${t.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span { + color: ${t.titleColor}; + } + +.nodeLabel, .edgeLabel { + color: ${t.classText}; +} + +.noteLabel .nodeLabel, .noteLabel .edgeLabel { + color: ${t.noteTextColor}; +} +.edgeLabel .label rect { + fill: ${t.mainBkg}; +} +.label text { + fill: ${t.classText}; +} + +.labelBkg { + background: ${t.mainBkg}; +} +.edgeLabel .label span { + background: ${t.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: ${t.strokeWidth}; + } + + +.divider { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.classGroup line { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${t.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth}; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +[id$="-compositionStart"], .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-compositionEnd"], .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyStart"], .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyEnd"], .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionStart"], .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionEnd"], .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationStart"], .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationEnd"], .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopStart"], .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopEnd"], .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} + +.edgeLabel[data-look="neo"] { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; +} + ${tt()} +`,"getStyles"),St=mt,Ct=f((t,i="TB")=>{if(!t.doc)return i;let a=i;for(const r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),bt=f(function(t,i){return i.db.getClasses()},"getClasses"),kt=f(async function(t,i,a,r){Ie.info("REF0:"),Ie.info("Drawing class diagram (v3)",i);const{securityLevel:n,state:c,layout:l}=F();r.db.setDiagramId(i);const d=r.db.getData(),m=it(i,n);d.type=r.type,d.layoutAlgorithm=rt(l),d.nodeSpacing=c?.nodeSpacing||50,d.rankSpacing=c?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=i,await nt(d,m);const g=8;Oe.insertTitle(m,"classDiagramTitleText",c?.titleTopMargin??25,r.db.getDiagramTitle()),at(m,g,"classDiagram",c?.useMaxWidth??!0)},"draw"),Nt={getClasses:bt,draw:kt,getDir:Ct};export{_t as C,Bt as a,Nt as c,St as s}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-AQP2D5EJ-BFM758F_.js b/apps/pythinker-code/dist-web/assets/chunk-AQP2D5EJ-BFM758F_.js new file mode 100644 index 000000000..9b99580ae --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-AQP2D5EJ-BFM758F_.js @@ -0,0 +1,231 @@ +import{g as Zt}from"./chunk-55IACEB6-Q15Gq5Jr.js";import{s as te}from"./chunk-2J33WTMH-BZ74n2hL.js";import{_ as f,l as _,c as w,r as ee,u as se,a as ie,b as re,g as ae,s as ne,q as oe,t as le,ab as ce,k as W,A as he}from"./mermaid.core-bNlBBSwN.js";var Dt=(function(){var t=f(function(Y,a,c,r){for(c=c||{},r=Y.length;r--;c[Y[r]]=a);return c},"o"),e=[1,2],l=[1,3],s=[1,4],u=[2,4],d=[1,9],S=[1,11],g=[1,16],n=[1,17],T=[1,18],m=[1,19],N=[1,33],A=[1,20],k=[1,21],h=[1,22],x=[1,23],D=[1,24],$=[1,26],L=[1,27],P=[1,28],I=[1,29],J=[1,30],st=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],j=[1,34],p=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],yt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,c,r,y,E,i,F){var o=i.length-1;switch(E){case 3:return y.setRootDoc(i[o]),i[o];case 4:this.$=[];break;case 5:i[o]!="nl"&&(i[o-1].push(i[o]),this.$=i[o-1]);break;case 6:case 7:this.$=i[o];break;case 8:this.$="nl";break;case 12:this.$=i[o];break;case 13:const q=i[o-1];q.description=y.trimColon(i[o]),this.$=q;break;case 14:this.$={stmt:"relation",state1:i[o-2],state2:i[o]};break;case 15:const gt=y.trimColon(i[o]);this.$={stmt:"relation",state1:i[o-3],state2:i[o-1],description:gt};break;case 19:this.$={stmt:"state",id:i[o-3],type:"default",description:"",doc:i[o-1]};break;case 20:var B=i[o],H=i[o-2].trim();if(i[o].match(":")){var ht=i[o].split(":");B=ht[0],H=[H,ht[1]]}this.$={stmt:"state",id:B,type:"default",description:H};break;case 21:this.$={stmt:"state",id:i[o-3],type:"default",description:i[o-5],doc:i[o-1]};break;case 22:this.$={stmt:"state",id:i[o],type:"fork"};break;case 23:this.$={stmt:"state",id:i[o],type:"join"};break;case 24:this.$={stmt:"state",id:i[o],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[o-1].trim(),note:{position:i[o-2].trim(),text:i[o].trim()}};break;case 29:this.$=i[o].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[o].trim(),y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[o-3],url:i[o-2],tooltip:i[o-1]};break;case 33:this.$={stmt:"click",id:i[o-3],url:i[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[o-1].trim(),classes:i[o].trim()};break;case 36:this.$={stmt:"style",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 37:this.$={stmt:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[o].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:l,6:s},{1:[3]},{3:5,4:e,5:l,6:s},{3:6,4:e,5:l,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],u,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:m,24:N,25:A,26:k,27:h,28:x,29:D,32:25,33:$,35:L,37:P,38:I,41:J,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:m,24:N,25:A,26:k,27:h,28:x,29:D,32:25,33:$,35:L,37:P,38:I,41:J,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,7]),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(p,[2,11]),t(p,[2,12],{14:[1,40],15:[1,41]}),t(p,[2,16]),{18:[1,42]},t(p,[2,18],{20:[1,43]}),{23:[1,44]},t(p,[2,22]),t(p,[2,23]),t(p,[2,24]),t(p,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(p,[2,28]),{34:[1,49]},{36:[1,50]},t(p,[2,31]),{13:51,24:N,57:j},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,41]),t(p,[2,6]),t(p,[2,13]),{13:58,24:N,57:j},t(p,[2,17]),t(At,u,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(p,[2,29]),t(p,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(p,[2,14],{14:[1,71]}),{4:d,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,72],22:m,24:N,25:A,26:k,27:h,28:x,29:D,32:25,33:$,35:L,37:P,38:I,41:J,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(p,[2,34]),t(p,[2,35]),t(p,[2,36]),t(p,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(p,[2,15]),t(p,[2,19]),t(At,u,{7:78}),t(p,[2,26]),t(p,[2,27]),{5:[1,79]},{5:[1,80]},{4:d,5:S,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,81],22:m,24:N,25:A,26:k,27:h,28:x,29:D,32:25,33:$,35:L,37:P,38:I,41:J,45:st,48:it,51:rt,52:at,53:nt,54:ot,57:j},t(p,[2,32]),t(p,[2,33]),t(p,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,c){if(c.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=c,r}},"parseError"),parse:f(function(a){var c=this,r=[0],y=[],E=[null],i=[],F=this.table,o="",B=0,H=0,ht=2,q=1,gt=i.slice.call(arguments,1),b=Object.create(this.lexer),M={yy:{}};for(var Tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Tt)&&(M.yy[Tt]=this.yy[Tt]);b.setInput(a,M.yy),M.yy.lexer=b,M.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Et=b.yylloc;i.push(Et);var qt=b.options&&b.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt(O){r.length=r.length-2*O,E.length=E.length-O,i.length=i.length-O}f(Qt,"popStack");function xt(){var O;return O=y.pop()||b.lex()||q,typeof O!="number"&&(O instanceof Array&&(y=O,O=y.pop()),O=c.symbols_[O]||O),O}f(xt,"lex");for(var C,U,R,_t,z={},ut,G,Lt,dt;;){if(U=r[r.length-1],this.defaultActions[U]?R=this.defaultActions[U]:((C===null||typeof C>"u")&&(C=xt()),R=F[U]&&F[U][C]),typeof R>"u"||!R.length||!R[0]){var mt="";dt=[];for(ut in F[U])this.terminals_[ut]&&ut>ht&&dt.push("'"+this.terminals_[ut]+"'");b.showPosition?mt="Parse error on line "+(B+1)+`: +`+b.showPosition()+` +Expecting `+dt.join(", ")+", got '"+(this.terminals_[C]||C)+"'":mt="Parse error on line "+(B+1)+": Unexpected "+(C==q?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[C]||C,line:b.yylineno,loc:Et,expected:dt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+C);switch(R[0]){case 1:r.push(C),E.push(b.yytext),i.push(b.yylloc),r.push(R[1]),C=null,H=b.yyleng,o=b.yytext,B=b.yylineno,Et=b.yylloc;break;case 2:if(G=this.productions_[R[1]][1],z.$=E[E.length-G],z._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},qt&&(z._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),_t=this.performAction.apply(z,[o,H,B,M.yy,R[1],E,i].concat(gt)),typeof _t<"u")return _t;G&&(r=r.slice(0,-1*G*2),E=E.slice(0,-1*G),i=i.slice(0,-1*G)),r.push(this.productions_[R[1]][0]),E.push(z.$),i.push(z._$),Lt=F[r[r.length-2]][r[r.length-1]],r.push(Lt);break;case 3:return!0}}return!0},"parse")},Jt=(function(){var Y={EOF:1,parseError:f(function(c,r){if(this.yy.parser)this.yy.parser.parseError(c,r);else throw new Error(c)},"parseError"),setInput:f(function(a,c){return this.yy=c||this.yy||{},this._input=a,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:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var c=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===y.length?this.yylloc.first_column:0)+y[y.length-r.length].length-r[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+c+"^"},"showPosition"),test_match:f(function(a,c){var r,y,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),y=a[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],r=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,c,r,y;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;ic[0].length)){if(c=r,y=i,this.options.backtrack_lexer){if(a=this.test_match(r,E[i]),a!==!1)return a;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(a=this.test_match(c,E[y]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var c=this.next();return c||this.lex()},"lex"),begin:f(function(c){this.conditionStack.push(c)},"begin"),popState:f(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:f(function(c){this.begin(c)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(c,r,y,E){function i(){const F=r.yytext.indexOf("%%");if(F===0)return!1;if(F>0){const o=r.yytext.slice(0,F),B=r.yytext.slice(F);B&&c.lexer.unput(B),r.yytext=o}return!0}switch(f(i,"processId"),y){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 33:return this.pushState("SCALE"),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:return i()?(this.popState(),"ID"):void 0;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 56:break;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 62:break;case 63:return"NOTE_TEXT";case 64:return i()?(this.popState(),"ID"):void 0;case 65:return i()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),r.yytext=r.yytext.substr(2).trim(),31;case 67:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),31;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return i()?24:void 0;case 73:return r.yytext=r.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return Y})();yt.lexer=Jt;function ct(){this.yy={}}return f(ct,"Parser"),ct.prototype=yt,yt.Parser=ct,new ct})();Dt.parser=Dt;var Ge=Dt,ue="TB",Ft="TB",It="dir",X="state",K="root",vt="relation",de="classDef",fe="style",pe="applyClass",tt="default",Bt="divider",Gt="fill:none",Yt="fill: #333",Vt="c",Mt="markdown",Ut="normal",bt="rect",kt="rectWithTitle",Se="stateStart",ye="stateEnd",Ot="divider",Nt="roundedWithTitle",ge="note",Te="noteGroup",et="statediagram",Ee="state",_e=`${et}-${Ee}`,Wt="transition",me="note",be="note-edge",ke=`${Wt} ${be}`,De=`${et}-${me}`,ve="cluster",Ce=`${et}-${ve}`,Ae="cluster-alt",xe=`${et}-${Ae}`,jt="parent",Ht="note",Le="state",Ct="----",Ie=`${Ct}${Ht}`,Rt=`${Ct}${jt}`,zt=f((t,e=Ft)=>{if(!t.doc)return e;let l=e;for(const s of t.doc)s.stmt==="dir"&&(l=s.value);return l},"getDir"),Oe=f(function(t,e){return e.db.getClasses()},"getClasses"),Ne=f(async function(t,e,l,s){_.info("REF0:"),_.info("Drawing state diagram (v2)",e);const{securityLevel:u,state:d,layout:S}=w();s.db.extract(s.db.getRootDocV2());const g=s.db.getData(),n=Zt(e,u);g.type=s.type,g.layoutAlgorithm=S,g.nodeSpacing=d?.nodeSpacing||50,g.rankSpacing=d?.rankSpacing||50,w().look==="neo"?g.markers=["barbNeo"]:g.markers=["barb"],g.diagramId=e,await ee(g,n);const m=8;try{(typeof s.db.getLinks=="function"?s.db.getLinks():new Map).forEach((A,k)=>{const h=typeof k=="string"?k:typeof k?.id=="string"?k.id:"";if(!h){_.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(k));return}const x=n.node()?.querySelectorAll("g");let D;if(x?.forEach(I=>{I.textContent?.trim()===h&&(D=I)}),!D){_.warn("⚠️ Could not find node matching text:",h);return}const $=D.parentNode;if(!$){_.warn("⚠️ Node has no parent, cannot wrap:",h);return}const L=document.createElementNS("http://www.w3.org/2000/svg","a"),P=A.url.replace(/^"+|"+$/g,"");if(L.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",P),L.setAttribute("target","_blank"),A.tooltip){const I=A.tooltip.replace(/^"+|"+$/g,"");L.setAttribute("title",I)}$.replaceChild(L,D),L.appendChild(D),_.info("🔗 Wrapped node in tag for:",h,A.url)})}catch(N){_.error("❌ Error injecting clickable links:",N)}se.insertTitle(n,"statediagramTitleText",d?.titleTopMargin??25,s.db.getDiagramTitle()),te(n,m,et,d?.useMaxWidth??!0)},"draw"),Ye={getClasses:Oe,draw:Ne,getDir:zt},pt=new Map,V=0;function St(t="",e=0,l="",s=Ct){const u=l!==null&&l.length>0?`${s}${l}`:"";return`${Le}-${t}${u}-${e}`}f(St,"stateDomId");var Re=f((t,e,l,s,u,d,S,g)=>{_.trace("items",e),e.forEach(n=>{switch(n.stmt){case X:Z(t,n,l,s,u,d,S,g);break;case tt:Z(t,n,l,s,u,d,S,g);break;case vt:{Z(t,n.state1,l,s,u,d,S,g),Z(t,n.state2,l,s,u,d,S,g);const T=S==="neo",m={id:"edge"+V,start:n.state1.id,end:n.state2.id,arrowhead:"normal",arrowTypeEnd:T?"arrow_barb_neo":"arrow_barb",style:Gt,labelStyle:"",label:W.sanitizeText(n.description??"",w()),arrowheadStyle:Yt,labelpos:Vt,labelType:Mt,thickness:Ut,classes:Wt,look:S};u.push(m),V++}break}})},"setupDoc"),wt=f((t,e=Ft)=>{let l=e;if(t.doc)for(const s of t.doc)s.stmt==="dir"&&(l=s.value);return l},"getDir");function Q(t,e,l){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(u=>{const d=l.get(u);d&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...d.styles])}));const s=t.find(u=>u.id===e.id);s?Object.assign(s,e):t.push(e)}f(Q,"insertOrUpdateNode");function Kt(t){return t?.classes?.join(" ")??""}f(Kt,"getClassesFromDbInfo");function Xt(t){return t?.styles??[]}f(Xt,"getStylesFromDbInfo");var Z=f((t,e,l,s,u,d,S,g)=>{const n=e.id,T=l.get(n),m=Kt(T),N=Xt(T),A=w();if(_.info("dataFetcher parsedItem",e,T,N),n!=="root"){let k=bt;e.start===!0?k=Se:e.start===!1&&(k=ye),e.type!==tt&&(k=e.type),pt.get(n)||pt.set(n,{id:n,shape:k,description:W.sanitizeText(n,A),cssClasses:`${m} ${_e}`,cssStyles:N});const h=pt.get(n);e.description&&(Array.isArray(h.description)?(h.shape=kt,h.description.push(e.description)):h.description?.length&&h.description.length>0?(h.shape=kt,h.description===n?h.description=[e.description]:h.description=[h.description,e.description]):(h.shape=bt,h.description=e.description),h.description=W.sanitizeTextOrArray(h.description,A)),h.description?.length===1&&h.shape===kt&&(h.type==="group"?h.shape=Nt:h.shape=bt),!h.type&&e.doc&&(_.info("Setting cluster for XCX",n,wt(e)),h.type="group",h.isGroup=!0,h.dir=wt(e),h.shape=e.type===Bt?Ot:Nt,h.cssClasses=`${h.cssClasses} ${Ce} ${d?xe:""}`);const x={labelStyle:"",shape:h.shape,label:h.description,cssClasses:h.cssClasses,cssCompiledStyles:[],cssStyles:h.cssStyles,id:n,dir:h.dir,domId:St(n,V),type:h.type,isGroup:h.type==="group",padding:8,rx:10,ry:10,look:S,labelType:"markdown"};if(x.shape===Ot&&(x.label=""),t&&t.id!=="root"&&(_.trace("Setting node ",n," to be child of its parent ",t.id),x.parentId=t.id),x.centerLabel=!0,e.note){const D={labelStyle:"",shape:ge,label:e.note.text,labelType:"markdown",cssClasses:De,cssStyles:[],cssCompiledStyles:[],id:n+Ie+"-"+V,domId:St(n,V,Ht),type:h.type,isGroup:h.type==="group",padding:A.flowchart?.padding,look:S,position:e.note.position},$=n+Rt,L={labelStyle:"",shape:Te,label:e.note.text,cssClasses:h.cssClasses,cssStyles:[],id:n+Rt,domId:St(n,V,jt),type:"group",isGroup:!0,padding:16,look:S,position:e.note.position};V++,L.id=$,D.parentId=$,Q(s,L,g),Q(s,D,g),Q(s,x,g);let P=n,I=D.id;e.note.position==="left of"&&(P=D.id,I=n),u.push({id:P+"-"+I,start:P,end:I,arrowhead:"none",arrowTypeEnd:"",style:Gt,labelStyle:"",classes:ke,arrowheadStyle:Yt,labelpos:Vt,labelType:Mt,thickness:Ut,look:S})}else Q(s,x,g)}e.doc&&(_.trace("Adding nodes children "),Re(e,e.doc,l,s,u,!d,S,g))},"dataFetcher"),we=f(()=>{pt.clear(),V=0},"reset"),v={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},$t=f(()=>new Map,"newClassesList"),Pt=f(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ft=f(t=>JSON.parse(JSON.stringify(t)),"clone"),Ve=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=$t(),this.documents={root:Pt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=ie,this.setAccTitle=re,this.getAccDescription=ae,this.setAccDescription=ne,this.setDiagramTitle=oe,this.getDiagramTitle=le,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{f(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const s of Array.isArray(t)?t:t.doc)switch(s.stmt){case X:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case vt:this.addRelation(s.state1,s.state2,s.description);break;case de:this.addStyleClass(s.id.trim(),s.classes);break;case fe:this.handleStyleDef(s);break;case pe:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip);break}const e=this.getStates(),l=w();we(),Z(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,l.look,this.classes);for(const s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),l=t.styleClass.split(",");for(const s of e){let u=this.getState(s);if(!u){const d=s.trim();this.addState(d),u=this.getState(d)}u&&(u.styles=l.map(d=>d.replace(/;/g,"")?.trim()))}}setRootDoc(t){_.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,l){if(e.stmt===vt){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===X&&(e.id===v.START_NODE?(e.id=t.id+(l?"_start":"_end"),e.start=l):e.id=e.id.trim()),e.stmt!==K&&e.stmt!==X||!e.doc)return;const s=[];let u=[];for(const d of e.doc)if(d.type===Bt){const S=ft(d);S.doc=ft(u),s.push(S),u=[]}else u.push(d);if(s.length>0&&u.length>0){const d={stmt:X,id:ce(),type:"divider",doc:ft(u)};s.push(ft(d)),e.doc=s}e.doc.forEach(d=>this.docTranslator(e,d,!0))}getRootDocV2(){return this.docTranslator({id:K,stmt:K},{id:K,stmt:K,doc:this.rootDoc},!0),{id:K,doc:this.rootDoc}}addState(t,e=tt,l=void 0,s=void 0,u=void 0,d=void 0,S=void 0,g=void 0){const n=t?.trim();if(!this.currentDocument.states.has(n))_.info("Adding state ",n,s),this.currentDocument.states.set(n,{stmt:X,id:n,descriptions:[],type:e,doc:l,note:u,classes:[],styles:[],textStyles:[]});else{const T=this.currentDocument.states.get(n);if(!T)throw new Error(`State not found: ${n}`);T.doc||(T.doc=l),T.type||(T.type=e)}if(s&&(_.info("Setting state description",n,s),(Array.isArray(s)?s:[s]).forEach(m=>this.addDescription(n,m.trim()))),u){const T=this.currentDocument.states.get(n);if(!T)throw new Error(`State not found: ${n}`);T.note=u,T.note.text=W.sanitizeText(T.note.text,w())}d&&(_.info("Setting state classes",n,d),(Array.isArray(d)?d:[d]).forEach(m=>this.setCssClass(n,m.trim()))),S&&(_.info("Setting state styles",n,S),(Array.isArray(S)?S:[S]).forEach(m=>this.setStyle(n,m.trim()))),g&&(_.info("Setting state styles",n,S),(Array.isArray(g)?g:[g]).forEach(m=>this.setTextStyle(n,m.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:Pt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=$t(),t||(this.links=new Map,he())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){_.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,l){this.links.set(t,{url:e,tooltip:l}),_.warn("Adding link",t,e,l)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===v.START_NODE?(this.startEndCount++,`${v.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=tt){return t===v.START_NODE?v.START_TYPE:e}endIdIfNeeded(t=""){return t===v.END_NODE?(this.startEndCount++,`${v.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=tt){return t===v.END_NODE?v.END_TYPE:e}addRelationObjs(t,e,l=""){const s=this.startIdIfNeeded(t.id.trim()),u=this.startTypeIfNeeded(t.id.trim(),t.type),d=this.startIdIfNeeded(e.id.trim()),S=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(s,u,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(d,S,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:s,id2:d,relationTitle:W.sanitizeText(l,w())})}addRelation(t,e,l){if(typeof t=="object"&&typeof e=="object")this.addRelationObjs(t,e,l);else if(typeof t=="string"&&typeof e=="string"){const s=this.startIdIfNeeded(t.trim()),u=this.startTypeIfNeeded(t),d=this.endIdIfNeeded(e.trim()),S=this.endTypeIfNeeded(e);this.addState(s,u),this.addState(d,S),this.currentDocument.relations.push({id1:s,id2:d,relationTitle:l?W.sanitizeText(l,w()):void 0})}}addDescription(t,e){const l=this.currentDocument.states.get(t),s=e.startsWith(":")?e.replace(":","").trim():e;l?.descriptions?.push(W.sanitizeText(s,w()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const l=this.classes.get(t);e&&l&&e.split(v.STYLECLASS_SEP).forEach(s=>{const u=s.replace(/([^;]*);/,"$1").trim();if(RegExp(v.COLOR_KEYWORD).exec(s)){const S=u.replace(v.FILL_KEYWORD,v.BG_FILL).replace(v.COLOR_KEYWORD,v.FILL_KEYWORD);l.textStyles.push(S)}l.styles.push(u)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(l=>{let s=this.getState(l);if(!s){const u=l.trim();this.addState(u),s=this.getState(u)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===It)}getDirection(){return this.getDirectionStatement()?.value??ue}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:It,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=w();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:zt(this.getRootDocV2())}}getConfig(){return w().state}},$e=f(t=>` +defs [id$="-barbEnd"] { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth||1}; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: ${t.strokeWidth||1}; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth||1}px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: ${t.strokeWidth||1}px; +} +[id$="-barbEnd"] { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth||1}px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +[id$="-dependencyStart"], [id$="-dependencyEnd"] { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: ${t.strokeWidth||1}; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} + +[data-look="neo"].statediagram-cluster rect { + fill: ${t.mainBkg}; + stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder}; + stroke-width: ${t.strokeWidth??1}; +} +[data-look="neo"].statediagram-cluster rect.outer { + rx: ${t.radius}px; + ry: ${t.radius}px; + filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"} +} +`,"getStyles"),Me=$e;export{Ve as S,Ge as a,Ye as b,Me as s}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-FMBD7UC4-DwQl0sgV.js b/apps/pythinker-code/dist-web/assets/chunk-FMBD7UC4-DwQl0sgV.js new file mode 100644 index 000000000..5ab40f04d --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-FMBD7UC4-DwQl0sgV.js @@ -0,0 +1,15 @@ +import{_ as e}from"./mermaid.core-bNlBBSwN.js";var l=e(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,"getIconStyles");export{l as g}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-ND2GUHAM-CyIE0WAw.js b/apps/pythinker-code/dist-web/assets/chunk-ND2GUHAM-CyIE0WAw.js new file mode 100644 index 000000000..00fa88577 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-ND2GUHAM-CyIE0WAw.js @@ -0,0 +1 @@ +import{_ as i,d as l,n as d,j as o}from"./mermaid.core-bNlBBSwN.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,w as c,x as d,g as e,m as f,h as g,y as h}; diff --git a/apps/pythinker-code/dist-web/assets/chunk-QZHKN3VN-CFNj3DLL.js b/apps/pythinker-code/dist-web/assets/chunk-QZHKN3VN-CFNj3DLL.js new file mode 100644 index 000000000..4b0d6c6f2 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/chunk-QZHKN3VN-CFNj3DLL.js @@ -0,0 +1 @@ +import{_ as i}from"./mermaid.core-bNlBBSwN.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I}; diff --git a/apps/pythinker-code/dist-web/assets/classDiagram-4FO5ZUOK-DAYxyfHr.js b/apps/pythinker-code/dist-web/assets/classDiagram-4FO5ZUOK-DAYxyfHr.js new file mode 100644 index 000000000..a59b802cb --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/classDiagram-4FO5ZUOK-DAYxyfHr.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-727SXJPM-CqN4oca1.js";import{_ as i}from"./mermaid.core-bNlBBSwN.js";import"./chunk-FMBD7UC4-DwQl0sgV.js";import"./chunk-ND2GUHAM-CyIE0WAw.js";import"./chunk-55IACEB6-Q15Gq5Jr.js";import"./chunk-2J33WTMH-BZ74n2hL.js";import"./index-DIfcwXP7.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/classDiagram-v2-Q7XG4LA2-DAYxyfHr.js b/apps/pythinker-code/dist-web/assets/classDiagram-v2-Q7XG4LA2-DAYxyfHr.js new file mode 100644 index 000000000..a59b802cb --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/classDiagram-v2-Q7XG4LA2-DAYxyfHr.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-727SXJPM-CqN4oca1.js";import{_ as i}from"./mermaid.core-bNlBBSwN.js";import"./chunk-FMBD7UC4-DwQl0sgV.js";import"./chunk-ND2GUHAM-CyIE0WAw.js";import"./chunk-55IACEB6-Q15Gq5Jr.js";import"./chunk-2J33WTMH-BZ74n2hL.js";import"./index-DIfcwXP7.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/cose-bilkent-S5V4N54A-CLcMSdq2.js b/apps/pythinker-code/dist-web/assets/cose-bilkent-S5V4N54A-CLcMSdq2.js new file mode 100644 index 000000000..ecd28d8b0 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/cose-bilkent-S5V4N54A-CLcMSdq2.js @@ -0,0 +1 @@ +import{b4 as lt,_ as V,l as $,d as gt}from"./mermaid.core-bNlBBSwN.js";import{c as tt}from"./cytoscape.esm-nFXppDBa.js";import"./index-DIfcwXP7.js";var k={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(k)),k.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{$.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){$.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return $.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw $.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Nt=Lt;export{Nt as render}; diff --git a/apps/pythinker-code/dist-web/assets/dagre-BM42HDAG-CK2ZCPFa.js b/apps/pythinker-code/dist-web/assets/dagre-BM42HDAG-CK2ZCPFa.js new file mode 100644 index 000000000..3b36cc5c1 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/dagre-BM42HDAG-CK2ZCPFa.js @@ -0,0 +1,4 @@ +import{_ as w,aV as _,aW as Y,aX as j,aY as F,l as r,c as H,aZ as V,a_ as $,ai as Q,aQ as U,aj as P,ah as W,a$ as Z,b0 as q,b1 as z}from"./mermaid.core-bNlBBSwN.js";import{i as N,G as B}from"./graph--OzhPTMs.js";import{b as K,m as R,l as I}from"./layout-SsrduOYp.js";import"./index-DIfcwXP7.js";var ee=4;function ne(e){return K(e,ee)}function b(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:te(e),edges:se(e)};return N(e.graph())||(t.value=ne(e.graph())),t}function te(e){return R(e.nodes(),function(t){var n=e.node(t),a=e.parent(t),i={v:t};return N(n)||(i.value=n),N(a)||(i.parent=a),i})}function se(e){return R(e.edges(),function(t){var n=e.edge(t),a={v:t.v,w:t.w};return N(t.name)||(a.name=t.name),N(n)||(a.value=n),a})}var d=new Map,y=new Map,A=new Map,re=w(()=>{y.clear(),A.clear(),d.clear()},"clear"),D=w((e,t)=>{const n=y.get(t)||[];return r.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ie=w((e,t)=>{const n=y.get(t)||[];return r.info("Descendants of ",t," is ",n),r.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||D(e.v,t)||D(e.w,t)||n.includes(e.w):(r.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=w((e,t,n,a)=>{r.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const i=t.children(e)||[];e!==a&&i.push(e),r.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(o=>{if(t.children(o).length>0)G(o,t,n,a);else{const l=t.node(o);r.info("cp ",o," to ",a," with parent ",e),n.setNode(o,l),a!==t.parent(o)&&(r.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==a&&o!==e?(r.debug("Setting parent",o,e),n.setParent(o,e)):(r.info("In copy ",e,"root",a,"data",t.node(e),a),r.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const u=t.edges(o);r.debug("Copying Edges",u),u.forEach(c=>{r.info("Edge",c);const m=t.edge(c.v,c.w,c.name);r.info("Edge data",m,a);try{ie(c,a)?(r.info("Copying as ",c.v,c.w,m,c.name),n.setEdge(c.v,c.w,m,c.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):r.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",a," clusterId:",e)}catch(h){r.error(h)}})}r.debug("Removing node",o),t.removeNode(o)})},"copy"),J=w((e,t)=>{const n=t.children(e);let a=[...n];for(const i of n)A.set(i,e),a=[...a,...J(i,t)];return a},"extractDescendants"),oe=w((e,t,n)=>{const a=e.edges().filter(c=>c.v===t||c.w===t),i=e.edges().filter(c=>c.v===n||c.w===n),o=a.map(c=>({v:c.v===t?n:c.v,w:c.w===t?t:c.w})),l=i.map(c=>({v:c.v,w:c.w}));return o.filter(c=>l.some(m=>c.v===m.v&&c.w===m.w))},"findCommonEdges"),C=w((e,t,n)=>{const a=t.children(e);if(r.trace("Searching children of id ",e,a),a.length<1)return e;let i;for(const o of a){const l=C(o,t,n),u=oe(t,n,l);if(l)if(u.length>0)i=l;else return l}return i},"findNonClusterChild"),k=w(e=>!d.has(e)||!d.get(e).externalConnections?e:d.has(e)?d.get(e).id:e,"getAnchorId"),ae=w((e,t)=>{if(!e||t>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(r.warn("Cluster identified",n," Replacement id in edges: ",C(n,e,n)),y.set(n,J(n,e)),d.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),i=e.edges();a.length>0?(r.debug("Cluster identified",n,y),i.forEach(o=>{const l=D(o.v,n),u=D(o.w,n);l^u&&(r.warn("Edge: ",o," leaves cluster ",n),r.warn("Descendants of XXX ",n,": ",y.get(n)),d.get(n).externalConnections=!0)})):r.debug("Not a cluster ",n,y)});for(let n of d.keys()){const a=d.get(n).id,i=e.parent(a);i!==n&&d.has(i)&&!d.get(i).externalConnections&&(d.get(n).id=i)}e.edges().forEach(function(n){const a=e.edge(n);r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,o=n.w;if(r.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d.get(n.v)," --- ",d.get(n.w)),d.get(n.v)||d.get(n.w)){if(r.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),i=k(n.v),o=k(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const l=e.parent(i);d.get(l).externalConnections=!0,a.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);d.get(l).externalConnections=!0,a.toCluster=n.w}r.warn("Fix Replacing with XXX",i,o,n.name),e.setEdge(i,o,a,n.name)}}),r.warn("Adjusted Graph",b(e)),T(e,0),r.trace(d)},"adjustClustersAndEdges"),T=w((e,t)=>{if(r.warn("extractor - ",t,b(e),e.children("D")),t>10){r.error("Bailing out");return}let n=e.nodes(),a=!1;for(const i of n){const o=e.children(i);a=a||o.length>0}if(!a){r.debug("Done, no node has children",e.nodes());return}r.debug("Nodes = ",n,t);for(const i of n)if(r.debug("Extracting node",i,d,d.has(i)&&!d.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!d.has(i))r.debug("Not a cluster",i,t);else if(!d.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){r.warn("Cluster without external connections, without a parent and with children",i,t);let l=e.graph().rankdir==="TB"?"LR":"TB";d.get(i)?.clusterData?.dir&&(l=d.get(i).clusterData.dir,r.warn("Fixing dir",d.get(i).clusterData.dir,l));const u=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});r.warn("Old graph before copy",b(e)),G(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:d.get(i).clusterData,label:d.get(i).label,graph:u}),r.warn("New graph after copy node: (",i,")",b(u)),r.debug("Old graph after copy",b(e))}else r.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!d.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),r.debug(d);n=e.nodes(),r.warn("New list of nodes",n);for(const i of n){const o=e.node(i);r.warn(" Now next level",i,o),o?.clusterNode&&T(o.graph,t+1)}},"extractor"),L=w((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(a=>{const i=e.children(a),o=L(e,i);n=[...n,...o]}),n},"sorter"),ce=w(e=>L(e,e.children()),"sortNodesByHierarchy"),M=w(async(e,t,n,a,i,o)=>{r.warn("Graph in recursive render:XAX",b(t),i);const l=t.graph().rankdir;r.trace("Dir in recursive render - dir:",l);const u=e.insert("g").attr("class","root");t.nodes()?r.info("Recursive render XXX",t.nodes()):r.info("No nodes found for",t),t.edges().length>0&&r.info("Recursive edges",t.edge(t.edges()[0]));const c=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),h=u.insert("g").attr("class","edgeLabels"),v=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){const s=t.node(f);if(i!==void 0){const g=JSON.parse(JSON.stringify(i.clusterData));r.trace(`Setting data for parent cluster XXX + Node.id = `,f,` + data=`,g.height,` +Parent cluster`,i.height),t.setNode(i.id,g),t.parent(f)||(r.trace("Setting parent",f,i.id),t.setParent(f,i.id,g))}if(r.info("(Insert) Node XXX"+f+": "+JSON.stringify(t.node(f))),s?.clusterNode){r.info("Cluster identified XBX",f,s.width,t.node(f));const{ranksep:g,nodesep:E}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:g+25,nodesep:E});const p=await M(v,s.graph,n,a,t.node(f),o),x=p.elem;V(s,x),s.diff=p.diff||0,r.info("New compound node after recursive render XAX",f,"width",s.width,"height",s.height),$(x,s)}else t.children(f).length>0?(r.trace("Cluster - the non recursive path XBX",f,s.id,s,s.width,"Graph:",t),r.trace(C(s.id,t)),d.set(s.id,{id:C(s.id,t),node:s})):(r.trace("Node - the non recursive path XAX",f,v,t.node(f),l),await Q(v,t.node(f),{config:o,dir:l}))})),await w(async()=>{const f=t.edges().map(async function(s){const g=t.edge(s.v,s.w,s.name);r.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),r.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),r.info("Fix",d,"ids:",s.v,s.w,"Translating: ",d.get(s.v),d.get(s.w)),await z(h,g)});await Promise.all(f)},"processEdges")(),r.info("Graph before layout:",JSON.stringify(b(t))),r.info("############################################# XXX"),r.info("### Layout ### XXX"),r.info("############################################# XXX"),I(t),r.info("Graph after layout:",JSON.stringify(b(t)));let O=0,{subGraphTitleTotalMargin:S}=U(o);return await Promise.all(ce(t).map(async function(f){const s=t.node(f);if(r.info("Position XBX => "+f+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s?.clusterNode)s.y+=S,r.info("A tainted cluster node XBX1",f,s.id,s.width,s.height,s.x,s.y,t.parent(f)),d.get(s.id).node=s,P(s);else if(t.children(f).length>0){r.info("A pure cluster node XBX1",f,s.id,s.x,s.y,s.width,s.height,t.parent(f)),s.height+=S,t.node(s.parentId);const g=s?.padding/2||0,E=s?.labelBBox?.height||0,p=E-g||0;r.debug("OffsetY",p,"labelHeight",E,"halfPadding",g),await W(c,s),d.get(s.id).node=s}else{const g=t.node(s.parentId);s.y+=S/2,r.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",g,g?.offsetY,s),P(s)}})),t.edges().forEach(function(f){const s=t.edge(f);r.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(s),s),s.points.forEach(x=>x.y+=S/2);const g=t.node(f.v);var E=t.node(f.w);const p=Z(m,s,d,n,g,E,a);q(s,p)}),t.nodes().forEach(function(f){const s=t.node(f);r.info(f,s.type,s.diff),s.isGroup&&(O=s.diff)}),r.warn("Returning from recursive render XAX",u,O),{elem:u,diff:O}},"recursiveRender"),ge=w(async(e,t)=>{const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");_(a,e.markers,e.type,e.diagramId),Y(),j(),F(),re(),e.nodes.forEach(o=>{n.setNode(o.id,{...o}),o.parentId&&n.setParent(o.id,o.parentId)}),r.debug("Edges:",e.edges),e.edges.forEach(o=>{if(o.start===o.end){const l=o.start,u=l+"---"+l+"---1",c=l+"---"+l+"---2",m=n.node(l);n.setNode(u,{domId:u,id:u,parentId:m.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(u,m.parentId),n.setNode(c,{domId:c,id:c,parentId:m.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,m.parentId);const h=structuredClone(o),v=structuredClone(o),X=structuredClone(o);h.label="",h.arrowTypeEnd="none",h.endLabelLeft="",h.endLabelRight="",h.startLabelLeft="",h.id=l+"-cyclic-special-1",v.startLabelRight="",v.startLabelLeft="",v.endLabelLeft="",v.endLabelRight="",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=l+"-cyclic-special-mid",X.label="",X.startLabelRight="",X.startLabelLeft="",X.arrowTypeStart="none",m.isGroup&&(h.fromCluster=l,X.toCluster=l),X.id=l+"-cyclic-special-2",X.arrowTypeStart="none",n.setEdge(l,u,h,l+"-cyclic-special-0"),n.setEdge(u,c,v,l+"-cyclic-special-1"),n.setEdge(c,l,X,l+"-cycy({...j,...C().radar}),"getConfig"),b=l(()=>x.axes,"getAxes"),N=l(()=>x.curves,"getCurves"),U=l(()=>x.options,"getOptions"),X=l(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=l(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=l(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule}},"setOptions"),K=l(()=>{z(),x=structuredClone(w)},"clear"),$={getAxes:b,getCurves:N,getOptions:U,setAxes:X,setCurves:Y,setOptions:J,getConfig:q,clear:K,setAccTitle:E,getAccTitle:_,setDiagramTitle:F,getDiagramTitle:R,getAccDescription:I,setAccDescription:k},Q=l(a=>{H(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),tt={parse:l(async a=>{const t=await V("radar",a);P.debug(t),Q(t)},"parse")},et=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),p=D(t),u=at(p,c),g=n.max??Math.max(...i.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(c.width,c.height)/2;rt(u,o,v,n.ticks,n.graticule),st(u,o,v,c),M(u,o,i,h,g,n.graticule,c),T(u,i,n.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),at=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return B(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),rt=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o{const u=2*p*Math.PI/o-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),st=l((a,t,e,r)=>{const s=t.length;for(let o=0;o{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,c),S=f*Math.cos(v),O=f*Math.sin(v);return{x:S,y:O}});o==="circle"?a.append("path").attr("d",L(u,i.curveTension)).attr("class",`radarCurve-${p}`):o==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var nt={draw:et},ot=l((a,t)=>{let e="";for(let r=0;r{const t=W(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),lt=l(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=it(a);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${e.axisColor}; + stroke-width: ${e.axisStrokeWidth}; + } + .radarAxisLabel { + dominant-baseline: middle; + text-anchor: middle; + font-size: ${e.axisLabelFontSize}px; + color: ${e.axisColor}; + } + .radarGraticule { + fill: ${e.graticuleColor}; + fill-opacity: ${e.graticuleOpacity}; + stroke: ${e.graticuleColor}; + stroke-width: ${e.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${e.legendFontSize}px; + dominant-baseline: hanging; + } + ${ot(t,e)} + `},"styles"),gt={parser:tt,db:$,renderer:nt,styles:lt};export{gt as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/diagram-5GNKFQAL-B-x7cYyh.js b/apps/pythinker-code/dist-web/assets/diagram-5GNKFQAL-B-x7cYyh.js new file mode 100644 index 000000000..9386ab901 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/diagram-5GNKFQAL-B-x7cYyh.js @@ -0,0 +1,10 @@ +import{q as x,b as f,s as C,t as B,g as T,a as y,_ as s,H as u,l as k,L as V,e as _,F as N,A as S,I as A}from"./mermaid.core-bNlBBSwN.js";import{p as D}from"./chunk-4BX2VUAB-DQH-TItP.js";import{I}from"./chunk-QZHKN3VN-CFNj3DLL.js";import{p as $}from"./wardley-L42UT6IY-BnkTWAjx.js";import"./index-DIfcwXP7.js";var d=new I(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),H=s(()=>{d.reset(),S()},"clear"),L=s(()=>d.records.stack[0],"getRoot"),X=s(()=>d.records.cnt,"getCount"),z=A.treeView,R=s(()=>u(z,N().treeView),"getConfig"),W=s((e,t)=>{for(;e<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const a={id:d.records.cnt++,level:e,name:t,children:[]};d.records.stack[d.records.stack.length-1].children.push(a),d.records.stack.push(a)},"addNode"),E={clear:H,addNode:W,getRoot:L,getCount:X,getConfig:R,getAccTitle:y,getAccDescription:T,getDiagramTitle:B,setAccDescription:C,setAccTitle:f,setDiagramTitle:x},m=E,F=s(e=>{D(e,m),e.nodes.map(t=>m.addNode(t.indent?parseInt(t.indent):0,t.name))},"populate"),M={parse:s(async e=>{const t=await $("treeView",e);k.debug(t),F(t)},"parse")},Y=s((e,t,a,n,o)=>{const c=n.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:r}=c.node().getBBox(),l=g+o.paddingY*2,i=r+o.paddingX*2;c.attr("x",e+o.paddingX),c.attr("y",t+l/2),a.BBox={x:e,y:t,width:i,height:l}},"positionLabel"),b=s((e,t,a,n,o,c)=>e.append("line").attr("x1",t).attr("y1",a).attr("x2",n).attr("y2",o).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),q=s((e,t,a)=>{let n=0,o=0;const c=s((r,l,i,h)=>{const v=h*(i.rowIndent+i.paddingX);Y(v,n,l,r,i);const{height:p,width:w}=l.BBox;b(r,v-i.rowIndent,n+p/2,v,n+p/2,i.lineThickness),o=Math.max(o,v+w),n+=p},"drawNode"),g=s((r,l=0)=>{c(e,r,a,l),r.children.forEach(p=>{g(p,l+1)});const{x:i,y:h,height:v}=r.BBox;if(r.children.length){const{y:p,height:w}=r.children[r.children.length-1].BBox;b(e,i+a.paddingX,h+v,i+a.paddingX,p+w/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(t),{totalHeight:n,totalWidth:o}},"drawTree"),j=s((e,t,a,n)=>{k.debug(`Rendering treeView diagram +`+e);const o=n.db,c=o.getRoot(),g=o.getConfig(),r=V(t),l=r.append("g");l.attr("class","tree-view");const{totalHeight:i,totalWidth:h}=q(l,c,g);r.attr("viewBox",`-${g.lineThickness/2} 0 ${h} ${i}`),_(r,i,h,g.useMaxWidth)},"draw"),G={draw:j},J=G,K={labelFontSize:"16px",labelColor:"black",lineColor:"black"},O=s(({treeView:e})=>{const{labelFontSize:t,labelColor:a,lineColor:n}=u(K,e);return` + .treeView-node-label { + font-size: ${t}; + fill: ${a}; + } + .treeView-node-line { + stroke: ${n}; + } + `},"styles"),P=O,ae={db:m,renderer:J,parser:M,styles:P};export{ae as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/diagram-KO2AKTUF-BpolmxxX.js b/apps/pythinker-code/dist-web/assets/diagram-KO2AKTUF-BpolmxxX.js new file mode 100644 index 000000000..f9b2e4c1e --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/diagram-KO2AKTUF-BpolmxxX.js @@ -0,0 +1,3 @@ +import{p as re}from"./chunk-4BX2VUAB-DQH-TItP.js";import{t as oe,q as se,s as de,g as le,a as ce,b as me,_ as o,l as g,c as T,d as ue,G as xe,A as fe,H as ge,F as M,I as he,i as y,w as P,ak as pe}from"./mermaid.core-bNlBBSwN.js";import{p as be,i as ve}from"./wardley-L42UT6IY-BnkTWAjx.js";import"./index-DIfcwXP7.js";var $="position frame",D="frame positioned",S="position relation",N="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){B={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&aNumber.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function G(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(G,"calculateEntityVisualProps");function L(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let c=`${P(a,t.textMaxWidth,d)}`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{ +`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="
")}const m=r!==void 0;m&&(c+=`

${r}`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(L,"calculateTextProps");function V(e,n){const t=n,i=G(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:D,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p0}o(K,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||z(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:N,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[D]:Y,[N]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+` +`,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},De=o(e=>"","getStyles"),Ne=De,He={parser:Ee,db:F,renderer:$e,styles:Ne};export{He as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/diagram-LMA3HP47-WIugDsao.js b/apps/pythinker-code/dist-web/assets/diagram-LMA3HP47-WIugDsao.js new file mode 100644 index 000000000..a04920f3e --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/diagram-LMA3HP47-WIugDsao.js @@ -0,0 +1,24 @@ +import{_ as b,H as u,L as $,e as B,l as m,b as C,a as S,q as D,t as T,g as F,s as P,F as z,I as A,A as E}from"./mermaid.core-bNlBBSwN.js";import{p as W}from"./chunk-4BX2VUAB-DQH-TItP.js";import{p as _}from"./wardley-L42UT6IY-BnkTWAjx.js";import"./index-DIfcwXP7.js";var L=A.packet,w=class{constructor(){this.packet=[],this.setAccTitle=C,this.getAccTitle=S,this.setDiagramTitle=D,this.getDiagramTitle=T,this.getAccDescription=F,this.setAccDescription=P}static{b(this,"PacketDB")}getConfig(){const t=u({...L,...z().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){E(),this.packet=[]}},N=1e4,I=b((t,e)=>{W(t,e);let r=-1,s=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const s=e*r-1,n=e*r;return[{start:t.start,end:s,label:t.label,bits:s-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");m.debug(e),I(e,r)},"parse")},Y=b((t,e,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=$(e);f.attr("viewBox",`0 0 ${k} ${g}`),B(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())H(f,y,x,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=b((t,e,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(s+l)+l;for(const o of e){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),O={draw:Y},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},q=b(({packet:t}={})=>{const e=u(j,t);return` + .packetByte { + font-size: ${e.byteFontSize}; + } + .packetByte.start { + fill: ${e.startByteColor}; + } + .packetByte.end { + fill: ${e.endByteColor}; + } + .packetLabel { + fill: ${e.labelColor}; + font-size: ${e.labelFontSize}; + } + .packetTitle { + fill: ${e.titleColor}; + font-size: ${e.titleFontSize}; + } + .packetBlock { + stroke: ${e.blockStrokeColor}; + stroke-width: ${e.blockStrokeWidth}; + fill: ${e.blockFillColor}; + } + `},"styles"),X={parser:v,get db(){return new w},renderer:O,styles:q};export{X as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/diagram-OG6HWLK6-BVODXXOF.js b/apps/pythinker-code/dist-web/assets/diagram-OG6HWLK6-BVODXXOF.js new file mode 100644 index 000000000..98b62fb65 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/diagram-OG6HWLK6-BVODXXOF.js @@ -0,0 +1,24 @@ +import{_ as w,a1 as de,F as Q,H as J,L as he,e as ue,l as K,bd as P,d as Y,b as pe,a as fe,q as me,t as ge,g as ye,s as Se,I as ve,be as xe,A as be}from"./mermaid.core-bNlBBSwN.js";import{s as we}from"./chunk-2J33WTMH-BZ74n2hL.js";import{p as Ce}from"./chunk-4BX2VUAB-DQH-TItP.js";import{p as Te}from"./wardley-L42UT6IY-BnkTWAjx.js";import{b as I}from"./defaultLocale-DX6XiGOO.js";import{o as Z}from"./ordinal-Cboi1Yqb.js";import"./index-DIfcwXP7.js";import"./init-Gi6I4Gst.js";function Le(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function $e(){return this.eachAfter(Le)}function Ae(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function Fe(e,a){for(var n=this,l=[n],r,o,d=-1;n=l.pop();)if(e.call(a,n,++d,this),r=n.children)for(o=r.length-1;o>=0;--o)l.push(r[o]);return this}function Ne(e,a){for(var n=this,l=[n],r=[],o,d,h,m=-1;n=l.pop();)if(r.push(n),o=n.children)for(d=0,h=o.length;d=0;)n+=l[r].value;a.value=n})}function _e(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function ke(e){for(var a=this,n=ze(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var r=l.length;e!==n;)l.splice(r,0,e),e=e.parent;return l}function ze(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),r=null;for(e=n.pop(),a=l.pop();e===a;)r=e,e=n.pop(),a=l.pop();return r}function De(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function Pe(){return Array.from(this)}function Be(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function Re(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*Ee(){var e=this,a,n=[e],l,r,o;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(r=0,o=l.length;r=0;--h)r.push(o=d[h]=new j(d[h])),o.parent=l,o.depth=l.depth+1;return n.eachBefore(qe)}function We(){return ee(this).eachBefore(Oe)}function He(e){return e.children}function Ie(e){return Array.isArray(e)?e[1]:null}function Oe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function qe(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=ee.prototype={constructor:j,count:$e,each:Ae,eachAfter:Ne,eachBefore:Fe,find:Me,sum:Ve,sort:_e,path:ke,ancestors:De,descendants:Pe,leaves:Be,links:Re,copy:We,[Symbol.iterator]:Ee};function Ge(e){if(typeof e!="function")throw new Error;return e}function O(){return 0}function q(e){return function(){return e}}function Xe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ye(e,a,n,l,r){for(var o=e.children,d,h=-1,m=o.length,c=e.value&&(l-a)/e.value;++hM&&(M=c),V=p*p*R,N=Math.max(M/V,V/g),N>z){p-=c;break}z=N}d.push(m={value:p,dice:x1?l:1)},n})(Ue);function Ke(){var e=Je,a=!1,n=1,l=1,r=[0],o=O,d=O,h=O,m=O,c=O;function u(s){return s.x0=s.y0=0,s.x1=n,s.y1=l,s.eachBefore(b),r=[0],a&&s.eachBefore(Xe),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,p=s.x1-x,g=s.y1-x;p{xe(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function ne(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const r={name:l.name,children:l.type==="Leaf"?void 0:[]};for(r.classSelector=l?.classSelector,l?.cssCompiledStyles&&(r.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(r.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(r);else{const o=n[n.length-1].node;o.children?o.children.push(r):o.children=[r]}l.type!=="Leaf"&&n.push({node:r,level:l.level})}),a}w(ne,"buildHierarchy");var Qe=w((e,a)=>{Ce(e,a);const n=[];for(const o of e.TreemapRows??[])o.$type==="ClassDefStatement"&&a.addClass(o.className??"",o.styleText??"");for(const o of e.TreemapRows??[]){const d=o.item;if(!d)continue;const h=o.indent?parseInt(o.indent):0,m=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c:void 0,b={level:h,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};n.push(b)}const l=ne(n),r=w((o,d)=>{for(const h of o)a.addNode(h,d),h.children&&h.children.length>0&&r(h.children,d+1)},"addNodesRecursively");r(l,0)},"populate"),et=w(e=>e.name?String(e.name):"","getItemName"),le={parser:{yy:void 0},parse:w(async e=>{try{const n=await Te("treemap",e);K.debug("Treemap AST:",n);const l=le.parser?.yy;if(!(l instanceof ae))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(n,l)}catch(a){throw K.error("Error parsing treemap:",a),a}},"parse")},tt=10,B=10,G=25,at=w((e,a,n,l)=>{const r=l.db,o=r.getConfig(),d=o.padding??tt,h=r.getDiagramTitle(),m=r.getRoot(),{themeVariables:c}=Q();if(!m)return;const u=h?30:0,b=he(a),s=o.nodeWidth?o.nodeWidth*B:960,x=o.nodeHeight?o.nodeHeight*B:500,S=s,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,o.useMaxWidth);let p;try{const t=o.valueFormat||",";if(t==="$0,0")p=w(i=>"$"+I(",")(i),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const i=/\.\d+/.exec(t),f=i?i[0]:"";p=w(C=>"$"+I(","+f)(C),"valueFormat")}else if(t.startsWith("$")){const i=t.substring(1);p=w(f=>"$"+I(i||"")(f),"valueFormat")}else p=I(t)}catch(t){K.error("Error creating format function:",t),p=I(",")}const g=Z().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),M=Z().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),N=Z().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const z=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ee(m).sum(t=>t.value??0).sort((t,i)=>(i.value??0)-(t.value??0)),te=Ke().size([s,x]).paddingTop(t=>t.children&&t.children.length>0?G+B:0).paddingInner(d).paddingLeft(t=>t.children&&t.children.length>0?B:0).paddingRight(t=>t.children&&t.children.length>0?B:0).paddingBottom(t=>t.children&&t.children.length>0?B:0).round(!0)(R),re=te.descendants().filter(t=>t.children&&t.children.length>0),E=z.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);E.append("rect").attr("width",t=>t.x1-t.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),E.append("clipPath").attr("id",(t,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",G),E.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,i)=>`treemapSection section${i}`).attr("fill",t=>g(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>M(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const i=P({cssCompiledStyles:t.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("style",t=>{if(t.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+N(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const i=Y(this),f=t.data.name;i.text(f);const C=t.x1-t.x0,L=6;let $;o.showValues!==!1&&t.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),o.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?p(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const se=te.leaves(),X=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(t,i)=>`treemapNode treemapLeafGroup leaf${i}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);X.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?g(t.parent.data.name):g(t.data.name)).attr("style",t=>P({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?g(t.parent.data.name):g(t.data.name)).attr("stroke-width",3),X.append("clipPath").attr("id",(t,i)=>`clip-${a}-${i}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),X.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+N(t.data.name)+";",f=P({cssCompiledStyles:t.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${a}-${i})`).text(t=>t.data.name).each(function(t){const i=Y(this),f=t.x1-t.x0,C=t.y1-t.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,k=6,W=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let H=Math.max(k,Math.min(F,Math.round(y*T))),U=y+W+H;for(;U>A&&y>_&&(y--,H=Math.max(k,Math.min(F,Math.round(y*T))),!(HD||y<_||A(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+N(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const k=(i.y1-i.y0)/2+$/2+_;f.attr("y",k);const W=i.x1-i.x0,oe=i.y1-i.y0-4,ce=W-8;f.node().getComputedTextLength()>ce||k+F>oe||F{const a=de(),n=Q(),l=J(a,n.themeVariables),r=J(rt,e),o=r.titleColor??l.titleColor,d=r.labelColor??l.textColor,h=r.valueColor??l.textColor;return` + .treemapNode.section { + stroke: ${r.sectionStrokeColor}; + stroke-width: ${r.sectionStrokeWidth}; + fill: ${r.sectionFillColor}; + } + .treemapNode.leaf { + stroke: ${r.leafStrokeColor}; + stroke-width: ${r.leafStrokeWidth}; + fill: ${r.leafFillColor}; + } + .treemapLabel { + fill: ${d}; + font-size: ${r.labelFontSize}; + } + .treemapValue { + fill: ${h}; + font-size: ${r.valueFontSize}; + } + .treemapTitle { + fill: ${o}; + font-size: ${r.titleFontSize}; + } + `},"getStyles"),it=st,yt={parser:le,get db(){return new ae},renderer:lt,styles:it};export{yt as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/erDiagram-TEJ5UH35-0a3Ci0z-.js b/apps/pythinker-code/dist-web/assets/erDiagram-TEJ5UH35-0a3Ci0z-.js new file mode 100644 index 000000000..3425755b0 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/erDiagram-TEJ5UH35-0a3Ci0z-.js @@ -0,0 +1,85 @@ +import{g as Mt}from"./chunk-55IACEB6-Q15Gq5Jr.js";import{s as Bt}from"./chunk-2J33WTMH-BZ74n2hL.js";import{_ as l,b as Ft,a as Yt,s as Pt,g as zt,q as Gt,t as Kt,c as it,l as V,A as Ut,y as Zt,C as jt,E as Wt,p as Qt,r as Xt,d as Ht,u as qt}from"./mermaid.core-bNlBBSwN.js";import{c as Jt}from"./channel-BHUY_2ZP.js";import"./index-DIfcwXP7.js";var _t=(function(){var e=l(function(C,n,c,o){for(c=c||{},o=C.length;o--;c[C[o]]=n);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],a=[1,11],u=[1,12],d=[1,13],y=[1,23],f=[1,24],m=[1,25],j=[1,26],W=[1,27],T=[1,19],Q=[1,28],M=[1,29],D=[1,20],I=[1,18],S=[1,21],R=[1,22],nt=[1,36],at=[1,37],ct=[1,38],ot=[1,39],lt=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],A=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],kt=[1,83],mt=[1,81],Et=[1,82],Tt=[6,10,42,47],L=[6,10,13,41,42,47,48,49],H=[1,92],q=[1,91],J=[1,90],U=[19,58],St=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:l(function(n,c,o,r,p,t,Z){var s=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 59:case 67:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 79:case 80:this.$=t[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[s];break;case 60:t[s].push(t[s-1]),this.$=t[s];break;case 61:this.$={type:t[s-1],name:t[s]};break;case 62:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 63:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 64:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 65:case 66:case 69:this.$=t[s];break;case 68:t[s-2].push(t[s]),this.$=t[s-2];break;case 70:this.$=t[s].replace(/"/g,"");break;case 71:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:T,43:Q,44:M,48:D,50:I,51:S,52:R},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:30,11:9,22:h,24:a,26:u,28:d,29:14,30:15,31:16,32:17,33:y,34:f,35:m,36:j,37:W,40:T,43:Q,44:M,48:D,50:I,51:S,52:R},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:ot,69:lt}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:44,40:O,41:A},{16:47,40:O,41:A},{16:48,40:O,41:A},e(i,[2,4]),{11:49,40:T,48:D,50:I,51:S,52:R},{16:50,40:O,41:A},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:T,48:D,50:I,51:S,52:R},{64:57,70:[1,58],71:[1,59]},e(Y,[2,72]),e(Y,[2,73]),e(Y,[2,74]),e(Y,[2,75]),e(Y,[2,76]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},e(X,[2,37]),e(X,[2,38]),{16:68,40:O,41:A,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},e(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:nt,66:at,67:ct,68:ot,69:lt}),{19:[1,74]},e(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:ot,69:lt},e(gt,[2,77]),e(gt,[2,78]),{6:bt,10:kt,39:80,42:mt,47:Et},{40:[1,85],41:[1,86]},e(Tt,[2,43],{46:87,13:P,41:z,48:G,49:K}),e(L,[2,45]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(i,[2,41],{42:N}),{6:bt,10:kt,39:88,42:mt,47:Et},{14:89,40:H,50:q,72:J},{16:93,40:O,41:A},{11:94,40:T,48:D,50:I,51:S,52:R},{18:95,19:[1,96],53:53,54:54,58:F},e(i,[2,12]),{19:[2,60]},e(U,[2,61],{56:97,57:98,59:99,61:St,62:Ot}),e([19,58,61,62],[2,66]),e(i,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(X,[2,39]),e(X,[2,40]),e(L,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,79]),e(i,[2,80]),e(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},e(i,[2,15]),e(U,[2,62],{57:109,60:[1,110],62:Ot}),e(U,[2,63]),e(ht,[2,67]),e(U,[2,70]),e(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:O,41:A},e(Tt,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:H,50:q,72:J},{16:115,40:O,41:A},{14:116,40:H,50:q,72:J},e(i,[2,13]),e(U,[2,64]),{59:117,61:St},{19:[1,118]},e(i,[2,20]),e(i,[2,23],{17:[1,119],42:N}),e(i,[2,11]),{13:[1,120],42:N},e(i,[2,10]),e(ht,[2,68]),e(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:H,50:q,72:J},{19:[1,124]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:l(function(n,c){if(c.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=c,o}},"parseError"),parse:l(function(n){var c=this,o=[0],r=[],p=[null],t=[],Z=this.table,s="",tt=0,At=0,Dt=2,Nt=1,Lt=t.slice.call(arguments,1),_=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);_.setInput(n,x.yy),x.yy.lexer=_,x.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var pt=_.yylloc;t.push(pt);var wt=_.options&&_.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(b){o.length=o.length-2*b,p.length=p.length-b,t.length=t.length-b}l(Vt,"popStack");function Ct(){var b;return b=r.pop()||_.lex()||Nt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}l(Ct,"lex");for(var g,v,k,ft,w={},et,E,It,st;;){if(v=o[o.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=Ct()),k=Z[v]&&Z[v][g]),typeof k>"u"||!k.length||!k[0]){var yt="";st=[];for(et in Z[v])this.terminals_[et]&&et>Dt&&st.push("'"+this.terminals_[et]+"'");_.showPosition?yt="Parse error on line "+(tt+1)+`: +`+_.showPosition()+` +Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":yt="Parse error on line "+(tt+1)+": Unexpected "+(g==Nt?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(yt,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:pt,expected:st})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(k[0]){case 1:o.push(g),p.push(_.yytext),t.push(_.yylloc),o.push(k[1]),g=null,At=_.yyleng,s=_.yytext,tt=_.yylineno,pt=_.yylloc;break;case 2:if(E=this.productions_[k[1]][1],w.$=p[p.length-E],w._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},wt&&(w._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),ft=this.performAction.apply(w,[s,At,tt,x.yy,k[1],p,t].concat(Lt)),typeof ft<"u")return ft;E&&(o=o.slice(0,-1*E*2),p=p.slice(0,-1*E),t=t.slice(0,-1*E)),o.push(this.productions_[k[1]][0]),p.push(w.$),t.push(w._$),It=Z[o[o.length-2]][o[o.length-1]],o.push(It);break;case 3:return!0}}return!0},"parse")},vt=(function(){var C={EOF:1,parseError:l(function(c,o){if(this.yy.parser)this.yy.parser.parseError(c,o);else throw new Error(c)},"parseError"),setInput:l(function(n,c){return this.yy=c||this.yy||{},this._input=n,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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var c=n.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var c=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;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),o.length-1&&(this.yylineno-=o.length-1);var p=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:o?(o.length===r.length?this.yylloc.first_column:0)+r[r.length-o.length].length-o[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),c=new Array(n.length+1).join("-");return n+this.upcomingInput()+` +`+c+"^"},"showPosition"),test_match:l(function(n,c){var o,r,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),r=n[0].match(/(?:\r\n?|\n).*/g),r&&(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+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,c,o,r;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;tc[0].length)){if(c=o,r=t,this.options.backtrack_lexer){if(n=this.test_match(o,p[t]),n!==!1)return n;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(n=this.test_match(c,p[r]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var c=this.next();return c||this.lex()},"lex"),begin:l(function(c){this.conditionStack.push(c)},"begin"),popState:l(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:l(function(c){this.begin(c)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(c,o,r,p){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;case 30:return o.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return o.yytext[0];case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}};return C})();ut.lexer=vt;function $(){this.yy={}}return l($,"Parser"),$.prototype=ut,ut.Parser=$,new $})();_t.parser=_t;var $t=_t,te=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Ft,this.getAccTitle=Yt,this.setAccDescription=Pt,this.getAccDescription=zt,this.setDiagramTitle=Gt,this.getDiagramTitle=Kt,this.getConfig=l(()=>it().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{l(this,"ErDB")}addEntity(e,i=""){return this.entities.has(e)?!this.entities.get(e)?.alias&&i&&(this.entities.get(e).alias=i,V.info(`Add alias '${i}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:i,shape:"erBox",look:it().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),V.info("Added new entity :",e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,i){const h=this.addEntity(e);let a;for(a=i.length-1;a>=0;a--)i[a].keys||(i[a].keys=[]),i[a].comment||(i[a].comment=""),h.attributes.push(i[a]),V.debug("Added attribute ",i[a].name)}addRelationship(e,i,h,a){const u=this.entities.get(e),d=this.entities.get(h);if(!u||!d)return;const y={entityA:u.id,roleA:i,entityB:d.id,relSpec:a};this.relationships.push(y),V.debug("Added new relationship :",y)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let i=[];for(const h of e){const a=this.classes.get(h);a?.styles&&(i=[...i,...a.styles??[]].map(u=>u.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(u=>u.trim()))}return i}addCssStyles(e,i){for(const h of e){const a=this.entities.get(h);if(!i||!a)return;for(const u of i)a.cssStyles.push(u)}}addClass(e,i){e.forEach(h=>{let a=this.classes.get(h);a===void 0&&(a={id:h,styles:[],textStyles:[]},this.classes.set(h,a)),i&&i.forEach(function(u){if(/color/.exec(u)){const d=u.replace("fill","bgFill");a.textStyles.push(d)}a.styles.push(u)})})}setClass(e,i){for(const h of e){const a=this.entities.get(h);if(a)for(const u of i)a.cssClasses+=" "+u}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Ut()}getData(){const e=[],i=[],h=it();let a=0;for(const d of this.entities.keys()){const y=this.entities.get(d);y&&(y.cssCompiledStyles=this.getCompiledStyles(y.cssClasses.split(" ")),y.colorIndex=a++,e.push(y))}let u=0;for(const d of this.relationships){const y={id:Zt(d.entityA,d.entityB,{prefix:"id",counter:u++}),type:"normal",curve:"basis",start:d.entityA,end:d.entityB,label:d.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:d.relSpec.cardB.toLowerCase(),arrowTypeEnd:d.relSpec.cardA.toLowerCase(),pattern:d.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:h.look,labelType:"markdown"};i.push(y)}return{nodes:e,edges:i,other:{},config:h,direction:"TB"}}},xt={};Wt(xt,{draw:()=>ee});var ee=l(async function(e,i,h,a){V.info("REF0:"),V.info("Drawing er diagram (unified)",i);const{securityLevel:u,er:d,layout:y}=it(),f=a.db.getData(),m=Mt(i,u);f.type=a.type,f.layoutAlgorithm=Qt(y),f.config.flowchart.nodeSpacing=d?.nodeSpacing||140,f.config.flowchart.rankSpacing=d?.rankSpacing||80,f.direction=a.db.getDirection();const{config:j}=f,{look:W}=j;W==="neo"?f.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:f.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],f.diagramId=i,await Xt(f,m),f.layoutAlgorithm==="elk"&&m.select(".edges").lower();const T=m.selectAll('[id*="-background"]');Array.from(T).length>0&&T.each(function(){const M=Ht(this),I=M.attr("id").replace("-background",""),S=m.select(`#${CSS.escape(I)}`);if(!S.empty()){const R=S.attr("transform");M.attr("transform",R)}});const Q=8;qt.insertTitle(m,"erDiagramTitleText",d?.titleTopMargin??25,a.db.getDiagramTitle()),Bt(m,Q,"erDiagram",d?.useMaxWidth??!0)},"draw"),Rt=l((e,i)=>{const h=Jt,a=h(e,"r"),u=h(e,"g"),d=h(e,"b");return jt(a,u,d,i)},"fade"),rt=new Set(["redux-color","redux-dark-color"]),se=l(e=>{const{theme:i,look:h,bkgColorArray:a,borderColorArray:u}=e;if(!rt.has(i))return"";const d=a?.length>0;let y="";for(let f=0;f{const{look:i,theme:h,erEdgeLabelBackground:a,strokeWidth:u}=e;return` + ${se(e)} + .entityBox { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${e.tertiaryColor}; + opacity: 0.7; + background-color: ${e.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .labelBkg { + background-color: ${rt.has(h)&&a?a:Rt(e.tertiaryColor,.5)}; + } + + .edgeLabel { + background-color: ${rt.has(h)&&a?a:e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${rt.has(h)&&a?a:e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.textColor}; + } + + .edgeLabel .label { + fill: ${e.nodeBorder}; + font-size: 14px; + } + + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + + .edge-pattern-dashed { + stroke-dasharray: 8,8; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon + { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${i==="neo"?u:"1px"}; + } + + .relationshipLine { + stroke: ${e.lineColor}; + stroke-width: ${i==="neo"?u:"1px"}; + fill: none; + } + + .marker { + fill: none !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; + } + [data-look=neo].labelBkg { + background-color: ${Rt(e.tertiaryColor,.5)}; + } +`},"getStyles"),re=ie,he={parser:$t,get db(){return new te},renderer:xt,styles:re};export{he as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/flowDiagram-I6XJVG4X-BScCkdLv.js b/apps/pythinker-code/dist-web/assets/flowDiagram-I6XJVG4X-BScCkdLv.js new file mode 100644 index 000000000..3059a3fec --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/flowDiagram-I6XJVG4X-BScCkdLv.js @@ -0,0 +1,162 @@ +import{g as qe}from"./chunk-FMBD7UC4-DwQl0sgV.js";import{_ as b,o as Oe,l as Q,c as g1,p as He,r as Xe,u as ie,b as Qe,s as Je,q as Ze,a as $e,g as et,t as tt,k as st,v as it,J as rt,x as at,y as te,d as se,z as nt,A as ut,B as ot,C as lt}from"./mermaid.core-bNlBBSwN.js";import{c as ct}from"./chunk-ND2GUHAM-CyIE0WAw.js";import{g as ht}from"./chunk-55IACEB6-Q15Gq5Jr.js";import{s as dt}from"./chunk-2J33WTMH-BZ74n2hL.js";import{c as pt}from"./channel-BHUY_2ZP.js";import"./index-DIfcwXP7.js";var ft="flowchart-",gt=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Qe,this.setAccDescription=Je,this.setDiagramTitle=Ze,this.getAccTitle=$e,this.getAccDescription=et,this.getDiagramTitle=tt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{b(this,"FlowDB")}sanitizeText(e){return st.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,o,d,l={},f){if(!e||e.trim().length===0)return;let n;if(f!==void 0){let E;f.includes(` +`)?E=f+` +`:E=`{ +`+f+` +}`,n=it(E,{schema:rt})}const A=this.edges.find(E=>E.id===e);if(A){const E=n;E?.animate!==void 0&&(A.animate=E.animate),E?.animation!==void 0&&(A.animation=E.animation),E?.curve!==void 0&&(A.interpolate=E.curve);return}let S,g=this.vertices.get(e);if(g===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Q.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),g={id:e,labelType:"text",domId:ft+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,g)),this.vertexCounter++,i!==void 0?(this.config=g1(),S=this.sanitizeText(i.text.trim()),g.labelType=i.type,S.startsWith('"')&&S.endsWith('"')&&(S=S.substring(1,S.length-1)),g.text=S):g.text===void 0&&(g.text=e),r!==void 0&&(g.type=r),a?.forEach(E=>{g.styles.push(E)}),o?.forEach(E=>{g.classes.push(E)}),d!==void 0&&(g.dir=d),g.props===void 0?g.props=l:l!==void 0&&Object.assign(g.props,l),n!==void 0){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!at(n.shape))throw new Error(`No such shape: ${n.shape}.`);g.type=n?.shape}n?.label&&(g.text=n?.label,g.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(g.icon=n?.icon,!n.label?.trim()&&g.text===e&&(g.text="")),n?.form&&(g.form=n?.form),n?.pos&&(g.pos=n?.pos),n?.img&&(g.img=n?.img,!n.label?.trim()&&g.text===e&&(g.text="")),n?.constraint&&(g.constraint=n.constraint),n.w&&(g.assetWidth=Number(n.w)),n.h&&(g.assetHeight=Number(n.h))}}addSingleLink(e,i,r,a){const l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Q.info("abc78 Got edge...",l);const f=r.text;if(f!==void 0&&(l.text=this.sanitizeText(f.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(f.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(n=>n.id===a))l.id=a,l.isUserDefinedId=!0;else{const n=this.edges.filter(A=>A.start===l.start&&A.end===l.end);n.length===0?l.id=te(l.start,l.end,{counter:0,prefix:"L"}):l.id=te(l.start,l.end,{counter:n.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Q.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;Q.info("addLink",e,i,a);for(const o of e)for(const d of i){const l=o===e[e.length-1],f=d===i[0];l&&f?this.addSingleLink(o,d,r,a):this.addSingleLink(o,d,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let o=this.classes.get(a);o===void 0&&(o={id:a,styles:[],textStyles:[]},this.classes.set(a,o)),r?.forEach(d=>{if(/color/.exec(d)){const l=d.replace("fill","bgFill");o.textStyles.push(l)}o.styles.push(d)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const o=this.edges.find(l=>l.id===r);o&&o.classes.push(i);const d=this.subGraphLookup.get(r);d&&d.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(g1().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d{const d=this.lookUpDomId(e),l=document.querySelector(`[id="${d}"]`);l!==null&&l.addEventListener("click",()=>{ie.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const o=this.vertices.get(a);o!==void 0&&(o.link=ie.formatUrl(i,this.config),o.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=ct();se(e).select("svg").selectAll("g.node").on("mouseover",o=>{const d=se(o.currentTarget),l=d.attr("title");if(l===null)return;const f=o.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(d.attr("title")).style("left",window.scrollX+f.left+(f.right-f.left)/2+"px").style("top",window.scrollY+f.bottom+"px"),i.html(nt.sanitize(l)),d.classed("hover",!0)}).on("mouseout",o=>{i.transition().duration(500).style("opacity",0),se(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=g1(),ut()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),o=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const l=b(g=>{const E={boolean:{},number:{},string:{}},Z=[];let _;return{nodeList:g.filter(function(K){const h1=typeof K;return K.stmt&&K.stmt==="dir"?(_=K.value,!1):K.trim()===""?!1:h1 in E?E[h1].hasOwnProperty(K)?!1:E[h1][K]=!0:Z.includes(K)?!1:Z.push(K)}),dir:_}},"uniq")(i.flat()),f=l.nodeList;let n=l.dir;const A=g1().flowchart??{};if(n=n??(A.inheritDir?this.getDirection()??g1().direction??void 0:void 0),this.version==="gen-1")for(let g=0;g2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,o=1;for(;a=0){const l=this.indexNodes2(e,d);if(l.result)return{result:!0,count:o+l.count};o=o+l.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let o=0;o":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let o="normal",d=r.length-1;r.startsWith("=")&&(o="thick"),r.startsWith("~")&&(o="invisible");const l=this.countChar(".",r);return l&&(o="dotted",d=l),{type:a,stroke:o,length:d}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,o)=>{this.exists(i,a)||r.push(e.nodes[o])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,o,d){const l=r.get(e.id),f=a.get(e.id)??!1,n=this.findNode(i,e.id);if(n)n.cssStyles=e.styles,n.cssCompiledStyles=this.getCompiledStyles(e.classes),n.cssClasses=e.classes.join(" ");else{const A={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:d,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};f?i.push({...A,isGroup:!0,shape:"rect"}):i.push({...A,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(o=>o.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(o=>o.trim()))}return i}getData(){const e=g1(),i=[],r=[],a=this.getSubGraphs(),o=new Map,d=new Map;for(let n=a.length-1;n>=0;n--){const A=a[n];A.nodes.length>0&&d.set(A.id,!0);for(const S of A.nodes)o.set(S,A.id)}for(let n=a.length-1;n>=0;n--){const A=a[n];i.push({id:A.id,label:A.title,labelStyle:"",labelType:A.labelType,parentId:o.get(A.id),padding:8,cssCompiledStyles:this.getCompiledStyles(A.classes),cssClasses:A.classes.join(" "),shape:"rect",dir:A.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(n=>{this.addNodeFromVertex(n,i,o,d,e,e.look||"classic")});const f=this.getEdges();return f.forEach((n,A)=>{const{arrowTypeStart:S,arrowTypeEnd:g}=this.destructEdgeType(n.type),E=[...f.defaultStyle??[]];n.style&&E.push(...n.style);const Z={id:te(n.start,n.end,{counter:A,prefix:"L"},n.id),isUserDefinedId:n.isUserDefinedId,start:n.start,end:n.end,type:n.type??"normal",label:n.text,labelType:n.labelType,labelpos:"c",thickness:n.stroke,minlen:n.length,classes:n?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":S,arrowTypeEnd:n?.stroke==="invisible"||n?.type==="arrow_open"?"none":g,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(n.classes),labelStyle:E,style:E,pattern:n.stroke,look:e.look,animate:n.animate,animation:n.animation,curve:n.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Z)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return ot.flowchart}},bt=b(function(e,i){return i.db.getClasses()},"getClasses"),At=b(async function(e,i,r,a){Q.info("REF0:"),Q.info("Drawing state diagram (v2)",i);const{securityLevel:o,flowchart:d,layout:l}=g1();a.db.setDiagramId(i),Q.debug("Before getData: ");const f=a.db.getData();Q.debug("Data: ",f);const n=ht(i,o),A=a.db.getDirection();f.type=a.type,f.layoutAlgorithm=He(l),f.layoutAlgorithm==="dagre"&&l==="elk"&&Q.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."),f.direction=A,f.nodeSpacing=d?.nodeSpacing||50,f.rankSpacing=d?.rankSpacing||50,f.markers=["point","circle","cross"],f.diagramId=i,Q.debug("REF1:",f),await Xe(f,n);const S=f.config.flowchart?.diagramPadding??8;ie.insertTitle(n,"flowchartTitleText",d?.titleTopMargin||0,a.db.getDiagramTitle()),dt(n,S,"flowchart",d?.useMaxWidth||!1)},"draw"),kt={getClasses:bt,draw:At},re=(function(){var e=b(function(f1,c,h,p){for(h=h||{},p=f1.length;p--;h[f1[p]]=c);return h},"o"),i=[1,4],r=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],d=[2,2],l=[1,13],f=[1,14],n=[1,15],A=[1,16],S=[1,23],g=[1,25],E=[1,26],Z=[1,27],_=[1,50],v=[1,49],K=[1,29],h1=[1,30],N1=[1,31],G1=[1,32],P1=[1,33],L=[1,45],V=[1,47],I=[1,43],w=[1,48],R=[1,44],N=[1,51],G=[1,46],P=[1,52],O=[1,53],O1=[1,34],M1=[1,35],U1=[1,36],z1=[1,37],W1=[1,38],d1=[1,58],T=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],m1=[8,9,11,75,77,78],ae=[1,79],C1=[1,92],D1=[1,97],E1=[1,96],T1=[1,93],S1=[1,89],y1=[1,95],x1=[1,91],F1=[1,98],_1=[1,94],B1=[1,99],v1=[1,90],b1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],Y=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ne=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],L1=[44,60,89,102,105,106,109,111,114,115,116],ue=[1,122],oe=[1,123],K1=[1,125],j1=[1,124],le=[44,60,62,74,89,102,105,106,109,111,114,115,116],ce=[1,134],he=[1,148],de=[1,149],pe=[1,150],fe=[1,151],ge=[1,136],be=[1,138],Ae=[1,142],ke=[1,143],me=[1,144],Ce=[1,145],De=[1,146],Ee=[1,147],Te=[1,152],Se=[1,153],ye=[1,132],xe=[1,133],Fe=[1,140],_e=[1,135],Be=[1,139],ve=[1,137],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Le=[1,155],Ve=[1,157],F=[8,9,11],q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],k=[1,177],z=[1,173],W=[1,174],m=[1,178],C=[1,175],D=[1,176],V1=[77,116,119],y=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ie=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],I1=[1,269],we=[8,9,11,106],J=[8,9,10,11,60,84,105,106,109,110,111,112],Q1={trace:b(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,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$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",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},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],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,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],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:b(function(c,h,p,u,x,t,R1){var s=t.length-1;switch(x){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:u.setDirection("TB"),this.$="TB";break;case 12:u.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=u.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=u.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=u.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:u.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:u.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:u.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:u.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],u.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],u.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],u.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],u.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],u.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var B=u.destructLink(t[s],t[s-2]);this.$={type:B.type,stroke:B.stroke,length:B.length,text:t[s-1]};break;case 78:var B=u.destructLink(t[s],t[s-2]);this.$={type:B.type,stroke:B.stroke,length:B.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var B=u.destructLink(t[s]);this.$={type:B.type,stroke:B.stroke,length:B.length};break;case 84:var B=u.destructLink(t[s]);this.$={type:B.type,stroke:B.stroke,length:B.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],u.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],u.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],u.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],u.setClickEvent(t[s-4],t[s-3],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],u.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],u.setLink(t[s-4],t[s-2]),u.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],u.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],u.setLink(t[s-6],t[s-4],t[s]),u.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],u.setLink(t[s-3],t[s-2]),u.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],u.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],u.setLink(t[s-5],t[s-4],t[s]),u.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],u.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],u.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],u.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],u.updateLinkInterpolate([t[s-6]],t[s-2]),u.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],u.updateLinkInterpolate(t[s-6],t[s-2]),u.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],u.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],u.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(o,d,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:f,10:n,11:A,20:17,22:18,23:19,24:20,25:21,26:22,27:S,33:24,34:g,36:E,38:Z,42:28,43:39,44:_,45:40,47:41,60:v,84:K,85:h1,86:N1,87:G1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},e(T,[2,3]),e(T,[2,4]),e(T,[2,5]),e(T,[2,6]),e(T,[2,7]),e(T,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},e(T,[2,36]),{35:[1,75]},{37:[1,76]},e(T,[2,39]),e(m1,[2,50],{18:77,39:78,10:d1,40:ae}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:C1,44:D1,60:E1,80:[1,87],89:T1,95:[1,84],97:[1,85],101:86,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1,120:88},e(T,[2,185]),e(T,[2,186]),e(T,[2,187]),e(T,[2,188]),e(T,[2,189]),e(b1,[2,51]),e(b1,[2,54],{46:[1,100]}),e(U,[2,72],{113:113,29:[1,101],44:_,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:v,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(Y,[2,181]),e(Y,[2,142]),e(Y,[2,143]),e(Y,[2,144]),e(Y,[2,145]),e(Y,[2,146]),e(Y,[2,147]),e(Y,[2,148]),e(Y,[2,149]),e(Y,[2,150]),e(Y,[2,151]),e(Y,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ne,[2,26],{18:115,10:d1}),e(T,[2,27]),{42:116,43:39,44:_,45:40,47:41,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(L1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ue,81:oe,116:K1,119:j1},{75:[1,126],77:[1,127]},e(le,[2,83]),e(T,[2,28]),e(T,[2,29]),e(T,[2,30]),e(T,[2,31]),e(T,[2,32]),{10:ce,12:he,14:de,27:pe,28:128,32:fe,44:ge,60:be,75:Ae,80:[1,130],81:[1,131],83:141,84:ke,85:me,86:Ce,87:De,88:Ee,89:Te,90:Se,91:129,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(X1,d,{5:154}),e(T,[2,37]),e(T,[2,38]),e(m1,[2,48],{44:Le}),e(m1,[2,49],{18:156,10:d1,40:Ve}),e(b1,[2,44]),{44:_,47:158,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{102:[1,159],103:160,105:[1,161]},{44:_,47:162,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{44:_,47:163,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(F,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(F,[2,115],{120:168,10:[1,167],14:C1,44:D1,60:E1,89:T1,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1}),e(F,[2,117],{10:[1,169]}),e(q,[2,183]),e(q,[2,170]),e(q,[2,171]),e(q,[2,172]),e(q,[2,173]),e(q,[2,174]),e(q,[2,175]),e(q,[2,176]),e(q,[2,177]),e(q,[2,178]),e(q,[2,179]),e(q,[2,180]),{44:_,47:170,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{30:171,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:179,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:181,50:[1,180],67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:182,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:183,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:184,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{109:[1,185]},{30:186,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:187,65:[1,188],67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:189,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:190,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{30:191,67:k,80:z,81:W,82:172,116:m,117:C,118:D},e(Y,[2,182]),e(o,[2,20]),e(ne,[2,25]),e(m1,[2,46],{39:192,18:193,10:d1,40:ae}),e(L1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{77:[1,197],79:198,116:K1,119:j1},e(V1,[2,79]),e(V1,[2,81]),e(V1,[2,82]),e(V1,[2,168]),e(V1,[2,169]),{76:199,79:121,80:ue,81:oe,116:K1,119:j1},e(le,[2,84]),{8:$,9:e1,10:ce,11:t1,12:he,14:de,21:201,27:pe,29:[1,200],32:fe,44:ge,60:be,75:Ae,83:141,84:ke,85:me,86:Ce,87:De,88:Ee,89:Te,90:Se,91:202,105:ye,109:xe,111:Fe,114:_e,115:Be,116:ve},e(y,[2,101]),e(y,[2,103]),e(y,[2,104]),e(y,[2,157]),e(y,[2,158]),e(y,[2,159]),e(y,[2,160]),e(y,[2,161]),e(y,[2,162]),e(y,[2,163]),e(y,[2,164]),e(y,[2,165]),e(y,[2,166]),e(y,[2,167]),e(y,[2,90]),e(y,[2,91]),e(y,[2,92]),e(y,[2,93]),e(y,[2,94]),e(y,[2,95]),e(y,[2,96]),e(y,[2,97]),e(y,[2,98]),e(y,[2,99]),e(y,[2,100]),{6:11,7:12,8:l,9:f,10:n,11:A,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,203],33:24,34:g,36:E,38:Z,42:28,43:39,44:_,45:40,47:41,60:v,84:K,85:h1,86:N1,87:G1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:d1,18:204},{44:[1,205]},e(b1,[2,43]),{10:[1,206],44:_,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ie,[2,128]),{10:[1,210],44:_,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{10:[1,211],44:_,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:113,114:G,115:P,116:O},{80:[1,212]},e(F,[2,109],{10:[1,213]}),e(F,[2,111],{10:[1,214]}),{80:[1,215]},e(q,[2,184]),{80:[1,216],98:[1,217]},e(b1,[2,55],{113:113,44:_,60:v,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),{31:[1,218],67:k,82:219,116:m,117:C,118:D},e(p1,[2,86]),e(p1,[2,88]),e(p1,[2,89]),e(p1,[2,153]),e(p1,[2,154]),e(p1,[2,155]),e(p1,[2,156]),{49:[1,220],67:k,82:219,116:m,117:C,118:D},{30:221,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{51:[1,222],67:k,82:219,116:m,117:C,118:D},{53:[1,223],67:k,82:219,116:m,117:C,118:D},{55:[1,224],67:k,82:219,116:m,117:C,118:D},{57:[1,225],67:k,82:219,116:m,117:C,118:D},{60:[1,226]},{64:[1,227],67:k,82:219,116:m,117:C,118:D},{66:[1,228],67:k,82:219,116:m,117:C,118:D},{30:229,67:k,80:z,81:W,82:172,116:m,117:C,118:D},{31:[1,230],67:k,82:219,116:m,117:C,118:D},{67:k,69:[1,231],71:[1,232],82:219,116:m,117:C,118:D},{67:k,69:[1,234],71:[1,233],82:219,116:m,117:C,118:D},e(m1,[2,45],{18:156,10:d1,40:Ve}),e(m1,[2,47],{44:Le}),e(L1,[2,75]),e(L1,[2,74]),{62:[1,235],67:k,82:219,116:m,117:C,118:D},e(L1,[2,77]),e(V1,[2,80]),{77:[1,236],79:198,116:K1,119:j1},{30:237,67:k,80:z,81:W,82:172,116:m,117:C,118:D},e(X1,d,{5:238}),e(y,[2,102]),e(T,[2,35]),{43:239,44:_,45:40,47:41,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:_,47:258,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(F,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(F,[2,116]),e(F,[2,118],{10:[1,262]}),e(F,[2,119]),e(U,[2,56]),e(p1,[2,87]),e(U,[2,57]),{51:[1,263],67:k,82:219,116:m,117:C,118:D},e(U,[2,64]),e(U,[2,59]),e(U,[2,60]),e(U,[2,61]),{109:[1,264]},e(U,[2,63]),e(U,[2,65]),{66:[1,265],67:k,82:219,116:m,117:C,118:D},e(U,[2,67]),e(U,[2,68]),e(U,[2,70]),e(U,[2,69]),e(U,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(L1,[2,78]),{31:[1,266],67:k,82:219,116:m,117:C,118:D},{6:11,7:12,8:l,9:f,10:n,11:A,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,267],33:24,34:g,36:E,38:Z,42:28,43:39,44:_,45:40,47:41,60:v,84:K,85:h1,86:N1,87:G1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},e(b1,[2,53]),{43:268,44:_,45:40,47:41,60:v,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O},e(F,[2,121],{106:I1}),e(we,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(J,[2,132]),e(J,[2,134]),e(J,[2,135]),e(J,[2,136]),e(J,[2,137]),e(J,[2,138]),e(J,[2,139]),e(J,[2,140]),e(J,[2,141]),e(F,[2,122],{106:I1}),{10:[1,271]},e(F,[2,123],{106:I1}),{10:[1,272]},e(Ie,[2,129]),e(F,[2,105],{106:I1}),e(F,[2,106],{113:113,44:_,60:v,89:L,102:V,105:I,106:w,109:R,111:N,114:G,115:P,116:O}),e(F,[2,110]),e(F,[2,112],{10:[1,273]}),e(F,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},e(T,[2,34]),e(b1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},e(J,[2,133]),{14:C1,44:D1,60:E1,89:T1,101:280,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1,120:88},{14:C1,44:D1,60:E1,89:T1,101:281,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1,120:88},{98:[1,282]},e(F,[2,120]),e(U,[2,58]),{30:283,67:k,80:z,81:W,82:172,116:m,117:C,118:D},e(U,[2,66]),e(X1,d,{5:284}),e(we,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),e(F,[2,126],{120:168,10:[1,285],14:C1,44:D1,60:E1,89:T1,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1}),e(F,[2,127],{120:168,10:[1,286],14:C1,44:D1,60:E1,89:T1,105:S1,106:y1,109:x1,111:F1,114:_1,115:B1,116:v1}),e(F,[2,114]),{31:[1,287],67:k,82:219,116:m,117:C,118:D},{6:11,7:12,8:l,9:f,10:n,11:A,20:17,22:18,23:19,24:20,25:21,26:22,27:S,32:[1,288],33:24,34:g,36:E,38:Z,42:28,43:39,44:_,45:40,47:41,60:v,84:K,85:h1,86:N1,87:G1,88:P1,89:L,102:V,105:I,106:w,109:R,111:N,113:42,114:G,115:P,116:O,121:O1,122:M1,123:U1,124:z1,125:W1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},e(U,[2,62]),e(T,[2,33]),e(F,[2,124],{106:I1}),e(F,[2,125],{106:I1})],defaultActions:{},parseError:b(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:b(function(c){var h=this,p=[0],u=[],x=[null],t=[],R1=this.table,s="",B=0,Re=0,We=2,Ne=1,Ke=t.slice.call(arguments,1),M=Object.create(this.lexer),A1={yy:{}};for(var J1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J1)&&(A1.yy[J1]=this.yy[J1]);M.setInput(c,A1.yy),A1.yy.lexer=M,A1.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var Z1=M.yylloc;t.push(Z1);var je=M.options&&M.options.ranges;typeof A1.yy.parseError=="function"?this.parseError=A1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ye(H){p.length=p.length-2*H,x.length=x.length-H,t.length=t.length-H}b(Ye,"popStack");function Ge(){var H;return H=u.pop()||M.lex()||Ne,typeof H!="number"&&(H instanceof Array&&(u=H,H=u.pop()),H=h.symbols_[H]||H),H}b(Ge,"lex");for(var j,k1,X,$1,w1={},q1,c1,Pe,H1;;){if(k1=p[p.length-1],this.defaultActions[k1]?X=this.defaultActions[k1]:((j===null||typeof j>"u")&&(j=Ge()),X=R1[k1]&&R1[k1][j]),typeof X>"u"||!X.length||!X[0]){var ee="";H1=[];for(q1 in R1[k1])this.terminals_[q1]&&q1>We&&H1.push("'"+this.terminals_[q1]+"'");M.showPosition?ee="Parse error on line "+(B+1)+`: +`+M.showPosition()+` +Expecting `+H1.join(", ")+", got '"+(this.terminals_[j]||j)+"'":ee="Parse error on line "+(B+1)+": Unexpected "+(j==Ne?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(ee,{text:M.match,token:this.terminals_[j]||j,line:M.yylineno,loc:Z1,expected:H1})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k1+", token: "+j);switch(X[0]){case 1:p.push(j),x.push(M.yytext),t.push(M.yylloc),p.push(X[1]),j=null,Re=M.yyleng,s=M.yytext,B=M.yylineno,Z1=M.yylloc;break;case 2:if(c1=this.productions_[X[1]][1],w1.$=x[x.length-c1],w1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},je&&(w1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),$1=this.performAction.apply(w1,[s,Re,B,A1.yy,X[1],x,t].concat(Ke)),typeof $1<"u")return $1;c1&&(p=p.slice(0,-1*c1*2),x=x.slice(0,-1*c1),t=t.slice(0,-1*c1)),p.push(this.productions_[X[1]][0]),x.push(w1.$),t.push(w1._$),Pe=R1[p[p.length-2]][p[p.length-1]],p.push(Pe);break;case 3:return!0}}return!0},"parse")},ze=(function(){var f1={EOF:1,parseError:b(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:b(function(c,h){return this.yy=h||this.yy||{},this._input=c,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:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=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),p.length-1&&(this.yylineno-=p.length-1);var x=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:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:b(function(c,h){var p,u,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var t in x)this[t]=x[t];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,p,u;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),t=0;th[0].length)){if(h=p,u=t,this.options.backtrack_lexer){if(c=this.test_match(p,x[t]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,x[u]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var h=this.next();return h||this.lex()},"lex"),begin:b(function(h){this.conditionStack.push(h)},"begin"),popState:b(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:b(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:b(function(h){this.begin(h)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(h,p,u,x){switch(u){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),p.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const t=/\n\s*/g;return p.yytext=p.yytext.replace(t,"
"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return h.lex.firstGraph()&&this.begin("dir"),12;case 36:return h.lex.firstGraph()&&this.begin("dir"),12;case 37:return h.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:return 119;case 72:return this.popState(),77;case 73:return this.pushState("thickEdgeText"),75;case 74:return 119;case 75:return this.popState(),77;case 76:return this.pushState("dottedEdgeText"),75;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120: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]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[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,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],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,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return f1})();Q1.lexer=ze;function Y1(){this.yy={}}return b(Y1,"Parser"),Y1.prototype=Q1,Q1.Parser=Y1,new Y1})();re.parser=re;var Me=re,Ue=Object.assign({},Me);Ue.parse=e=>{const i=e.replace(/}\s*\n/g,`} +`);return Me.parse(i)};var mt=Ue,Ct=b((e,i)=>{const r=pt,a=r(e,"r"),o=r(e,"g"),d=r(e,"b");return lt(a,o,d,i)},"fade"),Dt=b(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: ${e.strokeWidth??1}px; + } + .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: ${e.strokeWidth??2}px; + } + + .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: ${Ct(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; + } + .label rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + ${qe()} +`,"getStyles"),Et=Dt,vt={parser:mt,get db(){return new gt},renderer:kt,styles:Et,init:b(e=>{e.flowchart||(e.flowchart={}),e.layout&&Oe({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Oe({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};export{vt as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/ganttDiagram-6RSMTGT7-BAoCUx58.js b/apps/pythinker-code/dist-web/assets/ganttDiagram-6RSMTGT7-BAoCUx58.js new file mode 100644 index 000000000..59a038de7 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/ganttDiagram-6RSMTGT7-BAoCUx58.js @@ -0,0 +1,292 @@ +import{bf as on,bg as $n,bh as cn,bi as un,bj as ln,bk as ue,bl as On,b4 as oe,g as Hn,s as Nn,t as Pn,q as Rn,a as Vn,b as zn,_ as d,c as Yt,d as Zt,e as qn,bm as rt,l as Tt,k as Bn,j as Zn,A as Xn,u as Gn}from"./mermaid.core-bNlBBSwN.js";import{b as jn,t as Ne,c as Qn,a as Jn,l as Kn}from"./linear-DE2pdwDz.js";import{i as tr}from"./init-Gi6I4Gst.js";import"./index-DIfcwXP7.js";import"./defaultLocale-DX6XiGOO.js";function er(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function rr(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function ir(t){return"translate("+t+",0)"}function sr(t){return"translate(0,"+t+")"}function ar(t){return e=>+t(e)}function or(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function cr(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,a=6,c=6,m=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=t===Gt||t===Xt?-1:1,p=t===Xt||t===le?"x":"y",L=t===Gt||t===xe?ir:sr;function _(S){var B=r??(e.ticks?e.ticks.apply(e,n):e.domain()),A=i??(e.tickFormat?e.tickFormat.apply(e,n):rr),U=Math.max(a,0)+m,I=e.range(),N=+I[0]+Y,W=+I[I.length-1]+Y,q=(e.bandwidth?or:ar)(e.copy(),Y),j=S.selection?S.selection():S,k=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(B,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),w=g.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(p+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(p,C*U).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),S!==j&&(k=k.transition(S),g=g.transition(S),D=D.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",Pe).attr("transform",function(T){return isFinite(T=q(T))?L(T+Y):this.getAttribute("transform")}),h.attr("opacity",Pe).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:q(T))+Y)})),y.remove(),k.attr("d",t===Xt||t===le?c?"M"+C*c+","+N+"H"+Y+"V"+W+"H"+C*c:"M"+Y+","+N+"V"+W:c?"M"+N+","+C*c+"V"+Y+"H"+W+"V"+C*c:"M"+N+","+Y+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(q(T)+Y)}),D.attr(p+"2",C*a),w.attr(p,C*U).text(A),j.filter(cr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),j.each(function(){this.__axis=q})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(i=S,_):i},_.tickSize=function(S){return arguments.length?(a=c=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(c=+S,_):c},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(Y=+S,_):Y},_}function ur(t){return fn(Gt,t)}function lr(t){return fn(xe,t)}const fr=Math.PI/180,dr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,hr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=$n(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),a,c;return e===n&&n===r?a=c=i:(a=fe((.4360747*e+.3850649*n+.1430804*r)/dn),c=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(a-i),200*(i-c),t.opacity)}function mr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}cn(ft,mr,un(ln,{brighter(t){return new ft(this.l+ne*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-ne*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=dn*de(e),t=hn*de(t),n=mn*de(n),new on(he(3.1338561*e-1.6168667*t-.4906146*n),he(-.9787684*e+1.9161415*t+.033454*n),he(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function fe(t){return t>hr?Math.pow(t,1/3):t/yn+gn}function de(t){return t>Ft?t*t*t:yn*(t-gn)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=kn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),m=i.ceil(a);return a-c(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,m)=>{const Y=[];if(a=i.ceil(a),m=m==null?1:Math.floor(m),!(a0))return Y;let C;do Y.push(C=new Date(+a)),e(a,m),t(a);while(Cet(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,m)=>{if(c>=c)if(m<0)for(;++m<=0;)for(;e(c,-1),!a(c););else for(;--m>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(ge.setTime(+a),ye.setTime(+c),t(ge),t(ye),Math.floor(n(ge,ye))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Et=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,Se=yt*7,Re=yt*30,ke=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Ot.range;const vr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());vr.range;const Ht=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ht.range;const Tr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());Tr.range;const xt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const _e=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);_e.range;const xr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));xr.range;function Dt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Se)}const Rt=Dt(0),Nt=Dt(1),vn=Dt(2),Tn=Dt(3),bt=Dt(4),xn=Dt(5),bn=Dt(6);Rt.range;Nt.range;vn.range;Tn.range;bt.range;xn.range;bn.range;function Mt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Se)}const wn=Mt(0),re=Mt(1),br=Mt(2),wr=Mt(3),It=Mt(4),Dr=Mt(5),Mr=Mt(6);wn.range;re.range;br.range;wr.range;It.range;Dr.range;Mr.range;const Pt=et(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());Pt.range;const Cr=et(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());Cr.range;const kt=et(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());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=et(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());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function Sr(t,e,n,r,i,a){const c=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Se],[e,1,Re],[e,3,3*Re],[t,1,ke]];function m(C,p,L){const _=pU).right(c,_);if(S===c.length)return t.every(Ne(C/ke,p/ke,L));if(S===0)return Et.every(Math.max(Ne(C,p,L),1));const[B,A]=c[_/c[S-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?($=ve(At(l.y,0,1)),Q=$.getUTCDay(),$=Q>4||Q===0?re.ceil($):re($),$=_e.offset($,(l.V-1)*7),l.y=$.getUTCFullYear(),l.m=$.getUTCMonth(),l.d=$.getUTCDate()+(l.w+6)%7):($=pe(At(l.y,0,1)),Q=$.getDay(),$=Q>4||Q===0?Nt.ceil($):Nt($),$=xt.offset($,(l.V-1)*7),l.y=$.getFullYear(),l.m=$.getMonth(),l.d=$.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ve(At(l.y,0,1)).getUTCDay():pe(At(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ve(l)):pe(l)}}function y(M,H,R,l){for(var J=0,$=H.length,Q=R.length,G,it;J<$;){if(l>=Q)return-1;if(G=H.charCodeAt(J++),G===37){if(G=H.charAt(J++),it=j[G in Ve?H.charAt(J++):G],!it||(l=it(M,R,l))<0)return-1}else if(G!=R.charCodeAt(l++))return-1}return l}function h(M,H,R){var l=C.exec(H.slice(R));return l?(M.p=p.get(l[0].toLowerCase()),R+l[0].length):-1}function D(M,H,R){var l=S.exec(H.slice(R));return l?(M.w=B.get(l[0].toLowerCase()),R+l[0].length):-1}function w(M,H,R){var l=L.exec(H.slice(R));return l?(M.w=_.get(l[0].toLowerCase()),R+l[0].length):-1}function T(M,H,R){var l=I.exec(H.slice(R));return l?(M.m=N.get(l[0].toLowerCase()),R+l[0].length):-1}function v(M,H,R){var l=A.exec(H.slice(R));return l?(M.m=U.get(l[0].toLowerCase()),R+l[0].length):-1}function u(M,H,R){return y(M,e,H,R)}function f(M,H,R){return y(M,n,H,R)}function x(M,H,R){return y(M,r,H,R)}function b(M){return c[M.getDay()]}function F(M){return a[M.getDay()]}function o(M){return Y[M.getMonth()]}function X(M){return m[M.getMonth()]}function s(M){return i[+(M.getHours()>=12)]}function E(M){return 1+~~(M.getMonth()/3)}function z(M){return c[M.getUTCDay()]}function V(M){return a[M.getUTCDay()]}function P(M){return Y[M.getUTCMonth()]}function K(M){return m[M.getUTCMonth()]}function O(M){return i[+(M.getUTCHours()>=12)]}function st(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var H=k(M+="",W);return H.toString=function(){return M},H},parse:function(M){var H=g(M+="",!1);return H.toString=function(){return M},H},utcFormat:function(M){var H=k(M+="",q);return H.toString=function(){return M},H},utcParse:function(M){var H=g(M+="",!0);return H.toString=function(){return M},H}}}var Ve={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Ur=/^%/,Er=/[\\^$*+?|[\]().{}]/g;function Z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Hr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Be(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Zr(t,e,n){var r=Ur.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Xr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Gr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xe(t,e){return Z(t.getDate(),e,2)}function jr(t,e){return Z(t.getHours(),e,2)}function Qr(t,e){return Z(t.getHours()%12||12,e,2)}function Jr(t,e){return Z(1+xt.count(kt(t),t),e,3)}function Dn(t,e){return Z(t.getMilliseconds(),e,3)}function Kr(t,e){return Dn(t,e)+"000"}function ti(t,e){return Z(t.getMonth()+1,e,2)}function ei(t,e){return Z(t.getMinutes(),e,2)}function ni(t,e){return Z(t.getSeconds(),e,2)}function ri(t){var e=t.getDay();return e===0?7:e}function ii(t,e){return Z(Rt.count(kt(t)-1,t),e,2)}function Mn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function si(t,e){return t=Mn(t),Z(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ai(t){return t.getDay()}function oi(t,e){return Z(Nt.count(kt(t)-1,t),e,2)}function ci(t,e){return Z(t.getFullYear()%100,e,2)}function ui(t,e){return t=Mn(t),Z(t.getFullYear()%100,e,2)}function li(t,e){return Z(t.getFullYear()%1e4,e,4)}function fi(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),Z(t.getFullYear()%1e4,e,4)}function di(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Z(e/60|0,"0",2)+Z(e%60,"0",2)}function Ge(t,e){return Z(t.getUTCDate(),e,2)}function hi(t,e){return Z(t.getUTCHours(),e,2)}function mi(t,e){return Z(t.getUTCHours()%12||12,e,2)}function gi(t,e){return Z(1+_e.count(wt(t),t),e,3)}function Cn(t,e){return Z(t.getUTCMilliseconds(),e,3)}function yi(t,e){return Cn(t,e)+"000"}function ki(t,e){return Z(t.getUTCMonth()+1,e,2)}function pi(t,e){return Z(t.getUTCMinutes(),e,2)}function vi(t,e){return Z(t.getUTCSeconds(),e,2)}function Ti(t){var e=t.getUTCDay();return e===0?7:e}function xi(t,e){return Z(wn.count(wt(t)-1,t),e,2)}function Sn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function bi(t,e){return t=Sn(t),Z(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function wi(t){return t.getUTCDay()}function Di(t,e){return Z(re.count(wt(t)-1,t),e,2)}function Mi(t,e){return Z(t.getUTCFullYear()%100,e,2)}function Ci(t,e){return t=Sn(t),Z(t.getUTCFullYear()%100,e,2)}function Si(t,e){return Z(t.getUTCFullYear()%1e4,e,4)}function _i(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),Z(t.getUTCFullYear()%1e4,e,4)}function Yi(){return"+0000"}function je(){return"%"}function Qe(t){return+t}function Je(t){return Math.floor(+t/1e3)}var St,ie;Fi({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"]});function Fi(t){return St=Fr(t),ie=St.format,St.parse,St.utcFormat,St.utcParse,St}function Ui(t){return new Date(t)}function Ei(t){return t instanceof Date?+t:+new Date(+t)}function _n(t,e,n,r,i,a,c,m,Y,C){var p=Qn(),L=p.invert,_=p.domain,S=C(".%L"),B=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),q=C("%Y");function j(k){return(Y(k)4&&(S+=7),_.add(S,n));return B.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var Y=m.startOf;m.startOf=function(C,p){var L=this.$utils(),_=!!L.u(p)||p;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(C,p)}}}))})(jt)),jt.exports}var Wi=Ai();const $i=oe(Wi);var Qt={exports:{}},Oi=Qt.exports,tn;function Hi(){return tn||(tn=1,(function(t,e){(function(n,r){t.exports=r()})(Oi,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,c=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,Y={},C=function(U){return(U=+U)+(U>68?1900:2e3)},p=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W})(U)}],_=function(U){var I=Y[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=Y.meridiem;if(W){for(var q=1;q<=24;q+=1)if(U.indexOf(W(q,0,I))>-1){N=q>12;break}}else N=U===(I?"pm":"PM");return N},B={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[c,p("seconds")],ss:[c,p("seconds")],m:[c,p("minutes")],mm:[c,p("minutes")],H:[c,p("hours")],h:[c,p("hours")],HH:[c,p("hours")],hh:[c,p("hours")],D:[c,p("day")],DD:[a,p("day")],Do:[m,function(U){var I=Y.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[c,p("week")],ww:[a,p("week")],M:[c,p("month")],MM:[a,p("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,p("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,p("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=Y&&Y.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(u,f,x){return f||x.slice(1)}))}))).match(r),q=W.length,j=0;j-1)return new Date((F==="X"?1e3:1)*b);var s=A(F)(b),E=s.year,z=s.month,V=s.day,P=s.hours,K=s.minutes,O=s.seconds,st=s.milliseconds,M=s.zone,H=s.week,R=new Date,l=V||(E||z?1:R.getDate()),J=E||R.getFullYear(),$=0;E&&!z||($=z>0?z-1:R.getMonth());var Q,G=P||0,it=K||0,at=O||0,pt=st||0;return M?new Date(Date.UTC(J,$,l,G,it,at,pt+60*M.offset*1e3)):o?new Date(Date.UTC(J,$,l,G,it,at,pt)):(Q=new Date(J,$,l,G,it,at,pt),H&&(Q=X(Q).week(H).toDate()),Q)}catch{return new Date("")}})(k,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&k!=this.format(h)&&(this.$d=new Date("")),Y={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var x=N.apply(this,y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}f===u&&(this.$d=new Date(""))}else q.call(this,j)}}}))})(Qt)),Qt.exports}var Ni=Hi();const Pi=oe(Ni);var Jt={exports:{}},Ri=Jt.exports,en;function Vi(){return en||(en=1,(function(t,e){(function(n,r){t.exports=r()})(Ri,(function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(c){var m=this,Y=this.$locale();if(!this.isValid())return a.bind(this)(c);var C=this.$utils(),p=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return Y.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return Y.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}}));return a.bind(this)(p)}}}))})(Jt)),Jt.exports}var zi=Vi();const qi=oe(zi);var Kt={exports:{}},Bi=Kt.exports,nn;function Zi(){return nn||(nn=1,(function(t,e){(function(n,r){t.exports=r()})(Bi,(function(){var n,r,i=1e3,a=6e4,c=36e5,m=864e5,Y=31536e6,C=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,L=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:Y,months:C,days:m,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},S=function(k){return k instanceof q},B=function(k,g,y){return new q(k,y,g.$l)},A=function(k){return r.p(k)+"s"},U=function(k){return k<0},I=function(k){return U(k)?Math.ceil(k):Math.floor(k)},N=function(k){return Math.abs(k)},W=function(k,g){return k?U(k)?{negative:!0,format:""+N(k)+g}:{negative:!1,format:""+k+g}:{negative:!1,format:""}},q=(function(){function k(y,h,D){var w=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return B(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){w.$d[A(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(p);if(T){var v=T.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=k.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,D){return h+(y.$d[D]||0)*_[D]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/Y),y%=Y,this.$d.months=I(y/C),y%=C,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/c),y%=c,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var w=W(D,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),x=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,b=T.format||v.format||f.format?"T":"",F=(x?"-":"")+"P"+y.format+h.format+w.format+b+T.format+v.format+f.format;return F==="P"||F==="-P"?"P0D":F},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(L,(function(w,T){return T||String(D[w])}))},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,D=A(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?I(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:B(y,this).$ms,B(this.$ms+w*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return B(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},k})(),j=function(k,g,y){return k.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(k,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return B(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):D.bind(this)(w,T)}}}))})(Kt)),Kt.exports}var Xi=Zi();const Gi=oe(Xi);var we=(function(){var t=d(function(v,u,f,x){for(f=f||{},x=v.length;x--;f[v[x]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],m=[1,31],Y=[1,32],C=[1,33],p=[1,34],L=[1,9],_=[1,10],S=[1,11],B=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],q=[1,20],j=[1,21],k=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,x,b,F,o,X){var s=o.length-1;switch(F){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 6:case 7:this.$=[];break;case 8:b.setWeekday("monday");break;case 9:b.setWeekday("tuesday");break;case 10:b.setWeekday("wednesday");break;case 11:b.setWeekday("thursday");break;case 12:b.setWeekday("friday");break;case 13:b.setWeekday("saturday");break;case 14:b.setWeekday("sunday");break;case 15:b.setWeekend("friday");break;case 16:b.setWeekend("saturday");break;case 17:b.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:b.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:b.TopAxis(),this.$=o[s].substr(8);break;case 20:b.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:b.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:b.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:b.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:b.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:b.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),b.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),b.setAccDescription(this.$);break;case 31:b.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:b.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],b.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],b.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],b.setClickEvent(o[s-2],o[s-1],null),b.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],b.setClickEvent(o[s-3],o[s-2],o[s-1]),b.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],b.setClickEvent(o[s-2],o[s],null),b.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],b.setClickEvent(o[s-3],o[s-1],o[s]),b.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],b.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:Y,19:18,20:C,21:p,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:q,33:j,35:k,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:Y,19:18,20:C,21:p,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:q,33:j,35:k,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var x=new Error(u);throw x.hash=f,x}},"parseError"),parse:d(function(u){var f=this,x=[0],b=[],F=[null],o=[],X=this.table,s="",E=0,z=0,V=2,P=1,K=o.slice.call(arguments,1),O=Object.create(this.lexer),st={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(st.yy[M]=this.yy[M]);O.setInput(u,st.yy),st.yy.lexer=O,st.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var H=O.yylloc;o.push(H);var R=O.options&&O.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){x.length=x.length-2*ot,F.length=F.length-ot,o.length=o.length-ot}d(l,"popStack");function J(){var ot;return ot=b.pop()||O.lex()||P,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=f.symbols_[ot]||ot),ot}d(J,"lex");for(var $,Q,G,it,at={},pt,ut,He,Bt;;){if(Q=x[x.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:(($===null||typeof $>"u")&&($=J()),G=X[Q]&&X[Q][$]),typeof G>"u"||!G.length||!G[0]){var ce="";Bt=[];for(pt in X[Q])this.terminals_[pt]&&pt>V&&Bt.push("'"+this.terminals_[pt]+"'");O.showPosition?ce="Parse error on line "+(E+1)+`: +`+O.showPosition()+` +Expecting `+Bt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":ce="Parse error on line "+(E+1)+": Unexpected "+($==P?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(ce,{text:O.match,token:this.terminals_[$]||$,line:O.yylineno,loc:H,expected:Bt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+$);switch(G[0]){case 1:x.push($),F.push(O.yytext),o.push(O.yylloc),x.push(G[1]),$=null,z=O.yyleng,s=O.yytext,E=O.yylineno,H=O.yylloc;break;case 2:if(ut=this.productions_[G[1]][1],at.$=F[F.length-ut],at._$={first_line:o[o.length-(ut||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ut||1)].first_column,last_column:o[o.length-1].last_column},R&&(at._$.range=[o[o.length-(ut||1)].range[0],o[o.length-1].range[1]]),it=this.performAction.apply(at,[s,z,E,st.yy,G[1],F,o].concat(K)),typeof it<"u")return it;ut&&(x=x.slice(0,-1*ut*2),F=F.slice(0,-1*ut),o=o.slice(0,-1*ut)),x.push(this.productions_[G[1]][0]),F.push(at.$),o.push(at._$),He=X[x[x.length-2]][x[x.length-1]],x.push(He);break;case 3:return!0}}return!0},"parse")},w=(function(){var v={EOF:1,parseError:d(function(f,x){if(this.yy.parser)this.yy.parser.parseError(f,x);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,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:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,x=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var b=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),x.length-1&&(this.yylineno-=x.length-1);var F=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:x?(x.length===b.length?this.yylloc.first_column:0)+b[b.length-x.length].length-x[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+f+"^"},"showPosition"),test_match:d(function(u,f){var x,b,F;if(this.options.backtrack_lexer&&(F={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&&(F.yylloc.range=this.yylloc.range.slice(0))),b=u[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],x=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var o in F)this[o]=F[o];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,x,b;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),o=0;of[0].length)){if(f=x,b=o,this.options.backtrack_lexer){if(u=this.test_match(x,F[o]),u!==!1)return u;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(u=this.test_match(f,F[b]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var f=this.next();return f||this.lex()},"lex"),begin:d(function(f){this.conditionStack.push(f)},"begin"),popState:d(function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:d(function(f){this.begin(f)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(f,x,b,F){switch(b){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return v})();D.lexer=w;function T(){this.yy={}}return d(T,"Parser"),T.prototype=D,D.Parser=T,new T})();we.parser=we;var ji=we;rt.extend($i);rt.extend(Pi);rt.extend(qi);var rn={friday:5,saturday:6},lt="",Ye="",Fe=void 0,Ue="",Vt=[],zt=[],Ee=new Map,Ie=[],se=[],Lt="",Le="",Yn=["active","done","crit","milestone","vert"],Ae=[],_t="",qt=!1,We=!1,$e="sunday",ae="saturday",De=0,Qi=d(function(){Ie=[],se=[],Lt="",Ae=[],te=0,Ce=void 0,ee=void 0,tt=[],lt="",Ye="",Le="",Fe=void 0,Ue="",Vt=[],zt=[],qt=!1,We=!1,De=0,Ee=new Map,_t="",Xn(),$e="sunday",ae="saturday"},"clear"),Ji=d(function(t){_t=t},"setDiagramId"),Ki=d(function(t){Ye=t},"setAxisFormat"),ts=d(function(){return Ye},"getAxisFormat"),es=d(function(t){Fe=t},"setTickInterval"),ns=d(function(){return Fe},"getTickInterval"),rs=d(function(t){Ue=t},"setTodayMarker"),is=d(function(){return Ue},"getTodayMarker"),ss=d(function(t){lt=t},"setDateFormat"),as=d(function(){qt=!0},"enableInclusiveEndDates"),os=d(function(){return qt},"endDatesAreInclusive"),cs=d(function(){We=!0},"enableTopAxis"),us=d(function(){return We},"topAxisEnabled"),ls=d(function(t){Le=t},"setDisplayMode"),fs=d(function(){return Le},"getDisplayMode"),ds=d(function(){return lt},"getDateFormat"),hs=d(function(t){Vt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),ms=d(function(){return Vt},"getIncludes"),gs=d(function(t){zt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ys=d(function(){return zt},"getExcludes"),ks=d(function(){return Ee},"getLinks"),ps=d(function(t){Lt=t,Ie.push(t)},"addSection"),vs=d(function(){return Ie},"getSections"),Ts=d(function(){let t=sn();const e=10;let n=0;for(;!t&&nm))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,c]},"fixTaskDates"),Me=d(function(t,e,n){if(n=n.trim(),d(m=>{const Y=m.trim();return Y==="x"||Y==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const a=/^after\s+(?[\d\w- ]+)/.exec(n);if(a!==null){let m=null;for(const C of a.groups.ids.split(" ")){let p=Ct(C);p!==void 0&&(!m||p.endTime>m.endTime)&&(m=p)}if(m)return m.endTime;const Y=new Date;return Y.setHours(0,0,0,0),Y}let c=rt(n,e.trim(),!0);if(c.isValid())return c.toDate();{Tt.debug("Invalid date:"+n),Tt.debug("With date format:"+e.trim());const m=new Date(n);if(m===void 0||isNaN(m.getTime())||m.getFullYear()<-1e4||m.getFullYear()>1e4)throw new Error("Invalid date:"+n);return m}},"getStartDate"),En=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),In=d(function(t,e,n,r=!1){n=n.trim();const a=/^until\s+(?[\d\w- ]+)/.exec(n);if(a!==null){let p=null;for(const _ of a.groups.ids.split(" ")){let S=Ct(_);S!==void 0&&(!p||S.startTime{window.open(n,"_self")}),Ee.set(r,n))}),An(t,"clickable")},"setLink"),An=d(function(t,e){t.split(",").forEach(function(n){let r=Ct(n);r!==void 0&&r.classes.push(e)})},"setClass"),Fs=d(function(t,e,n){if(Yt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Gn.runFunc(e,...r)})},"setClickFun"),Wn=d(function(t,e){Ae.push(function(){const n=_t?`${_t}-${t}`:t,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const n=_t?`${_t}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),Us=d(function(t,e,n){t.split(",").forEach(function(r){Fs(r,e,n)}),An(t,"clickable")},"setClickEvent"),Es=d(function(t){Ae.forEach(function(e){e(t)})},"bindFunctions"),Is={getConfig:d(()=>Yt().gantt,"getConfig"),clear:Qi,setDateFormat:ss,getDateFormat:ds,enableInclusiveEndDates:as,endDatesAreInclusive:os,enableTopAxis:cs,topAxisEnabled:us,setAxisFormat:Ki,getAxisFormat:ts,setTickInterval:es,getTickInterval:ns,setTodayMarker:rs,getTodayMarker:is,setAccTitle:zn,getAccTitle:Vn,setDiagramTitle:Rn,getDiagramTitle:Pn,setDiagramId:Ji,setDisplayMode:ls,getDisplayMode:fs,setAccDescription:Nn,getAccDescription:Hn,addSection:ps,getSections:vs,getTasks:Ts,addTask:Ss,findTaskById:Ct,addTaskOrg:_s,setIncludes:hs,getIncludes:ms,setExcludes:gs,getExcludes:ys,setClickEvent:Us,setLink:Ys,getLinks:ks,bindFunctions:Es,parseDuration:En,isInvalidDate:Fn,setWeekday:xs,getWeekday:bs,setWeekend:ws};function Oe(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const a="^\\s*"+i+"\\s*$",c=new RegExp(a);t[0].match(c)&&(e[i]=!0,t.shift(1),r=!0)})}d(Oe,"getTaskTags");rt.extend(Gi);var Ls=d(function(){Tt.debug("Something is calling, setConf, remove the call")},"setConf"),an={monday:Nt,tuesday:vn,wednesday:Tn,thursday:bt,friday:xn,saturday:bn,sunday:Rt},As=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((a,c)=>a.startTime-c.startTime||a.order-c.order),i=0;for(const a of r)for(let c=0;c=n[c]){n[c]=a.endTime,a.order=c+e,c>i&&(i=c);break}return i},"getMaxIntersections"),dt,Te=1e4,Ws=d(function(t,e,n,r){const i=Yt().gantt;r.db.setDiagramId(e);const a=Yt().securityLevel;let c;a==="sandbox"&&(c=Zt("#i"+e));const m=a==="sandbox"?Zt(c.nodes()[0].contentDocument.body):Zt("body"),Y=a==="sandbox"?c.nodes()[0].contentDocument:document,C=Y.getElementById(e);dt=C.parentElement.offsetWidth,dt===void 0&&(dt=1200),i.useWidth!==void 0&&(dt=i.useWidth);const p=r.db.getTasks();let L=[];for(const h of p)L.push(h.type);L=y(L);const _={};let S=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const h={};for(const w of p)h[w.section]===void 0?h[w.section]=[w]:h[w.section].push(w);let D=0;for(const w of Object.keys(h)){const T=As(h[w],D)+1;D+=T,S+=T*(i.barHeight+i.barGap),_[w]=T}}else{S+=p.length*(i.barHeight+i.barGap);for(const h of L)_[h]=p.filter(D=>D.type===h).length}C.setAttribute("viewBox","0 0 "+dt+" "+S);const B=m.select(`[id="${e}"]`),A=Ii().domain([nr(p,function(h){return h.startTime}),er(p,function(h){return h.endTime})]).rangeRound([0,dt-i.leftPadding-i.rightPadding]);function U(h,D){const w=h.startTime,T=D.startTime;let v=0;return w>T?v=1:ws.vert===E.vert?0:s.vert?1:-1);const b=[...new Set(h.map(s=>s.order))].map(s=>h.find(E=>E.order===s));B.append("g").selectAll("rect").data(b).enter().append("rect").attr("x",0).attr("y",function(s,E){return E=s.order,E*D+w-2}).attr("width",function(){return f-i.rightPadding/2}).attr("height",D).attr("class",function(s){for(const[E,z]of L.entries())if(s.type===z)return"section section"+E%i.numberSectionStyles;return"section section0"}).enter();const F=B.append("g").selectAll("rect").data(h).enter(),o=r.db.getLinks();if(F.append("rect").attr("id",function(s){return e+"-"+s.id}).attr("rx",3).attr("ry",3).attr("x",function(s){return s.milestone?A(s.startTime)+T+.5*(A(s.endTime)-A(s.startTime))-.5*v:A(s.startTime)+T}).attr("y",function(s,E){return E=s.order,s.vert?i.gridLineStartPadding:E*D+w}).attr("width",function(s){return s.milestone?v:s.vert?.08*v:A(s.renderEndTime||s.endTime)-A(s.startTime)}).attr("height",function(s){return s.vert?p.length*(i.barHeight+i.barGap)+i.barHeight*2:v}).attr("transform-origin",function(s,E){return E=s.order,(A(s.startTime)+T+.5*(A(s.endTime)-A(s.startTime))).toString()+"px "+(E*D+w+.5*v).toString()+"px"}).attr("class",function(s){const E="task";let z="";s.classes.length>0&&(z=s.classes.join(" "));let V=0;for(const[K,O]of L.entries())s.type===O&&(V=K%i.numberSectionStyles);let P="";return s.active?s.crit?P+=" activeCrit":P=" active":s.done?s.crit?P=" doneCrit":P=" done":s.crit&&(P+=" crit"),P.length===0&&(P=" task"),s.milestone&&(P=" milestone "+P),s.vert&&(P=" vert "+P),P+=V,P+=" "+z,E+P}),F.append("text").attr("id",function(s){return e+"-"+s.id+"-text"}).text(function(s){return s.task}).attr("font-size",i.fontSize).attr("x",function(s){let E=A(s.startTime),z=A(s.renderEndTime||s.endTime);if(s.milestone&&(E+=.5*(A(s.endTime)-A(s.startTime))-.5*v,z=E+v),s.vert)return A(s.startTime)+T;const V=this.getBBox().width;return V>z-E?z+V+1.5*i.leftPadding>f?E+T-5:z+T+5:(z-E)/2+E+T}).attr("y",function(s,E){return s.vert?i.gridLineStartPadding+p.length*(i.barHeight+i.barGap)+60:(E=s.order,E*D+i.barHeight/2+(i.fontSize/2-2)+w)}).attr("text-height",v).attr("class",function(s){const E=A(s.startTime);let z=A(s.endTime);s.milestone&&(z=E+v);const V=this.getBBox().width;let P="";s.classes.length>0&&(P=s.classes.join(" "));let K=0;for(const[st,M]of L.entries())s.type===M&&(K=st%i.numberSectionStyles);let O="";return s.active&&(s.crit?O="activeCritText"+K:O="activeText"+K),s.done?s.crit?O=O+" doneCritText"+K:O=O+" doneText"+K:s.crit&&(O=O+" critText"+K),s.milestone&&(O+=" milestoneText"),s.vert&&(O+=" vertText"),V>z-E?z+V+1.5*i.leftPadding>f?P+" taskTextOutsideLeft taskTextOutside"+K+" "+O:P+" taskTextOutsideRight taskTextOutside"+K+" "+O+" width-"+V:P+" taskText taskText"+K+" "+O+" width-"+V}),Yt().securityLevel==="sandbox"){let s;s=Zt("#i"+e);const E=s.nodes()[0].contentDocument;F.filter(function(z){return o.has(z.id)}).each(function(z){var V=E.querySelector("#"+CSS.escape(e+"-"+z.id)),P=E.querySelector("#"+CSS.escape(e+"-"+z.id+"-text"));const K=V.parentNode;var O=E.createElement("a");O.setAttribute("xlink:href",o.get(z.id)),O.setAttribute("target","_top"),K.appendChild(O),O.appendChild(V),O.appendChild(P)})}}d(N,"drawRects");function W(h,D,w,T,v,u,f,x){if(f.length===0&&x.length===0)return;let b,F;for(const{startTime:V,endTime:P}of u)(b===void 0||VF)&&(F=P);if(!b||!F)return;if(rt(F).diff(rt(b),"year")>5){Tt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const o=r.db.getDateFormat(),X=[];let s=null,E=rt(b);for(;E.valueOf()<=F;)r.db.isInvalidDate(E,o,f,x)?s?s.end=E:s={start:E,end:E}:s&&(X.push(s),s=null),E=E.add(1,"d");B.append("g").selectAll("rect").data(X).enter().append("rect").attr("id",V=>e+"-exclude-"+V.start.format("YYYY-MM-DD")).attr("x",V=>A(V.start.startOf("day"))+w).attr("y",i.gridLineStartPadding).attr("width",V=>A(V.end.endOf("day"))-A(V.start.startOf("day"))).attr("height",v-D-i.gridLineStartPadding).attr("transform-origin",function(V,P){return(A(V.start)+w+.5*(A(V.end)-A(V.start))).toString()+"px "+(P*h+.5*v).toString()+"px"}).attr("class","exclude-range")}d(W,"drawExcludeDays");function q(h,D,w,T){if(w<=0||h>D)return 1/0;const v=D-h,u=rt.duration({[T??"day"]:w}).asMilliseconds();return u<=0?1/0:Math.ceil(v/u)}d(q,"getEstimatedTickCount");function j(h,D,w,T){const v=r.db.getDateFormat(),u=r.db.getAxisFormat();let f;u?f=u:v==="D"?f="%d":f=i.axisFormat??"%Y-%m-%d";let x=lr(A).tickSize(-T+D+i.gridLineStartPadding).tickFormat(ie(f));const F=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(F!==null){const o=parseInt(F[1],10);if(isNaN(o)||o<=0)Tt.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const X=F[2],s=r.db.getWeekday()||i.weekday,E=A.domain(),z=E[0],V=E[1],P=q(z,V,o,X);if(P>Te)Tt.warn(`The tick interval "${o}${X}" would generate ${P} ticks, which exceeds the maximum allowed (${Te}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(X){case"millisecond":x.ticks(Et.every(o));break;case"second":x.ticks(vt.every(o));break;case"minute":x.ticks(Ot.every(o));break;case"hour":x.ticks(Ht.every(o));break;case"day":x.ticks(xt.every(o));break;case"week":x.ticks(an[s].every(o));break;case"month":x.ticks(Pt.every(o));break}}}if(B.append("g").attr("class","grid").attr("transform","translate("+h+", "+(T-50)+")").call(x).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let o=ur(A).tickSize(-T+D+i.gridLineStartPadding).tickFormat(ie(f));if(F!==null){const X=parseInt(F[1],10);if(isNaN(X)||X<=0)Tt.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const s=F[2],E=r.db.getWeekday()||i.weekday,z=A.domain(),V=z[0],P=z[1];if(q(V,P,X,s)<=Te)switch(s){case"millisecond":o.ticks(Et.every(X));break;case"second":o.ticks(vt.every(X));break;case"minute":o.ticks(Ot.every(X));break;case"hour":o.ticks(Ht.every(X));break;case"day":o.ticks(xt.every(X));break;case"week":o.ticks(an[E].every(X));break;case"month":o.ticks(Pt.every(X));break}}}B.append("g").attr("class","grid").attr("transform","translate("+h+", "+D+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(j,"makeGrid");function k(h,D){let w=0;const T=Object.keys(_).map(v=>[v,_[v]]);B.append("g").selectAll("text").data(T).enter().append(function(v){const u=v[0].split(Bn.lineBreakRegex),f=-(u.length-1)/2,x=Y.createElementNS("http://www.w3.org/2000/svg","text");x.setAttribute("dy",f+"em");for(const[b,F]of u.entries()){const o=Y.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttribute("alignment-baseline","central"),o.setAttribute("x","10"),b>0&&o.setAttribute("dy","1em"),o.textContent=F,x.appendChild(o)}return x}).attr("x",10).attr("y",function(v,u){if(u>0)for(let f=0;f` + .mermaid-main-font { + font-family: ${t.fontFamily}; + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: ${t.fontFamily}; + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + /* Done task text displayed outside the bar sits against the diagram background, + not against the done-task bar, so it must use the outside/contrast color. */ + .doneText0.taskTextOutsideLeft, + .doneText0.taskTextOutsideRight, + .doneText1.taskTextOutsideLeft, + .doneText1.taskTextOutsideRight, + .doneText2.taskTextOutsideLeft, + .doneText2.taskTextOutsideRight, + .doneText3.taskTextOutsideLeft, + .doneText3.taskTextOutsideRight { + fill: ${t.taskTextOutsideColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + /* Done-crit task text outside the bar — same reasoning as doneText above. */ + .doneCritText0.taskTextOutsideLeft, + .doneCritText0.taskTextOutsideRight, + .doneCritText1.taskTextOutsideLeft, + .doneCritText1.taskTextOutsideRight, + .doneCritText2.taskTextOutsideLeft, + .doneCritText2.taskTextOutsideRight, + .doneCritText3.taskTextOutsideLeft, + .doneCritText3.taskTextOutsideRight { + fill: ${t.taskTextOutsideColor} !important; + } + + .vert { + stroke: ${t.vertLineColor}; + } + + .vertText { + font-size: 15px; + text-anchor: middle; + fill: ${t.vertLineColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: ${t.fontFamily}; + } +`,"getStyles"),Hs=Os,qs={parser:ji,db:Is,renderer:$s,styles:Hs};export{qs as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/gitGraphDiagram-PVQCEYII-DKmd5EUr.js b/apps/pythinker-code/dist-web/assets/gitGraphDiagram-PVQCEYII-DKmd5EUr.js new file mode 100644 index 000000000..5666721fb --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/gitGraphDiagram-PVQCEYII-DKmd5EUr.js @@ -0,0 +1,106 @@ +import{p as le}from"./chunk-4BX2VUAB-DQH-TItP.js";import{I as he}from"./chunk-QZHKN3VN-CFNj3DLL.js";import{t as $e,q as fe,s as ge,g as ue,a as ye,b as xe,_ as h,F as J,l as w,d as me,c as W,u as pe,G as be,A as we,k as B,H as ke,I as ve,K as Ce}from"./mermaid.core-bNlBBSwN.js";import{p as Ee}from"./wardley-L42UT6IY-BnkTWAjx.js";import"./index-DIfcwXP7.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Ie=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Re=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Ie,branch:Re,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,I=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],R=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),R=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",` + ${s-i/2-L/2},${x+I} + ${s-i/2-L/2},${x-I} + ${t.posWithOffset-i/2-L},${x-c-I} + ${t.posWithOffset+i/2+L},${x-c-I} + ${t.posWithOffset+i/2+L},${x+c+I} + ${t.posWithOffset-i/2-L},${x+c+I}`),f.attr("cy",x).attr("cx",s-i/2+L/2).attr("r",1.5).attr("class","tag-hole"),y==="TB"||y==="BT"){const u=s+$;g.attr("class","tag-label-bkg").attr("points",` + ${t.x},${u+2} + ${t.x},${u-2} + ${t.x+O},${u-c-2} + ${t.x+O+i+4},${u-c-2} + ${t.x+O+i+4},${u+c+2} + ${t.x+O},${u+c+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),f.attr("cx",t.x+L/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+t.x+","+s+")"),l.attr("x",t.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+s+")")}}}},"drawCommitTags"),cr=h(e=>{switch(e.customType??e.type){case m.NORMAL:return"commit-normal";case m.REVERSE:return"commit-reverse";case m.HIGHLIGHT:return"commit-highlight";case m.MERGE:return"commit-merge";case m.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ir=h((e,r,t,s)=>{const o={x:0,y:0};if(e.parents.length>0){const i=ce(e.parents);if(i){const n=s.get(i)??o;return r==="TB"?n.y+_:r==="BT"?(s.get(e.id)??o).y-_:n.x+_}}else return r==="TB"?F:r==="BT"?(s.get(e.id)??o).y-_:0;return 0},"calculatePosition"),dr=h((e,r,t)=>{const s=y==="BT"&&t?r:r+O,o=C.get(e.branch)?.pos,i=y==="TB"||y==="BT"?C.get(e.branch)?.pos:s;if(i===void 0||o===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=j.has(W().theme??""),a=y==="TB"||y==="BT"?s:o+(n?X/2+1:-2);return{x:i,y:a,posWithOffset:s}},"getCommitPosition"),re=h((e,r,t,s)=>{const o=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?F:0;const a=[...r.keys()],l=s.parallelCommits??!1,f=h(($,c)=>{const x=r.get($)?.seq,u=r.get(c)?.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(f);y==="BT"&&(l&&Ze(g,r,n),g=g.reverse()),g.forEach($=>{const c=r.get($);if(!c)throw new Error(`Commit not found for key ${$}`);l&&(n=ir(c,y,n,E));const x=dr(c,n,l);if(t){const u=cr(c),p=c.customType??c.type,b=C.get(c.branch)?.index??0;nr(o,c,x,u,b,p),sr(i,c,x,n,s),or(i,c,x,n)}y==="TB"||y==="BT"?E.set(c.id,{x:x.x,y:x.posWithOffset}):E.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+_:n+_+O,n>R&&(R=n)})},"drawCommits"),lr=h((e,r,t,s,o)=>{const n=(y==="TB"||y==="BT"?t.xf.branch===n,"isOnBranchToGetCurve"),l=h(f=>f.seq>e.seq&&f.seql(f)&&a(f))},"shouldRerouteArrow"),P=h((e,r,t=0)=>{const s=e+Math.abs(e-r)/2;if(t>5)return s;if(z.every(n=>Math.abs(n-s)>=10))return z.push(s),s;const i=Math.abs(e-r);return P(e,r-i/5,t+1)},"findLane"),hr=h((e,r,t,s)=>{const{theme:o}=W(),i=Z.has(o??""),n=E.get(r.id),a=E.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=lr(r,t,n,a,s);let f="",g="",$=0,c=0,x=C.get(t.branch)?.index;t.type===m.MERGE&&r.id!==t.parents[0]&&(x=C.get(r.branch)?.index);let u;if(l){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,c=10;const p=n.ya.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.xa.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,c=20,t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.ya.y&&(t.type===m.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+H(x,G,i))},"drawArrow"),$r=h((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const o=r.get(s);o.parents&&o.parents.length>0&&o.parents.forEach(i=>{hr(t,r.get(i),o,r)})})},"drawArrows"),fr=h((e,r,t,s)=>{const{look:o,theme:i,themeVariables:n}=W(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,f=j.has(i??""),g=Z.has(i??""),$=e.append("g");r.forEach((c,x)=>{const u=H(x,f?l:G,g),p=C.get(c.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${c.name}`);const b=y==="TB"||y==="BT"?p:f?p+X/2+1:p-2,k=$.append("line");k.attr("x1",0),k.attr("y1",b),k.attr("x2",R),k.attr("y2",b),k.attr("class","branch branch"+u),y==="TB"?(k.attr("y1",F),k.attr("x1",p),k.attr("y2",R),k.attr("x2",p)):y==="BT"&&(k.attr("y1",R),k.attr("x1",p),k.attr("y2",F),k.attr("x2",p)),z.push(b);const K=c.name,D=oe(K),T=$.insert("rect"),M=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);M.node().appendChild(D);const v=D.getBBox(),ee=f?0:4,N=f?16:0,A=f?X:0;o==="neo"&&T.attr("data-look","neo"),T.attr("class","branchLabelBkg label"+u).attr("style",o==="neo"?`filter:${f?`url(#${s}-drop-shadow)`:a}`:"").attr("rx",ee).attr("ry",ee).attr("x",-v.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-v.height/2+10).attr("width",v.width+18+N).attr("height",v.height+4+A),M.attr("transform","translate("+(-v.width-14-(t.rotateCommitLabel===!0?30:0)+N/2)+", "+(b-v.height/2-2)+")"),y==="TB"?(T.attr("x",p-v.width/2-10).attr("y",0),M.attr("transform","translate("+(p-v.width/2-5)+", 0)"),f&&(T.attr("transform",`translate(${-N/2-3}, ${-A-10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(-A*2+7)+")"))):y==="BT"?(T.attr("x",p-v.width/2-10).attr("y",R),M.attr("transform","translate("+(p-v.width/2-5)+", "+R+")"),f&&(T.attr("transform",`translate(${-N/2-3}, ${A+10})`),M.attr("transform","translate("+(p-v.width/2-5)+", "+(R+A*2+4)+")"))):T.attr("transform","translate(-19, "+(b-12-A/2)+")")})},"drawBranches"),gr=h(function(e,r,t,s,o){return C.set(e,{pos:r,index:t}),r+=50+(o?40:0)+(y==="TB"||y==="BT"?s.width/2:0),r},"setBranchPosition"),ur=h(function(e,r,t,s){Je(),w.debug("in gitgraph renderer",e+` +`,"id:",r,t);const o=s.db;if(!o.getConfig){w.error("getConfig method is not available on db");return}const i=o.getConfig(),n=i.rotateCommitLabel??!1;q=o.getCommits();const a=o.getBranchesAsObjArray();y=o.getDirection();const l=me(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=W(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:p}=$;if(c){const k=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");k.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),k.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}f==="neo"&&j.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((k,K)=>{const D=oe(k.name),T=l.append("g"),U=T.insert("g").attr("class","branchLabel"),M=U.insert("g").attr("class","label branch-label");M.node()?.appendChild(D);const v=D.getBBox();b=gr(k.name,b,K,v,n),M.remove(),U.remove(),T.remove()}),re(l,q,!1,i),i.showBranches&&fr(l,a,i,r),$r(l,q),re(l,q,!0,i),pe.insertTitle(l,"gitTitleText",i.titleTopMargin??0,o.getDiagramTitle()),be(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),yr={draw:ur},ie=8,de=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),xr=new Set(["redux-color","redux-dark-color"]),mr=new Set(["neo","neo-dark"]),pr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let s=0;s{const r=J(),{theme:t,themeVariables:s}=r,{borderColorArray:o}=s,i=de.has(t);if(mr.has(t)){let n="";for(let a=0;a`${Array.from({length:e.THEME_COLOR_LIMIT},(r,t)=>t).map(r=>{const t=r%ie;return` + .branch-label${r} { fill: ${e["gitBranchLabel"+t]}; } + .commit${r} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; } + .commit-highlight${r} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; } + .label${r} { fill: ${e["git"+t]}; } + .arrow${r} { stroke: ${e["git"+t]}; } + `}).join(` +`)}`,"normalTheme"),Cr=h(e=>{const r=J(),{theme:t}=r,s=br.has(t);return` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + ${s?kr(e):vr(e)} + + .branch { + stroke-width: ${e.strokeWidth}; + stroke: ${e.commitLineColor??e.lineColor}; + stroke-dasharray: ${s?"4 2":"2"}; + } + .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${s?e.nodeBorder:e.commitLabelColor}; ${s?`font-weight:${e.noteFontWeight};`:""}} + .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${s?"transparent":e.commitLabelBackground}; opacity: ${s?"":.5}; } + .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} + .tag-label-bkg { fill: ${s?e.mainBkg:e.tagLabelBackground}; stroke: ${s?e.nodeBorder:e.tagLabelBorder}; ${s?`filter:${e.dropShadow}`:""} } + .tag-hole { fill: ${e.textColor}; } + + .commit-merge { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + } + .commit-reverse { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + stroke-width: ${s?e.strokeWidth:3}; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${s?e.mainBkg:e.primaryColor}; + fill: ${s?e.mainBkg:e.primaryColor}; + } + + .arrow { + /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ + stroke-width: ${de.has(t)?e.strokeWidth:8}; + stroke-linecap: round; + fill: none + } + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`},"getStyles"),Er=Cr,Rr={parser:Ve,db:se,renderer:yr,styles:Er};export{Rr as diagram}; diff --git a/apps/pythinker-code/dist-web/assets/index-BhziHZyv.js b/apps/pythinker-code/dist-web/assets/index-BhziHZyv.js new file mode 100644 index 000000000..b401e960d --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/index-BhziHZyv.js @@ -0,0 +1,7 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-uKL_OrUg.js","assets/index-CqnA9d3X.js","assets/index-DIfcwXP7.js","assets/index-DpzVSFci.css"])))=>i.map(i=>d[i]); +import{bR as Q}from"./index-DIfcwXP7.js";var Y=class{chunks=[];cached="";dirty=!1;length=0;append(e){e&&(this.chunks.push(e),this.length+=e.length,this.dirty=!0,this.chunks.length>256&&this.compact())}clear(e=""){this.chunks=e?[e]:[],this.cached=e,this.dirty=!1,this.length=e.length}toString(){return this.dirty&&(this.cached=this.chunks.join(""),this.dirty=!1),this.cached}compact(){this.chunks=[this.chunks.join("")]}};function $(e,i){e.replaceChildren();const t=document.createElement("div");t.className="stream-diffs-shell",t.style.overflow="auto",t.style.maxHeight=typeof i=="number"?`${i}px`:i??"none";const n=document.createElement("div");return n.className="stream-diffs-surface",t.appendChild(n),e.appendChild(t),{shell:t,surface:n}}function E(e,i,t){return{name:e,contents:i,lang:t}}var Z=class{input;container;surface;instance;diff;selectedLines=null;disposed=!1;renderListeners=new Set;visualRevision=0;visualReadyPromise=Promise.resolve(!1);resolveVisualReady;constructor(e){this.input=e}async mount(e){this.disposed=!1,this.container=e,this.surface=$(e).surface,await this.render()}async update(e){this.input=e,this.surface&&await this.render(!0)}updateFile(e,i){return this.update({kind:"file",file:e,annotations:i,options:this.input.kind==="file"?this.input.options:void 0,workerManager:this.input.kind==="file"?this.input.workerManager:void 0})}updateDiff(e,i,t){return this.update({kind:"diff",oldFile:e,newFile:i,annotations:t,options:z(this.input)?this.input.options:void 0,workerManager:z(this.input)?this.input.workerManager:void 0})}updateParsedDiff(e,i){return this.update({kind:"diff",fileDiff:e,annotations:i,options:z(this.input)?this.input.options:void 0,workerManager:z(this.input)?this.input.workerManager:void 0})}updatePatch(e,i=0,t,n=0){return this.update({kind:"patch",patch:e,patchIndex:n,fileIndex:i,annotations:t,options:this.input.kind==="patch"?this.input.options:void 0,workerManager:this.input.kind==="patch"?this.input.workerManager:void 0})}updateMergeConflict(e,i){return this.update({kind:"merge-conflict",file:e,annotations:i,options:this.input.kind==="merge-conflict"?this.input.options:void 0,workerManager:this.input.kind==="merge-conflict"?this.input.workerManager:void 0})}setSelectedLines(e){this.selectedLines=e,this.instance?.setSelectedLines(e)}setAnnotations(e){this.instance&&(this.input.kind==="file"?(this.input.annotations=e,this.instance.setLineAnnotations(this.input.annotations)):(this.input.annotations=e,this.instance.setLineAnnotations(this.input.annotations)),this.emitRender())}setThemeType(e){this.input.options?this.input.options={...this.input.options,themeType:e}:this.input.options={themeType:e},this.instance?.setThemeType(e)}async setTheme(e){this.input.options?this.input.options={...this.input.options,theme:e}:this.input.options={theme:e},this.surface&&await this.render(!1)}async setOptions(e){this.input.options=e,this.surface&&await this.render(!1)}acceptReject(e,i){if(!z(this.input)||!this.diff)throw new Error("acceptReject() requires a diff view");const{diffAcceptRejectHunk:t}=this.module;return this.diff=t(this.diff,e,i),this.instance.render({fileDiff:this.diff,containerWrapper:this.surface,lineAnnotations:this.input.annotations}),this.diff}resolveConflict(e,i){if(this.input.kind!=="merge-conflict")throw new Error("resolveConflict() requires a merge-conflict view");const t=this.instance.resolveConflict(e,i);return t&&(this.input.file=t.file,this.diff=t.fileDiff),t?.file}getResolvedFile(){if(!z(this.input)||!this.diff||this.diff.isPartial)return;const e="newFile"in this.input?this.input.newFile:void 0;return{name:e?.name??this.diff.name,contents:this.diff.additionLines.join(""),lang:e?.lang??this.diff.lang}}getDiff(){return this.diff}getInput(){return this.input}getNativeInstance(){return this.instance}onDidRender(e){return this.renderListeners.add(e),{dispose:()=>this.renderListeners.delete(e)}}async whenVisualReady(){let e=this.visualReadyPromise;for(;;){const i=await e;if(e===this.visualReadyPromise)return i;e=this.visualReadyPromise}}dispose(){this.disposed=!0,this.invalidateVisualReady(),this.instance?.cleanUp(),this.instance=void 0,this.surface=void 0,this.container?.replaceChildren(),this.container=void 0,this.renderListeners.clear()}module;async render(e=!0){const i=this.surface;if(!i||this.disposed)return;const t=this.beginVisualRender(),n=this.module??=await Q(()=>import("./index-uKL_OrUg.js"),__vite__mapDeps([0,1,2,3]));if(this.disposed||i!==this.surface)return;if(this.instance?.cleanUp(),i.replaceChildren(),this.input.kind==="file"){const o=new n.File(b(this.input.options,()=>this.markVisualReady(t)),this.input.workerManager);o.render({file:this.input.file,containerWrapper:i,lineAnnotations:this.input.annotations}),this.instance=o,o.setSelectedLines(this.selectedLines),this.diff=void 0;return}if(z(this.input)){if(e||!this.diff)if(this.input.kind==="patch"){const a=n.parsePatchFiles(this.input.patch)[this.input.patchIndex??0];if(!a)throw new Error(`Patch does not contain patch index ${this.input.patchIndex??0}`);const d=a.files[this.input.fileIndex??0];if(!d)throw new Error(`Patch does not contain file index ${this.input.fileIndex??0}`);this.diff=d}else"fileDiff"in this.input?this.diff=this.input.fileDiff:this.diff=n.parseDiffFromFile(this.input.oldFile,this.input.newFile,this.input.options?.parseDiffOptions);const o=new n.FileDiff(b(this.input.options,()=>this.markVisualReady(t)),this.input.workerManager);o.render({fileDiff:this.diff,containerWrapper:i,lineAnnotations:this.input.annotations}),this.instance=o,o.setSelectedLines(this.selectedLines);return}const r=new n.UnresolvedFile(b(this.input.options,()=>this.markVisualReady(t)),this.input.workerManager);r.render({file:this.input.file,containerWrapper:i,lineAnnotations:this.input.annotations}),this.instance=r,r.setSelectedLines(this.selectedLines),this.diff=r.fileDiff}emitRender(){for(const e of this.renderListeners)e()}beginVisualRender(){this.resolveVisualReady?.(!1);const e=++this.visualRevision;return this.visualReadyPromise=new Promise(i=>{this.resolveVisualReady=i}),e}markVisualReady(e){this.disposed||e!==this.visualRevision||(this.resolveVisualReady?.(!0),this.resolveVisualReady=void 0,this.emitRender())}invalidateVisualReady(){this.visualRevision++,this.resolveVisualReady?.(!1),this.resolveVisualReady=void 0}};function x(e){return new Z(e)}function ee(e){return!e||e.useTokenTransformer===!0||!e.onTokenClick&&!e.onTokenEnter&&!e.onTokenLeave?e:{...e,useTokenTransformer:!0}}function b(e,i){const t=ee(e),n=t?.onPostRender;return{...t,onPostRender(...r){n?.(...r),i()}}}function z(e){return e.kind==="diff"||e.kind==="patch"}var K=class{options;state="idle";stats={characters:0,lines:0,writes:0,resets:0,renderMode:"plain-text",overflowed:!1};text=new Y;pending=[];scheduled;generation=0;container;shell;surface;finalizedSurface;plainText;finalizePromise;renderListeners=new Set;finalizedRenderSubscription;constructor(e={}){this.options=e}async mount(e){if(this.state==="disposed")throw new Error("Cannot mount a disposed code stream. Create a new controller instead.");++this.generation,this.cancelScheduledFlush(),this.finalizedSurface?.dispose(),this.finalizedRenderSubscription?.dispose(),this.container?.replaceChildren(),this.finalizedSurface=void 0,this.finalizedRenderSubscription=void 0,this.plainText=void 0,this.pending=[],this.setState("mounting"),this.container=e;const{shell:i,surface:t}=$(e,this.options.maxHeight);this.shell=i,this.surface=t,this.mountPlainText(t),this.stats.startedAt??=performance.now(),this.setState("streaming")}append(e){if(e){if(this.state==="finalized"||this.state==="finalizing"||this.state==="disposed")throw new Error(`Cannot append while stream is ${this.state}`);this.text.append(e),this.stats.characters=this.text.length,this.stats.lines+=ie(e)+(this.stats.lines===0?1:0),this.pending.push(e),this.scheduleFlush()}}updateSnapshot(e){const i=this.text.toString();if(e.startsWith(i)){this.append(e.slice(i.length));return}const t=this.options.nonAppendBehavior??"reset";if(t!=="ignore"){if(t==="throw")throw new Error("Snapshot violates the append-only stream contract");return this.reset(e)}}async consume(e){try{if(Symbol.asyncIterator in e)for await(const i of e)this.append(i);else{const i=e.getReader();try{for(;;){const{done:t,value:n}=await i.read();if(t)break;this.append(n)}}finally{i.releaseLock()}}}catch(i){throw this.fail(i),i}}async flush(){if(this.cancelScheduledFlush(),!this.pending.length)return;const e=this.shouldFollowViewport(),i=this.pending.join("");this.pending.length=0,this.plainText?.append(i),this.stats.writes++,this.followViewport(e),this.emitRender()}finalize(e={view:"stream"}){if(this.state==="finalized")return Promise.resolve();if(this.finalizePromise)return this.finalizePromise;const i=this.performFinalize(e).finally(()=>{this.finalizePromise===i&&(this.finalizePromise=void 0)});return this.finalizePromise=i,i}async performFinalize(e){if(this.state==="disposed")throw new Error("Cannot finalize a disposed code stream");const i=this.generation;if(this.setState("finalizing"),await this.flush(),i!==this.generation)return;if(this.stats.finalizedAt=performance.now(),!e.view||e.view==="stream"){this.setState("finalized");return}const t=this.surface;if(!t)throw new Error("Mount the stream before finalizing to a file or diff view");const n=this.options.fileName??`code.${this.options.language??"txt"}`,r=E(n,this.getText(),this.options.language);let o;if(e.view==="file"){const{annotations:c,workerManager:g,view:S,...T}=e;o=x({kind:"file",file:r,annotations:c,options:{theme:this.options.theme,themeType:this.options.themeType,...T},workerManager:g??this.options.workerManager})}else{const{annotations:c,original:g,workerManager:S,view:T,...L}=e;o=x({kind:"diff",oldFile:E(n,g,this.options.language),newFile:r,annotations:c,options:{theme:this.options.theme,themeType:this.options.themeType,...L},workerManager:S??this.options.workerManager})}const a=document.createElement("div");if(a.className="stream-diffs-finalized",await o.mount(a),i!==this.generation){o.dispose();return}const d=this.shell,p=d?.scrollTop??0,h=d?d.scrollHeight-d.scrollTop-d.clientHeight:0;t.replaceWith(a),this.surface=a,this.plainText=void 0,this.finalizedSurface=o,this.finalizedRenderSubscription=o.onDidRender(()=>this.emitRender()),d&&(this.options.autoScroll==="always"||this.options.autoScroll!=="never"&&h<=(this.options.autoScrollThresholdPx??32)?d.scrollTop=d.scrollHeight:d.scrollTop=p),this.setState("finalized"),this.emitRender()}async reset(e=""){const i=this.container;++this.generation,this.cancelScheduledFlush(),this.finalizedSurface?.dispose(),this.finalizedRenderSubscription?.dispose(),this.finalizedSurface=void 0,this.finalizedRenderSubscription=void 0,this.plainText=void 0,this.pending=[],this.finalizePromise=void 0,this.text.clear(),this.stats.resets++,this.stats.characters=0,this.stats.lines=0,this.stats.renderMode="plain-text",this.stats.overflowed=!1,this.setState("idle"),e&&this.append(e),i&&await this.mount(i)}setThemeType(e){this.options.themeType=e,this.finalizedSurface?.setThemeType(e)}async setTheme(e){this.options.theme=e,this.finalizedSurface&&await this.finalizedSurface.setTheme(e)}async setLanguage(e){if(e===this.options.language||(this.options.language=e,!this.finalizedSurface))return;const i=this.finalizedSurface.getInput();i.kind==="file"?await this.finalizedSurface.updateFile({...i.file,lang:e},i.annotations):i.kind==="diff"&&"oldFile"in i&&await this.finalizedSurface.updateDiff({...i.oldFile,lang:e},{...i.newFile,lang:e},i.annotations)}getText(){return this.text.toString()}getState(){return this.state}getStats(){return{...this.stats}}getElement(){return this.shell}getFinalizedSurface(){return this.finalizedSurface}onDidRender(e){return this.renderListeners.add(e),{dispose:()=>this.renderListeners.delete(e)}}dispose(){++this.generation,this.cancelScheduledFlush(),this.finalizedSurface?.dispose(),this.finalizedRenderSubscription?.dispose(),this.container?.replaceChildren(),this.plainText=void 0,this.container=void 0,this.surface=void 0,this.shell=void 0,this.finalizedSurface=void 0,this.finalizedRenderSubscription=void 0,this.finalizePromise=void 0,this.renderListeners.clear(),this.setState("disposed")}scheduleFlush(){if(this.scheduled!=null||!this.plainText)return;const e=this.options.flushStrategy??"raf";e==="raf"&&typeof requestAnimationFrame=="function"?this.scheduled=requestAnimationFrame(()=>void this.flush()):this.scheduled=globalThis.setTimeout(()=>void this.flush(),e==="raf"?0:e.intervalMs)}cancelScheduledFlush(){this.scheduled!=null&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.scheduled),clearTimeout(this.scheduled),this.scheduled=void 0)}shouldFollowViewport(){const e=this.shell;return!e||this.options.autoScroll==="never"?!1:this.options.autoScroll==="always"?!0:e.scrollHeight-e.scrollTop-e.clientHeight<=(this.options.autoScrollThresholdPx??32)}followViewport(e=this.shouldFollowViewport()){this.shell&&e&&(this.shell.scrollTop=this.shell.scrollHeight)}mountPlainText(e){const i=document.createElement("pre");i.className="stream-diffs-plain-text",i.dataset.streamDiffsState="streaming",i.style.margin="0",i.style.whiteSpace=this.options.wrap?"pre-wrap":"pre",i.style.overflowWrap=this.options.wrap?"anywhere":"normal",i.textContent=this.getText(),e.replaceChildren(i),this.plainText=i}setState(e){this.state=e,this.options.onStateChange?.(e)}emitRender(){for(const e of this.renderListeners)e()}fail(e){this.state!=="disposed"&&(this.setState("error"),this.options.onError?.(e))}};function ie(e){let i=0;for(let t=0;t{this.finalizePromise===i&&(this.finalizePromise=void 0)});return this.finalizePromise=i,i}async performFinalize(e){if(this.state==="disposed")throw new Error("Cannot finalize a disposed diff stream");const i=this.surface;if(!i)throw new Error("Mount the diff stream before finalizing it");const t=this.generation;this.setState("finalizing");const n=x({kind:"diff",oldFile:this.asFile(this.original),newFile:this.asFile(this.modified),annotations:e,options:{...this.options,diffStyle:this.options.diffStyle??"unified"},workerManager:this.options.workerManager}),r=document.createElement("div");if(r.className="stream-diffs-finalized",await n.mount(r),t!==this.generation){n.dispose();return}const o=this.shell,a=o?.scrollTop??0;return i.replaceWith(r),this.surface=r,this.finalizedSurface=n,this.finalizedRenderSubscription=n.onDidRender(()=>this.emitRender()),o&&(o.scrollTop=a),this.setState("finalized"),this.emitRender(),n}setThemeType(e){this.options.themeType=e,this.finalizedSurface?.setThemeType(e)}async setTheme(e){this.options.theme=e,this.finalizedSurface&&await this.finalizedSurface.setTheme(e)}async setLanguage(e){if(e!==this.options.language){if(this.options.language=e,this.finalizedSurface){const i=this.finalizedSurface.getInput();i.kind==="diff"&&"oldFile"in i&&await this.finalizedSurface.updateDiff({...i.oldFile,lang:e},{...i.newFile,lang:e},i.annotations);return}this.renderPre()}}getOriginal(){return this.original}getModified(){return this.modified}getState(){return this.state}getElement(){return this.shell}getFinalizedSurface(){return this.finalizedSurface}onDidRender(e){return this.renderListeners.add(e),{dispose:()=>this.renderListeners.delete(e)}}dispose(){++this.generation,this.finalizedSurface?.dispose(),this.finalizedRenderSubscription?.dispose(),this.container?.replaceChildren(),this.container=void 0,this.shell=void 0,this.surface=void 0,this.finalizedSurface=void 0,this.finalizedRenderSubscription=void 0,this.finalizePromise=void 0,this.renderListeners.clear(),this.setState("disposed")}renderPre(){const e=this.surface;if(!e||this.finalizedSurface)return;const i=document.createElement("div");i.className=`stream-diffs-diff-pre stream-diffs-diff-pre--${this.options.diffStyle??"unified"}`,i.dataset.streamDiffsState="streaming",i.style.minWidth="max-content",(this.options.diffStyle??"unified")==="split"?(i.style.display="grid",i.style.gridTemplateColumns="minmax(0, 1fr) minmax(0, 1fr)",i.append(this.createPre(this.original,"deletions"),this.createPre(this.modified,"additions"))):i.append(this.createPre(te(this.original,this.modified),"unified")),e.replaceChildren(i)}createPre(e,i){const t=document.createElement("pre");return t.className=`stream-diffs-diff-pre__pane stream-diffs-diff-pre__pane--${i}`,t.dataset.side=i,t.style.margin="0",t.style.whiteSpace=this.options.wrap?"pre-wrap":"pre",t.style.overflowWrap=this.options.wrap?"anywhere":"normal",t.textContent=e,t}asFile(e){return E(this.options.fileName??`code.${this.options.language??"txt"}`,e,this.options.language)}setState(e){this.state=e,this.options.onStateChange?.(e)}emitRender(){for(const e of this.renderListeners)e()}};function te(e,i){const t=e.split(` +`),n=i.split(` +`);let r=0;for(;r` ${a}`),...t.slice(r,t.length-o).map(a=>`- ${a}`),...n.slice(r,n.length-o).map(a=>`+ ${a}`),...t.slice(t.length-o).map(a=>` ${a}`)].join(` +`)}function he(e){return new G(e)}function ue(e={}){let i,t,n,r,o,a="text",d="",p="",h,c=0,g="system",S=U(e),T=q(e);const L={disableLineNumbers:e.lineNumbers===!1,overflow:e.wordWrap==="on"?"wrap":"scroll",enableLineSelection:e.enableLineSelection},M=()=>({...L,theme:S,themeType:g});async function H(s,l,u){k();const w=c;if(N(s,e),h=s,a=R(u),_(l))return V(s,l,a);if(e.stream===!1)return O(s,l,a);const f=new K({...M(),...F(e),fileName:`code.${a}`,language:a,maxHeight:e.MAX_HEIGHT,autoScroll:e.autoScrollOnUpdate===!1?"never":"near-bottom",autoScrollThresholdPx:e.autoScrollThresholdPx,workerManager:e.workerManager});if(i=f,f.append(l),await f.mount(s),w!==c||i!==f||h!==s)throw f.dispose(),new Error("Editor creation was cancelled");return e.onController?.(f),r=C(()=>f.getText(),s,()=>f.getFinalizedSurface(),m=>f.onDidRender(m)),r}async function I(s,l,u,w){k();const f=c;N(s,e),h=s,a=R(w),d=l,p=u;let m,v;if(e.stream===!1){if(m=x({kind:"diff",oldFile:y(l),newFile:y(u),annotations:e.lineAnnotations,workerManager:e.workerManager,options:{...M(),diffStyle:e.diffStyle??(e.renderSideBySide===!1?"unified":"split"),...F(e)}}),n=m,await m.mount(s),f!==c||n!==m||h!==s)throw m.dispose(),new Error("Editor creation was cancelled");e.onController?.(m)}else{if(v=new G({...M(),...F(e),fileName:`code.${a}`,language:a,diffStyle:e.diffStyle??(e.renderSideBySide===!1?"unified":"split"),maxHeight:e.MAX_HEIGHT,wrap:e.wordWrap==="on",workerManager:e.workerManager}),t=v,await v.mount(s,l,u),f!==c||t!==v||h!==s)throw v.dispose(),new Error("Editor creation was cancelled");e.onController?.(v)}return o=oe(()=>d,()=>p,s,()=>m??v?.getFinalizedSurface()),o}async function X(s,l=a){const u=R(l);if(_(s)){n?.getInput().kind==="merge-conflict"?(a=u,await n.updateMergeConflict(y(s),e.lineAnnotations)):h&&await V(h,s,u);return}if(e.stream===!1){n?.getInput().kind==="file"?(a=u,await n.updateFile(y(s),e.lineAnnotations)):h&&await O(h,s,u);return}if(!i){h&&await H(h,s,u);return}if(i.getState()==="finalized"){s!==i.getText()&&await i.reset(s);return}if(u!==a){a=u,await i.setLanguage(u),s!==i.getText()&&await i.reset(s);return}const w=i.getText();s.startsWith(w)?i.append(s.slice(w.length)):await i.reset(s)}async function P(s,l,u=a){if(d=s,p=l,a=R(u),t){await t.update(s,l);return}if(!n){h&&await I(h,s,l,u);return}await n.updateDiff(y(s),y(l))}function k(){c++,i?.dispose(),t?.dispose(),t||n?.dispose(),i=void 0,t=void 0,n=void 0,r=void 0,o=void 0,h=void 0}async function O(s,l,u){k();const w=c;h=s,a=u;const f=x({kind:"file",file:y(l),annotations:e.lineAnnotations,workerManager:e.workerManager,options:{...M(),...F(e)}});if(n=f,await f.mount(s),w!==c||n!==f||h!==s)throw f.dispose(),new Error("Editor creation was cancelled");return e.onController?.(f),r=C(()=>B(f)??l,s,()=>f,m=>f.onDidRender(m)),r}async function V(s,l,u){k();const w=c;h=s,a=u;const f=x({kind:"merge-conflict",file:y(l),annotations:e.lineAnnotations,workerManager:e.workerManager,options:{...M(),...F(e)}});if(n=f,await f.mount(s),w!==c||n!==f||h!==s)throw f.dispose(),new Error("Editor creation was cancelled");return e.onController?.(f),r=C(()=>B(f)??l,s,()=>f,m=>f.onDidRender(m)),r}function _(s){return e.mergeConflict===!1?!1:/^<<<<<<< .+$/m.test(s)&&/^=======$/m.test(s)&&/^>>>>>>> .+$/m.test(s)}async function J(s){if(s){if(typeof s=="string"){const l=e.themes;if(l?.[0]===s){await W(),g="dark",i?.setThemeType("dark"),t?.setThemeType("dark"),n?.setThemeType("dark");return}if(l?.[1]===s){await W(),g="light",i?.setThemeType("light"),t?.setThemeType("light"),n?.setThemeType("light");return}}T=void 0,S=s,await j(s)}}async function W(){const s=q(e);!s||s===T||(T=s,S=U(e),await j(S))}async function j(s){await i?.setTheme(s),await t?.setTheme(s),await n?.setTheme(s)}function y(s){return E(`code.${a||"txt"}`,s,a)}return{runtimeKind:"stream-diffs",createEditor:H,createDiffEditor:I,updateCode:X,appendCode(s){i?.append(s)},async finalizeCode(){if(!i||i.getState()==="finalized")return i?.getFinalizedSurface();const s=F(e);return delete s.lineAnnotations,await i.finalize({view:"file",...s,theme:S,themeType:g,annotations:e.lineAnnotations,workerManager:e.workerManager}),i.getFinalizedSurface()},async finalizeDiff(){return t&&(n=await t.finalize(e.lineAnnotations)),n},updateDiff:P,updateOriginal(s,l=a){return P(s,p,l)},updateModified(s,l=a){return P(d,s,l)},appendOriginal(s,l=a){return P(d+s,p,l)},appendModified(s,l=a){return P(d,p+s,l)},cleanupEditor:k,safeClean:k,setTheme:J,async setLanguage(s){if(a=R(s),await i?.setLanguage(a),await t?.setLanguage(a),n&&!t){const l=n.getInput();l.kind==="file"||l.kind==="merge-conflict"?await n.update({...l,file:{...l.file,lang:a}}):l.kind==="diff"&&"oldFile"in l&&await n.update({...l,oldFile:{...l.oldFile,lang:a},newFile:{...l.newFile,lang:a}})}},getCurrentTheme:()=>S,getEditor:()=>le,getEditorView:()=>r??null,getDiffEditorView:()=>o??null,getDiffModels:()=>({original:D(()=>d),modified:D(()=>n?.getResolvedFile()?.contents??t?.getModified()??p)}),getCode:()=>{const s=n?.getInput();return s?.kind==="diff"||s?.kind==="patch"?{original:d,modified:n?.getResolvedFile()?.contents??p}:s?.kind==="file"||s?.kind==="merge-conflict"?s.file.contents:t?{original:t.getOriginal(),modified:t.getModified()}:i?.getText()??null},refreshDiffPresentation:()=>n?.update(n.getInput()),whenVisualReady:async()=>{const s=h,l=c,u=n??i?.getFinalizedSurface()??t?.getFinalizedSurface();return!u||!await u.whenVisualReady()?!1:ne(s,()=>l===c&&s===h&&u===(n??i?.getFinalizedSurface()??t?.getFinalizedSurface()),()=>se(n??i?.getFinalizedSurface()??t?.getFinalizedSurface()))}}}async function ne(e,i,t){if(!e||typeof window>"u")return!1;let n="",r,o=0;for(let a=0;a<120;a+=1){if(!i())return!1;const d=e.querySelector(".stream-diffs-shell"),p=d?.querySelector("diffs-container")?.shadowRoot?.querySelector("pre"),h=d?.getBoundingClientRect(),c=p?.textContent??"";if(h&&h.width>0&&h.height>0&&p&&t()){const g=`${Math.round(h.width)}:${Math.round(h.height)}:${p.scrollWidth}:${p.scrollHeight}:${c.length}`;if(o=p===r&&g===n?o+1:1,r=p,n=g,o>=2)return!0}else n="",r=void 0,o=0;await ae()}return!1}function se(e){if(!e)return!0;const i=e.getNativeInstance(),t=i?.fileRenderer??i?.hunksRenderer;if(!t)return!0;const n=t.renderCache;if(!n?.result)return!1;if(n.highlighted===!0)return!0;const r=e.getInput();if(R(r.kind==="file"||r.kind==="merge-conflict"?r.file.lang:"oldFile"in r?r.oldFile.lang??r.newFile.lang:e.getDiff()?.lang)==="text")return!0;const o=Number(t.getTokenizeMaxLength?.()??1e5);if(r.kind==="file"||r.kind==="merge-conflict")return re(r.file.contents)>o;const a=e.getDiff();return!!a&&Math.max(a.additionLines.length,a.deletionLines.length)>o}function R(e){return!e||/^(?:text|txt|plain|plaintext)$/i.test(e)?"text":e}function re(e){if(!e)return 0;let i=1;for(let t=0;t{let i=!1;const t=()=>{i||(i=!0,window.clearTimeout(r),window.cancelAnimationFrame(n),e())},n=window.requestAnimationFrame(t),r=window.setTimeout(t,50)})}function U(e){return e.themes?.length&&typeof e.themes[0]=="string"&&typeof e.themes[1]=="string"?{dark:e.themes[0],light:e.themes[1]}:e.theme??void 0}function q(e){if(!(typeof e.themes?.[0]!="string"||typeof e.themes?.[1]!="string"))return`${e.themes[0]} +${e.themes[1]}`}function F(e){const i=new Set(["MAX_HEIGHT","theme","themes","readOnly","lineNumbers","wordWrap","renderSideBySide","autoScrollOnUpdate","autoScrollThresholdPx","stream","mergeConflict","lineAnnotations","onController","workerManager","languages","onThemeChange"]),t=Object.fromEntries(Object.entries(e).filter(([a])=>!i.has(a))),n=e.diffHideUnchangedRegions;delete t.diffHideUnchangedRegions;const r=typeof n=="object"&&n?n:void 0,o=r?.enabled!==!1;if(n===!1||r&&!o)t.expandUnchanged??=!0;else if((n===!0||r)&&(t.expandUnchanged??=!1,r)){const a=Number(r.contextLineCount);Number.isFinite(a)&&a>=0&&(t.parseDiffOptions={context:a,...t.parseDiffOptions});const d=Number(r.minimumLineCount);Number.isFinite(d)&&d>=1&&(t.collapsedContextThreshold??=Math.max(0,Math.floor(d)-1))}return t}function D(e){return{getValue:e,getLineCount:()=>e().split(` +`).length}}function B(e){const i=e?.getInput();return i?.kind==="file"||i?.kind==="merge-conflict"?i.file.contents:void 0}function C(e,i,t=()=>{},n){const r=()=>Number.parseFloat(i.style.fontSize)||14;return{getModel:()=>D(e),getContentHeight:()=>i.querySelector(".stream-diffs-shell")?.scrollHeight??i.scrollHeight,layout:()=>{},getOption(o){if(o===A.fontInfo)return{fontSize:r()};if(o===A.lineHeight)return Number.parseFloat(i.style.lineHeight)||Math.round(r()*1.5)},updateOptions(o){N(i,o)},onDidContentSizeChange:o=>n?.(o)??{dispose(){}},onDidLayoutChange:o=>n?.(o)??{dispose(){}},setSelectedLines:o=>t()?.setSelectedLines(o),setAnnotations:o=>t()?.setAnnotations(o),acceptReject:(o,a)=>t()?.acceptReject(o,a),resolveConflict:(o,a)=>t()?.resolveConflict(o,a)}}function oe(e,i,t,n){return{...C(i,t,n,r=>n()?.onDidRender(r)??{dispose(){}}),getOriginalEditor:()=>C(e,t,n,r=>n()?.onDidRender(r)??{dispose(){}}),getModifiedEditor:()=>C(i,t,n,r=>n()?.onDidRender(r)??{dispose(){}}),getLineChanges:()=>n()?.getDiff()?.hunks.map(r=>({originalStartLineNumber:r.deletionStart,originalEndLineNumber:r.deletionStart+r.deletionCount-1,modifiedStartLineNumber:r.additionStart,modifiedEndLineNumber:r.additionStart+r.additionCount-1}))??[],onDidUpdateDiff:r=>n()?.onDidRender(r)??{dispose(){}}}}const A={fontInfo:0,lineHeight:1},le={EditorOption:A};function N(e,i){const{style:t}=e;typeof i.fontSize=="number"&&(t.fontSize=`${i.fontSize}px`,t.setProperty("--diffs-font-size",`${i.fontSize}px`)),typeof i.lineHeight=="number"&&(t.lineHeight=`${i.lineHeight}px`,t.setProperty("--diffs-line-height",`${i.lineHeight}px`)),typeof i.fontFamily=="string"&&(t.fontFamily=i.fontFamily,t.setProperty("--diffs-font-family",i.fontFamily))}async function ce(){}function pe(e){return/^\s*i.map(i=>d[i]); +import{bR as c}from"./index-DIfcwXP7.js";var Dt=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Wi=Object.getOwnPropertyNames,zi=Object.prototype.hasOwnProperty,qi=(e,t)=>{let n={};for(var r in e)Dt(n,r,{get:e[r],enumerable:!0});return Dt(n,Symbol.toStringTag,{value:"Module"}),n},Xi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Wi(t),o=0,s=i.length,a;ot[l]).bind(null,a),enumerable:!(r=Hi(t,a))||r.enumerable});return e},Ki=(e,t,n)=>(Xi(e,t,"default"),n);const Yt=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>c(()=>import("./actionscript-3-B3316cI-.js"),[]))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>c(()=>import("./ahk-CsyLZFj1.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>c(()=>import("./ahk2-8Zs4aa1G.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./apex-DhZFqWV2.js"),[]))},{id:"apl",name:"APL",import:(()=>c(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./asciidoc-CSVQ5wI8.js"),[]))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>c(()=>import("./bat-CickPsom.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>c(()=>import("./bird2-Bx8U0n9b.js"),[]))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./blade-2xfisSek.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>c(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>c(()=>import("./c3-Dp5svz6Z.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>c(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./clarity-Dn5IMItf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Rocq",import:(()=>c(()=>import("./coq-C7JzOVbR.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./crystal-DGywbUpC.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./csharp-DSvCPggb.js"),[]))},{id:"css",name:"CSS",import:(()=>c(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>c(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./emacs-lisp-C_m_b--Z.js"),[]))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./erb-DXfck5VN.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./gdscript-DqcFQ5yU.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>c(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>c(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./hack-BWmVpMyf.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./haxe-CfZj7gIn.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>c(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>c(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>c(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./julia-5Bft2YPA.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>c(()=>import("./just-Cwhn7H3k.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39])))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./latex-D5pSuvFb.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>c(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./llvm-BZoOZj88.js"),[]))},{id:"log",name:"Log file",import:(()=>c(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./luau-BnpPk5vE.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./mdc-D1_yUvq7.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mermaid-CQcHuHx7.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./mojo-DJz3ZmWd.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./moonbit-CHtswR0a.js"),[]))},{id:"move",name:"Move",import:(()=>c(()=>import("./move-el3G9tDJ.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>c(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>c(()=>import("./nsis-BlV79W_Q.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./nushell-D3jzshHO.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"org",name:"Org Markup",import:(()=>c(()=>import("./org-DM6o9KBp.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67])))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./perl-B9cMNwum.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>c(()=>import("./php-Csjmro_R.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>c(()=>import("./powershell-BmBUJMz7.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./prisma-Vru482bI.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>c(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>c(()=>import("./r-Cf5RLm7j.js"),[]))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./razor-BjBPvh-w.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>c(()=>import("./rbs-CpoqiR4B.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>c(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./rst-bs7f0vWN.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./ruby-C0TQ7zu5.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./sas-DEy46yEz.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./scala-CqE71os6.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>c(()=>import("./smalltalk-BOQMe2GC.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>c(()=>import("./smithy-cds9vsN8.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./solidity-DijEV5ha.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./sql-CRqJ_cUM.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./stata-DI20mbqo.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./swift-C2oV4EkX.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./system-verilog-0hqHdDBg.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./ts-tags-D351s5mN.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./twig-27uCiNez.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./typst-BUadGCkm.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80])))},{id:"v",name:"V",import:(()=>c(()=>import("./v-BGw2Nkan.js"),[]))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>c(()=>import("./vb-Cu-pLBUe.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./verilog-nZwndyjY.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./vue-BqiEGhQt.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>c(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>c(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./zig-VOosw3JB.js"),[]))}],cr=Object.fromEntries(Yt.map(e=>[e.id,e.import])),dr=Object.fromEntries(Yt.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),pr={...cr,...dr},hr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>c(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./kanagawa-lotus-C3DzagqV.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./kanagawa-wave-DFGoQZhC.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./monokai-BRVnQi9A.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./red-hvxz__6c.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./rose-pine-5qJOZa0Y.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./rose-pine-moon-C9pEdX9L.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./solarized-dark-CpvCGNkr.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./solarized-light-Dlz6yCKv.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./vesper-DRje8inN.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],fr=Object.fromEntries(hr.map(e=>[e.id,e.import]));var Zt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Qi(){return 2147483648}function Ji(){return typeof performance<"u"?performance.now():Date.now()}const Yi=(e,t)=>e+(t-e%t)%t;async function Zi(e){let t,n;const r={};function i(h){n=h,r.HEAPU8=new Uint8Array(h),r.HEAPU32=new Uint32Array(h)}function o(h,m,E){r.HEAPU8.copyWithin(h,m,m+E)}function s(h){try{return t.grow(h-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function a(h){const m=r.HEAPU8.length;h=h>>>0;const E=Qi();if(h>E)return!1;for(let b=1;b<=4;b*=2){let g=m*(1+.2/b);g=Math.min(g,h+100663296);const _=Math.min(E,Yi(Math.max(h,g),65536));if(s(_))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,m,E=1024){const b=m+E;let g=m;for(;h[g]&&!(g>=b);)++g;if(g-m>16&&h.buffer&&l)return l.decode(h.subarray(m,g));let _="";for(;m>10,56320|I&1023)}}return _}function p(h,m){return h?u(r.HEAPU8,h,m):""}const d={emscripten_get_now:Ji,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function f(){const m=await e({env:d,wasi_snapshot_preview1:d});t=m.memory,i(t.buffer),Object.assign(r,m),r.UTF8ToString=p}return await f(),r}var eo=Object.defineProperty,to=(e,t,n)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>to(e,typeof t!="symbol"?t+"":t,n);let D=null;function no(e){throw new Zt(e.UTF8ToString(e.getLastOnigError()))}class st{constructor(t){P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16Value"),P(this,"utf8Value"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16");const n=t.length,r=st._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let u=0;u=55296&&p<=56319&&u+1=56320&&h<=57343&&(d=(p-55296<<10)+65536|h-56320,f=!0)}i&&(o[u]=l,f&&(o[u+1]=l),d<=127?s[l+0]=u:d<=2047?(s[l+0]=u,s[l+1]=u):d<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),d<=127?a[l++]=d:d<=2047?(a[l++]=192|(d&1984)>>>6,a[l++]=128|(d&63)>>>0):d<=65535?(a[l++]=224|(d&61440)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0):(a[l++]=240|(d&1835008)>>>18,a[l++]=128|(d&258048)>>>12,a[l++]=128|(d&4032)>>>6,a[l++]=128|(d&63)>>>0),f&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r=55296&&o<=56319&&r+1=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,a&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const at=class X{constructor(t){if(P(this,"id",++X.LAST_ID),P(this,"_onigBinding"),P(this,"content"),P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16"),P(this,"ptr"),!D)throw new Zt("Must invoke loadWasm first.");this._onigBinding=D,this.content=t;const n=new st(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!X._sharedPtrInUse?(X._sharedPtr||(X._sharedPtr=D.omalloc(1e4)),X._sharedPtrInUse=!0,D.HEAPU8.set(n.utf8Value,X._sharedPtr),this.ptr=X._sharedPtr):this.ptr=n.createString(D)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===X._sharedPtr?X._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};P(at,"LAST_ID",0);P(at,"_sharedPtr",0);P(at,"_sharedPtrInUse",!1);let mr=at;class ro{constructor(t){if(P(this,"_onigBinding"),P(this,"_ptr"),!D)throw new Zt("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=t.length;a{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),io(r)?r=await r.instantiator(n):oo(r)?r=await r.default(n):(so(r)&&(r=r.data),ao(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await uo(r)(n):r=await co(r)(n):lo(r)?r=await Et(r)(n):r instanceof WebAssembly.Module?r=await Et(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Et(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Ue=t(),Ue}function Et(e){return t=>WebAssembly.instantiate(e,t)}function uo(e){return t=>WebAssembly.instantiateStreaming(e,t)}function co(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let gr;function po(e){gr=e}function ho(){return gr}async function _r(e){return e&&await en(e),{createScanner(t){return new ro(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new mr(t)}}}const fo=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:_r,getDefaultWasmLoader:ho,loadWasm:en,setDefaultWasmLoader:po},Symbol.toStringTag,{value:"Module"}));var yr=qi({});Ki(yr,fo);var S=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function mo(e){return tn(e)}function tn(e){return Array.isArray(e)?go(e):e instanceof RegExp?e:typeof e=="object"?_o(e):e}function go(e){let t=[];for(let n=0,r=e.length;n{for(let r in n)e[r]=n[r]}),e}function br(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?br(e.substring(0,e.length-1)):e.substr(~t+1)}var bt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fe=class{static hasCaptures(e){return e===null?!1:(bt.lastIndex=0,bt.test(e))}static replaceCaptures(e,t,n){return e.replace(bt,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function wr(e,t){return et?1:0}function vr(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;ithis._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>yo(e.parent,i.parentScopes));return r?new kr(r.fontStyle,r.foreground,r.background):null}},wt=class Xe{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Xe(t,r);return t}static from(...t){let n=null;for(let r=0;r"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Eo(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Eo(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var kr=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function bo(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,o=t.length;i1&&(b=m.slice(0,m.length-1),b.reverse()),n[r++]=new wo(E,b,i,l,u,p)}}return n}var wo=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},$=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))($||{});function vo(e,t){e.sort((l,u)=>{let p=wr(l.scope,u.scope);return p!==0||(p=vr(l.parentScopes,u.parentScopes),p!==0)?p:l.index-u.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new Co(t),s=new kr(n,o.getId(r),o.getId(i)),a=new ko(new Nt(0,null,-1,0,0),[]);for(let l=0,u=e.length;lt?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},ko=class Vt{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-t.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,o;if(r===-1?(i=t,o=""):(i=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Vt._cmpBySpecificity),n}insert(t,n,r,i,o,s){if(n===""){this._doInsertHere(t,r,i,o,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let p;this._children.hasOwnProperty(l)?p=this._children[l]:(p=new Vt(this._mainRule.clone(),Nt.cloneArr(this._rulesWithParentScopes)),this._children[l]=p),p.insert(t+1,u,r,i,o,s)}_doInsertHere(t,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(t,r,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,o,s,a){let l=U.getLanguageId(t),u=U.getTokenType(t),p=U.containsBalancedBrackets(t)?1:0,d=U.getFontStyle(t),f=U.getForeground(t),h=U.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),i!==null&&(p=i?1:0),o!==-1&&(d=o),s!==0&&(f=s),a!==0&&(h=a),(l<<0|u<<8|p<<10|d<<11|f<<15|h<<24)>>>0}};function Ye(e,t){const n=[],r=So(e);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=s();if(n.push({matcher:u,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(vn(i)){const l=[];do l.push(i),i=r.next();while(vn(i));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return p=>l.every(d=>d(p))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=s()}return p=>l.some(d=>d(p))}}function vn(e){return!!e&&!!e.match(/[\w\.:]+/)}function So(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Lr(e){typeof e.dispose=="function"&&e.dispose()}var Se=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Lo=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ro=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Io=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Se(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Ro;for(const n of e)To(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Se){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function To(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Se?Ke({baseGrammar:o,selfGrammar:i},r):$t(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new Se(a))}function $t(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ze([r],t,n)}}function Ke(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ze(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ze(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ze(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Er({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ze(r.patterns,{...t,repository:i},n);const o=r.include;if(!o)continue;const s=Rr(o);switch(s.kind){case 0:Ke({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ke(t,n);break;case 2:$t(s.ruleName,{...t,repository:i},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?$t(s.ruleName,l,n):Ke(l,n)}else s.kind===4?n.add(new Lo(s.scopeName,s.ruleName)):n.add(new Se(s.scopeName));break}}}var Po=class{kind=0},Oo=class{kind=1},xo=class{constructor(e){this.ruleName=e}kind=2},Do=class{constructor(e){this.scopeName=e}kind=3},No=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Rr(e){if(e==="$base")return new Po;if(e==="$self")return new Oo;const t=e.indexOf("#");if(t===-1)return new Do(e);if(t===0)return new xo(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new No(n,r)}}var Vo=/\\(\d+)/,Cn=/\\(\d+)/g,$o=-1,Ir=-2;var Ne=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Fe.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Fe.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${br(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Fe.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fe.replaceCaptures(this._contentName,e,t)}},Mo=class extends Ne{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Go=class extends Ne{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Le(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Re,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},An=class extends Ne{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Re,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Mt=class extends Ne{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,o,s,a,l,u){super(e,t,n,r),this._begin=new Le(i,this.id),this.beginCaptures=o,this._end=new Le(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Re;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},et=class extends Ne{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,o,s,a,l){super(e,t,n,r),this._begin=new Le(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Le(s,Ir),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Re;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Re,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Tr=class V{static createCaptureRule(t,n,r,i,o){return t.registerRule(s=>new Mo(n,s,r,i,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Go(t.$vscodeTextmateLocation,t.id,t.name,t.match,V._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Er({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new An(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,V._compilePatterns(o,n,r))}return t.while?new et(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,V._compileCaptures(t.whileCaptures||t.captures,n,r),V._compilePatterns(t.patterns,n,r)):new Mt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,V._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,V._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=V.getCompiledRuleId(t[s],n,r)),i[a]=V.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,s=t.length;ot.substring(i.start,i.end));return Cn.lastIndex=0,this.source.replace(Cn,(i,o)=>Cr(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],o,s,a,l;for(o=0,s=this.source.length;on.source);this._cached=new kn(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new kn(e,r,this._items.map(i=>i.ruleId))}},kn=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new vt(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Gt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Uo=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Cr(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Sn=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Or(e,t,n,r,i,o,s,a){const l=t.content.length;let u=!1,p=-1;if(s){const h=Fo(e,t,n,r,i,o);i=h.stack,r=h.linePos,n=h.isFirstLine,p=h.anchorPosition}const d=Date.now();for(;!u;){if(a!==0&&Date.now()-d>a)return new Sn(i,!0);f()}return new Sn(i,!1);function f(){const h=jo(e,t,n,r,i,p);if(!h){o.produce(i,l),u=!0;return}const m=h.captureIndices,E=h.matchedRuleId,b=m&&m.length>0?m[0].end>r:!1;if(E===$o){const g=i.getRule(e);o.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ce(e,t,n,i,o,g.endCaptures,m),o.produce(i,m[0].end);const _=i;if(i=i.parent,p=_.getAnchorPos(),!b&&_.getEnterPos()===r){i=_,o.produce(i,l),u=!0;return}}else{const g=e.getRule(E);o.produce(i,m[0].start);const _=i,w=g.getName(t.content,m),A=i.contentNameScopesList.pushAttributed(w,e);if(i=i.push(E,r,p,m[0].end===l,null,A,A),g instanceof Mt){const k=g;Ce(e,t,n,i,o,k.beginCaptures,m),o.produce(i,m[0].end),p=m[0].end;const I=k.getContentName(t.content,m),M=A.pushAttributed(I,e);if(i=i.withContentNameScopesList(M),k.endHasBackReferences&&(i=i.withEndRule(k.getEndWithResolvedBackReferences(t.content,m))),!b&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(g instanceof et){const k=g;Ce(e,t,n,i,o,k.beginCaptures,m),o.produce(i,m[0].end),p=m[0].end;const I=k.getContentName(t.content,m),M=A.pushAttributed(I,e);if(i=i.withContentNameScopesList(M),k.whileHasBackReferences&&(i=i.withEndRule(k.getWhileWithResolvedBackReferences(t.content,m))),!b&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Ce(e,t,n,i,o,g.captures,m),o.produce(i,m[0].end),i=i.pop(),!b){i=i.safePop(),o.produce(i,l),u=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function Fo(e,t,n,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof et&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:p}=zo(l.rule,e,l.stack.endRule,n,r===s),d=u.findNextMatchSync(t,r,p);if(d){if(d.ruleId!==Ir){i=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),Ce(e,t,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}function jo(e,t,n,r,i,o){const s=Ho(e,t,n,r,i,o),a=e.getInjections();if(a.length===0)return s;const l=Wo(a,e,t,n,r,i,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,p=l.captureIndices[0].start;return p=a)&&(a=w,l=_.captureIndices,u=_.ruleId,p=m.priority,a===i))break}return l?{priorityMatch:p===-1,captureIndices:l,matchedRuleId:u}:null}function xr(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function zo(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Ce(e,t,n,r,i,o,s){if(o.length===0)return;const a=t.content,l=Math.min(o.length,s.length),u=[],p=s[0].end;for(let d=0;dp)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),f.retokenizeCapturedWithRuleId){const E=f.getName(a,s),b=r.contentNameScopesList.pushAttributed(E,e),g=f.getContentName(a,s),_=b.pushAttributed(g,e),w=r.push(f.retokenizeCapturedWithRuleId,h.start,-1,!1,null,b,_),A=e.createOnigString(a.substring(0,h.end));Or(e,A,n&&h.start===0,h.start,w,i,!1,0),Lr(A);continue}const m=f.getName(a,s);if(m!==null){const b=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);u.push(new qo(b,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var qo=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Xo(e,t,n,r,i,o,s,a){return new Qo(e,t,n,r,i,o,s,a)}function Ln(e,t,n,r,i){const o=Ye(t,tt),s=Tr.getCompiledRuleId(n,r,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function tt(e,t){if(t.length{for(let i=n;in&&e.substr(0,n)===t&&e[n]==="."}var Qo=class{constructor(e,t,n,r,i,o,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Bo(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Rn(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=Ye(l,tt);for(const p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let s in i)Ln(t,s,i[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&Ln(t,l,a,this,a)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Rn(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Tr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Bt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),d=le.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),f=this.getRule(this._rootId).getName(null,null);let h;f?h=Ae.createRootAndLookUpScopeName(f,d,this):h=Ae.createRoot("unknown",d),t=new Bt(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,t.reset();e=e+` +`;const o=this.createOnigString(e),s=o.content.length,a=new Yo(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Or(this,o,i,0,t,a,!0,r);return Lr(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Rn(e,t){return e=mo(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ae=class K{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const o of n)i=wt.push(i,o.scopeNames),r=new K(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new K(null,new wt(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new wt(null,t),s=r.themeProvider.themeMatch(o),a=K.mergeAttributes(n,i,s);return new K(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return K.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),le.set(t,n.languageId,n.tokenType,null,i,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return K._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=K._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=K.mergeAttributes(t.tokenAttributes,i,s);return new K(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Bt=class ie{constructor(t,n,r,i,o,s,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new ie(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ie._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ae.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ie._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,s,a){return new ie(this,t,n,r,i,o,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ie(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Ae.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ie(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ae.fromExtension(r,n.contentNameScopesList))}},Jo=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ye(n,tt).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Ye(n,tt).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Yo=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(r=le.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=le.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,o)}},Ut=Bt.NULL;function Ie(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function ee(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Dr(e){return Array.isArray(e)?e:[e]}async function nn(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ve(e){return!e||["plaintext","txt","text","plain"].includes(e)}function rn(e){return e==="ansi"||Ve(e)}function $e(e){return e==="none"}function on(e){return $e(e)}const ts=/(\r?\n)/g;function Me(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(ts);let r=0;const i=[];for(let o=0;o!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?In.light:In.dark),n||(n=t.type==="light"?Tn.light:Tn.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function s(a){if(o.has(a))return o.get(a);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const p={...a,settings:{...a.settings}};if(l){const d=s(a.settings.foreground);t.colorReplacements[d]=a.settings.foreground,p.settings.foreground=d}if(u){const d=s(a.settings.background);t.colorReplacements[d]=a.settings.background,p.settings.background=d}return p});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=s(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,Pn,{enumerable:!1,writable:!1,value:!0}),t}async function Nr(e){return[...new Set((await Promise.all(e.filter(t=>!rn(t)).map(async t=>await nn(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Vr(e){return(await Promise.all(e.map(async t=>on(t)?null:lt(await nn(t))))).filter(t=>!!t)}function $r(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new S(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var ns=class extends es{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=lt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Je.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=$r(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(i=>{this._alias[i]=e.name}),this._loadedLanguagesCache=null,t.size)for(const i of t)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=[...this._langGraph.entries()],n=t.filter(([r,i])=>!i);if(n.length){const r=t.filter(([i,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(s=>n.map(([a])=>a).includes(s)):!1).filter(i=>!n.includes(i));throw new S(`Missing languages ${n.map(([i])=>`\`${i}\``).join(", ")}, required by ${r.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[r,i]of t)this._resolver.addLanguage(i);for(const[r,i]of t)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const n of t)this._langGraph.set(n,this._langMap.get(n))}},rs=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const i=t.slice(0,r).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let ve=0;function ut(e){ve+=1,e.warnings!==!1&&ve>=10&&ve%10===0&&console.warn(`[Shiki] ${ve} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new S("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(lt),i=new ns(new rs(e.engine,n),r,n,e.langAlias);let o;function s(_){return $r(_,e.langAlias)}function a(_){b();const w=i.getGrammar(typeof _=="string"?_:_.name);if(!w)throw new S(`Language \`${_}\` not found, you may need to load it first`);return w}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const w=i.getTheme(_);if(!w)throw new S(`Theme \`${_}\` not found, you may need to load it first`);return w}function u(_){b();const w=l(_);return o!==_&&(i.setTheme(w),o=_),{theme:w,colorMap:i.getColorMap()}}function p(){return b(),i.getLoadedThemes()}function d(){return b(),i.getLoadedLanguages()}function f(..._){b(),i.loadLanguages(_.flat(1))}async function h(..._){return f(await Nr(_))}function m(..._){b();for(const w of _.flat(1))i.loadTheme(w)}async function E(..._){return b(),m(await Vr(_))}function b(){if(t)throw new S("Shiki instance has been disposed")}function g(){t||(t=!0,i.dispose(),ve-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:p,getLoadedLanguages:d,resolveLangAlias:s,loadLanguage:h,loadLanguageSync:f,loadTheme:E,loadThemeSync:m,dispose:g,[Symbol.dispose]:g}}const is=ut;async function sn(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Vr(e.themes||[]),Nr(e.langs||[]),e.engine]);return ut({...e,themes:t,langs:n,engine:r})}const os=sn,Mr=new WeakMap;function ct(e,t){Mr.set(e,t)}function Te(e){return Mr.get(e)}var dt=class Gr{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Gr(Object.fromEntries(Dr(n).map(r=>[r,Ut])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return ss(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function ss(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&r(i.parent)}return r(e),t}function as(e,t){if(!(e instanceof dt))throw new S("Invalid grammar state");return e.getInternalStack(t)}const ls=/,/,us=/ /;function Br(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(Ve(e.resolveLangAlias(n.lang||"text"))||$e(r))return Me(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:o}=e.setTheme(r),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new S(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(i.name))throw new S(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Fr(t,s,i,o,n)}function Ur(...e){if(e.length===2)return Te(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(Ve(i)||$e(o))throw new S("Plain language does not have grammar state");if(i==="ansi")throw new S("ANSI language does not have grammar state");const{theme:s,colorMap:a}=t.setTheme(o),l=t.getLanguage(i);return new dt(an(n,l,s,a,r).stateStack,l.name,s.name)}function Fr(e,t,n,r,i){const o=an(e,t,n,r,i),s=new dt(o.stateStack,t.name,n.name);return ct(o.tokens,s),o.tokens}function an(e,t,n,r,i){const o=Ie(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=i,u=Me(e);let p=i.grammarState?as(i.grammarState,n.name)??Ut:i.grammarContextCode!=null?an(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ut,d=[];const f=[];for(let h=0,m=u.length;h0&&E.length>=s){d=[],f.push([{content:E,offset:b,color:"",fontStyle:0}]);continue}let g,_,w;l&&l!=="tokenType"&&(g=t.tokenizeLine(E,p,a),_=g.tokens,w=0);const A=t.tokenizeLine2(E,p,a),k=A.tokens.length/2;for(let I=0;Iyt.trim());break;case"object":pe=Q.scope;break;default:continue}En.push({settings:Q,selectors:pe.map(yt=>yt.split(us))})}q.explanation=[];let bn=0;for(;M+bn({scopeName:t}))}function ds(e,t){const n=[];for(let r=0,i=t.length;r=0&&i>=0;)On(e[r],n[i])&&(r-=1),i-=1;return r===-1}function hs(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const s of i)if(ps(s,t,n)){r.push(o);break}return r}function ln(e,t,n,r=Br){const i=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=i.map(u=>{const p=r(e,t,{...n,theme:u.theme});return{tokens:p,state:Te(p),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=fs(...o.map(u=>u.tokens)),a=s[0].map((u,p)=>u.map((d,f)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=d.explanation),s.forEach((m,E)=>{const{content:b,explanation:g,offset:_,...w}=m[p][f];h.variants[i[E].color]=w}),h})),l=o[0].state?new dt(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&ct(a,l),a}function fs(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;rl[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const s=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u4&&n.slice(0,4)==="data"&&bs.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Dn,Cs);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Dn.test(o)){let s=o.replace(Es,vs);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=un}return new i(r,t)}function vs(e){return"-"+e.toLowerCase()}function Cs(e){return e.charAt(1).toUpperCase()}const As=jr([Hr,_s,qr,Xr,Kr],"html"),Qr=jr([Hr,ys,qr,Xr,Kr],"svg"),Nn={}.hasOwnProperty;function ks(e,t){const n=t||{};function r(i,...o){let s=r.invalid;const a=r.handlers;if(i&&Nn.call(i,e)){const l=String(i[e]);s=Nn.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Ss=/["&'<>`]/g,Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rs=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Is=/[|\\{}()[\]^$+*?.]/g,Vn=new WeakMap;function Ts(e,t){if(e=e.replace(t.subset?Ps(t.subset):Ss,r),t.subset||t.escapeOnly)return e;return e.replace(Ls,n).replace(Rs,r);function n(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function Ps(e){let t=Vn.get(e);return t||(t=Os(e),Vn.set(e,t)),t}function Os(e){const t=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ms=["cent","copy","divide","gt","lt","not","para","times"],Jr={}.hasOwnProperty,Wt={};let je;for(je in At)Jr.call(At,je)&&(Wt[At[je]]=je);const Gs=/[^\dA-Za-z]/;function Bs(e,t,n,r){const i=String.fromCharCode(e);if(Jr.call(Wt,i)){const o=Wt[i],s="&"+o;return n&&$s.includes(o)&&!Ms.includes(o)&&(!r||t&&t!==61&&Gs.test(String.fromCharCode(t)))?s:s+";"}return""}function Us(e,t,n){let r=Ds(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Bs(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=Vs(e,t,n.omitOptionalSemicolons);o.length|^->||--!>|"],Hs=["<",">"];function Ws(e,t,n,r){return r.settings.bogusComments?"":"";function i(o){return ye(o,Object.assign({},r.settings.characterReferences,{subset:Hs}))}}function zs(e,t,n,r){return""}function $n(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function qs(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Xs(e){return e.join(" ").trim()}const Ks=/[ \t\n\f\r]/g;function cn(e){return typeof e=="object"?e.type==="text"?Mn(e.value):!1:Mn(e)}function Mn(e){return e.replace(Ks,"")===""}const x=Zr(1),Yr=Zr(-1),Qs=[];function Zr(e){return t;function t(n,r,i){const o=n?n.children:Qs;let s=(r||0)+e,a=o[s];if(!i)for(;a&&cn(a);)s+=e,a=o[s];return a}}const Js={}.hasOwnProperty;function ei(e){return t;function t(n,r,i){return Js.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const dn=ei({body:Zs,caption:kt,colgroup:kt,dd:ra,dt:na,head:kt,html:Ys,li:ta,optgroup:ia,option:oa,p:ea,rp:Gn,rt:Gn,tbody:aa,td:Bn,tfoot:la,th:Bn,thead:sa,tr:ua});function kt(e,t,n){const r=x(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&cn(r.value.charAt(0)))}function Ys(e,t,n){const r=x(n,t);return!r||r.type!=="comment"}function Zs(e,t,n){const r=x(n,t);return!r||r.type!=="comment"}function ea(e,t,n){const r=x(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function ta(e,t,n){const r=x(n,t);return!r||r.type==="element"&&r.tagName==="li"}function na(e,t,n){const r=x(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ra(e,t,n){const r=x(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Gn(e,t,n){const r=x(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function ia(e,t,n){const r=x(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function oa(e,t,n){const r=x(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function sa(e,t,n){const r=x(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function aa(e,t,n){const r=x(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function la(e,t,n){return!x(n,t)}function ua(e,t,n){const r=x(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Bn(e,t,n){const r=x(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const ca=ei({body:ha,colgroup:fa,head:pa,html:da,tbody:ma});function da(e){const t=x(e,-1);return!t||t.type!=="comment"}function pa(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function ha(e){const t=x(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&cn(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function fa(e,t,n){const r=Yr(n,t),i=x(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&dn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function ma(e,t,n){const r=Yr(n,t),i=x(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&dn(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const He={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ga(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=Qr);const u=_a(r,e.properties),p=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,p&&(s=!1),(u||!o||!ca(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(p),!s&&(!o||!dn(e,t,n))&&a.push(""),a.join("")}function _a(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=ya(e,i,t[i]);o&&n.push(o)}}for(;++r$n(n,e.alternative)&&(s=e.alternative),a=s+ye(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?He.single:He.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}const Ea=["<","&"];function ti(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ye(e.value,Object.assign({},r.settings.characterReferences,{subset:Ea}))}function ba(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ti(e,t,n,r)}function wa(e,t,n,r){return r.all(e)}const va=ks("type",{invalid:Ca,unknown:Aa,handlers:{comment:Ws,doctype:zs,element:ga,raw:ba,root:wa,text:ti}});function Ca(e){throw new Error("Expected node, not `"+e+"`")}function Aa(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const ka={},Sa={},La=[];function Ra(e,t){const n=t||ka,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ia,all:Ta,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ms,characterReferences:n.characterReferences||Sa,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Qr:As,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Ia(e,t,n){return va(e,t,n,this)}function Ta(e){const t=[],n=e&&e.children||La;let r=-1;for(;++ri);function n(i){if(i===e.length)return{line:t.length-1,character:t.at(-1).length};let o=i,s=0;for(const a of t){if(oo&&i[o])}const Va=["color","background-color"];function ii(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n>1);e[i]<=t?n=i+1:r=i}return n}function oi(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const o=i.offset+i.content.length,s=$a(n,i.offset);let a=s;for(;aPe(e.variants[p])),a=new Set(s.flatMap(p=>Object.keys(p))),l={},u=(p,d)=>{const f=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+t[p]+(d==="color"?"":f)};return s.forEach((p,d)=>{for(const f of a){const h=p[f]||"inherit";if(d===0&&r&&Va.includes(f))if(r==="light-dark()"&&s.length>1){const m=t.findIndex(_=>_==="light"),E=t.findIndex(_=>_==="dark");if(m===-1||E===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=s[m][f]||"inherit",g=s[E][f]||"inherit";l[f]=`light-dark(${b}, ${g})`,i==="css-vars"&&(l[u(d,f)]=h)}else l[f]=h;else i==="css-vars"&&(l[u(d,f)]=h)}}),o.htmlStyle=l,o}function Pe(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&$.Italic&&(t["font-style"]="italic"),e.fontStyle&$.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&$.Underline&&n.push("underline"),e.fontStyle&$.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function nt(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function ai(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new S(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...r.indexToPos(s),offset:s}}else{const a=r.lines[s.line];if(a===void 0)throw new S(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${r.lines.length}`);let l=s.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new S(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:l,offset:r.posToIndex(s.line,l)}}};const r=ni(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));Ma(o),e.set(n.meta,{decorations:o,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return oi(n,t(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=[...n.children].filter(p=>p.type==="element"&&p.tagName==="span");if(i.length!==r.converter.lines.length)throw new S(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,d,f,h){const m=i[p];let E="",b=-1,g=-1;if(d===0&&(b=0),f===0&&(g=0),f===Number.POSITIVE_INFINITY&&(g=m.children.length),b===-1||g===-1)for(let w=0;wE);return p.tagName=d.tagName||"span",p.properties={...p.properties,...h,class:p.properties.class},d.properties?.class&&pn(p,d.properties.class),p=m(p,f)||p,p}const l=[],u=r.decorations.sort((p,d)=>d.start.offset-p.start.offset||p.end.offset-d.end.offset);for(const p of u){const{start:d,end:f}=p;if(d.line===f.line)o(d.line,d.character,f.character,p);else if(d.lines(h,p));o(f.line,0,f.character,p)}}l.forEach(p=>p())}}}function Ma(e){for(let t=0;tn.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;rNumber.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Fa(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)St[r]&&t.push({type:"setDecoration",value:St[r]});else if(r<=29){const i=St[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:se[r-30]}});else if(r===38){const i=Fn(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:se[r-40]}});else if(r===48){const i=Fn(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:se[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:se[r-100+8]}})}return t}function ja(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const s=Ua(r,o),a=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(a.length>0&&i.push({value:a,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const l=Fa(s.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=s.position}while(oMath.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let u=0;u{const l=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,e.colors?.[l]||Xa[a]]}))),s=ja();return i.map(a=>s.parse(a[0]).map(l=>{let u,p;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,p=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,p=l.background?o.value(l.background):void 0),u=ee(u,r),p=ee(p,r),l.decorations.has("dim")&&(u=Ka(u));let d=$.None;return l.decorations.has("bold")&&(d|=$.Bold),l.decorations.has("italic")&&(d|=$.Italic),l.decorations.has("underline")&&(d|=$.Underline),l.decorations.has("strikethrough")&&(d|=$.Strikethrough),{content:l.value,offset:a[1],color:u,bgColor:p,fontStyle:d}}))}function Ka(e){const t=e.match(za);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],o=r[1],s=r[2],a=r[3];return`#${i}${i}${o}${o}${s}${s}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const i=r[0],o=r[1],s=r[2];return`#${i}${i}${o}${o}${s}${s}80`}}}const n=e.match(qa);return n?`var(${n[1]}-dim)`:e}function it(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!Ve(r)&&!$e(i)&&r==="ansi"){const{theme:o}=e.setTheme(i);return ui(o,t,n)}return Br(e,t,n)}function Oe(e,t,n){let r,i,o,s,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:p="--shiki-",colorsRendering:d="css-vars"}=n,f=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,_)=>g.color===u?-1:_.color===u?1:0);if(f.length===0)throw new S("`themes` option must not be empty");const h=ln(e,t,n,it);if(l=Te(h),u&&u!=="light-dark()"&&!f.some(g=>g.color===u))throw new S(`\`themes\` option must contain the defaultColor key \`${u}\``);const m=f.map(g=>e.getTheme(g.theme)),E=f.map(g=>g.color);o=h.map(g=>g.map(_=>si(_,E,p,u,d))),l&&ct(o,l);const b=f.map(g=>Ie(g.theme,n));i=jn(f,m,b,p,u,"fg",d),r=jn(f,m,b,p,u,"bg",d),s=`shiki-themes ${m.map(g=>g.name).join(" ")}`,a=u?void 0:[i,r].join(";")}else if("theme"in n){const u=Ie(n.theme,n);o=it(e,t,n);const p=e.getTheme(n.theme);r=ee(p.bg,u),i=ee(p.fg,u),s=p.name,l=Te(o)}else throw new S("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:a,grammarState:l}}function jn(e,t,n,r,i,o,s){return e.map((a,l)=>{const u=ee(t[l][o],n[l])||"inherit",p=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i==="light-dark()"&&e.length>1){const d=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(d===-1||f===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ee(t[d][o],n[d])||"inherit"}, ${ee(t[f][o],n[f])||"inherit"});${p}`}return u}return s==="css-vars"?p:null}).filter(a=>!!a).join(";")}const ci=/^\s+$/,Qa=/^(\s*)(.*?)(\s*)$/;function xe(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>xe(e,i,o),codeToTokens:(i,o)=>Oe(e,i,o)}){let i=t;for(const m of rt(n))i=m.preprocess?.call(r,i,n)||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:u,grammarState:p}=Oe(e,i,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?o=Ja(o):d==="never"&&(o=Ya(o)),f&&(o=Za(o));const h={...r,get source(){return i}};for(const m of rt(n))o=m.tokens?.call(h,o)||o;return di(o,{...n,fg:s,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},h,p)}function di(e,t,n,r=Te(e)){const i=rt(t),o=[],s={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[E,b]of Object.entries(t.meta||{}))E.startsWith("_")||(u[E]=b);let p={type:"element",tagName:"pre",properties:u,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:a,addClassToHast:pn,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return p},get code(){return d},get lines(){return f}};if(e.forEach((E,b)=>{b&&(a==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:` +`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const w of E){let A={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const k=nt(w.htmlStyle||Pe(w));k&&(A.properties.style=k);for(const I of i)A=I?.span?.call(h,A,b+1,_,g,w)||A;a==="inline"?s.children.push(A):a==="classic"&&g.children.push(A),_+=w.content.length}if(a==="classic"){for(const w of i)g=w?.line?.call(h,g,b+1)||g;f.push(g),o.push(g)}else a==="inline"&&f.push(g)}),a==="classic"){for(const E of i)d=E?.code?.call(h,d)||d;p.children.push(d);for(const E of i)p=E?.pre?.call(h,p)||p;s.children.push(p)}else if(a==="inline"){const E=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const _ of s.children)_.type==="element"&&_.tagName==="br"?(E.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&b.children.push(_);E.push(b);let g={type:"element",tagName:"code",properties:{},children:E};for(const _ of i)g=_?.code?.call(h,g)||g;s.children=[];for(let _=0;_0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const w=g.children[_];w.type==="element"&&s.children.push(...w.children)}}let m=s;for(const E of i)m=E?.root?.call(h,m)||m;return r&&ct(m,r),m}function Ja(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((o,s)=>{const a=!(o.fontStyle&&(o.fontStyle&$.Underline||o.fontStyle&$.Strikethrough));a&&ci.test(o.content)&&t[s+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(a?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function Ya(e){return e.map(t=>t.flatMap(n=>{if(ci.test(n.content))return n;const r=n.content.match(Qa);if(!r)return n;const[,i,o,s]=r;if(!i&&!s)return n;const a=[{...n,offset:n.offset+i.length,content:o}];return i&&a.unshift({content:i,offset:n.offset}),s&&a.push({content:s,offset:n.offset+i.length+o.length}),a}))}function Za(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n.at(-1),o=nt(i.htmlStyle||Pe(i)),s=nt(r.htmlStyle||Pe(r)),a=i.fontStyle&&(i.fontStyle&$.Underline||i.fontStyle&$.Strikethrough),l=r.fontStyle&&(r.fontStyle&$.Underline||r.fontStyle&$.Strikethrough);!a&&!l&&o===s?i.content+=r.content:n.push({...r})}return n})}const pi=Ra;function hi(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>xe(e,o,s),codeToTokens:(o,s)=>Oe(e,o,s)};let i=pi(xe(e,t,n,r));for(const o of rt(n))i=o.postprocess?.call(r,i,n)||i;return i}async function hn(e){const t=await sn(e);return{getLastGrammarState:(...n)=>Ur(t,...n),codeToTokensBase:(n,r)=>it(t,n,r),codeToTokensWithThemes:(n,r)=>ln(t,n,r),codeToTokens:(n,r)=>Oe(t,n,r),codeToHast:(n,r)=>xe(t,n,r),codeToHtml:(n,r)=>hi(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function el(e){const t=ut(e);return{getLastGrammarState:(...n)=>Ur(t,...n),codeToTokensBase:(n,r)=>it(t,n,r),codeToTokensWithThemes:(n,r)=>ln(t,n,r),codeToTokens:(n,r)=>Oe(t,n,r),codeToHast:(n,r)=>xe(t,n,r),codeToHtml:(n,r)=>hi(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function fi(e){let t;async function n(r){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}const tl=fi(hn);function mi(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function s(d){if(typeof d=="string"){if(d=o.langAlias?.[d]||d,rn(d))return[];const f=t[d];if(!f)throw new S(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}function a(d){if(on(d))return"none";if(typeof d=="string"){const f=n[d];if(!f)throw new S(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}const l=(o.themes??[]).map(d=>a(d)),u=(o.langs??[]).map(d=>s(d)),p=await hn({engine:o.engine??r(),...o,themes:l,langs:u});return{...p,loadLanguage(...d){return p.loadLanguage(...d.map(s))},loadTheme(...d){return p.loadTheme(...d.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function gi(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function _i(e,t){const n=gi(e);async function r(i,o){const s=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),a=await t?.guessEmbeddedLanguages?.(i,o.lang,s);return a&&await s.loadLanguage(...a),s}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}function nl(e={}){const{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,i=s=>e.variableDefaults?.[s]?`var(${n}${s}, ${e.variableDefaults[s]})`:`var(${n}${s})`,o={name:t,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return r||(o.tokenColors=o.tokenColors?.map(s=>(s.settings?.fontStyle&&delete s.settings.fontStyle,s))),o}const yi=mi({langs:pr,themes:fr,engine:()=>(0,yr.createOnigurumaEngine)(c(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:rl,codeToHast:il,codeToTokens:ol,codeToTokensBase:sl,codeToTokensWithThemes:al,getSingletonHighlighter:ll,getLastGrammarState:ul}=_i(yi,{guessEmbeddedLanguages:ri}),Hn=4294967295;var cl=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const s=r?.get(o);if(s){if(s instanceof RegExp)return s;if(n)return null;throw s}try{const a=i(o);return r?.set(o,a),a}catch(a){if(r?.set(o,a),n)return null;throw a}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,i=[];function o(s,a,l=0){return{index:s,captureIndices:a.indices.map(u=>u==null?{start:Hn,end:Hn,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let s=0;sa[1].index));for(const[a,l,u]of i)if(l.index===s)return o(a,l,u)}return null}};function be(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function dl(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const fn=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),N=String.raw;function we(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Ei=N`\[\^?`,bi=`c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${N`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${N`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${N`o\{[^\}]*\}?`}|${N`\d{1,3}`}`,mn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,We=new RegExp(N` + \\ (?: + ${bi} + | [gk]<[^>]*>? + | [gk]'[^']*'? + | . + ) + | \( (?: + \? (?: + [:=!>({] + | <[=!] + | <[^>]*> + | '[^']*' + | ~\|? + | #(?:[^)\\]|\\.?)* + | [^:)]*[:)] + )? + | \*[^\)]*\)? + )? + | (?:${mn.source})+ + | ${Ei} + | . +`.replace(/\s+/g,""),"gsu"),Lt=new RegExp(N` + \\ (?: + ${bi} + | . + ) + | \[:(?:\^?\p{Alpha}+|\^):\] + | ${Ei} + | && + | . +`.replace(/\s+/g,""),"gsu");function pl(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=Pl(n.flags),i=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(d){i.push(d)},replaceCurrentModX(d){i[i.length-1]=d},singleline:n.rules.singleline};let s=[],a;for(We.lastIndex=0;a=We.exec(e);){const d=hl(o,e,a[0],We.lastIndex);d.tokens?s.push(...d.tokens):d.token&&s.push(d.token),d.lastIndex!==void 0&&(We.lastIndex=d.lastIndex)}const l=[];let u=0;s.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++u:d.raw==="("&&l.push(d)}),u||l.forEach((d,f)=>{d.kind="capturing",d.number=f+1});const p=u||l.length;return{tokens:s.map(d=>d.type==="EscapedNumber"?xl(d,p):d).flat(),flags:r}}function hl(e,t,n,r){const[i,o]=n;if(n==="["||n==="[^"){const s=fl(t,n,r);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Wn(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Al(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:vi(n)}}if(o==="K")return{token:Ci("keep",n)};if(o==="N"||o==="R")return{token:ae("newline",n,{negate:o==="N"})};if(o==="O")return{token:ae("any",n)};if(o==="X")return{token:ae("text_segment",n)};const s=wi(n,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(o==="*")return{token:Rl(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Ll(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:me("group",n)};if(n==="(?>")return{token:me("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?")||n.startsWith("(?'")&&n.endsWith("'"))return{token:me("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:me("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:wl(n)}}if(e.getCurrentModX()){if(n==="#"){const s=t.indexOf(` +`,r);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(n)){const s=/\s+/y;return s.lastIndex=r,{lastIndex:s.exec(t)?s.lastIndex:r}}}if(n===".")return{token:ae("dot",n)};if(n==="^"||n==="$"){const s=e.singleline?{"^":N`\A`,$:N`\Z`}[n]:n;return{token:Wn(s,n)}}return n==="|"?{token:gl(n)}:mn.test(n)?{tokens:Dl(n)}:{token:Z(be(n),n)}}function fl(e,t,n){const r=[zn(t[1]==="^",t)];let i=1,o;for(Lt.lastIndex=n;o=Lt.exec(e);){const s=o[0];if(s[0]==="["&&s[1]!==":")i++,r.push(zn(s[1]==="^",s));else if(s==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Z(93,s));else if(i--,r.push(_l(s)),!i)break}else{const a=ml(s);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Lt.lastIndex||e.length}}function ml(e){if(e[0]==="\\")return wi(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?\^?)(?[a-z]+):\]/.exec(e);if(!t||!fn.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ae("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?yl(e):e==="&&"?El(e):Z(be(e),e)}function wi(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Sl(e);if("dDhHsSwW".includes(n))return Il(e);if(e.startsWith(N`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Tl(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{const r=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...i].map(s=>{const a=[...o.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return Z(be(s),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Z(Ol(e),e);if(qn.has(n))return Z(qn.get(n),e);if(/\d/.test(n))return bl(t,e);if(e==="\\")throw new Error(N`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Z(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function gl(e){return{type:"Alternator",raw:e}}function Wn(e,t){return{type:"Assertion",kind:e,raw:t}}function vi(e){return{type:"Backreference",raw:e}}function Z(e,t){return{type:"Character",value:e,raw:t}}function _l(e){return{type:"CharacterClassClose",raw:e}}function yl(e){return{type:"CharacterClassHyphen",raw:e}}function El(e){return{type:"CharacterClassIntersector",raw:e}}function zn(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ae(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Ci(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:we(n.flags),raw:t}}function bl(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function wl(e){return{type:"GroupClose",raw:e}}function me(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function vl(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function Cl(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Al(e){return{type:"Subroutine",raw:e}}const kl=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),qn=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Sl(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Z(be(t.toUpperCase())-64,e)}function Ll(e,t){let{on:n,off:r}=/^\(\?(?[imx]*)(?:-(?[-imx]*))?/.exec(e).groups;r??="";const i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Kn(n),s=Kn(r),a={};if(o&&(a.enable=o),s&&(a.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),Ci("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,me("group",e,{...(o||s)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function Rl(e){const t=/\(\*(?[A-Za-z_]\w*)?(?:\[(?(?:[A-Za-z_]\w*)?)\])?(?:\{(?[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:i}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=i?i.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[s,a,l]=o,u=kl.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return vl(u,r??null,i?.split(",")??null,e)}function Xn(e){let t=null,n,r;if(e[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?\d*)(?:,(?\d*))?/.exec(e).groups,s=1e5;if(+i>s||o&&+o>s)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=o===void 0?+i:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Cl(t,n,r,e)}function Il(e){const t=e[1].toLowerCase();return ae({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Tl(e){const{p:t,neg:n,value:r}=/^\\(?

[pP])\{(?\^?)(?[^}]+)/.exec(e).groups;return ae("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function Kn(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Pl(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function xl(e,t){const{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[vi(n)];const o=[],s=i.match(/^[0-7]+|\d/g);for(let a=0;a127)throw new Error(N`Octal encoded byte above 177 unsupported "${n}"`)}else u=be(l);o.push(Z(u,(a===0?"\\":"")+l))}return o}function Dl(e){const t=[],n=new RegExp(mn,"gy");let r;for(;r=n.exec(e);){const i=r[0];if(i[0]==="{"){const o=/^\{(?\d+),(?\d+)\}\??$/.exec(i);if(o){const{min:s,max:a}=o.groups;if(+s>+a&&i.endsWith("?")){n.lastIndex--,t.push(Xn(i.slice(0,-1)));continue}}}t.push(Xn(i))}return t}function Ai(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Nl(e){return Vl.has(e.type)}const Vl=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function ki(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=pl(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(f,h)=>{const m=r.tokens[o.nextIndex];switch(o.parent=f,o.nextIndex++,m.type){case"Alternator":return ue();case"Assertion":return $l(m);case"Backreference":return Ml(m,o);case"Character":return pt(m.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return Gl(m,o,h);case"CharacterClassOpen":return Bl(m,o,h);case"CharacterSet":return Ul(m,o);case"Directive":return ql(m.kind,{flags:m.flags});case"GroupOpen":return Fl(m,o,h);case"NamedCallout":return Kl(m.kind,m.tag,m.arguments);case"Quantifier":return jl(m,o);case"Subroutine":return Hl(m,o);default:throw new Error(`Unexpected token type "${m.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},s=Jl(Xl(r.flags));let a=s.body[0];for(;o.nextIndexl.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(p.has(f)){if(p.get(f).length>1)throw new Error(N`Subroutine uses a duplicate group name "\g<${f}>"`);p.get(f)[0].isSubroutined=!0}else throw new Error(N`Subroutine uses a group name that's not defined "\g<${f}>"`);return s}function $l({kind:e}){return zt(we({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===N`\B`||e===N`\Y`})}function Ml({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(o,s=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,qt(s?a+1-o:o,{orphan:l})};if(n){const o=/^(?-?)0*(?[1-9]\d*)$/.exec(r);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return qt(r)}return i(+r)}function Gl(e,t,n){const{tokens:r,walk:i}=t,o=t.parent,s=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=i(o,{...n,isCheckingRangeEnd:!0});if(s.type==="Character"&&l.type==="Character")return o.body.pop(),zl(s,l);throw new Error("Invalid character class range")}return pt(be("-"))}function Bl({negate:e},t,n){const{tokens:r,walk:i}=t,o=[Qe()],s=r[t.nextIndex];let a=Yn(s);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")o.push(Qe()),t.nextIndex++;else{const u=o.at(-1);u.body.push(i(u,n))}a=Yn(r[t.nextIndex],s)}const l=Qe({negate:e});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function Ul({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s}=r;if(e==="property"){const a=ht(n);if(fn.has(a)&&!s?.has(a))e="posix",n=a;else return ge(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s})}return e==="posix"?Ql(n,{negate:t}):Xt(e,{negate:t})}function Fl(e,t,n){const{tokens:r,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:s,walk:a}=t,l=Yl(e),u=l.type==="AbsenceFunction",p=Jn(l),d=p&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&dl(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Zn(r[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(ue()),t.nextIndex++;else{const h=l.body.at(-1),m=a(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||u,isInLookbehind:n.isInLookbehind||p,isInNegLookbehind:n.isInNegLookbehind||d});if(h.body.push(m),(p||n.isInLookbehind)&&!s){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(Qn(m)||m.type==="CapturingGroup")throw new Error(E)}else if(Qn(m)||Jn(m)&&m.negate)throw new Error(E)}}f=Zn(r[t.nextIndex])}return t.nextIndex++,l}function jl({kind:e,min:t,max:n},r){const i=r.parent,o=i.body.at(-1);if(!o||!Nl(o))throw new Error("Quantifier requires a repeatable token");const s=Li(e,t,n,o);return i.body.pop(),s}function Hl({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let i=e.slice(3,-1);const o=/^(?[-+]?)0*(?[1-9]\d*)$/.exec(i);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,i={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=Ri(i);return r.push(s),s}function Wl(e,t){return{type:"AbsenceFunction",kind:e,body:Be(t?.body)}}function ue(e){return{type:"Alternative",body:Ii(e?.body)}}function zt(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function qt(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Si(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Zl(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Be(t?.body)}}function pt(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Qe(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Ii(e?.body)}}function zl(e,t){if(t.valuen)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function Jl(e,t){return{type:"Regex",body:Be(t?.body),flags:e}}function Ri(e){return{type:"Subroutine",ref:e}}function ge(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(ht(e));if(!r){if(n.normalizeUnknownPropertyNames)r=eu(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(N`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function Yl({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return Wl("repeater");case"atomic":return H({atomic:!0});case"capturing":return Si(i,{name:n});case"group":return H({flags:e});case"lookahead":case"lookbehind":return oe({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Be(e){if(e===void 0)e=[ue()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Ii(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Qn(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Jn(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Zl(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function eu(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function ht(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Yn(e,t){const n=t;return we(e,`Unclosed character class${n?.type==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function Zn(e){return we(e,"Unclosed group")}function ke(e,t,n=null){function r(o,s){for(let a=0;aA-Za-z\-]|<[=!]|\(DEFINE\))`;function nu(e,t){for(let n=0;n=t&&e[n]++}function ru(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function gn(e,t,n,r){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let s=0,a="";for(const l of e.matchAll(i)){const{0:u,groups:{$skip:p}}=l;if(!p&&(!r||r===j.DEFAULT==!s)){n instanceof Function?a+=n(l,{context:s?j.CHAR_CLASS:j.DEFAULT,negated:o[o.length-1]}):a+=n;continue}u[0]==="["?(s++,o.push(u[1]==="^")):u==="]"&&s&&(s--,o.pop()),a+=u}return a}function Ti(e,t,n,r){gn(e,t,n,r)}function iu(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let o=0,s;for(;s=i.exec(e);){const{0:a,groups:{$skip:l}}=s;if(!l&&(!r||r===j.DEFAULT==!o))return s;a==="["?o++:a==="]"&&o&&o--,i.lastIndex==s.index&&i.lastIndex++}return null}function qe(e,t,n){return!!iu(e,t,0,n)}function ou(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,o=1,s;for(;s=n.exec(e);){const[a]=s;if(a==="[")i++;else if(i)a==="]"&&i--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=s.index;break}}return e.slice(t,r)}const er=new RegExp(String.raw`(?${tu})|(?\((?:\?<[^>]+>)?)|\\?.`,"gsu");function su(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const i="(?>",o="(?:(?=(",s=[0],a=[];let l=0,u=0,p=NaN,d;do{d=!1;let f=0,h=0,m=!1,E;for(er.lastIndex=Number.isNaN(p)?0:p+o.length;E=er.exec(e);){const{0:b,index:g,groups:{capturingStart:_,noncapturingStart:w}}=E;if(b==="[")f++;else if(f)b==="]"&&f--;else if(b===i&&!m)p=g,m=!0;else if(m&&w)h++;else if(_)m?h++:(l++,s.push(l+u));else if(b===")"&&m){if(!h){u++;const A=l+u;if(e=`${e.slice(0,p)}${o}${e.slice(p+i.length,g)}))<$$${A}>)${e.slice(g+1)}`,d=!0,a.push(A),nu(n,A),r.size){const k=new Map;r.forEach((I,M)=>{k.set(M>=A?M+1:M,I.map(z=>z>=A?z+1:z))}),r=k}break}h--}}}while(d);return n.push(...a),e=gn(e,String.raw`\\(?[1-9]\d*)|<\$\$(?\d+)>`,({0:f,groups:{backrefNum:h,wrappedBackrefNum:m}})=>{if(h){const E=+h;if(E>s.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${s[E]}`}return`\\${m}`},j.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Pi=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Rt=new RegExp(String.raw` +\\(?: \d+ + | c[A-Za-z] + | [gk]<[^>]+> + | [pPu]\{[^\}]+\} + | u[A-Fa-f\d]{4} + | x[A-Fa-f\d]{2} + ) +| \((?: \? (?: [:=!>] + | <(?:[=!]|[^>]+>) + | [A-Za-z\-]+: + | \(DEFINE\) + ))? +| (?${Pi})(?[?+]?)(?[?*+\{]?) +| \\?. +`.replace(/\s+/g,""),"gsu");function au(e){if(!new RegExp(`${Pi}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,i="",o=0,s;for(Rt.lastIndex=0;s=Rt.exec(e);){const{0:a,index:l,groups:{qBase:u,qMod:p,invalidQ:d}}=s;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(p==="+"&&i&&!i.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${a}"`);let f=-1;if(/^\{\d+\}$/.test(u))e=ru(e,l+u.length,p,"");else{if(i===")"||i==="]"){const h=i===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${u})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-i.length)}(?>${i}${u})${e.slice(l+a.length)}`;f+=4}Rt.lastIndex+=f}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);i=a}return{pattern:e}}const F=String.raw,lu=F`\\g<(?[^>&]+)&R=(?[^>]+)>`,Kt=F`\(\?R=(?[^\)]+)\)|${lu}`,ft=F`\(\?<(?![=!])(?[^>]+)>`,Oi=F`${ft}|(?\()(?!\?)`,re=new RegExp(F`${ft}|${Kt}|\(\?|\\?.`,"gsu"),It="Cannot use multiple overlapping recursions";function uu(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let i=t?.captureTransfers??new Map;if(!new RegExp(Kt,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&qe(e,F`\(\?\(DEFINE\)`,j.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],s=qe(e,F`\\[1-9]`,j.DEFAULT),a=new Map,l=[];let u=!1,p=0,d=0,f;for(re.lastIndex=0;f=re.exec(e);){const{0:h,groups:{captureName:m,rDepth:E,gRNameOrNum:b,gRDepth:g}}=f;if(h==="[")p++;else if(p)h==="]"&&p--;else if(E){if(tr(E),u)throw new Error(It);if(s)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const _=e.slice(0,f.index),w=e.slice(re.lastIndex);if(qe(w,Kt,j.DEFAULT))throw new Error(It);const A=+E-1;e=nr(_,w,A,!1,n,o,d),i=ir(i,_,A,o.length,0,d);break}else if(b){tr(g);let _=!1;for(const q of l)if(q.name===b||q.num===+b){if(_=!0,q.hasRecursedWithin)throw new Error(It);break}if(!_)throw new Error(F`Recursive \g cannot be used outside the referenced group "${r==="external"?b:F`\g<${b}&R=${g}>`}"`);const w=a.get(b),A=ou(e,w);if(s&&qe(A,F`${ft}|\((?!\?)`,j.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const k=e.slice(w,f.index),I=A.slice(k.length+h.length),M=o.length,z=+g-1,de=nr(k,I,z,!0,n,o,d);i=ir(i,k,z,o.length-M,M,d);const gt=e.slice(0,w),_t=e.slice(w+A.length);e=`${gt}${de}${_t}`,re.lastIndex+=de.length-h.length-k.length-I.length,l.forEach(q=>q.hasRecursedWithin=!0),u=!0}else if(m)d++,a.set(String(d),re.lastIndex),a.set(m,re.lastIndex),l.push({num:d,name:m});else if(h[0]==="("){const _=h==="(";_&&(d++,a.set(String(d),re.lastIndex)),l.push(_?{num:d}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function tr(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function nr(e,t,n,r,i,o,s){const a=new Set;r&&Ti(e+t,ft,({groups:{captureName:u}})=>{a.add(u)},j.DEFAULT);const l=[n,r?a:null,i,o,s];return`${e}${rr(`(?:${e}`,"forward",...l)}(?:)${rr(`${t})`,"backward",...l)}${t}`}function rr(e,t,n,r,i,o,s){const l=p=>t==="forward"?p+2:n-p+2-1;let u="";for(let p=0;p[^>]+)>`,({0:f,groups:{captureName:h,unnamed:m,backref:E}})=>{if(E&&r&&!r.has(E))return f;const b=`_$${d}`;if(m||h){const g=s+o.length+1;return o.push(g),cu(i,g),m?f:`(?<${h}${b}>`}return F`\k<${E}${b}>`},j.DEFAULT)}return u}function cu(e,t){for(let n=0;n=t&&e[n]++}function ir(e,t,n,r,i,o){if(e.size&&r){let s=0;Ti(t,Oi,()=>s++,j.DEFAULT);const a=o-s+i,l=new Map;return e.forEach((u,p)=>{const d=(r-s*n)/n,f=s*n,h=p>a+s?p+r:p,m=[];for(const E of u)if(E<=a)m.push(E);else if(E>a+s+d)m.push(E+r);else if(E<=a+s)for(let b=0;b<=n;b++)m.push(E+s*b);else for(let b=0;b<=n;b++)m.push(E+f+d*b);l.set(h,m)}),l}return e}var O=String.fromCodePoint,v=String.raw,W={},mt=globalThis.RegExp;W.flagGroups=(()=>{try{new mt("(?i:)")}catch{return!1}return!0})();W.unicodeSets=(()=>{try{new mt("[[]]","v")}catch{return!1}return!0})();W.bugFlagVLiteralHyphenIsRange=W.unicodeSets?(()=>{try{new mt(v`[\d\-a]`,"v")}catch{return!0}return!1})():!1;W.bugNestedClassIgnoresNegation=W.unicodeSets&&new mt("[[^a]]","v").test("a");function ot(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function De(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Qt(e,t){return or[e]>=or[t]}function du(e,t){if(e==null)throw new Error(t??"Value expected");return e}var or={ES2025:2025,ES2024:2024,ES2018:2018},pu={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function xi(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!pu[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=W.flagGroups?"ES2025":W.unicodeSets?"ES2024":"ES2018"),t}var hu="[ -\r ]",fu=new Set([O(304),O(305)]),J=v`[\p{L}\p{M}\p{N}\p{Pc}]`;function Di(e){if(fu.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=_u.get(n),o=mu.get(n),s=gu.get(n);return[...r].length===1&&t.add(r),s&&t.add(s),i&&t.add(i),t.add(n),o&&t.add(o),[...t]}var _n=new Map(`C Other +Cc Control cntrl +Cf Format +Cn Unassigned +Co Private_Use +Cs Surrogate +L Letter +LC Cased_Letter +Ll Lowercase_Letter +Lm Modifier_Letter +Lo Other_Letter +Lt Titlecase_Letter +Lu Uppercase_Letter +M Mark Combining_Mark +Mc Spacing_Mark +Me Enclosing_Mark +Mn Nonspacing_Mark +N Number +Nd Decimal_Number digit +Nl Letter_Number +No Other_Number +P Punctuation punct +Pc Connector_Punctuation +Pd Dash_Punctuation +Pe Close_Punctuation +Pf Final_Punctuation +Pi Initial_Punctuation +Po Other_Punctuation +Ps Open_Punctuation +S Symbol +Sc Currency_Symbol +Sk Modifier_Symbol +Sm Math_Symbol +So Other_Symbol +Z Separator +Zl Line_Separator +Zp Paragraph_Separator +Zs Space_Separator +ASCII +ASCII_Hex_Digit AHex +Alphabetic Alpha +Any +Assigned +Bidi_Control Bidi_C +Bidi_Mirrored Bidi_M +Case_Ignorable CI +Cased +Changes_When_Casefolded CWCF +Changes_When_Casemapped CWCM +Changes_When_Lowercased CWL +Changes_When_NFKC_Casefolded CWKCF +Changes_When_Titlecased CWT +Changes_When_Uppercased CWU +Dash +Default_Ignorable_Code_Point DI +Deprecated Dep +Diacritic Dia +Emoji +Emoji_Component EComp +Emoji_Modifier EMod +Emoji_Modifier_Base EBase +Emoji_Presentation EPres +Extended_Pictographic ExtPict +Extender Ext +Grapheme_Base Gr_Base +Grapheme_Extend Gr_Ext +Hex_Digit Hex +IDS_Binary_Operator IDSB +IDS_Trinary_Operator IDST +ID_Continue IDC +ID_Start IDS +Ideographic Ideo +Join_Control Join_C +Logical_Order_Exception LOE +Lowercase Lower +Math +Noncharacter_Code_Point NChar +Pattern_Syntax Pat_Syn +Pattern_White_Space Pat_WS +Quotation_Mark QMark +Radical +Regional_Indicator RI +Sentence_Terminal STerm +Soft_Dotted SD +Terminal_Punctuation Term +Unified_Ideograph UIdeo +Uppercase Upper +Variation_Selector VS +White_Space space +XID_Continue XIDC +XID_Start XIDS`.split(/\s/).map(e=>[ht(e),e])),mu=new Map([["s",O(383)],[O(383),"s"]]),gu=new Map([[O(223),O(7838)],[O(107),O(8490)],[O(229),O(8491)],[O(969),O(8486)]]),_u=new Map([te(453),te(456),te(459),te(498),...Tt(8072,8079),...Tt(8088,8095),...Tt(8104,8111),te(8124),te(8140),te(8188)]),yu=new Map([["alnum",v`[\p{Alpha}\p{Nd}]`],["alpha",v`\p{Alpha}`],["ascii",v`\p{ASCII}`],["blank",v`[\p{Zs}\t]`],["cntrl",v`\p{Cc}`],["digit",v`\p{Nd}`],["graph",v`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",v`\p{Lower}`],["print",v`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",v`[\p{P}\p{S}]`],["space",v`\p{space}`],["upper",v`\p{Upper}`],["word",v`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",v`\p{AHex}`]]);function Eu(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function te(e){const t=O(e);return[t.toLowerCase(),t]}function Tt(e,t){return Eu(e,t).map(n=>te(n))}var Ni=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function bu(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Vi(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Qt(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ke(e,wu,r);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};ke(e,vu,o);const s={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ke(e,Cu,s),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var wu={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:i}=e;if(i==="repeater"){const o=H();o.body[0].body.push(oe({negate:!0,body:r}),ge("Any"));const s=H();s.body[0].body.push(Li("greedy",0,1/0,o)),n(R(s,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const i=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o\r\n|${i?v`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(ne(ge("AHex",{negate:u}),t));else if(l==="newline")n(R(Y(u?`[^ +]`:`(?>\r +?|[ +\v\f…\u2028\u2029])`),t));else if(l==="posix")if(!i&&(p==="graph"||p==="print")){if(r==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[p];u&&(d=`\0-${O(d.codePointAt(0)-1)}${O(d.codePointAt(2)+1)}-􏿿`),n(R(Y(`[${d}]`),t))}else n(R(xt(Y(yu.get(p)),u),t));else if(l==="property")_n.has(ht(p))||(e.key="sc");else if(l==="space")n(ne(ge("space",{negate:u}),t));else if(l==="word")n(R(xt(Y(J),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:s}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const u=H({flags:l});u.body[0].body=s(),i(R(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],d=n.body.length===1&&Ai(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==d||d.body.length>1)throw new Error(v`Uses "\K" in a way that's unsupported`);const f=oe({behind:!0});f.body[0].body=o(),i(R(f,t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(R(oe({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=H();t.body[0].body.push(e.body),e.body=R(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,i=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const s=Bi(o.body);s?(r=!0,Array.isArray(s)?n.push(...s):n.push(s)):i=!0}r&&!i&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(v`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ot(n)&&(n=Pt(n,t),e.ref=n)}},vu={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:s,openRefs:a,reffedNodesByReferencer:l}){const u=i.get(e);if(u&&a.has(e.number)){const d=ne(sr(e.number),t);l.set(d,a.get(e.number)),n(d);return}a.set(e.number,e),s.set(e.number,[]),e.name&&De(s,e.name,[]);const p=s.get(e.name??e.number);for(let d=0;df.type==="Group"&&!!f.flags)),d=p?ot(r.globalFlags,p):r.globalFlags;Au(d,r.currentFlags)||(u=H({flags:Lu(d)}),u.body[0].body.push(l))}n(R(u,t),{traverse:!a})}},Cu={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(s=>ku(s,e));if(!o.length)n(R(oe({negate:!0}),t));else if(o.length>1){const s=H({atomic:!0,body:o.reverse().map(a=>ue({body:[qt(a.number)]}))});n(R(s,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r{t.forEach(i=>{r.enable?.[i]&&(delete n.disable[i],n.enable[i]=!0),r.disable?.[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Lu({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Gi(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Bi(e){const t=e.find(n=>n.kind==="search_start"||Tu(n,{negate:!1})||!Ru(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const i=Bi(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function Ui(e,t){const n=Gi(e)??[];for(const r of n)if(r===t||Ui(r,t))return!0;return!1}function Ru({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Iu(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Tu(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Ai(e.body[0],{type:"Assertion",kind:"search_start"})}function Ot(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Y(e,t){const r=ki(e,{...t,unicodePropertyMap:_n}).body;return r.length>1||r[0].body.length>1?H({body:r}):r[0].body[0]}function xt(e,t){return e.negate=t,e}function ne(e,t){return e.parent=t,e}function R(e,t){return Vi(e),e.parent=t,e}function Pu(e,t){const n=xi(t),r=Qt(n.target,"ES2024"),i=Qt(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,a=null;if(!i){const h=[e.flags.ignoreCase];ke(e,Ou,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(m){h.push(m)},setHasCasedChar(){h.at(-1)?s=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!a)};let u=e;const p={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&s&&a),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(h){return p.lastNode=u,u=h,du(xu[h.type],`Unexpected node type "${h.type}"`)(h,p,d)}const f={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],p.captureMap.forEach((h,m)=>{h.hidden&&f._hiddenCaptures.push(m),h.transferTo&&De(f._captureTransfers,h.transferTo,[]).push(m)}),f}var Ou={"*":{enter({node:e},t){if(lr(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ot({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){lr(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){yn(O(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Fi(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Ni.has(e.value)&&t.setHasCasedChar()}},xu={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?v`\B`:v`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:i,number:o}=e,s={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(s.hidden=!0,o>a.number&&(s.transferTo=a.number)),t.captureMap.set(o,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=O(e),r=fe(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&yn(n)){const i=Di(n);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:i,parent:o}=e;let{body:s}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");W.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(ur)&&(s=[pt(45),...s.filter(u=>!ur(u))]);const a=()=>`[${i?"^":""}${s.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||W.bugNestedClassIgnoresNegation)&&!i){const p=s.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(p.length){const d=H(),f=d.body[0];return d.parent=o,f.parent=d,s=s.filter(h=>!p.includes(h)),e.body=s,s.length?(e.parent=f,f.body.push(e)):d.body.pop(),p.forEach(h=>{const m=ue({body:[h]});h.parent=m,m.parent=d,d.body.push(m)}),n(d)}}t.inCharClass=!0;const u=a();return t.inCharClass=!1,u}const l=s[0];if(r==="union"&&!i&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(W.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=fe(n,i),s=fe(r,i),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Fi(e);Mu(l).forEach(p=>{a.add(Array.isArray(p)?`${fe(p[0],i)}-${fe(p[1],i)}`:fe(p,i))})}return`${o}-${s}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":v`[^\n]`;if(e==="digit")return t?v`\D`:v`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ni.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?v`\P`:v`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?v`\W`:v`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},i,o){const s=i.currentFlags;n&&(i.currentFlags=ot(s,n));const a=t.map(o).join("|"),l=!i.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!i.useFlagMods||!n)?a:`(?${Gu(e,n,i.useFlagMods)}${a})`;return i.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,n){return n(e.body)+Bu(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:v`\g<${t}&R=${r}>`}},Du=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Nu=new Set(["-","\\","]","^","["]),Vu=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),ar=new Map([[9,v`\t`],[10,v`\n`],[11,v`\v`],[12,v`\f`],[13,v`\r`],[8232,v`\u2028`],[8233,v`\u2029`],[65279,v`\uFEFF`]]),$u=/^\p{Cased}$/u;function yn(e){return $u.test(e)}function Fi(e,t){const n=!!t?.firstOnly,r=e.min.value,i=e.max.value,o=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return o;for(let s=r;s<=i;s++){const a=O(s);if(!yn(a))continue;const l=Di(a).filter(u=>{const p=u.codePointAt(0);return pi});if(l.length&&(o.push(...l),n))break}return o}function fe(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(ar.has(e))return ar.get(e);if(e<32||e>126&&e<160||e>262143||t&&Uu(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?Vu:Nu:Du,o=O(e);return(i.has(o)?"\\":"")+o}function Mu(e){const t=e.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),n=[];let r=null;for(let i=0;i";let r="";if(t&&n){const{enable:i,disable:o}=t;r=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function Bu({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function lr({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Uu(e){return e>47&&e<58}function ur({type:e,value:t}){return e==="Character"&&t===45}var Fu=class Jt extends RegExp{#t=new Map;#e=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof Jt&&(this.#t=o.#t,this.#n=o.#n,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#r=t,this.#t=Hu(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=r??{}}i||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:i,...o}=this.rawOptions;this.#e=new Jt(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#i==="clip_search"&&n&&r){this.lastIndex=0;const i=this.#o(t.slice(r));return i&&(ju(i,r,t,this.hasIndices),this.lastIndex+=r),i}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let i;this.hasIndices&&(i=[...n.indices],n.indices.length=1);const o=[0];for(let s=1;s{const a=o[s];a&&(o[s]=[a[0]+t,a[1]+t])})}}function Hu(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,i]of t)for(const o of i)De(n,o,{}).transferTo=r;return n}function Wu(e){const t=/(?\((?:\?<(?![=!])(?[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,i=0,o;for(;o=t.exec(e);){const{0:s,groups:{capture:a,name:l}}=o;s==="["?r++:r?s==="]"&&r--:a&&(i++,l&&n.set(i,l))}return n}function zu(e,t){const n=qu(e,t);return n.options?new Fu(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function qu(e,t){const n=xi(t),r=ki(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:_n}),i=bu(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=Pu(i,n),s=uu(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=au(s.pattern),l=su(a.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),u={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=l.hiddenCaptures.sort((m,E)=>m-E),d=Array.from(l.captureTransfers),f=i._strategy,h=u.pattern.length>=n.lazyCompileLength;(p.length||d.length||f||h)&&(u.options={...p.length&&{hiddenCaptures:p},...d.length&&{transfers:d},...f&&{strategy:f},...h&&{lazyCompile:h}})}return u}function ji(e,t){return zu(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Xu(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||=n=>ji(n,{target:t.target}),{createScanner(n){return new cl(n,t)},createString(n){return{content:n}}}}const Yu=Object.freeze(Object.defineProperty({__proto__:null,ShikiError:S,addClassToHast:pn,applyColorReplacements:ee,bundledLanguages:pr,bundledLanguagesAlias:dr,bundledLanguagesBase:cr,bundledLanguagesInfo:Yt,bundledThemes:fr,bundledThemesInfo:hr,codeToHast:il,codeToHtml:rl,codeToTokens:ol,codeToTokensBase:sl,codeToTokensWithThemes:al,createBundledHighlighter:mi,createCssVariablesTheme:nl,createHighlighter:yi,createHighlighterCore:hn,createHighlighterCoreSync:el,createJavaScriptRegexEngine:Xu,createOnigurumaEngine:_r,createPositionConverter:ni,createShikiInternal:os,createShikiInternalSync:is,createShikiPrimitive:ut,createShikiPrimitiveAsync:sn,createSingletonShorthands:_i,defaultJavaScriptRegexConstructor:ji,flatTokenVariants:si,getLastGrammarState:ul,getSingletonHighlighter:ll,getSingletonHighlighterCore:tl,getTokenStyleObject:Pe,guessEmbeddedLanguages:ri,hastToHtml:pi,isNoneTheme:$e,isPlainLang:Ve,isSpecialLang:rn,isSpecialTheme:on,loadWasm:en,makeSingletonHighlighter:gi,makeSingletonHighlighterCore:fi,normalizeGetter:nn,normalizeTheme:lt,resolveColorReplacements:Ie,splitLines:Me,splitToken:ii,splitTokens:oi,stringifyTokenStyle:nt,toArray:Dr,tokenizeAnsiWithTheme:ui,tokenizeWithTheme:Fr,tokensToHast:di,transformerDecorations:ai},Symbol.toStringTag,{value:"Module"}));export{_r as a,pr as b,yi as c,Xu as d,nl as e,rl as f,Pe as g,Yu as i,lt as n,nt as s,Ra as t}; diff --git a/apps/pythinker-code/dist-web/assets/index-DIfcwXP7.js b/apps/pythinker-code/dist-web/assets/index-DIfcwXP7.js new file mode 100644 index 000000000..b617ab3c0 --- /dev/null +++ b/apps/pythinker-code/dist-web/assets/index-DIfcwXP7.js @@ -0,0 +1,788 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DesignSystemView-B5fq8RL_.js","assets/DesignSystemView-Bux62PsO.css","assets/mhchem-DtR62fUK.js","assets/katex-DnlPpQZa.js","assets/CodeBlockNode-BH6HsjxV.js","assets/safeRaf-DGuzXxDK.js","assets/index5-DY62NjEd.js","assets/index11-CX4ZouxY.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();/** +* @vue/shared v3.5.35 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function e5(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const In={},Q0=[],il=()=>{},VS=()=>!1,sd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),t5=e=>e.startsWith("onUpdate:"),no=Object.assign,R7=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hz=Object.prototype.hasOwnProperty,Wn=(e,t)=>hz.call(e,t),qt=Array.isArray,ec=e=>Nc(e)==="[object Map]",X1=e=>Nc(e)==="[object Set]",Hv=e=>Nc(e)==="[object Date]",mz=e=>Nc(e)==="[object RegExp]",hn=e=>typeof e=="function",io=e=>typeof e=="string",Vr=e=>typeof e=="symbol",qn=e=>e!==null&&typeof e=="object",H7=e=>(qn(e)||hn(e))&&hn(e.then)&&hn(e.catch),WS=Object.prototype.toString,Nc=e=>WS.call(e),gz=e=>Nc(e).slice(8,-1),n5=e=>Nc(e)==="[object Object]",o5=e=>io(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,L1=e5(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),s5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},vz=/-\w/g,rs=s5(e=>e.replace(vz,t=>t.slice(1).toUpperCase())),wz=/\B([A-Z])/g,kr=s5(e=>e.replace(wz,"-$1").toLowerCase()),r5=s5(e=>e.charAt(0).toUpperCase()+e.slice(1)),t3=s5(e=>e?`on${r5(e)}`:""),Cs=(e,t)=>!Object.is(e,t),tc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},l5=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E3=e=>{const t=io(e)?Number(e):NaN;return isNaN(t)?e:t};let Pv;const i5=()=>Pv||(Pv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),yz="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",kz=e5(yz);function Pt(e){if(qt(e)){const t={};for(let n=0;n{if(n){const o=n.split(_z);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function He(e){let t="";if(io(e))t=e;else if(qt(e))for(let n=0;nIi(n,t))}const ZS=e=>!!(e&&e.__v_isRef===!0),N=e=>io(e)?e:e==null?"":qt(e)||qn(e)&&(e.toString===WS||!hn(e.toString))?ZS(e)?N(e.value):JSON.stringify(e,KS,2):String(e),KS=(e,t)=>ZS(t)?KS(e,t.value):ec(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[X6(o,r)+" =>"]=s,n),{})}:X1(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>X6(n))}:Vr(t)?X6(t):qn(t)&&!qt(t)&&!n5(t)?String(t):t,X6=(e,t="")=>{var n;return Vr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ez(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** +* @vue/reactivity v3.5.35 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ns;class GS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ns&&(ns.active?(this.parent=ns,this.index=(ns.scopes||(ns.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(ns===this)ns=this.prevScope;else{let t=ns;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(tu){let t=tu;for(tu=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;eu;){let t=eu;for(eu=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function JS(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function QS(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),W7(o),Lz(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function qh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(eC(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function eC(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Su)||(e.globalVersion=Su,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qh(e))))return;e.flags|=2;const t=e.dep,n=po,o=Sl;po=e,Sl=!0;try{JS(e);const s=e.fn(e._value);(t.version===0||Cs(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{po=n,Sl=o,QS(e),e.flags&=-3}}function W7(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)W7(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Lz(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function aRe(e,t){e.effect instanceof I3&&(e=e.effect.fn);const n=new I3(e);t&&no(n,t);try{n.run()}catch(s){throw n.stop(),s}const o=n.run.bind(n);return o.effect=n,o}function cRe(e){e.effect.stop()}let Sl=!0;const tC=[];function Li(){tC.push(Sl),Sl=!1}function $i(){const e=tC.pop();Sl=e===void 0?!0:e}function Dv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=po;po=void 0;try{t()}finally{po=n}}}let Su=0;class $z{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class c5{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!po||!Sl||po===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==po)n=this.activeLink=new $z(po,this),po.deps?(n.prevDep=po.depsTail,po.depsTail.nextDep=n,po.depsTail=n):po.deps=po.depsTail=n,nC(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=po.depsTail,n.nextDep=void 0,po.depsTail.nextDep=n,po.depsTail=n,po.deps===n&&(po.deps=o)}return n}trigger(t){this.version++,Su++,this.notify(t)}notify(t){D7();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{V7()}}}function nC(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)nC(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const L3=new WeakMap,$1=Symbol(""),Uh=Symbol(""),Cu=Symbol("");function Rs(e,t,n){if(Sl&&po){let o=L3.get(e);o||L3.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new c5),s.map=o,s.key=n),s.track()}}function bi(e,t,n,o,s,r){const l=L3.get(e);if(!l){Su++;return}const i=a=>{a&&a.trigger()};if(D7(),t==="clear")l.forEach(i);else{const a=qt(e),c=a&&o5(n);if(a&&n==="length"){const u=Number(o);l.forEach((d,f)=>{(f==="length"||f===Cu||!Vr(f)&&f>=u)&&i(d)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(Cu)),t){case"add":a?c&&i(l.get("length")):(i(l.get($1)),ec(e)&&i(l.get(Uh)));break;case"delete":a||(i(l.get($1)),ec(e)&&i(l.get(Uh)));break;case"set":ec(e)&&i(l.get($1));break}}V7()}function Nz(e,t){const n=L3.get(e);return n&&n.get(t)}function b0(e){const t=Bn(e);return t===e?t:(Rs(t,"iterate",Cu),Or(e)?t:t.map(Tl))}function u5(e){return Rs(e=Bn(e),"iterate",Cu),e}function Kl(e,t){return Ni(e)?wc(ba(e)?Tl(t):t):Tl(t)}const zz={__proto__:null,[Symbol.iterator](){return Q6(this,Symbol.iterator,e=>Kl(this,e))},concat(...e){return b0(this).concat(...e.map(t=>qt(t)?b0(t):t))},entries(){return Q6(this,"entries",e=>(e[1]=Kl(this,e[1]),e))},every(e,t){return ci(this,"every",e,t,void 0,arguments)},filter(e,t){return ci(this,"filter",e,t,n=>n.map(o=>Kl(this,o)),arguments)},find(e,t){return ci(this,"find",e,t,n=>Kl(this,n),arguments)},findIndex(e,t){return ci(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ci(this,"findLast",e,t,n=>Kl(this,n),arguments)},findLastIndex(e,t){return ci(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ci(this,"forEach",e,t,void 0,arguments)},includes(...e){return ep(this,"includes",e)},indexOf(...e){return ep(this,"indexOf",e)},join(e){return b0(this).join(e)},lastIndexOf(...e){return ep(this,"lastIndexOf",e)},map(e,t){return ci(this,"map",e,t,void 0,arguments)},pop(){return h2(this,"pop")},push(...e){return h2(this,"push",e)},reduce(e,...t){return Vv(this,"reduce",e,t)},reduceRight(e,...t){return Vv(this,"reduceRight",e,t)},shift(){return h2(this,"shift")},some(e,t){return ci(this,"some",e,t,void 0,arguments)},splice(...e){return h2(this,"splice",e)},toReversed(){return b0(this).toReversed()},toSorted(e){return b0(this).toSorted(e)},toSpliced(...e){return b0(this).toSpliced(...e)},unshift(...e){return h2(this,"unshift",e)},values(){return Q6(this,"values",e=>Kl(this,e))}};function Q6(e,t,n){const o=u5(e),s=o[t]();return o!==e&&!Or(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const Bz=Array.prototype;function ci(e,t,n,o,s,r){const l=u5(e),i=l!==e&&!Or(e),a=l[t];if(a!==Bz[t]){const d=a.apply(e,r);return i?Tl(d):d}let c=n;l!==e&&(i?c=function(d,f){return n.call(this,Kl(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=a.call(l,c,o);return i&&s?s(u):u}function Vv(e,t,n,o){const s=u5(e),r=s!==e&&!Or(e);let l=n,i=!1;s!==e&&(r?(i=o.length===0,l=function(c,u,d){return i&&(i=!1,c=Kl(e,c)),n.call(this,c,Kl(e,u),d,e)}):n.length>3&&(l=function(c,u,d){return n.call(this,c,u,d,e)}));const a=s[t](l,...o);return i?Kl(e,a):a}function ep(e,t,n){const o=Bn(e);Rs(o,"iterate",Cu);const s=o[t](...n);return(s===-1||s===!1)&&p5(n[0])?(n[0]=Bn(n[0]),o[t](...n)):s}function h2(e,t,n=[]){Li(),D7();const o=Bn(e)[t].apply(e,n);return V7(),$i(),o}const jz=e5("__proto__,__v_isRef,__isVue"),oC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vr));function Oz(e){Vr(e)||(e=String(e));const t=Bn(this);return Rs(t,"has",e),t.hasOwnProperty(e)}class sC{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(s?r?uC:cC:r?aC:iC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=qt(t);if(!s){let a;if(l&&(a=zz[n]))return a;if(n==="hasOwnProperty")return Oz}const i=Reflect.get(t,n,jo(t)?t:o);if((Vr(n)?oC.has(n):jz(n))||(s||Rs(t,"get",n),r))return i;if(jo(i)){const a=l&&o5(n)?i:i.value;return s&&qn(a)?Kh(a):a}return qn(i)?s?Kh(i):As(i):i}}class rC extends sC{constructor(t=!1){super(!1,t)}set(t,n,o,s){let r=t[n];const l=qt(t)&&o5(n);if(!this._isShallow){const c=Ni(r);if(!Or(o)&&!Ni(o)&&(r=Bn(r),o=Bn(o)),!l&&jo(r)&&!jo(o))return c||(r.value=o),!0}const i=l?Number(n)e,ef=e=>Reflect.getPrototypeOf(e);function Dz(e,t,n){return function(...o){const s=this.__v_raw,r=Bn(s),l=ec(r),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...o),u=n?Zh:t?wc:Tl;return!t&&Rs(r,"iterate",a?Uh:$1),no(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:i?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function tf(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vz(e,t){const n={get(s){const r=this.__v_raw,l=Bn(r),i=Bn(s);e||(Cs(s,i)&&Rs(l,"get",s),Rs(l,"get",i));const{has:a}=ef(l),c=t?Zh:e?wc:Tl;if(a.call(l,s))return c(r.get(s));if(a.call(l,i))return c(r.get(i));r!==l&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Rs(Bn(s),"iterate",$1),s.size},has(s){const r=this.__v_raw,l=Bn(r),i=Bn(s);return e||(Cs(s,i)&&Rs(l,"has",s),Rs(l,"has",i)),s===i?r.has(s):r.has(s)||r.has(i)},forEach(s,r){const l=this,i=l.__v_raw,a=Bn(i),c=t?Zh:e?wc:Tl;return!e&&Rs(a,"iterate",$1),i.forEach((u,d)=>s.call(r,c(u),c(d),l))}};return no(n,e?{add:tf("add"),set:tf("set"),delete:tf("delete"),clear:tf("clear")}:{add(s){const r=Bn(this),l=ef(r),i=Bn(s),a=!t&&!Or(s)&&!Ni(s)?i:s;return l.has.call(r,a)||Cs(s,a)&&l.has.call(r,s)||Cs(i,a)&&l.has.call(r,i)||(r.add(a),bi(r,"add",a,a)),this},set(s,r){!t&&!Or(r)&&!Ni(r)&&(r=Bn(r));const l=Bn(this),{has:i,get:a}=ef(l);let c=i.call(l,s);c||(s=Bn(s),c=i.call(l,s));const u=a.call(l,s);return l.set(s,r),c?Cs(r,u)&&bi(l,"set",s,r):bi(l,"add",s,r),this},delete(s){const r=Bn(this),{has:l,get:i}=ef(r);let a=l.call(r,s);a||(s=Bn(s),a=l.call(r,s)),i&&i.call(r,s);const c=r.delete(s);return a&&bi(r,"delete",s,void 0),c},clear(){const s=Bn(this),r=s.size!==0,l=s.clear();return r&&bi(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Dz(s,e,t)}),n}function d5(e,t){const n=Vz(e,t);return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Wn(n,s)&&s in o?n:o,s,r)}const Wz={get:d5(!1,!1)},qz={get:d5(!1,!0)},Uz={get:d5(!0,!1)},Zz={get:d5(!0,!0)},iC=new WeakMap,aC=new WeakMap,cC=new WeakMap,uC=new WeakMap;function Kz(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function As(e){return Ni(e)?e:f5(e,!1,Fz,Wz,iC)}function Gz(e){return f5(e,!1,Hz,qz,aC)}function Kh(e){return f5(e,!0,Rz,Uz,cC)}function uRe(e){return f5(e,!0,Pz,Zz,uC)}function f5(e,t,n,o,s){if(!qn(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=s.get(e);if(r)return r;const l=Kz(gz(e));if(l===0)return e;const i=new Proxy(e,l===2?o:n);return s.set(e,i),i}function ba(e){return Ni(e)?ba(e.__v_raw):!!(e&&e.__v_isReactive)}function Ni(e){return!!(e&&e.__v_isReadonly)}function Or(e){return!!(e&&e.__v_isShallow)}function p5(e){return e?!!e.__v_raw:!1}function Bn(e){const t=e&&e.__v_raw;return t?Bn(t):e}function Et(e){return!Wn(e,"__v_skip")&&Object.isExtensible(e)&&qS(e,"__v_skip",!0),e}const Tl=e=>qn(e)?As(e):e,wc=e=>qn(e)?Kh(e):e;function jo(e){return e?e.__v_isRef===!0:!1}function q(e){return dC(e,!1)}function _o(e){return dC(e,!0)}function dC(e,t){return jo(e)?e:new Yz(e,t)}class Yz{constructor(t,n){this.dep=new c5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Bn(t),this._value=n?t:Tl(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Or(t)||Ni(t);t=o?t:Bn(t),Cs(t,n)&&(this._rawValue=t,this._value=o?t:Tl(t),this.dep.trigger())}}function Xz(e){e.dep&&e.dep.trigger()}function _(e){return jo(e)?e.value:e}function fC(e){return hn(e)?e():_(e)}const Jz={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return jo(s)&&!jo(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function pC(e){return ba(e)?e:new Proxy(e,Jz)}class Qz{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new c5,{get:o,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function eB(e){return new Qz(e)}function dRe(e){const t=qt(e)?new Array(e.length):{};for(const n in e)t[n]=hC(e,n);return t}class tB{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=Vr(n)?n:String(n),this._raw=Bn(t);let s=!0,r=t;if(!qt(t)||Vr(this._key)||!o5(this._key))do s=!p5(r)||Or(r);while(s&&(r=r.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=_(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&jo(this._raw[this._key])){const n=this._object[this._key];if(jo(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Nz(this._raw,this._key)}}class nB{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function fRe(e,t,n){return jo(e)?e:hn(e)?new nB(e):qn(e)&&arguments.length>1?hC(e,t,n):q(e)}function hC(e,t,n){return new tB(e,t,n)}class oB{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new c5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Su-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&po!==this)return XS(this,!0),!0}get value(){const t=this.dep.track();return eC(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sB(e,t,n=!1){let o,s;return hn(e)?o=e:(o=e.get,s=e.set),new oB(o,s,n)}const pRe={GET:"get",HAS:"has",ITERATE:"iterate"},hRe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},nf={},$3=new WeakMap;let ua;function mRe(){return ua}function rB(e,t=!1,n=ua){if(n){let o=$3.get(n);o||$3.set(n,o=[]),o.push(e)}}function lB(e,t,n=In){const{immediate:o,deep:s,once:r,scheduler:l,augmentJob:i,call:a}=n,c=k=>s?k:Or(k)||s===!1||s===0?_i(k,1):_i(k);let u,d,f,p,h=!1,m=!1;if(jo(e)?(d=()=>e.value,h=Or(e)):ba(e)?(d=()=>c(e),h=!0):qt(e)?(m=!0,h=e.some(k=>ba(k)||Or(k)),d=()=>e.map(k=>{if(jo(k))return k.value;if(ba(k))return c(k);if(hn(k))return a?a(k,2):k()})):hn(e)?t?d=a?()=>a(e,2):e:d=()=>{if(f){Li();try{f()}finally{$i()}}const k=ua;ua=u;try{return a?a(e,3,[p]):e(p)}finally{ua=k}}:d=il,t&&s){const k=d,S=s===!0?1/0:s;d=()=>_i(k(),S)}const y=P7(),b=()=>{u.stop(),y&&y.active&&R7(y.effects,u)};if(r&&t){const k=t;t=(...S)=>{k(...S),b()}}let v=m?new Array(e.length).fill(nf):nf;const w=k=>{if(!(!(u.flags&1)||!u.dirty&&!k))if(t){const S=u.run();if(s||h||(m?S.some(($,T)=>Cs($,v[T])):Cs(S,v))){f&&f();const $=ua;ua=u;try{const T=[S,v===nf?void 0:m&&v[0]===nf?[]:v,p];v=S,a?a(t,3,T):t(...T)}finally{ua=$}}}else u.run()};return i&&i(w),u=new I3(d),u.scheduler=l?()=>l(w,!1):w,p=k=>rB(k,!1,u),f=u.onStop=()=>{const k=$3.get(u);if(k){if(a)a(k,4);else for(const S of k)S();$3.delete(u)}},t?o?w(!0):v=u.run():l?l(w.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function _i(e,t=1/0,n){if(t<=0||!qn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,jo(e))_i(e.value,t,n);else if(qt(e))for(let o=0;o{_i(o,t,n)});else if(n5(e)){for(const o in e)_i(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&_i(e[o],t,n)}return e}/** +* @vue/runtime-core v3.5.35 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const mC=[];function iB(e){mC.push(e)}function aB(){mC.pop()}function gRe(e,t){}const vRe={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},cB={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function rd(e,t,n,o){try{return o?e(...o):e()}catch(s){Bc(s,t,n)}}function cl(e,t,n,o){if(hn(e)){const s=rd(e,t,n,o);return s&&H7(s)&&s.catch(r=>{Bc(r,t,n)}),s}if(qt(e)){const s=[];for(let r=0;r>>1,s=Qs[o],r=Mu(s);r=Mu(n)?Qs.push(e):Qs.splice(dB(t),0,e),e.flags|=1,vC()}}function vC(){N3||(N3=gC.then(wC))}function z3(e){qt(e)?nc.push(...e):da&&e.id===-1?da.splice(z0+1,0,e):e.flags&1||(nc.push(e),e.flags|=1),vC()}function Wv(e,t,n=Wl+1){for(;nMu(n)-Mu(o));if(nc.length=0,da){da.push(...t);return}for(da=t,z0=0;z0e.id==null?e.flags&2?-1:1/0:e.id;function wC(e){try{for(Wl=0;WlB0.emit(s,...r)),of=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{yC(r,t)}),setTimeout(()=>{B0||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,of=[])},3e3)):of=[]}let Ts=null,h5=null;function Au(e){const t=Ts;return Ts=e,h5=e&&e.type.__scopeId||null,t}function wRe(e){h5=e}function yRe(){h5=null}const kRe=e=>ve;function ve(e,t=Ts,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&H3(-1);const r=Au(t);let l;try{l=e(...s)}finally{Au(r),o._d&&H3(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function Rn(e,t){if(Ts===null)return e;const n=cd(Ts),o=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&hn(t)?t.call(o&&o.proxy):t}}function bRe(){return!!(Xo()||N1)}const fB=Symbol.for("v-scx"),pB=()=>kn(fB);function kC(e,t){return ld(e,null,t)}function _Re(e,t){return ld(e,null,{flush:"post"})}function hB(e,t){return ld(e,null,{flush:"sync"})}function Xe(e,t,n){return ld(e,t,n)}function ld(e,t,n=In){const{immediate:o,deep:s,flush:r,once:l}=n,i=no({},n),a=t&&o||!t&&r!=="post";let c;if(P1){if(r==="sync"){const p=pB();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=il,p.resume=il,p.pause=il,p}}const u=Ms;i.call=(p,h,m)=>cl(p,u,h,m);let d=!1;r==="post"?i.scheduler=p=>{Do(p,u&&u.suspense)}:r!=="sync"&&(d=!0,i.scheduler=(p,h)=>{h?p():q7(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=lB(e,t,i);return P1&&(c?c.push(f):a&&f()),f}function mB(e,t,n){const o=this.proxy,s=io(e)?e.includes(".")?bC(o,e):()=>o[e]:e.bind(o,o);let r;hn(t)?r=t:(r=t.handler,n=t);const l=jc(this),i=ld(s,r.bind(o),n);return l(),i}function bC(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;se.__isTeleport,w1=e=>e&&(e.disabled||e.disabled===""),gB=e=>e&&(e.defer||e.defer===""),qv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Uv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gh=(e,t)=>{const n=e&&e.to;return io(n)?t?t(n):null:n},vB={name:"Teleport",__isTeleport:!0,process(e,t,n,o,s,r,l,i,a,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:y,parentNode:b}}=c,v=w1(t.props);let{dynamicChildren:w}=t;const k=(T,I,L)=>{T.shapeFlag&16&&u(T.children,I,L,s,r,l,i,a)},S=(T=t)=>{const I=w1(T.props),L=T.target=Gh(T.props,h),j=Yh(L,T,m,p);L&&(l!=="svg"&&qv(L)?l="svg":l!=="mathml"&&Uv(L)&&(l="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(L),I||(k(T,L,j),j2(T,!1)))},$=T=>{const I=()=>{if(la.get(T)===I){if(la.delete(T),w1(T.props)){const L=b(T.el)||n;k(T,L,T.anchor),j2(T,!0)}S(T)}};la.set(T,I),Do(I,r)};if(e==null){const T=t.el=m(""),I=t.anchor=m("");if(p(T,n,o),p(I,n,o),gB(t.props)||r&&r.pendingBranch){$(t);return}v&&(k(t,n,I),j2(t,!0)),S()}else{t.el=e.el;const T=t.anchor=e.anchor,I=la.get(e);if(I){I.flags|=8,la.delete(e),$(t);return}t.targetStart=e.targetStart;const L=t.target=e.target,j=t.targetAnchor=e.targetAnchor,O=w1(e.props),A=O?n:L,F=O?T:j;if(l==="svg"||qv(L)?l="svg":(l==="mathml"||Uv(L))&&(l="mathml"),w?(f(e.dynamicChildren,w,A,s,r,l,i),tm(e,t,!0)):a||d(e,t,A,F,s,r,l,i,!1),v)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):sf(t,n,T,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=Gh(t.props,h);P&&sf(t,P,null,c,0)}else O&&sf(t,L,j,c,1);j2(t,v)}},remove(e,t,n,{um:o,o:{remove:s}},r){const{shapeFlag:l,children:i,anchor:a,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=r||!w1(f),h=la.get(e);if(h&&(h.flags|=8,la.delete(e)),d&&(s(c),s(u)),r&&s(a),!h&&l&16)for(let m=0;m{e.isMounted=!0}),uo(()=>{e.isUnmounting=!0}),e}const Gr=[Function,Array],CC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gr,onEnter:Gr,onAfterEnter:Gr,onEnterCancelled:Gr,onBeforeLeave:Gr,onLeave:Gr,onAfterLeave:Gr,onLeaveCancelled:Gr,onBeforeAppear:Gr,onAppear:Gr,onAfterAppear:Gr,onAppearCancelled:Gr},MC=e=>{const t=e.subTree;return t.component?MC(t.component):t},yB={name:"BaseTransition",props:CC,setup(e,{slots:t}){const n=Xo(),o=SC();return()=>{const s=t.default&&U7(t.default(),!0),r=s&&s.length?AC(s):n.subTree?ne():void 0;if(!r)return;const l=Bn(e),{mode:i}=l;if(o.isLeaving)return tp(r);const a=Zv(r);if(!a)return tp(r);let c=Tu(a,l,o,n,d=>c=d);a.type!==Uo&&Ta(a,c);let u=n.subTree&&Zv(n.subTree);if(u&&u.type!==Uo&&!bl(u,a)&&MC(n).type!==Uo){let d=Tu(u,l,o,n);if(Ta(u,d),i==="out-in"&&a.type!==Uo)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},tp(r);i==="in-out"&&a.type!==Uo?d.delayLeave=(f,p,h)=>{const m=TC(o,u);m[String(u.key)]=u,f[el]=()=>{p(),f[el]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function AC(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Uo){t=n;break}}return t}const kB=yB;function TC(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Tu(e,t,n,o,s){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:y,onAppear:b,onAfterAppear:v,onAppearCancelled:w}=t,k=String(e.key),S=TC(n,e),$=(L,j)=>{L&&cl(L,o,9,j)},T=(L,j)=>{const O=j[1];$(L,j),qt(L)?L.every(A=>A.length<=1)&&O():L.length<=1&&O()},I={mode:l,persisted:i,beforeEnter(L){let j=a;if(!n.isMounted)if(r)j=y||a;else return;L[el]&&L[el](!0);const O=S[k];O&&bl(e,O)&&O.el[el]&&O.el[el](),$(j,[L])},enter(L){if(S[k]===e)return;let j=c,O=u,A=d;if(!n.isMounted)if(r)j=b||c,O=v||u,A=w||d;else return;let F=!1;L[m2]=H=>{F||(F=!0,H?$(A,[L]):$(O,[L]),I.delayedLeave&&I.delayedLeave(),L[m2]=void 0)};const P=L[m2].bind(null,!1);j?T(j,[L,P]):P()},leave(L,j){const O=String(e.key);if(L[m2]&&L[m2](!0),n.isUnmounting)return j();$(f,[L]);let A=!1;L[el]=P=>{A||(A=!0,j(),P?$(m,[L]):$(h,[L]),L[el]=void 0,S[O]===e&&delete S[O])};const F=L[el].bind(null,!1);S[O]=e,p?T(p,[L,F]):F()},clone(L){const j=Tu(L,t,n,o,s);return s&&s(j),j}};return I}function tp(e){if(id(e))return e=zi(e),e.children=null,e}function Zv(e){if(!id(e))return xC(e.type)&&e.children?AC(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&hn(n.default))return n.default()}}function Ta(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ta(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function U7(e,t=!1,n){let o=[],s=0;for(let r=0;r1)for(let r=0;rn.value,set:r=>n.value=r})}return n}function Kv(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const j3=new WeakMap;function oc(e,t,n,o,s=!1){if(qt(e)){e.forEach((m,y)=>oc(m,t&&(qt(t)?t[y]:t),n,o,s));return}if(Ei(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&oc(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?cd(o.component):o.el,l=s?null:r,{i,r:a}=e,c=t&&t.r,u=i.refs===In?i.refs={}:i.refs,d=i.setupState,f=Bn(d),p=d===In?VS:m=>Kv(u,m)?!1:Wn(f,m),h=(m,y)=>!(y&&Kv(u,y));if(c!=null&&c!==a){if(Gv(t),io(c))u[c]=null,p(c)&&(d[c]=null);else if(jo(c)){const m=t;h(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(hn(a))rd(a,i,12,[l,u]);else{const m=io(a),y=jo(a);if(m||y){const b=()=>{if(e.f){const v=m?p(a)?d[a]:u[a]:h()||!e.k?a.value:u[e.k];if(s)qt(v)&&R7(v,r);else if(qt(v))v.includes(r)||v.push(r);else if(m)u[a]=[r],p(a)&&(d[a]=u[a]);else{const w=[r];h(a,e.k)&&(a.value=w),e.k&&(u[e.k]=w)}}else m?(u[a]=l,p(a)&&(d[a]=l)):y&&(h(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const v=()=>{b(),j3.delete(e)};v.id=-1,j3.set(e,v),Do(v,n)}else Gv(e),b()}}}function Gv(e){const t=j3.get(e);t&&(t.flags|=8,j3.delete(e))}let Yv=!1;const _0=()=>{Yv||(console.error("Hydration completed but contains mismatches."),Yv=!0)},bB=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",_B=e=>e.namespaceURI.includes("MathML"),rf=e=>{if(e.nodeType===1){if(bB(e))return"svg";if(_B(e))return"mathml"}},V0=e=>e.nodeType===8;function xB(e){const{mt:t,p:n,o:{patchProp:o,createText:s,nextSibling:r,parentNode:l,remove:i,insert:a,createComment:c}}=e,u=(w,k)=>{if(!k.hasChildNodes()){n(null,w,k),B3(),k._vnode=w;return}d(k.firstChild,w,null,null,null),B3(),k._vnode=w},d=(w,k,S,$,T,I=!1)=>{I=I||!!k.dynamicChildren;const L=V0(w)&&w.data==="[",j=()=>m(w,k,S,$,T,L),{type:O,ref:A,shapeFlag:F,patchFlag:P}=k;let H=w.nodeType;k.el=w,P===-2&&(I=!1,k.dynamicChildren=null);let M=null;switch(O){case _a:H!==3?k.children===""?(a(k.el=s(""),l(w),w),M=w):M=j():(w.data!==k.children&&(_0(),w.data=k.children),M=r(w));break;case Uo:v(w)?(M=r(w),b(k.el=w.content.firstChild,w,S)):H!==8||L?M=j():M=r(w);break;case rc:if(L&&(w=r(w),H=w.nodeType),H===1||H===3){M=w;const B=!k.children.length;for(let R=0;R{I=I||!!k.dynamicChildren;const{type:L,props:j,patchFlag:O,shapeFlag:A,dirs:F,transition:P}=k,H=L==="input"||L==="option";if(H||O!==-1){F&&ql(k,null,S,"created");let M=!1;if(v(w)){M=ZC(null,P)&&S&&S.vnode.props&&S.vnode.props.appear;const R=w.content.firstChild;if(M){const W=R.getAttribute("class");W&&(R.$cls=W),P.beforeEnter(R)}b(R,w,S),k.el=w=R}if(A&16&&!(j&&(j.innerHTML||j.textContent))){let R=p(w.firstChild,k,w,S,$,T,I);for(R&&!lf(w,1)&&_0();R;){const W=R;R=R.nextSibling,i(W)}}else if(A&8){let R=k.children;R[0]===` +`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(R=R.slice(1));const{textContent:W}=w;W!==R&&W!==R.replace(/\r\n|\r/g,` +`)&&(lf(w,0)||_0(),w.textContent=k.children)}if(j){if(H||!I||O&48){const R=w.tagName.includes("-");for(const W in j)(H&&(W.endsWith("value")||W==="indeterminate")||sd(W)&&!L1(W)||W[0]==="."||R&&!L1(W))&&o(w,W,null,j[W],void 0,S)}else if(j.onClick)o(w,"onClick",null,j.onClick,void 0,S);else if(O&4&&ba(j.style))for(const R in j.style)j.style[R]}let B;(B=j&&j.onVnodeBeforeMount)&&hr(B,S,k),F&&ql(k,null,S,"beforeMount"),((B=j&&j.onVnodeMounted)||F||M)&&XC(()=>{B&&hr(B,S,k),M&&P.enter(w),F&&ql(k,null,S,"mounted")},$)}return w.nextSibling},p=(w,k,S,$,T,I,L)=>{L=L||!!k.dynamicChildren;const j=k.children,O=j.length;let A=!1;for(let F=0;F{const{slotScopeIds:L}=k;L&&(T=T?T.concat(L):L);const j=l(w),O=p(r(w),k,j,S,$,T,I);return O&&V0(O)&&O.data==="]"?r(k.anchor=O):(_0(),a(k.anchor=c("]"),j,O),O)},m=(w,k,S,$,T,I)=>{if(lf(w.parentElement,1)||_0(),k.el=null,I){const O=y(w);for(;;){const A=r(w);if(A&&A!==O)i(A);else break}}const L=r(w),j=l(w);return i(w),n(null,k,j,L,S,$,rf(j),T),S&&(S.vnode.el=k.el,v5(S,k.el)),L},y=(w,k="[",S="]")=>{let $=0;for(;w;)if(w=r(w),w&&V0(w)&&(w.data===k&&$++,w.data===S)){if($===0)return r(w);$--}return w},b=(w,k,S)=>{const $=k.parentNode;$&&$.replaceChild(w,k);let T=S;for(;T;)T.vnode.el===k&&(T.vnode.el=T.subTree.el=w),T=T.parent},v=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[u,d]}const Xv="data-allow-mismatch",SB={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function lf(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Xv);)e=e.parentElement;const n=e&&e.getAttribute(Xv);if(n==null)return!1;if(n==="")return!0;{const o=n.split(",");return t===0&&o.includes("children")?!0:o.includes(SB[t])}}const CB=i5().requestIdleCallback||(e=>setTimeout(e,1)),MB=i5().cancelIdleCallback||(e=>clearTimeout(e)),SRe=(e=1e4)=>t=>{const n=CB(t,{timeout:e});return()=>MB(n)};function AB(e){const{top:t,left:n,bottom:o,right:s}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:l}=window;return(t>0&&t0&&o0&&n0&&s(t,n)=>{const o=new IntersectionObserver(s=>{for(const r of s)if(r.isIntersecting){o.disconnect(),t();break}},e);return n(s=>{if(s instanceof Element){if(AB(s))return t(),o.disconnect(),!1;o.observe(s)}}),()=>o.disconnect()},MRe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},ARe=(e=[])=>(t,n)=>{io(e)&&(e=[e]);let o=!1;const s=l=>{o||(o=!0,r(),t(),l.target.dispatchEvent(new l.constructor(l.type,l)))},r=()=>{n(l=>{for(const i of e)l.removeEventListener(i,s)})};return n(l=>{for(const i of e)l.addEventListener(i,s,{once:!0})}),r};function TB(e,t){if(V0(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(V0(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const Ei=e=>!!e.type.__asyncLoader;function ol(e){hn(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:s=200,hydrate:r,timeout:l,suspensible:i=!0,onError:a}=e;let c=null,u,d=0;const f=()=>(d++,c=null,p()),p=()=>{let h;return c||(h=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((y,b)=>{a(m,()=>y(f()),()=>b(m),d+1)});throw m}).then(m=>h!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,m,y){let b=!1;(m.bu||(m.bu=[])).push(()=>b=!0);const v=()=>{b||y()},w=r?()=>{const k=r(v,S=>TB(h,S));k&&(m.bum||(m.bum=[])).push(k)}:v;u?w():p().then(()=>!m.isUnmounted&&w())},get __asyncResolved(){return u},setup(){const h=Ms;if(Z7(h),u)return()=>af(u,h);const m=w=>{c=null,Bc(w,h,13,!o)};if(i&&h.suspense||P1)return p().then(w=>()=>af(w,h)).catch(w=>(m(w),()=>o?Z(o,{error:w}):null));const y=q(!1),b=q(),v=q(!!s);return s&&setTimeout(()=>{v.value=!1},s),l!=null&&setTimeout(()=>{if(!y.value&&!b.value){const w=new Error(`Async component timed out after ${l}ms.`);m(w),b.value=w}},l),p().then(()=>{y.value=!0,h.parent&&id(h.parent.vnode)&&h.parent.update()}).catch(w=>{m(w),b.value=w}),()=>{if(y.value&&u)return af(u,h);if(b.value&&o)return Z(o,{error:b.value});if(n&&!v.value)return af(n,h)}}})}function af(e,t){const{ref:n,props:o,children:s,ce:r}=t.vnode,l=Z(e,o,s);return l.ref=n,l.ce=r,delete t.vnode.ce,l}const id=e=>e.type.__isKeepAlive,EB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Xo(),o=n.ctx;if(!o.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const s=new Map,r=new Set;let l=null;const i=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=o,f=d("div");o.activate=(v,w,k,S,$)=>{const T=v.component;c(v,w,k,0,i),a(T.vnode,v,w,k,T,i,S,v.slotScopeIds,$),Do(()=>{T.isDeactivated=!1,T.a&&tc(T.a);const I=v.props&&v.props.onVnodeMounted;I&&hr(I,T.parent,v)},i)},o.deactivate=v=>{const w=v.component;F3(w.m),F3(w.a),c(v,f,null,1,i),Do(()=>{w.da&&tc(w.da);const k=v.props&&v.props.onVnodeUnmounted;k&&hr(k,w.parent,v),w.isDeactivated=!0},i)};function p(v){np(v),u(v,n,i,!0)}function h(v){s.forEach((w,k)=>{const S=r8(Ei(w)?w.type.__asyncResolved||{}:w.type);S&&!v(S)&&m(k)})}function m(v){const w=s.get(v);w&&(!l||!bl(w,l))?p(w):l&&np(l),s.delete(v),r.delete(v)}Xe(()=>[e.include,e.exclude],([v,w])=>{v&&h(k=>O2(v,k)),w&&h(k=>!O2(w,k))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(R3(n.subTree.type)?Do(()=>{s.set(y,cf(n.subTree))},n.subTree.suspense):s.set(y,cf(n.subTree)))};return Sn(b),K7(b),uo(()=>{s.forEach(v=>{const{subTree:w,suspense:k}=n,S=cf(w);if(v.type===S.type&&v.key===S.key){np(S);const $=S.component.da;$&&Do($,k);return}p(v)})}),()=>{if(y=null,!t.default)return l=null;const v=t.default(),w=v[0];if(v.length>1)return l=null,v;if(!Ea(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return l=null,w;let k=cf(w);if(k.type===Uo)return l=null,k;const S=k.type,$=r8(Ei(k)?k.type.__asyncResolved||{}:S),{include:T,exclude:I,max:L}=e;if(T&&(!$||!O2(T,$))||I&&$&&O2(I,$))return k.shapeFlag&=-257,l=k,w;const j=k.key==null?S:k.key,O=s.get(j);return k.el&&(k=zi(k),w.shapeFlag&128&&(w.ssContent=k)),y=j,O?(k.el=O.el,k.component=O.component,k.transition&&Ta(k,k.transition),k.shapeFlag|=512,r.delete(j),r.add(j)):(r.add(j),L&&r.size>parseInt(L,10)&&m(r.values().next().value)),k.shapeFlag|=256,l=k,R3(w.type)?w:k}}},TRe=EB;function O2(e,t){return qt(e)?e.some(n=>O2(n,t)):io(e)?e.split(",").includes(t):mz(e)?(e.lastIndex=0,e.test(t)):!1}function IB(e,t){EC(e,"a",t)}function LB(e,t){EC(e,"da",t)}function EC(e,t,n=Ms){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(m5(t,o,n),n){let s=n.parent;for(;s&&s.parent;)id(s.parent.vnode)&&$B(o,t,n,s),s=s.parent}}function $B(e,t,n,o){const s=m5(t,e,o,!0);An(()=>{R7(o[t],s)},n)}function np(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function cf(e){return e.shapeFlag&128?e.ssContent:e}function m5(e,t,n=Ms,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{Li();const i=jc(n),a=cl(t,n,e,l);return i(),$i(),a});return o?s.unshift(r):s.push(r),r}}const Di=e=>(t,n=Ms)=>{(!P1||e==="sp")&&m5(e,(...o)=>t(...o),n)},NB=Di("bm"),Sn=Di("m"),IC=Di("bu"),K7=Di("u"),uo=Di("bum"),An=Di("um"),zB=Di("sp"),BB=Di("rtg"),jB=Di("rtc");function OB(e,t=Ms){m5("ec",e,t)}const G7="components",FB="directives";function RB(e,t){return Y7(G7,e,!0,t)||e}const LC=Symbol.for("v-ndc");function Wo(e){return io(e)?Y7(G7,e,!1)||e:e||LC}function ERe(e){return Y7(FB,e)}function Y7(e,t,n=!0,o=!1){const s=Ts||Ms;if(s){const r=s.type;if(e===G7){const i=r8(r,!1);if(i&&(i===t||i===rs(t)||i===r5(rs(t))))return r}const l=Jv(s[e]||r[e],t)||Jv(s.appContext[e],t);return!l&&o?r:l}}function Jv(e,t){return e&&(e[t]||e[rs(t)]||e[r5(rs(t))])}function rt(e,t,n,o){let s;const r=n&&n[o],l=qt(e);if(l||io(e)){const i=l&&ba(e);let a=!1,c=!1;i&&(a=!Or(e),c=Ni(e),e=u5(e)),s=new Array(e.length);for(let u=0,d=e.length;ut(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);s=new Array(i.length);for(let a=0,c=i.length;a{const r=o.fn(...s);return r&&(r.key=o.key),r}:o.fn)}return e}function bn(e,t,n={},o,s){if(Ts.ce||Ts.parent&&Ei(Ts.parent)&&Ts.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),g(),fe(Le,null,[Z("slot",n,o&&o())],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),g();const l=r&&X7(r(n)),i=n.key||l&&l.key,a=fe(Le,{key:(i&&!Vr(i)?i:`_${t}`)+(!l&&o?"_fb":"")},l||(o?o():[]),l&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function X7(e){return e.some(t=>Ea(t)?!(t.type===Uo||t.type===Le&&!X7(t.children)):!0)?e:null}function IRe(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:t3(o)]=e[o];return n}const Xh=e=>e?oM(e)?cd(e):Xh(e.parent):null,nu=no(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xh(e.parent),$root:e=>Xh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>J7(e),$forceUpdate:e=>e.f||(e.f=()=>{q7(e.update)}),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>mB.bind(e)}),op=(e,t)=>e!==In&&!e.__isScriptSetup&&Wn(e,t),Jh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:r,accessCache:l,type:i,appContext:a}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(op(o,t))return l[t]=1,o[t];if(s!==In&&Wn(s,t))return l[t]=2,s[t];if(Wn(r,t))return l[t]=3,r[t];if(n!==In&&Wn(n,t))return l[t]=4,n[t];Qh&&(l[t]=0)}}const c=nu[t];let u,d;if(c)return t==="$attrs"&&Rs(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==In&&Wn(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,Wn(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return op(s,t)?(s[t]=n,!0):o!==In&&Wn(o,t)?(o[t]=n,!0):Wn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:r,type:l}},i){let a;return!!(n[i]||e!==In&&i[0]!=="$"&&Wn(e,i)||op(t,i)||Wn(r,i)||Wn(o,i)||Wn(nu,i)||Wn(s.config.globalProperties,i)||(a=l.__cssModules)&&a[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Wn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},HB=no({},Jh,{get(e,t){if(t!==Symbol.unscopables)return Jh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!kz(t)}});function LRe(){return null}function $Re(){return null}function NRe(e){}function zRe(e){}function BRe(){return null}function jRe(){}function ORe(e,t){return null}function FRe(){return $C().slots}function ad(){return $C().attrs}function $C(e){const t=Xo();return t.setupContext||(t.setupContext=lM(t))}function Iu(e){return qt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function RRe(e,t){const n=Iu(e);for(const o in t){if(o.startsWith("__skip"))continue;let s=n[o];s?qt(s)||hn(s)?s=n[o]={type:s,default:t[o]}:s.default=t[o]:s===null&&(s=n[o]={default:t[o]}),s&&t[`__skip_${o}`]&&(s.skipFactory=!0)}return n}function HRe(e,t){return!e||!t?e||t:qt(e)&&qt(t)?e.concat(t):no({},Iu(e),Iu(t))}function PRe(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function DRe(e){const t=Xo(),n=P1;let o=e();$u(),n&&lc(!1);const s=()=>{jc(t),n&&lc(!0)},r=()=>{Xo()!==t&&t.scope.off(),$u(),n&&lc(!1)};return H7(o)&&(o=o.catch(l=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(r)),l})),[o,()=>{s(),Promise.resolve().then(r)}]}let Qh=!0;function PB(e){const t=J7(e),n=e.proxy,o=e.ctx;Qh=!1,t.beforeCreate&&Qv(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:l,watch:i,provide:a,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:w,unmounted:k,render:S,renderTracked:$,renderTriggered:T,errorCaptured:I,serverPrefetch:L,expose:j,inheritAttrs:O,components:A,directives:F,filters:P}=t;if(c&&DB(c,o,null),l)for(const B in l){const R=l[B];hn(R)&&(o[B]=R.bind(n))}if(s){const B=s.call(n,n);qn(B)&&(e.data=As(B))}if(Qh=!0,r)for(const B in r){const R=r[B],W=hn(R)?R.bind(n,n):hn(R.get)?R.get.bind(n,n):il,le=!hn(R)&&hn(R.set)?R.set.bind(n):il,J=z({get:W,set:le});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>J.value,set:G=>J.value=G})}if(i)for(const B in i)NC(i[B],o,n,B);if(a){const B=hn(a)?a.call(n):a;Reflect.ownKeys(B).forEach(R=>{Vn(R,B[R])})}u&&Qv(u,e,"c");function M(B,R){qt(R)?R.forEach(W=>B(W.bind(n))):R&&B(R.bind(n))}if(M(NB,d),M(Sn,f),M(IC,p),M(K7,h),M(IB,m),M(LB,y),M(OB,I),M(jB,$),M(BB,T),M(uo,v),M(An,k),M(zB,L),qt(j))if(j.length){const B=e.exposed||(e.exposed={});j.forEach(R=>{Object.defineProperty(B,R,{get:()=>n[R],set:W=>n[R]=W,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===il&&(e.render=S),O!=null&&(e.inheritAttrs=O),A&&(e.components=A),F&&(e.directives=F),L&&Z7(e)}function DB(e,t,n=il){qt(e)&&(e=e8(e));for(const o in e){const s=e[o];let r;qn(s)?"default"in s?r=kn(s.from||o,s.default,!0):r=kn(s.from||o):r=kn(s),jo(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[o]=r}}function Qv(e,t,n){cl(qt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function NC(e,t,n,o){let s=o.includes(".")?bC(n,o):()=>n[o];if(io(e)){const r=t[e];hn(r)&&Xe(s,r)}else if(hn(e))Xe(s,e.bind(n));else if(qn(e))if(qt(e))e.forEach(r=>NC(r,t,n,o));else{const r=hn(e.handler)?e.handler.bind(n):t[e.handler];hn(r)&&Xe(s,r,e)}}function J7(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,i=r.get(t);let a;return i?a=i:!s.length&&!n&&!o?a=t:(a={},s.length&&s.forEach(c=>O3(a,c,l,!0)),O3(a,t,l)),qn(t)&&r.set(t,a),a}function O3(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&O3(e,r,n,!0),s&&s.forEach(l=>O3(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const i=VB[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const VB={data:ew,props:tw,emits:tw,methods:F2,computed:F2,beforeCreate:Ks,created:Ks,beforeMount:Ks,mounted:Ks,beforeUpdate:Ks,updated:Ks,beforeDestroy:Ks,beforeUnmount:Ks,destroyed:Ks,unmounted:Ks,activated:Ks,deactivated:Ks,errorCaptured:Ks,serverPrefetch:Ks,components:F2,directives:F2,watch:qB,provide:ew,inject:WB};function ew(e,t){return t?e?function(){return no(hn(e)?e.call(this,this):e,hn(t)?t.call(this,this):t)}:t:e}function WB(e,t){return F2(e8(e),e8(t))}function e8(e){if(qt(e)){const t={};for(let n=0;n{let u,d=In,f;return hB(()=>{const p=e[s];Cs(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const h=n.set?n.set(p):p;if(!Cs(h,u)&&!(d!==In&&Cs(p,d)))return;const m=o.vnode.props;m&&(t in m||s in m||r in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${r}`in m)||(u=p,c()),o.emit(`update:${t}`,h),Cs(p,h)&&Cs(p,d)&&!Cs(h,f)&&c(),d=p,f=h}}});return i[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?l||In:i,done:!1}:{done:!0}}}},i}const BC=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rs(t)}Modifiers`]||e[`${kr(t)}Modifiers`];function KB(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||In;let s=n;const r=t.startsWith("update:"),l=r&&BC(o,t.slice(7));l&&(l.trim&&(s=n.map(u=>io(u)?u.trim():u)),l.number&&(s=n.map(l5)));let i,a=o[i=t3(t)]||o[i=t3(rs(t))];!a&&r&&(a=o[i=t3(kr(t))]),a&&cl(a,e,6,s);const c=o[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,cl(c,e,6,s)}}const GB=new WeakMap;function jC(e,t,n=!1){const o=n?GB:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let l={},i=!1;if(!hn(e)){const a=c=>{const u=jC(c,t,!0);u&&(i=!0,no(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!i?(qn(e)&&o.set(e,null),null):(qt(r)?r.forEach(a=>l[a]=null):no(l,r),qn(e)&&o.set(e,l),l)}function g5(e,t){return!e||!sd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wn(e,t[0].toLowerCase()+t.slice(1))||Wn(e,kr(t))||Wn(e,t))}function o3(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[r],slots:l,attrs:i,emit:a,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:h,inheritAttrs:m}=e,y=Au(e);let b,v;try{if(n.shapeFlag&4){const k=s||o,S=k;b=yr(c.call(S,k,u,d,p,f,h)),v=i}else{const k=t;b=yr(k.length>1?k(d,{attrs:i,slots:l,emit:a}):k(d,null)),v=t.props?i:XB(i)}}catch(k){ou.length=0,Bc(k,e,1),b=Z(Uo)}let w=b;if(v&&m!==!1){const k=Object.keys(v),{shapeFlag:S}=w;k.length&&S&7&&(r&&k.some(t5)&&(v=JB(v,r)),w=zi(w,v,!1,!0))}return n.dirs&&(w=zi(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Ta(w,n.transition),b=w,Au(y),b}function YB(e,t=!0){let n;for(let o=0;o{let t;for(const n in e)(n==="class"||n==="style"||sd(n))&&((t||(t={}))[n]=e[n]);return t},JB=(e,t)=>{const n={};for(const o in e)(!t5(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function QB(e,t,n){const{props:o,children:s,component:r}=e,{props:l,children:i,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?nw(o,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let d=0;dObject.create(FC),HC=e=>Object.getPrototypeOf(e)===FC;function ej(e,t,n,o=!1){const s={},r=RC();e.propsDefaults=Object.create(null),PC(e,t,s,r);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=o?s:Gz(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function tj(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:l}}=e,i=Bn(s),[a]=e.propsOptions;let c=!1;if((o||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,p]=DC(d,t,!0);no(l,f),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return qn(e)&&o.set(e,Q0),Q0;if(qt(r))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",em=e=>qt(e)?e.map(yr):[yr(e)],oj=(e,t,n)=>{if(t._n)return t;const o=ve((...s)=>em(t(...s)),n);return o._c=!1,o},VC=(e,t,n)=>{const o=e._ctx;for(const s in e){if(Q7(s))continue;const r=e[s];if(hn(r))t[s]=oj(s,r,o);else if(r!=null){const l=em(r);t[s]=()=>l}}},WC=(e,t)=>{const n=em(t);e.slots.default=()=>n},qC=(e,t,n)=>{for(const o in t)(n||!Q7(o))&&(e[o]=t[o])},sj=(e,t,n)=>{const o=e.slots=RC();if(e.vnode.shapeFlag&32){const s=t._;s?(qC(o,t,n),n&&qS(o,"_",s,!0)):VC(t,o)}else t&&WC(e,t)},rj=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,l=In;if(o.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:qC(s,t,n):(r=!t.$stable,VC(t,s)),l=t}else t&&(WC(e,t),l={default:1});if(r)for(const i in s)!Q7(i)&&l[i]==null&&delete s[i]},Do=XC;function lj(e){return UC(e)}function ij(e){return UC(e,xB)}function UC(e,t){const n=i5();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:l,createText:i,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=il,insertStaticContent:h}=e,m=(D,Y,we,pe=null,de=null,X=null,ae=void 0,ke=null,xe=!!Y.dynamicChildren)=>{if(D===Y)return;D&&!bl(D,Y)&&(pe=me(D),G(D,de,X,!0),D=null),Y.patchFlag===-2&&(xe=!1,Y.dynamicChildren=null);const{type:ue,ref:Se,shapeFlag:se}=Y;switch(ue){case _a:y(D,Y,we,pe);break;case Uo:b(D,Y,we,pe);break;case rc:D==null&&v(Y,we,pe,ae);break;case Le:A(D,Y,we,pe,de,X,ae,ke,xe);break;default:se&1?S(D,Y,we,pe,de,X,ae,ke,xe):se&6?F(D,Y,we,pe,de,X,ae,ke,xe):(se&64||se&128)&&ue.process(D,Y,we,pe,de,X,ae,ke,xe,ge)}Se!=null&&de?oc(Se,D&&D.ref,X,Y||D,!Y):Se==null&&D&&D.ref!=null&&oc(D.ref,null,X,D,!0)},y=(D,Y,we,pe)=>{if(D==null)o(Y.el=i(Y.children),we,pe);else{const de=Y.el=D.el;Y.children!==D.children&&c(de,Y.children)}},b=(D,Y,we,pe)=>{D==null?o(Y.el=a(Y.children||""),we,pe):Y.el=D.el},v=(D,Y,we,pe)=>{[D.el,D.anchor]=h(D.children,Y,we,pe,D.el,D.anchor)},w=({el:D,anchor:Y},we,pe)=>{let de;for(;D&&D!==Y;)de=f(D),o(D,we,pe),D=de;o(Y,we,pe)},k=({el:D,anchor:Y})=>{let we;for(;D&&D!==Y;)we=f(D),s(D),D=we;s(Y)},S=(D,Y,we,pe,de,X,ae,ke,xe)=>{if(Y.type==="svg"?ae="svg":Y.type==="math"&&(ae="mathml"),D==null)$(Y,we,pe,de,X,ae,ke,xe);else{const ue=D.el&&D.el._isVueCE?D.el:null;try{ue&&ue._beginPatch(),L(D,Y,de,X,ae,ke,xe)}finally{ue&&ue._endPatch()}}},$=(D,Y,we,pe,de,X,ae,ke)=>{let xe,ue;const{props:Se,shapeFlag:se,transition:be,dirs:je}=D;if(xe=D.el=l(D.type,X,Se&&Se.is,Se),se&8?u(xe,D.children):se&16&&I(D.children,xe,null,pe,de,sp(D,X),ae,ke),je&&ql(D,null,pe,"created"),T(xe,D,D.scopeId,ae,pe),Se){for(const pt in Se)pt!=="value"&&!L1(pt)&&r(xe,pt,null,Se[pt],X,pe);"value"in Se&&r(xe,"value",null,Se.value,X),(ue=Se.onVnodeBeforeMount)&&hr(ue,pe,D)}je&&ql(D,null,pe,"beforeMount");const ut=ZC(de,be);ut&&be.beforeEnter(xe),o(xe,Y,we),((ue=Se&&Se.onVnodeMounted)||ut||je)&&Do(()=>{try{ue&&hr(ue,pe,D),ut&&be.enter(xe),je&&ql(D,null,pe,"mounted")}finally{}},de)},T=(D,Y,we,pe,de)=>{if(we&&p(D,we),pe)for(let X=0;X{for(let ue=xe;ue{const ke=Y.el=D.el;let{patchFlag:xe,dynamicChildren:ue,dirs:Se}=Y;xe|=D.patchFlag&16;const se=D.props||In,be=Y.props||In;let je;if(we&&r1(we,!1),(je=be.onVnodeBeforeUpdate)&&hr(je,we,Y,D),Se&&ql(Y,D,we,"beforeUpdate"),we&&r1(we,!0),(se.innerHTML&&be.innerHTML==null||se.textContent&&be.textContent==null)&&u(ke,""),ue?j(D.dynamicChildren,ue,ke,we,pe,sp(Y,de),X):ae||R(D,Y,ke,null,we,pe,sp(Y,de),X,!1),xe>0){if(xe&16)O(ke,se,be,we,de);else if(xe&2&&se.class!==be.class&&r(ke,"class",null,be.class,de),xe&4&&r(ke,"style",se.style,be.style,de),xe&8){const ut=Y.dynamicProps;for(let pt=0;pt{je&&hr(je,we,Y,D),Se&&ql(Y,D,we,"updated")},pe)},j=(D,Y,we,pe,de,X,ae)=>{for(let ke=0;ke{if(Y!==we){if(Y!==In)for(const X in Y)!L1(X)&&!(X in we)&&r(D,X,Y[X],null,de,pe);for(const X in we){if(L1(X))continue;const ae=we[X],ke=Y[X];ae!==ke&&X!=="value"&&r(D,X,ke,ae,de,pe)}"value"in we&&r(D,"value",Y.value,we.value,de)}},A=(D,Y,we,pe,de,X,ae,ke,xe)=>{const ue=Y.el=D?D.el:i(""),Se=Y.anchor=D?D.anchor:i("");let{patchFlag:se,dynamicChildren:be,slotScopeIds:je}=Y;je&&(ke=ke?ke.concat(je):je),D==null?(o(ue,we,pe),o(Se,we,pe),I(Y.children||[],we,Se,de,X,ae,ke,xe)):se>0&&se&64&&be&&D.dynamicChildren&&D.dynamicChildren.length===be.length?(j(D.dynamicChildren,be,we,de,X,ae,ke),(Y.key!=null||de&&Y===de.subTree)&&tm(D,Y,!0)):R(D,Y,we,Se,de,X,ae,ke,xe)},F=(D,Y,we,pe,de,X,ae,ke,xe)=>{Y.slotScopeIds=ke,D==null?Y.shapeFlag&512?de.ctx.activate(Y,we,pe,ae,xe):P(Y,we,pe,de,X,ae,xe):H(D,Y,xe)},P=(D,Y,we,pe,de,X,ae)=>{const ke=D.component=nM(D,pe,de);if(id(D)&&(ke.ctx.renderer=ge),sM(ke,!1,ae),ke.asyncDep){if(de&&de.registerDep(ke,M,ae),!D.el){const xe=ke.subTree=Z(Uo);b(null,xe,Y,we),D.placeholder=xe.el}}else M(ke,D,Y,we,de,X,ae)},H=(D,Y,we)=>{const pe=Y.component=D.component;if(QB(D,Y,we))if(pe.asyncDep&&!pe.asyncResolved){B(pe,Y,we);return}else pe.next=Y,pe.update();else Y.el=D.el,pe.vnode=Y},M=(D,Y,we,pe,de,X,ae)=>{const ke=()=>{if(D.isMounted){let{next:se,bu:be,u:je,parent:ut,vnode:pt}=D;{const Je=KC(D);if(Je){se&&(se.el=pt.el,B(D,se,ae)),Je.asyncDep.then(()=>{Do(()=>{D.isUnmounted||ue()},de)});return}}let At=se,Tt;r1(D,!1),se?(se.el=pt.el,B(D,se,ae)):se=pt,be&&tc(be),(Tt=se.props&&se.props.onVnodeBeforeUpdate)&&hr(Tt,ut,se,pt),r1(D,!0);const Xt=o3(D),en=D.subTree;D.subTree=Xt,m(en,Xt,d(en.el),me(en),D,de,X),se.el=Xt.el,At===null&&v5(D,Xt.el),je&&Do(je,de),(Tt=se.props&&se.props.onVnodeUpdated)&&Do(()=>hr(Tt,ut,se,pt),de)}else{let se;const{el:be,props:je}=Y,{bm:ut,m:pt,parent:At,root:Tt,type:Xt}=D,en=Ei(Y);if(r1(D,!1),ut&&tc(ut),!en&&(se=je&&je.onVnodeBeforeMount)&&hr(se,At,Y),r1(D,!0),be&&oe){const Je=()=>{D.subTree=o3(D),oe(be,D.subTree,D,de,null)};en&&Xt.__asyncHydrate?Xt.__asyncHydrate(be,D,Je):Je()}else{Tt.ce&&Tt.ce._hasShadowRoot()&&Tt.ce._injectChildStyle(Xt,D.parent?D.parent.type:void 0);const Je=D.subTree=o3(D);m(null,Je,we,pe,D,de,X),Y.el=Je.el}if(pt&&Do(pt,de),!en&&(se=je&&je.onVnodeMounted)){const Je=Y;Do(()=>hr(se,At,Je),de)}(Y.shapeFlag&256||At&&Ei(At.vnode)&&At.vnode.shapeFlag&256)&&D.a&&Do(D.a,de),D.isMounted=!0,Y=we=pe=null}};D.scope.on();const xe=D.effect=new I3(ke);D.scope.off();const ue=D.update=xe.run.bind(xe),Se=D.job=xe.runIfDirty.bind(xe);Se.i=D,Se.id=D.uid,xe.scheduler=()=>q7(Se),r1(D,!0),ue()},B=(D,Y,we)=>{Y.component=D;const pe=D.vnode.props;D.vnode=Y,D.next=null,tj(D,Y.props,pe,we),rj(D,Y.children,we),Li(),Wv(D),$i()},R=(D,Y,we,pe,de,X,ae,ke,xe=!1)=>{const ue=D&&D.children,Se=D?D.shapeFlag:0,se=Y.children,{patchFlag:be,shapeFlag:je}=Y;if(be>0){if(be&128){le(ue,se,we,pe,de,X,ae,ke,xe);return}else if(be&256){W(ue,se,we,pe,de,X,ae,ke,xe);return}}je&8?(Se&16&&U(ue,de,X),se!==ue&&u(we,se)):Se&16?je&16?le(ue,se,we,pe,de,X,ae,ke,xe):U(ue,de,X,!0):(Se&8&&u(we,""),je&16&&I(se,we,pe,de,X,ae,ke,xe))},W=(D,Y,we,pe,de,X,ae,ke,xe)=>{D=D||Q0,Y=Y||Q0;const ue=D.length,Se=Y.length,se=Math.min(ue,Se);let be;for(be=0;beSe?U(D,de,X,!0,!1,se):I(Y,we,pe,de,X,ae,ke,xe,se)},le=(D,Y,we,pe,de,X,ae,ke,xe)=>{let ue=0;const Se=Y.length;let se=D.length-1,be=Se-1;for(;ue<=se&&ue<=be;){const je=D[ue],ut=Y[ue]=xe?yi(Y[ue]):yr(Y[ue]);if(bl(je,ut))m(je,ut,we,null,de,X,ae,ke,xe);else break;ue++}for(;ue<=se&&ue<=be;){const je=D[se],ut=Y[be]=xe?yi(Y[be]):yr(Y[be]);if(bl(je,ut))m(je,ut,we,null,de,X,ae,ke,xe);else break;se--,be--}if(ue>se){if(ue<=be){const je=be+1,ut=jebe)for(;ue<=se;)G(D[ue],de,X,!0),ue++;else{const je=ue,ut=ue,pt=new Map;for(ue=ut;ue<=be;ue++){const Ot=Y[ue]=xe?yi(Y[ue]):yr(Y[ue]);Ot.key!=null&&pt.set(Ot.key,ue)}let At,Tt=0;const Xt=be-ut+1;let en=!1,Je=0;const st=new Array(Xt);for(ue=0;ue=Xt){G(Ot,de,X,!0);continue}let Be;if(Ot.key!=null)Be=pt.get(Ot.key);else for(At=ut;At<=be;At++)if(st[At-ut]===0&&bl(Ot,Y[At])){Be=At;break}Be===void 0?G(Ot,de,X,!0):(st[Be-ut]=ue+1,Be>=Je?Je=Be:en=!0,m(Ot,Y[Be],we,null,de,X,ae,ke,xe),Tt++)}const at=en?aj(st):Q0;for(At=at.length-1,ue=Xt-1;ue>=0;ue--){const Ot=ut+ue,Be=Y[Ot],Qe=Y[Ot+1],lt=Ot+1{const{el:X,type:ae,transition:ke,children:xe,shapeFlag:ue}=D;if(ue&6){J(D.component.subTree,Y,we,pe);return}if(ue&128){D.suspense.move(Y,we,pe);return}if(ue&64){ae.move(D,Y,we,ge);return}if(ae===Le){o(X,Y,we);for(let se=0;seke.enter(X),de));else{const{leave:se,delayLeave:be,afterLeave:je}=ke,ut=()=>{D.ctx.isUnmounted?s(X):o(X,Y,we)},pt=()=>{const At=X._isLeaving||!!X[el];X._isLeaving&&X[el](!0),ke.persisted&&!At?ut():se(X,()=>{ut(),je&&je()})};be?be(X,ut,pt):pt()}else o(X,Y,we)},G=(D,Y,we,pe=!1,de=!1)=>{const{type:X,props:ae,ref:ke,children:xe,dynamicChildren:ue,shapeFlag:Se,patchFlag:se,dirs:be,cacheIndex:je,memo:ut}=D;if(se===-2&&(de=!1),ke!=null&&(Li(),oc(ke,null,we,D,!0),$i()),je!=null&&(Y.renderCache[je]=void 0),Se&256){Y.ctx.deactivate(D);return}const pt=Se&1&&be,At=!Ei(D);let Tt;if(At&&(Tt=ae&&ae.onVnodeBeforeUnmount)&&hr(Tt,Y,D),Se&6)te(D.component,we,pe);else{if(Se&128){D.suspense.unmount(we,pe);return}pt&&ql(D,null,Y,"beforeUnmount"),Se&64?D.type.remove(D,Y,we,ge,pe):ue&&!ue.hasOnce&&(X!==Le||se>0&&se&64)?U(ue,Y,we,!1,!0):(X===Le&&se&384||!de&&Se&16)&&U(xe,Y,we),pe&&K(D)}const Xt=ut!=null&&je==null;(At&&(Tt=ae&&ae.onVnodeUnmounted)||pt||Xt)&&Do(()=>{Tt&&hr(Tt,Y,D),pt&&ql(D,null,Y,"unmounted"),Xt&&(D.el=null)},we)},K=D=>{const{type:Y,el:we,anchor:pe,transition:de}=D;if(Y===Le){Q(we,pe);return}if(Y===rc){k(D);return}const X=()=>{s(we),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(D.shapeFlag&1&&de&&!de.persisted){const{leave:ae,delayLeave:ke}=de,xe=()=>ae(we,X);ke?ke(D.el,X,xe):xe()}else X()},Q=(D,Y)=>{let we;for(;D!==Y;)we=f(D),s(D),D=we;s(Y)},te=(D,Y,we)=>{const{bum:pe,scope:de,job:X,subTree:ae,um:ke,m:xe,a:ue}=D;F3(xe),F3(ue),pe&&tc(pe),de.stop(),X&&(X.flags|=8,G(ae,D,Y,we)),ke&&Do(ke,Y),Do(()=>{D.isUnmounted=!0},Y)},U=(D,Y,we,pe=!1,de=!1,X=0)=>{for(let ae=X;ae{if(D.shapeFlag&6)return me(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const Y=f(D.anchor||D.el),we=Y&&Y[_C];return we?f(we):Y};let _e=!1;const Pe=(D,Y,we)=>{let pe;D==null?Y._vnode&&(G(Y._vnode,null,null,!0),pe=Y._vnode.component):m(Y._vnode||null,D,Y,null,null,null,we),Y._vnode=D,_e||(_e=!0,Wv(pe),B3(),_e=!1)},ge={p:m,um:G,m:J,r:K,mt:P,mc:I,pc:R,pbc:j,n:me,o:e};let ee,oe;return t&&([ee,oe]=t(ge)),{render:Pe,hydrate:ee,createApp:ZB(Pe,ee)}}function sp({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function r1({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ZC(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tm(e,t,n=!1){const o=e.children,s=t.children;if(qt(o)&&qt(s))for(let r=0;r>1,e[n[i]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function KC(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:KC(t)}function F3(e){if(e)for(let t=0;te.__isSuspense;let n8=0;const cj={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,r,l,i,a,c){if(e==null)uj(t,n,o,s,r,l,i,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}dj(e,t,n,o,s,l,i,a,c)}},hydrate:fj,normalize:pj},WRe=cj;function Lu(e,t){const n=e.props&&e.props[t];hn(n)&&n()}function uj(e,t,n,o,s,r,l,i,a){const{p:c,o:{createElement:u}}=a,d=u("div"),f=e.suspense=YC(e,s,o,t,d,n,r,l,i,a);c(null,f.pendingBranch=e.ssContent,d,null,o,f,r,l),f.deps>0?(Lu(e,"onPending"),Lu(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,r,l),sc(f,e.ssFallback)):f.resolve(!1,!0)}function dj(e,t,n,o,s,r,l,i,{p:a,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:y,isHydrating:b}=d;if(m)d.pendingBranch=f,bl(m,f)?(a(m,f,d.hiddenContainer,null,s,d,r,l,i),d.deps<=0?d.resolve():y&&(b||(a(h,p,n,o,s,null,r,l,i),sc(d,p)))):(d.pendingId=n8++,b?(d.isHydrating=!1,d.activeBranch=m):c(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),y?(a(null,f,d.hiddenContainer,null,s,d,r,l,i),d.deps<=0?d.resolve():(a(h,p,n,o,s,null,r,l,i),sc(d,p))):h&&bl(h,f)?(a(h,f,n,o,s,d,r,l,i),d.resolve(!0)):(a(null,f,d.hiddenContainer,null,s,d,r,l,i),d.deps<=0&&d.resolve()));else if(h&&bl(h,f))a(h,f,n,o,s,d,r,l,i),sc(d,f);else if(Lu(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=n8++,a(null,f,d.hiddenContainer,null,s,d,r,l,i),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:w}=d;v>0?setTimeout(()=>{d.pendingId===w&&d.fallback(p)},v):v===0&&d.fallback(p)}}function YC(e,t,n,o,s,r,l,i,a,c,u=!1){const{p:d,m:f,um:p,n:h,o:{parentNode:m,remove:y}}=c;let b;const v=hj(e);v&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const w=e.props?E3(e.props.timeout):void 0,k=r,S={vnode:e,parent:t,parentComponent:n,namespace:l,container:o,hiddenContainer:s,deps:0,pendingId:n8++,timeout:typeof w=="number"?w:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve($=!1,T=!1){const{vnode:I,activeBranch:L,pendingBranch:j,pendingId:O,effects:A,parentComponent:F,container:P,isInFallback:H}=S;let M=!1;if(S.isHydrating)S.isHydrating=!1;else if(!$){M=L&&j.transition&&j.transition.mode==="out-in";let W=!1;M&&(L.transition.afterLeave=()=>{O===S.pendingId&&(f(j,P,r===k&&!W?h(L):r,0),z3(A),H&&I.ssFallback&&(I.ssFallback.el=null))}),L&&!S.isFallbackMountPending&&(m(L.el)===P&&(r=h(L),W=!0),p(L,F,S,!0),!M&&H&&I.ssFallback&&Do(()=>I.ssFallback.el=null,S)),M||f(j,P,r,0)}S.isFallbackMountPending=!1,sc(S,j),S.pendingBranch=null,S.isInFallback=!1;let B=S.parent,R=!1;for(;B;){if(B.pendingBranch){B.effects.push(...A),R=!0;break}B=B.parent}!R&&!M&&z3(A),S.effects=[],v&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),Lu(I,"onResolve")},fallback($){if(!S.pendingBranch)return;const{vnode:T,activeBranch:I,parentComponent:L,container:j,namespace:O}=S;Lu(T,"onFallback");const A=h(I),F=()=>{S.isFallbackMountPending=!1,S.isInFallback&&(d(null,$,j,A,L,null,O,i,a),sc(S,$))},P=$.transition&&$.transition.mode==="out-in";P&&(S.isFallbackMountPending=!0,I.transition.afterLeave=F),S.isInFallback=!0,p(I,L,null,!0),P||F()},move($,T,I){S.activeBranch&&f(S.activeBranch,$,T,I),S.container=$},next(){return S.activeBranch&&h(S.activeBranch)},registerDep($,T,I){const L=!!S.pendingBranch;L&&S.deps++;const j=$.vnode.el;$.asyncDep.catch(O=>{Bc(O,$,0)}).then(O=>{if($.isUnmounted||S.isUnmounted||S.pendingId!==$.suspenseId)return;$u(),$.asyncResolved=!0;const{vnode:A}=$;o8($,O,!1),j&&(A.el=j);const F=!j&&$.subTree.el;T($,A,m(j||$.subTree.el),j?null:h($.subTree),S,l,I),F&&(A.placeholder=null,y(F)),v5($,A.el),L&&--S.deps===0&&S.resolve()})},unmount($,T){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,$,T),S.pendingBranch&&p(S.pendingBranch,n,$,T)}};return S}function fj(e,t,n,o,s,r,l,i,a){const c=t.suspense=YC(t,o,n,e.parentNode,document.createElement("div"),null,s,r,l,i,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,r,l);return c.deps===0&&c.resolve(!1,!0),u}function pj(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=sw(o?n.default:n),e.ssFallback=o?sw(n.fallback):Z(Uo)}function sw(e){let t;if(hn(e)){const n=H1&&e._c;n&&(e._d=!1,g()),e=e(),n&&(e._d=!0,t=Ps,JC())}return qt(e)&&(e=YB(e)),e=yr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function XC(e,t){t&&t.pendingBranch?qt(e)?t.effects.push(...e):t.effects.push(e):z3(e)}function sc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,o&&o.subTree===n&&(o.vnode.el=s,v5(o,s))}function hj(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Le=Symbol.for("v-fgt"),_a=Symbol.for("v-txt"),Uo=Symbol.for("v-cmt"),rc=Symbol.for("v-stc"),ou=[];let Ps=null;function g(e=!1){ou.push(Ps=e?null:[])}function JC(){ou.pop(),Ps=ou[ou.length-1]||null}let H1=1;function H3(e,t=!1){H1+=e,e<0&&Ps&&t&&(Ps.hasOnce=!0)}function QC(e){return e.dynamicChildren=H1>0?Ps||Q0:null,JC(),H1>0&&Ps&&Ps.push(e),e}function C(e,t,n,o,s,r){return QC(x(e,t,n,o,s,r,!0))}function fe(e,t,n,o,s){return QC(Z(e,t,n,o,s,!0))}function Ea(e){return e?e.__v_isVNode===!0:!1}function bl(e,t){return e.type===t.type&&e.key===t.key}function qRe(e){}const eM=({key:e})=>e??null,s3=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?io(e)||jo(e)||hn(e)?{i:Ts,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,o=0,s=null,r=e===Le?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eM(t),ref:t&&s3(t),scopeId:h5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ts};return i?(nm(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=io(n)?8:16),H1>0&&!l&&Ps&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ps.push(a),a}const Z=mj;function mj(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===LC)&&(e=Uo),Ea(e)){const i=zi(e,t,!0);return n&&nm(i,n),H1>0&&!r&&Ps&&(i.shapeFlag&6?Ps[Ps.indexOf(e)]=i:Ps.push(i)),i.patchFlag=-2,i}if(kj(e)&&(e=e.__vccOpts),t){t=tM(t);let{class:i,style:a}=t;i&&!io(i)&&(t.class=He(i)),qn(a)&&(p5(a)&&!qt(a)&&(a=no({},a)),t.style=Pt(a))}const l=io(e)?1:R3(e)?128:xC(e)?64:qn(e)?4:hn(e)?2:0;return x(e,t,n,o,s,l,r,!0)}function tM(e){return e?p5(e)||HC(e)?no({},e):e:null}function zi(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:l,children:i,transition:a}=e,c=t?Fn(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&eM(c),ref:t&&t.ref?n&&r?qt(r)?r.concat(s3(t)):[r,s3(t)]:s3(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zi(e.ssContent),ssFallback:e.ssFallback&&zi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Ta(u,a.clone(u)),u}function Ye(e=" ",t=0){return Z(_a,null,e,t)}function su(e,t){const n=Z(rc,null,e);return n.staticCount=t,n}function ne(e="",t=!1){return t?(g(),fe(Uo,null,e)):Z(Uo,null,e)}function yr(e){return e==null||typeof e=="boolean"?Z(Uo):qt(e)?Z(Le,null,e.slice()):Ea(e)?yi(e):Z(_a,null,String(e))}function yi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zi(e)}function nm(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(qt(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),nm(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!HC(t)?t._ctx=Ts:s===3&&Ts&&(Ts.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else hn(t)?(t={default:t,_ctx:Ts},n=32):(t=String(t),o&64?(n=16,t=[Ye(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fn(...e){const t={};for(let n=0;nMs||Ts;let P3,lc;{const e=i5(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),r=>{s.length>1?s.forEach(l=>l(r)):s[0](r)}};P3=t("__VUE_INSTANCE_SETTERS__",n=>Ms=n),lc=t("__VUE_SSR_SETTERS__",n=>P1=n)}const jc=e=>{const t=Ms;return P3(e),e.scope.on(),()=>{e.scope.off(),P3(t)}},$u=()=>{Ms&&Ms.scope.off(),P3(null)};function oM(e){return e.vnode.shapeFlag&4}let P1=!1;function sM(e,t=!1,n=!1){t&&lc(t);const{props:o,children:s}=e.vnode,r=oM(e);ej(e,o,r,t),sj(e,s,n||t);const l=r?wj(e,t):void 0;return t&&lc(!1),l}function wj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jh);const{setup:o}=n;if(o){Li();const s=e.setupContext=o.length>1?lM(e):null,r=jc(e),l=rd(o,e,0,[e.props,s]),i=H7(l);if($i(),r(),(i||e.sp)&&!Ei(e)&&Z7(e),i){if(l.then($u,$u),t)return l.then(a=>{o8(e,a,t)}).catch(a=>{Bc(a,e,0)});e.asyncDep=l}else o8(e,l,t)}else rM(e,t)}function o8(e,t,n){hn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qn(t)&&(e.setupState=pC(t)),rM(e,n)}let D3,s8;function URe(e){D3=e,s8=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,HB))}}const ZRe=()=>!D3;function rM(e,t,n){const o=e.type;if(!e.render){if(!t&&D3&&!o.render){const s=o.template||J7(e).template;if(s){const{isCustomElement:r,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:a}=o,c=no(no({isCustomElement:r,delimiters:i},l),a);o.render=D3(s,c)}}e.render=o.render||il,s8&&s8(e)}{const s=jc(e);Li();try{PB(e)}finally{$i(),s()}}}const yj={get(e,t){return Rs(e,"get",""),e[t]}};function lM(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yj),slots:e.slots,emit:e.emit,expose:t}}function cd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pC(Et(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nu)return nu[n](e)},has(t,n){return n in t||n in nu}})):e.proxy}function r8(e,t=!0){return hn(e)?e.displayName||e.name:e.name||t&&e.__name}function kj(e){return hn(e)&&"__vccOpts"in e}const z=(e,t)=>sB(e,t,P1);function cn(e,t,n){try{H3(-1);const o=arguments.length;return o===2?qn(t)&&!qt(t)?Ea(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ea(n)&&(n=[n]),Z(e,t,n))}finally{H3(1)}}function KRe(){}function GRe(e,t,n,o){const s=n[o];if(s&&bj(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=o,n[o]=r}function bj(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o0&&Ps&&Ps.push(e),!0}const _j="3.5.35",YRe=il,XRe=cB,JRe=B0,QRe=yC,xj={createComponentInstance:nM,setupComponent:sM,renderComponentRoot:o3,setCurrentRenderingInstance:Au,isVNode:Ea,normalizeVNode:yr,getComponentPublicInstance:cd,ensureValidVNode:X7,pushWarningContext:iB,popWarningContext:aB},eHe=xj,tHe=null,nHe=null,oHe=null;/** +* @vue/runtime-dom v3.5.35 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let l8;const rw=typeof window<"u"&&window.trustedTypes;if(rw)try{l8=rw.createPolicy("vue",{createHTML:e=>e})}catch{}const iM=l8?e=>l8.createHTML(e):e=>e,Sj="http://www.w3.org/2000/svg",Cj="http://www.w3.org/1998/Math/MathML",hi=typeof document<"u"?document:null,lw=hi&&hi.createElement("template"),Mj={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t==="svg"?hi.createElementNS(Sj,e):t==="mathml"?hi.createElementNS(Cj,e):n?hi.createElement(e,{is:n}):hi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>hi.createTextNode(e),createComment:e=>hi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const l=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{lw.innerHTML=iM(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const i=lw.content;if(o==="svg"||o==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xi="transition",g2="animation",yc=Symbol("_vtc"),aM={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cM=no({},CC,aM),Aj=e=>(e.displayName="Transition",e.props=cM,e),Cl=Aj((e,{slots:t})=>cn(kB,uM(e),t)),l1=(e,t=[])=>{qt(e)?e.forEach(n=>n(...t)):e&&e(...t)},iw=e=>e?qt(e)?e.some(t=>t.length>1):e.length>1:!1;function uM(e){const t={};for(const A in e)A in aM||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=l,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=Tj(s),m=h&&h[0],y=h&&h[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:w,onLeave:k,onLeaveCancelled:S,onBeforeAppear:$=b,onAppear:T=v,onAppearCancelled:I=w}=t,L=(A,F,P,H)=>{A._enterCancelled=H,ia(A,F?u:i),ia(A,F?c:l),P&&P()},j=(A,F)=>{A._isLeaving=!1,ia(A,d),ia(A,p),ia(A,f),F&&F()},O=A=>(F,P)=>{const H=A?T:v,M=()=>L(F,A,P);l1(H,[F,M]),aw(()=>{ia(F,A?a:r),Vl(F,A?u:i),iw(H)||cw(F,o,m,M)})};return no(t,{onBeforeEnter(A){l1(b,[A]),Vl(A,r),Vl(A,l)},onBeforeAppear(A){l1($,[A]),Vl(A,a),Vl(A,c)},onEnter:O(!1),onAppear:O(!0),onLeave(A,F){A._isLeaving=!0;const P=()=>j(A,F);Vl(A,d),A._enterCancelled?(Vl(A,f),i8(A)):(i8(A),Vl(A,f)),aw(()=>{A._isLeaving&&(ia(A,d),Vl(A,p),iw(k)||cw(A,o,y,P))}),l1(k,[A,P])},onEnterCancelled(A){L(A,!1,void 0,!0),l1(w,[A])},onAppearCancelled(A){L(A,!0,void 0,!0),l1(I,[A])},onLeaveCancelled(A){j(A),l1(S,[A])}})}function Tj(e){if(e==null)return null;if(qn(e))return[rp(e.enter),rp(e.leave)];{const t=rp(e);return[t,t]}}function rp(e){return E3(e)}function Vl(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[yc]||(e[yc]=new Set)).add(t)}function ia(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[yc];n&&(n.delete(t),n.size||(e[yc]=void 0))}function aw(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ej=0;function cw(e,t,n,o){const s=e._endId=++Ej,r=()=>{s===e._endId&&o()};if(n!=null)return setTimeout(r,n);const{type:l,timeout:i,propCount:a}=dM(e,t);if(!l)return o();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,f),r()},f=p=>{p.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[h]||"").split(", "),s=o(`${Xi}Delay`),r=o(`${Xi}Duration`),l=uw(s,r),i=o(`${g2}Delay`),a=o(`${g2}Duration`),c=uw(i,a);let u=null,d=0,f=0;t===Xi?l>0&&(u=Xi,d=l,f=r.length):t===g2?c>0&&(u=g2,d=c,f=a.length):(d=Math.max(l,c),u=d>0?l>c?Xi:g2:null,f=u?u===Xi?r.length:a.length:0);const p=u===Xi&&/\b(?:transform|all)(?:,|$)/.test(o(`${Xi}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function uw(e,t){for(;e.lengthdw(n)+dw(e[o])))}function dw(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function i8(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ij(e,t,n){const o=e[yc];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const V3=Symbol("_vod"),fM=Symbol("_vsh"),wr={name:"show",beforeMount(e,{value:t},{transition:n}){e[V3]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):v2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),v2(e,!0),o.enter(e)):o.leave(e,()=>{v2(e,!1)}):v2(e,t))},beforeUnmount(e,{value:t}){v2(e,t)}};function v2(e,t){e.style.display=t?e[V3]:"none",e[fM]=!t}function Lj(){wr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const pM=Symbol("");function sHe(e){const t=Xo();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>W3(r,s))},o=()=>{const s=e(t.proxy);t.ce?W3(t.ce,s):a8(t.subTree,s),n(s)};IC(()=>{z3(o)}),Sn(()=>{Xe(o,il,{flush:"post"});const s=new MutationObserver(o);s.observe(t.subTree.el.parentNode,{childList:!0}),An(()=>s.disconnect())})}function a8(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{a8(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)W3(e.el,t);else if(e.type===Le)e.children.forEach(n=>a8(n,t));else if(e.type===rc){let{el:n,anchor:o}=e;for(;n&&(W3(n,t),n!==o);)n=n.nextSibling}}function W3(e,t){if(e.nodeType===1){const n=e.style;let o="";for(const s in t){const r=Ez(t[s]);n.setProperty(`--${s}`,r),o+=`--${s}: ${r};`}n[pM]=o}}const $j=/(?:^|;)\s*display\s*:/;function Nj(e,t,n){const o=e.style,s=io(n);let r=!1;if(n&&!s){if(t)if(io(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&R2(o,i,"")}else for(const l in t)n[l]==null&&R2(o,l,"");for(const l in n){l==="display"&&(r=!0);const i=n[l];i!=null?Bj(e,l,!io(t)&&t?t[l]:void 0,i)||R2(o,l,i):R2(o,l,"")}}else if(s){if(t!==n){const l=o[pM];l&&(n+=";"+l),o.cssText=n,r=$j.test(n)}}else t&&e.removeAttribute("style");V3 in e&&(e[V3]=r?o.display:"",e[fM]&&(o.display="none"))}const fw=/\s*!important$/;function R2(e,t,n){if(qt(n))n.forEach(o=>R2(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=zj(e,t);fw.test(n)?e.setProperty(kr(o),n.replace(fw,""),"important"):e[o]=n}}const pw=["Webkit","Moz","ms"],lp={};function zj(e,t){const n=lp[t];if(n)return n;let o=rs(t);if(o!=="filter"&&o in e)return lp[t]=o;o=r5(o);for(let s=0;sip||(Rj.then(()=>ip=0),ip=Date.now());function Pj(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;const s=n.value;if(qt(s)){const r=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{r.call(o),o._stopped=!0};const l=s.slice(),i=[o];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dj=(e,t,n,o,s,r)=>{const l=s==="svg";t==="class"?Ij(e,o,l):t==="style"?Nj(e,n,o):sd(t)?t5(t)||Oj(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vj(e,t,o,l))?(gw(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&mw(e,t,o,l,r,t!=="value")):e._isVueCE&&(Wj(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!io(o)))?gw(e,rs(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),mw(e,t,o,l))};function Vj(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&yw(t)&&hn(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return yw(t)&&io(n)?!1:t in e}function Wj(e,t){const n=e._def.props;if(!n)return!1;const o=rs(t);return Array.isArray(n)?n.some(s=>rs(s)===o):Object.keys(n).some(s=>rs(s)===o)}const kw={};function qj(e,t,n){let o=Ze(e,t);n5(o)&&(o=no({},o,t));class s extends om{constructor(l){super(o,l,n)}}return s.def=o,s}const rHe=((e,t)=>qj(e,t,aO)),Uj=typeof HTMLElement<"u"?HTMLElement:class{};class om extends Uj{constructor(t,n={},o=Z3){super(),this._def=t,this._props=n,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&o!==Z3?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(no({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof om){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,_t(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:l}=o;let i;if(r&&!qt(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=E3(this._props[a])),(i||(i=Object.create(null)))[rs(a)]=!0)}this._numberProps=i,this._resolveProps(o),this.shadowRoot&&this._applyStyles(l),this._mount(o)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(o=>{o.configureApp=this._def.configureApp,t(this._def=o,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const o in n)Wn(this,o)||Object.defineProperty(this,o,{get:()=>_(n[o])})}_resolveProps(t){const{props:n}=t,o=qt(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&o.includes(s)&&this._setProp(s,this[s]);for(const s of o.map(rs))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(r){this._setProp(s,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let o=n?this.getAttribute(t):kw;const s=rs(t);n&&this._numberProps&&this._numberProps[s]&&(o=E3(o)),this._setProp(s,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===kw?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),o)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(kr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(kr(t),n+""):n||this.removeAttribute(kr(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),iO(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Z(this._def,no(t,this._props));return this._instance||(n.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const s=(r,l)=>{this.dispatchEvent(new CustomEvent(r,n5(l[0])?no({detail:l},l[0]):{detail:l}))};o.emit=(r,...l)=>{s(r,l),kr(r)!==r&&s(kr(r),l)},this._setParent()}),n}_applyStyles(t,n,o){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const s=this._nonce,r=this.shadowRoot,l=o?this._getStyleAnchor(o)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let i=null;for(let a=t.length-1;a>=0;a--){const c=document.createElement("style");s&&c.setAttribute("nonce",s),c.textContent=t[a],r.insertBefore(c,i||l),i=c,a===0&&(o||this._styleAnchors.set(this._def,c),n&&this._styleAnchors.set(n,c))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n(delete e.props.mode,e),Gj=Kj({name:"TransitionGroup",props:no({},cM,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xo(),o=SC();let s,r;return K7(()=>{if(!s.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!eO(s[0].el,n.vnode.el,l)){s=[];return}s.forEach(Xj),s.forEach(Jj);const i=s.filter(Qj);i8(n.vnode.el),i.forEach(a=>{const c=a.el,u=c.style;Vl(c,l),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[q3]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[q3]=null,ia(c,l))};c.addEventListener("transitionend",d)}),s=[]}),()=>{const l=Bn(e),i=uM(l);let a=l.tag||Le;if(s=[],r)for(let c=0;c{i.split(/\s+/).forEach(a=>a&&o.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&o.classList.add(i)),o.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(o);const{hasTransform:l}=dM(o);return r.removeChild(o),l}const Ia=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qt(t)?n=>tc(t,n):t};function tO(e){e.target.composing=!0}function _w(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const al=Symbol("_assign");function xw(e,t,n){return t&&(e=e.trim()),n&&(e=l5(e)),e}const ms={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[al]=Ia(s);const r=o||s.props&&s.props.type==="number";xi(e,t?"change":"input",l=>{l.target.composing||e[al](xw(e.value,n,r))}),(n||r)&&xi(e,"change",()=>{e.value=xw(e.value,n,r)}),t||(xi(e,"compositionstart",tO),xi(e,"compositionend",_w),xi(e,"change",_w))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:r}},l){if(e[al]=Ia(l),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?l5(e.value):e.value,a=t??"";if(i===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===a)||(e.value=a)}},U3={deep:!0,created(e,t,n){e[al]=Ia(n),xi(e,"change",()=>{const o=e._modelValue,s=kc(e),r=e.checked,l=e[al];if(qt(o)){const i=a5(o,s),a=i!==-1;if(r&&!a)l(o.concat(s));else if(!r&&a){const c=[...o];c.splice(i,1),l(c)}}else if(X1(o)){const i=new Set(o);r?i.add(s):i.delete(s),l(i)}else l(wM(e,r))})},mounted:Sw,beforeUpdate(e,t,n){e[al]=Ia(n),Sw(e,t,n)}};function Sw(e,{value:t,oldValue:n},o){e._modelValue=t;let s;if(qt(t))s=a5(t,o.props.value)>-1;else if(X1(t))s=t.has(o.props.value);else{if(t===n)return;s=Ii(t,wM(e,!0))}e.checked!==s&&(e.checked=s)}const vM={created(e,{value:t},n){e.checked=Ii(t,n.props.value),e[al]=Ia(n),xi(e,"change",()=>{e[al](kc(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[al]=Ia(o),t!==n&&(e.checked=Ii(t,o.props.value))}},c8={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=X1(t);xi(e,"change",()=>{const r=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?l5(kc(l)):kc(l));e[al](e.multiple?s?new Set(r):r:r[0]),e._assigning=!0,_t(()=>{e._assigning=!1})}),e[al]=Ia(o)},mounted(e,{value:t}){Cw(e,t)},beforeUpdate(e,t,n){e[al]=Ia(n)},updated(e,{value:t}){e._assigning||Cw(e,t)}};function Cw(e,t){const n=e.multiple,o=qt(t);if(!(n&&!o&&!X1(t))){for(let s=0,r=e.options.length;sString(c)===String(i)):l.selected=a5(t,i)>-1}else l.selected=t.has(i);else if(Ii(kc(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function kc(e){return"_value"in e?e._value:e.value}function wM(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nO={created(e,t,n){uf(e,t,n,null,"created")},mounted(e,t,n){uf(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){uf(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){uf(e,t,n,o,"updated")}};function yM(e,t){switch(e){case"SELECT":return c8;case"TEXTAREA":return ms;default:switch(t){case"checkbox":return U3;case"radio":return vM;default:return ms}}}function uf(e,t,n,o,s){const l=yM(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,o)}function oO(){ms.getSSRProps=({value:e})=>({value:e}),vM.getSSRProps=({value:e},t)=>{if(t.props&&Ii(t.props.value,e))return{checked:!0}},U3.getSSRProps=({value:e},t)=>{if(qt(e)){if(t.props&&a5(e,t.props.value)>-1)return{checked:!0}}else if(X1(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},nO.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=yM(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const sO=["ctrl","shift","alt","meta"],rO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sO.some(n=>e[`${n}Key`]&&!t.includes(n))},Ct=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((s,...r)=>{for(let l=0;l{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(s=>{if(!("key"in s))return;const r=kr(s.key);if(t.some(l=>l===r||lO[l]===r))return e(s)}))},kM=no({patchProp:Dj},Mj);let ru,Mw=!1;function bM(){return ru||(ru=lj(kM))}function _M(){return ru=Mw?ru:ij(kM),Mw=!0,ru}const iO=((...e)=>{bM().render(...e)}),aHe=((...e)=>{_M().hydrate(...e)}),Z3=((...e)=>{const t=bM().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=SM(o);if(!s)return;const r=t._component;!hn(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,xM(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t}),aO=((...e)=>{const t=_M().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=SM(o);if(s)return n(s,!0,xM(s))},t});function xM(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function SM(e){return io(e)?document.querySelector(e):e}let Aw=!1;const cHe=()=>{Aw||(Aw=!0,oO(),Lj())};/*! + * shared v11.4.8 + * (c) 2026 kazuya kawaguchi + * Released under the MIT License. + */const K3=typeof window<"u",Fa=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cO=(e,t,n)=>uO({l:e,k:t,s:n}),uO=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Zo=e=>typeof e=="number"&&isFinite(e),CM=e=>rm(e)==="[object Date]",bc=e=>rm(e)==="[object RegExp]",sm=e=>eo(e)&&Object.keys(e).length===0,Go=Object.assign,dO=Object.create,lo=(e=null)=>dO(e);let Tw;const C1=()=>Tw||(Tw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:lo()),fO=Object.prototype.hasOwnProperty;function sl(e,t){return fO.call(e,t)}const Io=Array.isArray,wo=e=>typeof e=="function",Rt=e=>typeof e=="string",Pn=e=>typeof e=="boolean",Dn=e=>e!==null&&typeof e=="object",pO=e=>Dn(e)&&wo(e.then)&&wo(e.catch),MM=Object.prototype.toString,rm=e=>MM.call(e),eo=e=>rm(e)==="[object Object]",hO=e=>e==null?"":Io(e)||eo(e)&&e.toString===MM?JSON.stringify(e,null,2):String(e);function lm(e,t=""){return e.reduce((n,o,s)=>s===0?n+o:n+t+o,"")}function mO(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function Ew(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function gO(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}const vO=/^javascript:/i,wO=/^(?:href|src|action|formaction)$/i,yO=/&#(?:x([0-9a-f]+)|(\d+));?/gi,kO=/&(?:Tab|NewLine);/g,bO=/:?/gi,_O=/[\u0000-\u0020\u007f-\u009f]/g,xO=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,SO=/(^|[\s"'<>/])on(\w+\s*=)/gi,CO=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function MO(e,t,n){const o=t||n;if(!o)return e;const s=Number.parseInt(o,t?16:10);return s<=127?String.fromCharCode(s):e}function im(e){const t=e.replace(yO,MO).replace(kO,"").replace(bO,":").replace(_O,"");return vO.test(t)}function AO(e){const t=/url\s*\(/gi;let n="",o=0,s;for(;(s=t.exec(e))!==null;){const r=s.index,l=t.lastIndex-1;let i=l+1,a=1,c=null;for(;i`${n}="${Iw(n,o)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,o)=>`${n}='${Iw(n,o)}'`),xO.test(e)&&(e=e.replace(SO,"$1on$2")),e=e.replace(CO,(t,n,o,s)=>im(s)?`${n}${o}about:blank`:t),e}const df=e=>!Dn(e)||Io(e);function r3(e,t){if(df(e)||df(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:s}=n.pop();Object.keys(o).forEach(r=>{r!=="__proto__"&&(Dn(o[r])&&!Dn(s[r])&&(s[r]=Array.isArray(o[r])?[]:lo()),df(s[r])||df(o[r])?s[r]=o[r]:n.push({src:o[r],des:s[r]}))})}}/*! + * message-compiler v11.4.8 + * (c) 2026 kazuya kawaguchi + * Released under the MIT License. + */function EO(e,t,n){return{line:e,column:t,offset:n}}function u8(e,t,n){return{start:e,end:t}}const Kn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},IO=17;function w5(e,t,n={}){const{domain:o,messages:s,args:r}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=o,i}function LO(e){throw e}const Fl=" ",$O="\r",Os=` +`,NO="\u2028",zO="\u2029";function BO(e){const t=e;let n=0,o=1,s=1,r=0;const l=T=>t[T]===$O&&t[T+1]===Os,i=T=>t[T]===Os,a=T=>t[T]===zO,c=T=>t[T]===NO,u=T=>l(T)||i(T)||a(T)||c(T),d=()=>n,f=()=>o,p=()=>s,h=()=>r,m=T=>l(T)||a(T)||c(T)?Os:t[T],y=()=>m(n),b=()=>m(n+r);function v(){return r=0,u(n)&&(o++,s=0),l(n)&&n++,n++,s++,t[n]}function w(){return l(n+r)&&r++,r++,t[n+r]}function k(){n=0,o=1,s=1,r=0}function S(T=0){r=T}function $(){const T=n+r;for(;T!==n;)v();r=0}return{index:d,line:f,column:p,peekOffset:h,charAt:m,currentChar:y,currentPeek:b,next:v,peek:w,reset:k,resetPeek:S,skipToPeek:$}}const ui=void 0,jO=".",Lw="'",OO="tokenizer";function FO(e,t={}){const n=t.location!==!1,o=BO(e),s=()=>o.index(),r=()=>EO(o.line(),o.column(),o.index()),l=r(),i=s(),a={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=t;function d(X,ae,ke,...xe){const ue=c();if(ae.column+=ke,ae.offset+=ke,u){const Se=n?u8(ue.startLoc,ae):null,se=w5(X,Se,{domain:OO,args:xe});u(se)}}function f(X,ae,ke){X.endLoc=r(),X.currentType=ae;const xe={type:ae};return n&&(xe.loc=u8(X.startLoc,X.endLoc)),ke!=null&&(xe.value=ke),xe}const p=X=>f(X,13);function h(X,ae){return X.currentChar()===ae?(X.next(),ae):(d(Kn.EXPECTED_TOKEN,r(),0,ae),"")}function m(X){let ae="";for(;X.currentPeek()===Fl||X.currentPeek()===Os;)ae+=X.currentPeek(),X.peek();return ae}function y(X){const ae=m(X);return X.skipToPeek(),ae}function b(X){if(X===ui)return!1;const ae=X.charCodeAt(0);return ae>=97&&ae<=122||ae>=65&&ae<=90||ae===95}function v(X){if(X===ui)return!1;const ae=X.charCodeAt(0);return ae>=48&&ae<=57}function w(X,ae){const{currentType:ke}=ae;if(ke!==2)return!1;m(X);const xe=b(X.currentPeek());return X.resetPeek(),xe}function k(X,ae){const{currentType:ke}=ae;if(ke!==2)return!1;m(X);const xe=X.currentPeek()==="-"?X.peek():X.currentPeek(),ue=v(xe);return X.resetPeek(),ue}function S(X,ae){const{currentType:ke}=ae;if(ke!==2)return!1;m(X);const xe=X.currentPeek()===Lw;return X.resetPeek(),xe}function $(X,ae){const{currentType:ke}=ae;if(ke!==7)return!1;m(X);const xe=X.currentPeek()===".";return X.resetPeek(),xe}function T(X,ae){const{currentType:ke}=ae;if(ke!==8)return!1;m(X);const xe=b(X.currentPeek());return X.resetPeek(),xe}function I(X,ae){const{currentType:ke}=ae;if(!(ke===7||ke===11))return!1;m(X);const xe=X.currentPeek()===":";return X.resetPeek(),xe}function L(X,ae){const{currentType:ke}=ae;if(ke!==9)return!1;const xe=()=>{const Se=X.currentPeek();return Se==="{"?b(X.peek()):Se==="@"||Se==="|"||Se===":"||Se==="."||Se===Fl||!Se?!1:Se===Os?(X.peek(),xe()):O(X,!1)},ue=xe();return X.resetPeek(),ue}function j(X){m(X);const ae=X.currentPeek()==="|";return X.resetPeek(),ae}function O(X,ae=!0){const ke=(ue=!1,Se="")=>{const se=X.currentPeek();return se==="{"||se==="@"||!se?ue:se==="|"?!(Se===Fl||Se===Os):se===Fl?(X.peek(),ke(!0,Fl)):se===Os?(X.peek(),ke(!0,Os)):!0},xe=ke();return ae&&X.resetPeek(),xe}function A(X,ae){const ke=X.currentChar();return ke===ui?ui:ae(ke)?(X.next(),ke):null}function F(X){const ae=X.charCodeAt(0);return ae>=97&&ae<=122||ae>=65&&ae<=90||ae>=48&&ae<=57||ae===95||ae===36}function P(X){return A(X,F)}function H(X){const ae=X.charCodeAt(0);return ae>=97&&ae<=122||ae>=65&&ae<=90||ae>=48&&ae<=57||ae===95||ae===36||ae===45}function M(X){return A(X,H)}function B(X){const ae=X.charCodeAt(0);return ae>=48&&ae<=57}function R(X){return A(X,B)}function W(X){const ae=X.charCodeAt(0);return ae>=48&&ae<=57||ae>=65&&ae<=70||ae>=97&&ae<=102}function le(X){return A(X,W)}function J(X){let ae="",ke="";for(;ae=R(X);)ke+=ae;return ke}function G(X){let ae="";for(;;){const ke=X.currentChar();if(ke==="\\"){const xe=X.peek();xe==="{"||xe==="}"||xe==="@"||xe==="|"||xe==="\\"?(ae+=ke+xe,X.next(),X.next()):(X.resetPeek(),ae+=ke,X.next())}else{if(ke==="{"||ke==="}"||ke==="@"||ke==="|"||!ke)break;if(ke===Fl||ke===Os)if(O(X))ae+=ke,X.next();else{if(j(X))break;ae+=ke,X.next()}else ae+=ke,X.next()}}return ae}function K(X){y(X);let ae="",ke="";for(;ae=M(X);)ke+=ae;const xe=X.currentChar();if(xe&&xe!=="}"&&xe!==ui&&xe!==Fl&&xe!==Os&&xe!==" "){const ue=ge(X);return d(Kn.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,ke+ue),ke+ue}return X.currentChar()===ui&&d(Kn.UNTERMINATED_CLOSING_BRACE,r(),0),ke}function Q(X){y(X);let ae="";return X.currentChar()==="-"?(X.next(),ae+=`-${J(X)}`):ae+=J(X),X.currentChar()===ui&&d(Kn.UNTERMINATED_CLOSING_BRACE,r(),0),ae}function te(X){return X!==Lw&&X!==Os}function U(X){y(X),h(X,"'");let ae="",ke="";for(;ae=A(X,te);)ae==="\\"?ke+=me(X):ke+=ae;const xe=X.currentChar();return xe===Os||xe===ui?(d(Kn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),xe===Os&&(X.next(),h(X,"'")),ke):(h(X,"'"),ke)}function me(X){const ae=X.currentChar();switch(ae){case"\\":case"'":return X.next(),`\\${ae}`;case"u":return _e(X,ae,4);case"U":return _e(X,ae,6);default:return d(Kn.UNKNOWN_ESCAPE_SEQUENCE,r(),0,ae),""}}function _e(X,ae,ke){h(X,ae);let xe="";for(let ue=0;ue{const xe=X.currentChar();return xe==="{"||xe==="@"||xe==="|"||xe==="("||xe===")"||!xe||xe===Fl?ke:(ke+=xe,X.next(),ae(ke))};return ae("")}function D(X){y(X);const ae=h(X,"|");return y(X),ae}function Y(X,ae){let ke=null;switch(X.currentChar()){case"{":return ae.braceNest>=1&&d(Kn.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),X.next(),ke=f(ae,2,"{"),y(X),ae.braceNest++,ke;case"}":return ae.braceNest>0&&ae.currentType===2&&d(Kn.EMPTY_PLACEHOLDER,r(),0),X.next(),ke=f(ae,3,"}"),ae.braceNest--,ae.braceNest>0&&y(X),ae.inLinked&&ae.braceNest===0&&(ae.inLinked=!1),ke;case"@":return ae.braceNest>0&&d(Kn.UNTERMINATED_CLOSING_BRACE,r(),0),ke=we(X,ae)||p(ae),ae.braceNest=0,ke;default:{let ue=!0,Se=!0,se=!0;if(j(X))return ae.braceNest>0&&d(Kn.UNTERMINATED_CLOSING_BRACE,r(),0),ke=f(ae,1,D(X)),ae.braceNest=0,ae.inLinked=!1,ke;if(ae.braceNest>0&&(ae.currentType===4||ae.currentType===5||ae.currentType===6))return d(Kn.UNTERMINATED_CLOSING_BRACE,r(),0),ae.braceNest=0,pe(X,ae);if(ue=w(X,ae))return ke=f(ae,4,K(X)),y(X),ke;if(Se=k(X,ae))return ke=f(ae,5,Q(X)),y(X),ke;if(se=S(X,ae))return ke=f(ae,6,U(X)),y(X),ke;if(!ue&&!Se&&!se)return ke=f(ae,12,ge(X)),d(Kn.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,ke.value),y(X),ke;break}}return ke}function we(X,ae){const{currentType:ke}=ae;let xe=null;const ue=X.currentChar();switch((ke===7||ke===8||ke===11||ke===9)&&(ue===Os||ue===Fl)&&d(Kn.INVALID_LINKED_FORMAT,r(),0),ue){case"@":return X.next(),xe=f(ae,7,"@"),ae.inLinked=!0,xe;case".":return y(X),X.next(),f(ae,8,".");case":":return y(X),X.next(),f(ae,9,":");default:return j(X)?(xe=f(ae,1,D(X)),ae.braceNest=0,ae.inLinked=!1,xe):$(X,ae)||I(X,ae)?(y(X),we(X,ae)):T(X,ae)?(y(X),f(ae,11,ee(X))):L(X,ae)?(y(X),ue==="{"?Y(X,ae)||xe:f(ae,10,oe(X))):(ke===7&&d(Kn.INVALID_LINKED_FORMAT,r(),0),ae.braceNest=0,ae.inLinked=!1,pe(X,ae))}}function pe(X,ae){let ke={type:13};if(ae.braceNest>0)return Y(X,ae)||p(ae);if(ae.inLinked)return we(X,ae)||p(ae);switch(X.currentChar()){case"{":return Y(X,ae)||p(ae);case"}":return d(Kn.UNBALANCED_CLOSING_BRACE,r(),0),X.next(),f(ae,3,"}");case"@":return we(X,ae)||p(ae);default:{if(j(X))return ke=f(ae,1,D(X)),ae.braceNest=0,ae.inLinked=!1,ke;if(O(X))return f(ae,0,G(X));break}}return ke}function de(){const{currentType:X,offset:ae,startLoc:ke,endLoc:xe}=a;return a.lastType=X,a.lastOffset=ae,a.lastStartLoc=ke,a.lastEndLoc=xe,a.offset=s(),a.startLoc=r(),o.currentChar()===ui?f(a,13):pe(o,a)}return{nextToken:de,currentOffset:s,currentPosition:r,context:c}}const RO="parser",HO=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,PO=/\\([\\@{}|])/g;function DO(e,t){return t}function VO(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function WO(e={}){const t=e.location!==!1,{onError:n}=e;function o(b,v,w,k,...S){const $=b.currentPosition();if($.offset+=k,$.column+=k,n){const T=t?u8(w,$):null,I=w5(v,T,{domain:RO,args:S});n(I)}}function s(b,v,w){const k={type:b};return t&&(k.start=v,k.end=v,k.loc={start:w,end:w}),k}function r(b,v,w,k){t&&(b.end=v,b.loc&&(b.loc.end=w))}function l(b,v){const w=b.context(),k=s(3,w.offset,w.startLoc);return k.value=v.replace(PO,DO),r(k,b.currentOffset(),b.currentPosition()),k}function i(b,v){const w=b.context(),{lastOffset:k,lastStartLoc:S}=w,$=s(5,k,S);return $.index=parseInt(v,10),b.nextToken(),r($,b.currentOffset(),b.currentPosition()),$}function a(b,v){const w=b.context(),{lastOffset:k,lastStartLoc:S}=w,$=s(4,k,S);return $.key=v,b.nextToken(),r($,b.currentOffset(),b.currentPosition()),$}function c(b,v){const w=b.context(),{lastOffset:k,lastStartLoc:S}=w,$=s(9,k,S);return $.value=v.replace(HO,VO),b.nextToken(),r($,b.currentOffset(),b.currentPosition()),$}function u(b){const v=b.nextToken(),w=b.context(),{lastOffset:k,lastStartLoc:S}=w,$=s(8,k,S);return v.type!==11?(o(b,Kn.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),$.value="",r($,k,S),{nextConsumeToken:v,node:$}):(v.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Rl(v)),$.value=v.value||"",r($,b.currentOffset(),b.currentPosition()),{node:$})}function d(b,v){const w=b.context(),k=s(7,w.offset,w.startLoc);return k.value=v,r(k,b.currentOffset(),b.currentPosition()),k}function f(b){const v=b.context(),w=s(6,v.offset,v.startLoc);let k=b.nextToken();if(k.type===8){const S=u(b);w.modifier=S.node,k=S.nextConsumeToken||b.nextToken()}switch(k.type!==9&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(k)),k=b.nextToken(),k.type===2&&(k=b.nextToken()),k.type){case 10:k.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(k)),w.key=d(b,k.value||"");break;case 4:k.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(k)),w.key=a(b,k.value||"");break;case 5:k.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(k)),w.key=i(b,k.value||"");break;case 6:k.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(k)),w.key=c(b,k.value||"");break;default:{o(b,Kn.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const S=b.context(),$=s(7,S.offset,S.startLoc);return $.value="",r($,S.offset,S.startLoc),w.key=$,r(w,S.offset,S.startLoc),{nextConsumeToken:k,node:w}}}return r(w,b.currentOffset(),b.currentPosition()),{node:w}}function p(b){const v=b.context(),w=v.currentType===1?b.currentOffset():v.offset,k=v.currentType===1?v.endLoc:v.startLoc,S=s(2,w,k);S.items=[];let $=null;do{const L=$||b.nextToken();switch($=null,L.type){case 0:L.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(L)),S.items.push(l(b,L.value||""));break;case 5:L.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(L)),S.items.push(i(b,L.value||""));break;case 4:L.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(L)),S.items.push(a(b,L.value||""));break;case 6:L.value==null&&o(b,Kn.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Rl(L)),S.items.push(c(b,L.value||""));break;case 7:{const j=f(b);S.items.push(j.node),$=j.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const T=v.currentType===1?v.lastOffset:b.currentOffset(),I=v.currentType===1?v.lastEndLoc:b.currentPosition();return r(S,T,I),S}function h(b,v,w,k){const S=b.context();let $=k.items.length===0;const T=s(1,v,w);T.cases=[],T.cases.push(k);do{const I=p(b);$||($=I.items.length===0),T.cases.push(I)}while(S.currentType!==13);return $&&o(b,Kn.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),r(T,b.currentOffset(),b.currentPosition()),T}function m(b){const v=b.context(),{offset:w,startLoc:k}=v,S=p(b);return v.currentType===13?S:h(b,w,k,S)}function y(b){const v=FO(b,Go({},e)),w=v.context(),k=s(0,w.offset,w.startLoc);return t&&k.loc&&(k.loc.source=b),k.body=m(v),e.onCacheKey&&(k.cacheKey=e.onCacheKey(b)),w.currentType!==13&&o(v,Kn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,b[w.offset]||""),r(k,v.currentOffset(),v.currentPosition()),k}return{parse:y}}function Rl(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function qO(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $w(e,t){for(let n=0;nNw(n)),e}function Nw(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;nl;function a(m,y){l.code+=m}function c(m,y=!0){const b=y?o:"";a(s?b+" ".repeat(m):b)}function u(m=!0){const y=++l.indentLevel;m&&c(y)}function d(m=!0){const y=--l.indentLevel;m&&c(y)}function f(){c(l.indentLevel)}return{context:i,push:a,indent:u,deindent:d,newline:f,helper:m=>`_${m}`,needIndent:()=>l.needIndent}}function GO(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),_c(e,t.key),t.modifier?(e.push(", "),_c(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function YO(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const s=t.items.length;for(let r=0;r1){e.push(`${n("plural")}([`),e.indent(o());const s=t.cases.length;for(let r=0;r{const n=Rt(t.mode)?t.mode:"normal",o=Rt(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,r=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=KO(e,{filename:o,breakLineCode:s,needIndent:r});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(r),l.length>0&&(i.push(`const { ${lm(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),i.newline()),i.push("return "),_c(i,e),i.deindent(r),i.push("}"),delete e.helpers;const{code:a,map:c}=i.context();return{ast:e,code:a,map:c?c.toJSON():void 0}};function eF(e,t={}){const n=Go({},t),o=!!n.jit,s=!!n.minify,r=n.optimize==null?!0:n.optimize,i=WO(n).parse(e);return o?(r&&ZO(i),s&&j0(i),{ast:i,code:""}):(UO(i,n),QO(i,n))}/*! + * core-base v11.4.8 + * (c) 2026 kazuya kawaguchi + * Released under the MIT License. + */function tF(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(C1().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(C1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ql(e){return Dn(e)&&cm(e)===0&&(sl(e,"b")||sl(e,"body"))}const AM=["b","body"];function nF(e){return Ra(e,AM)}const TM=["c","cases"];function oF(e){return Ra(e,TM,[])}const EM=["s","static"];function sF(e){return Ra(e,EM)}const IM=["i","items"];function rF(e){return Ra(e,IM,[])}const LM=["t","type"];function cm(e){return Ra(e,LM)}const $M=["v","value"];function ff(e,t){const n=Ra(e,$M);if(n!=null)return n;throw Nu(t)}const NM=["m","modifier"];function lF(e){return Ra(e,NM)}const zM=["k","key"];function iF(e){const t=Ra(e,zM);if(t)return t;throw Nu(6)}function Ra(e,t,n){for(let o=0;oaF(n,e)}function aF(e,t){const n=nF(t);if(n==null)throw Nu(0);if(cm(n)===1){const r=oF(n);return e.plural(r.reduce((l,i)=>[...l,zw(e,i)],[]))}else return zw(e,n)}function zw(e,t){const n=sF(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const o=rF(t).reduce((s,r)=>[...s,d8(e,r)],[]);return e.normalize(o)}}function d8(e,t){const n=cm(t);switch(n){case 3:return ff(t,n);case 9:return ff(t,n);case 4:{const o=t;if(sl(o,"k")&&o.k)return e.interpolate(e.named(o.k));if(sl(o,"key")&&o.key)return e.interpolate(e.named(o.key));throw Nu(n)}case 5:{const o=t;if(sl(o,"i")&&Zo(o.i))return e.interpolate(e.list(o.i));if(sl(o,"index")&&Zo(o.index))return e.interpolate(e.list(o.index));throw Nu(n)}case 6:{const o=t,s=lF(o),r=iF(o);return e.linked(d8(e,r),s?d8(e,s):void 0,e.type)}case 7:return ff(t,n);case 8:return ff(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const cF=e=>e;let pf=lo();function uF(e,t={}){let n=!1;const o=t.onError||LO;return t.onError=s=>{n=!0,o(s)},{...eF(e,t),detectError:n}}function dF(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Rt(e)){Pn(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||cF)(e),s=pf[o];if(s)return s;const{ast:r,detectError:l}=uF(e,{...t,location:!1,jit:!0}),i=ap(r);return l?i:pf[o]=i}else{const n=e.cacheKey;if(n){const o=pf[n];return o||(pf[n]=ap(e))}else return ap(e)}}let zu=null;function fF(e){zu=e}function pF(e,t,n){zu&&zu.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const hF=mF("function:translate");function mF(e){return t=>zu&&zu.emit(e,t)}const Mi={INVALID_ARGUMENT:IO,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},gF=24;function Ai(e){return w5(e,null,void 0)}function um(e,t){return t.locale!=null?Bw(t.locale):Bw(e.locale)}let cp;function Bw(e){if(Rt(e))return e;if(wo(e)){if(e.resolvedOnce&&cp!=null)return cp;if(e.constructor.name==="Function"){const t=e();if(pO(t))throw Ai(Mi.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return cp=t}else throw Ai(Mi.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ai(Mi.NOT_SUPPORT_LOCALE_TYPE)}function vF(e,t,n){return[...new Set([n,...Io(t)?t:Dn(t)?Object.keys(t):Rt(t)?[t]:[n]])]}function f8(e,t,n){const o=Rt(n)?n:Bu,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(o);if(!r){r=[];let l=[n];for(;Io(l);)l=jw(r,l,t);const i=Io(t)||!eo(t)?t:t.default?t.default:null;l=Rt(i)?[i]:i,Io(l)&&jw(r,l,!1),s.__localeChainCache.set(o,r)}return r}function jw(e,t,n){let o=!0;for(let s=0;s{l===void 0?l=i:l+=i},f[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,o=4,f[0]();else{if(s=0,l===void 0||(l=SF(l),l===!1))return!1;f[1]()}};function p(){const h=e[n+1];if(o===5&&h==="'"||o===6&&h==='"')return n++,i="\\"+h,f[0](),!0}for(;o!==null;)if(n++,r=e[n],!(r==="\\"&&p())){if(a=xF(r),d=Ha[o],c=d[a]||d.l||8,c===8||(o=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(i=r,u()===!1))))return;if(o===7)return t}}const Ow=new Map;function MF(e,t){return Dn(e)?e[t]:null}function AF(e,t){if(!Dn(e))return null;let n=Ow.get(t);if(n||(n=CF(t),n&&Ow.set(t,n)),!n)return null;const o=n.length;let s=e,r=0;for(;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function EF(){return{upper:(e,t)=>t==="text"&&Rt(e)?e.toUpperCase():t==="vnode"&&Dn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Rt(e)?e.toLowerCase():t==="vnode"&&Dn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Rt(e)?Fw(e):t==="vnode"&&Dn(e)&&"__v_isVNode"in e?Fw(e.children):e}}let jM;function IF(e){jM=e}let OM;function LF(e){OM=e}let FM;function $F(e){FM=e}let RM=null;const NF=e=>{RM=e},zF=()=>RM;let HM=null;const Rw=e=>{HM=e},BF=()=>HM;let Hw=0;function jF(e={}){const t=wo(e.onWarn)?e.onWarn:mO,n=Rt(e.version)?e.version:TF,o=Rt(e.locale)||wo(e.locale)?e.locale:Bu,s=wo(o)?Bu:o,r=Io(e.fallbackLocale)||eo(e.fallbackLocale)||Rt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,l=eo(e.messages)?e.messages:up(s),i=eo(e.datetimeFormats)?e.datetimeFormats:up(s),a=eo(e.numberFormats)?e.numberFormats:up(s),c=Go(lo(),e.modifiers,EF()),u=e.pluralRules||lo(),d=wo(e.missing)?e.missing:null,f=Pn(e.missingWarn)||bc(e.missingWarn)?e.missingWarn:!0,p=Pn(e.fallbackWarn)||bc(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,m=!!e.unresolving,y=wo(e.postTranslation)?e.postTranslation:null,b=eo(e.processor)?e.processor:null,v=Pn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,k=wo(e.messageCompiler)?e.messageCompiler:jM,S=wo(e.messageResolver)?e.messageResolver:OM||MF,$=wo(e.localeFallbacker)?e.localeFallbacker:FM||vF,T=Dn(e.fallbackContext)?e.fallbackContext:void 0,I=e,L=Dn(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,j=Dn(I.__numberFormatters)?I.__numberFormatters:new Map,O=Dn(I.__meta)?I.__meta:{};Hw++;const A={version:n,cid:Hw,locale:o,fallbackLocale:r,messages:l,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:m,postTranslation:y,processor:b,warnHtmlMessage:v,escapeParameter:w,messageCompiler:k,messageResolver:S,localeFallbacker:$,fallbackContext:T,onWarn:t,__meta:O};return A.datetimeFormats=i,A.numberFormats=a,A.__datetimeFormatters=L,A.__numberFormatters=j,__INTLIFY_PROD_DEVTOOLS__&&pF(A,n,O),A}const up=e=>({[e]:lo()});function PM(e,t,n,o,s){const{missing:r,onWarn:l}=e;if(r!==null){const i=r(e,n,t,s);return Rt(i)?i:t}else return t}function w2(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function OF(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function FF(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;o{o.includes(a)?i[a]=s[a]:t[a]=s[a]}),Rt(r)?t.locale=r:eo(r)&&(i=r),eo(l)&&(i=l),i}function Pw(e,...t){const{datetimeFormats:n,unresolving:o,onWarn:s}=e,{__datetimeFormatters:r}=e;if(!Rt(t[0])&&!CM(t[0])&&!Zo(t[0]))return G3;const[l,i,a,c]=p8(...t),u=Pn(a.missingWarn)?a.missingWarn:e.missingWarn,d=Pn(a.fallbackWarn)?a.fallbackWarn:e.fallbackWarn,f=!!a.part,p=um(e,a);if(!Rt(l)||l===""){const v=new Intl.DateTimeFormat(p.replace(/!/g,""),c);return f?v.formatToParts(i):v.format(i)}const h=DM(e,l,p,n,u,d,"datetime format");if(!Rt(h))return o?y5:l;const m=n[h][l],y=VM(h,l,c);let b=r.get(y);return b||(b=new Intl.DateTimeFormat(h,Go({},m,c)),r.set(y,b)),f?b.formatToParts(i):b.format(i)}const UM=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function p8(...e){const[t]=e,n=lo(),o=lo();let s;if(Rt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ai(Mi.INVALID_ISO_DATE_ARGUMENT);const i=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(i);try{s.toISOString()}catch{throw Ai(Mi.INVALID_ISO_DATE_ARGUMENT)}}else if(CM(t)){if(isNaN(t.getTime()))throw Ai(Mi.INVALID_DATE_ARGUMENT);s=t}else if(Zo(t))s=t;else throw Ai(Mi.INVALID_ARGUMENT);const r=qM(e,n,o,UM);return[n.key||"",s,n,r]}function Dw(e,t,n){WM(e.__datetimeFormatters,t,n)}function Vw(e,...t){const{numberFormats:n,unresolving:o,onWarn:s}=e,{__numberFormatters:r}=e;if(!Zo(t[0]))return G3;const[l,i,a,c]=h8(...t),u=Pn(a.missingWarn)?a.missingWarn:e.missingWarn,d=Pn(a.fallbackWarn)?a.fallbackWarn:e.fallbackWarn,f=!!a.part,p=um(e,a);if(!Rt(l)||l===""){const v=new Intl.NumberFormat(p.replace(/!/g,""),c);return f?v.formatToParts(i):v.format(i)}const h=DM(e,l,p,n,u,d,"number format");if(!Rt(h))return o?y5:l;const m=n[h][l],y=VM(h,l,c);let b=r.get(y);return b||(b=new Intl.NumberFormat(h,Go({},m,c)),r.set(y,b)),f?b.formatToParts(i):b.format(i)}const ZM=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function h8(...e){const[t]=e,n=lo(),o=lo();if(!Zo(t))throw Ai(Mi.INVALID_ARGUMENT);const s=t,r=qM(e,n,o,ZM);return[n.key||"",s,n,r]}function Ww(e,t,n){WM(e.__numberFormatters,t,n)}const RF=e=>e,HF=e=>"",PF="text",DF=e=>e.length===0?"":lm(e),VF=hO;function dp(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function WF(e){const t=Zo(e.pluralIndex)?e.pluralIndex:-1;return Zo(e.named?.count)?e.named.count:Zo(e.named?.n)?e.named.n:t}function qF(e={}){const t=e.locale,n=WF(e),o=Rt(t)&&wo(e.pluralRules?.[t])?e.pluralRules[t]:dp,s=o===dp?void 0:dp,r=b=>b[o(n,b.length,s)],l=e.list||[],i=b=>l[b],a=e.named||lo();Zo(e.pluralIndex)&&(a.count||=e.pluralIndex,a.n||=e.pluralIndex);const c=b=>a[b];function u(b,v){const w=wo(e.messages)?e.messages(b,!!v):Dn(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):HF)}const d=b=>e.modifiers?e.modifiers[b]:RF,f=wo(e.processor?.normalize)?e.processor.normalize:DF,p=wo(e.processor?.interpolate)?e.processor.interpolate:VF,h=Rt(e.processor?.type)?e.processor.type:PF,y={list:i,named:c,plural:r,linked:(b,...v)=>{const[w,k]=v;let S="text",$="";v.length===1?Dn(w)?($=w.modifier||$,S=w.type||S):Rt(w)&&($=w||$):v.length===2&&(Rt(w)&&($=w||$),Rt(k)&&(S=k||S));const T=u(b,!0)(y),I=T===""||T===void 0?b:T,L=S==="vnode"&&Io(I)&&$?I[0]:I;return $?d($)(L,S):L},message:u,type:h,interpolate:p,normalize:f,values:Go(lo(),l,a)};return y}const qw=()=>"",tl=e=>wo(e);function Uw(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:s,messageCompiler:r,fallbackLocale:l,messages:i}=e,[a,c]=m8(...t),u=Pn(c.missingWarn)?c.missingWarn:e.missingWarn,d=Pn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=Pn(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=Rt(c.default)||Pn(c.default)?Pn(c.default)?r?a:()=>a:c.default:n?r?a:()=>a:null,m=n||h!=null&&(Rt(h)||wo(h)),y=um(e,c);f&&UF(c);let[b,v,w]=p?[a,y,i[y]||lo()]:KM(e,a,y,l,d,u),k=b,S=a;if(!p&&!(Rt(k)||Ql(k)||tl(k))&&m&&(k=h,S=k),!p&&(!(Rt(k)||Ql(k)||tl(k))||!Rt(v)))return s?y5:a;let $=!1;const T=()=>{$=!0},I=tl(k)?k:GM(e,a,v,k,S,T);if($)return k;const L=GF(e,v,w,c),j=qF(L),O=ZF(e,I,j);let A=o?o(O,a):O;if(f&&Rt(A)&&(A=TO(A)),__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:Rt(a)?a:tl(k)?k.key:"",locale:v||(tl(k)?k.locale:""),format:Rt(k)?k:tl(k)?k.source:"",message:A};F.meta=Go({},e.__meta,zF()||{}),hF(F)}return A}function UF(e){Io(e.list)?e.list=e.list.map(t=>Rt(t)?Ew(t):t):Dn(e.named)&&Object.keys(e.named).forEach(t=>{Rt(e.named[t])&&(e.named[t]=Ew(e.named[t]))})}function KM(e,t,n,o,s,r){const{messages:l,onWarn:i,messageResolver:a,localeFallbacker:c}=e,u=c(e,o,n);let d=lo(),f,p=null;const h="translate";for(let m=0;mo);return c.locale=n,c.key=t,c}const a=l(o,KF(e,n,s,o,i,r));return a.locale=n,a.key=t,a.source=o,a}function ZF(e,t,n){return t(n)}function m8(...e){const[t,n,o]=e,s=lo();if(!Rt(t)&&!Zo(t)&&!tl(t)&&!Ql(t))throw Ai(Mi.INVALID_ARGUMENT);const r=Zo(t)?String(t):(tl(t),t);return Zo(n)?s.plural=n:Rt(n)?s.default=n:eo(n)&&!sm(n)?s.named=n:Io(n)&&(s.list=n),Zo(o)?s.plural=o:Rt(o)?s.default=o:eo(o)&&Go(s,o),[r,s]}function KF(e,t,n,o,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:l=>{throw r&&r(l),l},onCacheKey:l=>cO(t,n,l)}}function GF(e,t,n,o){const{modifiers:s,pluralRules:r,messageResolver:l,fallbackLocale:i,fallbackWarn:a,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:s,pluralRules:r,messages:(p,h)=>{let m=l(n,p);if(m==null&&(u||h)){const[y,,b]=KM(u||e,p,t,i,a,c);m=y??l(b,p)}if(Rt(m)||Ql(m)){let y=!1;const v=GM(e,p,t,m,p,()=>{y=!0});return y?qw:v}else return tl(m)?m:qw}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),Zo(o.plural)&&(f.pluralIndex=o.plural),f}tF();/*! + * vue-i18n v11.4.8 + * (c) 2026 kazuya kawaguchi + * Released under the MIT License. + */const YF="11.4.8";function XF(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(C1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(C1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(C1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(C1().__INTLIFY_PROD_DEVTOOLS__=!1)}const tr={UNEXPECTED_RETURN_TYPE:gF,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function br(e,...t){return w5(e,null,void 0)}const g8=Fa("__translateVNode"),v8=Fa("__datetimeParts"),w8=Fa("__numberParts"),YM=Fa("__setPluralRules"),XM=Fa("__injectWithOption"),W0=Fa("__dispose");function ju(e){if(!Dn(e)||Ql(e))return e;for(const t in e)if(sl(e,t))if(!t.includes("."))Dn(e[t])&&ju(e[t]);else{const n=t.split("."),o=n.length-1;let s=e,r=!1;for(let l=0;l{if("locale"in i&&"resource"in i){const{locale:a,resource:c}=i;a?(l[a]=l[a]||lo(),r3(c,l[a])):r3(c,l)}else Rt(i)&&r3(JSON.parse(i),l)}),s==null&&r)for(const i in l)sl(l,i)&&ju(l[i]);return l}function JM(e){return e.type}function QM(e,t,n){let o=Dn(t.messages)?t.messages:lo();"__i18nGlobal"in n&&(o=dm(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const s=Object.keys(o);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(Dn(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Dn(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Zw(e){return Z(_a,null,e,0)}function Ou(){return Xo()}const Kw="__INTLIFY_META__",Gw=()=>[],JF=()=>!1;let Yw=0;function Xw(e){return((t,n,o,s)=>e(n,o,Ou()||void 0,s))}const QF=()=>{const e=Ou();let t=null;return e&&(t=JM(e)[Kw])?{[Kw]:t}:null};function Y3(e={}){const{__root:t,__injectWithOption:n}=e,o=t===void 0,s=e.flatJson,r=K3?q:_o;let l=Pn(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&l?t.locale.value:Rt(e.locale)?e.locale:Bu),a=r(t&&l?t.fallbackLocale.value:Rt(e.fallbackLocale)||Io(e.fallbackLocale)||eo(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=r(dm(i.value,e)),u=r(eo(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=r(eo(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=t?t.missingWarn:Pn(e.missingWarn)||bc(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Pn(e.fallbackWarn)||bc(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:Pn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=wo(e.missing)?e.missing:null,b=wo(e.missing)?Xw(e.missing):null,v=wo(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:Pn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const S=t?t.modifiers:eo(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,T;T=(()=>{o&&Rw(null);const se={version:YF,locale:i.value,fallbackLocale:a.value,messages:c.value,modifiers:S,pluralRules:$,missing:b===null?void 0:b,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:w,escapeParameter:k,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=u.value,se.numberFormats=d.value,se.__datetimeFormatters=eo(T)?T.__datetimeFormatters:void 0,se.__numberFormatters=eo(T)?T.__numberFormatters:void 0;const be=jF(se);return o&&Rw(be),be})(),w2(T,i.value,a.value);function L(){return[i.value,a.value,c.value,u.value,d.value]}const j=z({get:()=>i.value,set:se=>{T.locale=se,i.value=se}}),O=z({get:()=>a.value,set:se=>{T.fallbackLocale=se,a.value=se,w2(T,i.value,se)}}),A=z(()=>c.value),F=z(()=>u.value),P=z(()=>d.value);function H(){return wo(v)?v:null}function M(se){v=se,T.postTranslation=se}function B(){return y}function R(se){se!==null&&(b=Xw(se)),y=se,T.missing=b}const W=(se,be,je,ut,pt,At)=>{L();let Tt;try{__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=t?BF():void 0),Tt=se(T)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=void 0)}if(je!=="translate exists"&&Zo(Tt)&&Tt===y5||je==="translate exists"&&!Tt){const[Xt,en]=be();return t&&h?ut(t):pt(Xt)}else{if(At(Tt))return Tt;throw br(tr.UNEXPECTED_RETURN_TYPE)}};function le(...se){return W(be=>Reflect.apply(Uw,null,[be,...se]),()=>m8(...se),"translate",be=>Reflect.apply(be.t,be,[...se]),be=>be,be=>Rt(be))}function J(...se){const[be,je,ut]=se;if(ut&&!Dn(ut))throw br(tr.INVALID_ARGUMENT);return le(be,je,Go({resolvedMessage:!0},ut||{}))}function G(...se){return W(be=>Reflect.apply(Pw,null,[be,...se]),()=>p8(...se),"datetime format",be=>Reflect.apply(be.d,be,[...se]),()=>G3,be=>Rt(be)||Io(be))}function K(...se){return W(be=>Reflect.apply(Vw,null,[be,...se]),()=>h8(...se),"number format",be=>Reflect.apply(be.n,be,[...se]),()=>G3,be=>Rt(be)||Io(be))}function Q(se){return se.map(be=>Rt(be)||Zo(be)||Pn(be)?Zw(String(be)):be)}const U={normalize:Q,interpolate:se=>se,type:"vnode"};function me(...se){return W(be=>{let je;const ut=be;try{ut.processor=U,je=Reflect.apply(Uw,null,[ut,...se])}finally{ut.processor=null}return je},()=>m8(...se),"translate",be=>be[g8](...se),be=>[Zw(be)],be=>Io(be))}function _e(...se){return W(be=>Reflect.apply(Vw,null,[be,...se]),()=>h8(...se),"number format",be=>be[w8](...se),Gw,be=>Rt(be)||Io(be))}function Pe(...se){return W(be=>Reflect.apply(Pw,null,[be,...se]),()=>p8(...se),"datetime format",be=>be[v8](...se),Gw,be=>Rt(be)||Io(be))}function ge(se){$=se,T.pluralRules=$}function ee(se,be){return W(()=>{if(!se)return!1;const je=Rt(be)?be:i.value,ut=Rt(be)?[je]:f8(T,a.value,je);for(let pt=0;pt[se],"translate exists",je=>Reflect.apply(je.te,je,[se,be]),JF,je=>Pn(je))}function oe(se){let be=null;const je=f8(T,a.value,i.value);for(let ut=0;ut{l&&(i.value=se,T.locale=se,w2(T,i.value,a.value))}),Xe(t.fallbackLocale,se=>{l&&(a.value=se,T.fallbackLocale=se,w2(T,i.value,a.value))}));const Se={id:Yw,locale:j,fallbackLocale:O,get inheritLocale(){return l},set inheritLocale(se){l=se,se&&t&&(i.value=t.locale.value,a.value=t.fallbackLocale.value,w2(T,i.value,a.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:A,get modifiers(){return S},get pluralRules(){return $||{}},get isGlobal(){return o},get missingWarn(){return f},set missingWarn(se){f=se,T.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(se){p=se,T.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(se){h=se},get fallbackFormat(){return m},set fallbackFormat(se){m=se,T.fallbackFormat=m},get warnHtmlMessage(){return w},set warnHtmlMessage(se){w=se,T.warnHtmlMessage=se},get escapeParameter(){return k},set escapeParameter(se){k=se,T.escapeParameter=se},t:le,getLocaleMessage:Y,setLocaleMessage:we,mergeLocaleMessage:pe,getPostTranslationHandler:H,setPostTranslationHandler:M,getMissingHandler:B,setMissingHandler:R,[YM]:ge};return Se.datetimeFormats=F,Se.numberFormats=P,Se.rt=J,Se.te=ee,Se.tm=D,Se.d=G,Se.n=K,Se.getDateTimeFormat=de,Se.setDateTimeFormat=X,Se.mergeDateTimeFormat=ae,Se.getNumberFormat=ke,Se.setNumberFormat=xe,Se.mergeNumberFormat=ue,Se[XM]=n,Se[g8]=me,Se[v8]=Pe,Se[w8]=_e,Se}function eR(e){const t=Rt(e.locale)?e.locale:Bu,n=Rt(e.fallbackLocale)||Io(e.fallbackLocale)||eo(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=wo(e.missing)?e.missing:void 0,s=Pn(e.silentTranslationWarn)||bc(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Pn(e.silentFallbackWarn)||bc(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Pn(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,a=eo(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=wo(e.postTranslation)?e.postTranslation:void 0,d=Rt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,p=Pn(e.sync)?e.sync:!0;let h=e.messages;if(eo(e.sharedMessages)){const S=e.sharedMessages;h=Object.keys(S).reduce((T,I)=>{const L=T[I]||(T[I]={});return Go(L,S[I]),T},h||{})}const{__i18n:m,__root:y,__injectWithOption:b}=e,v=e.datetimeFormats,w=e.numberFormats,k=e.flatJson;return{locale:t,fallbackLocale:n,messages:h,flatJson:k,datetimeFormats:v,numberFormats:w,missing:o,missingWarn:s,fallbackWarn:r,fallbackRoot:l,fallbackFormat:i,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:m,__root:y,__injectWithOption:b}}function y8(e={}){const t=Y3(eR(e)),{__extender:n}=e,o={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return Pn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=Pn(s)?!s:s},get silentFallbackWarn(){return Pn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=Pn(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,r){return t.te(s,r)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,r){t.setLocaleMessage(s,r)},mergeLocaleMessage(s,r){t.mergeLocaleMessage(s,r)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,r){t.setDateTimeFormat(s,r)},mergeDateTimeFormat(s,r){t.mergeDateTimeFormat(s,r)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,r){t.setNumberFormat(s,r)},mergeNumberFormat(s,r){t.mergeNumberFormat(s,r)}};return o.__extender=n,o}function tR(e,t,n){return{beforeCreate(){const o=Ou();if(!o)throw br(tr.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=Jw(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=y8(r);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Jw(e,s);else{this.$i18n=y8({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&QM(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,l)=>this.$i18n.te(r,l),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=Ou();if(!o)throw br(tr.UNEXPECTED_ERROR);const s=this.$i18n;s&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s?.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(o),delete this.$i18n)}}}function Jw(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[YM](t.pluralizationRules||e.pluralizationRules);const n=dm(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const fm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function nR({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,s)=>[...o,...s.type===Le?s.children:[s]],[]):t.reduce((n,o)=>{const s=e[o];return s&&(n[o]=s()),n},lo())}function eA(){return Le}const oR=Ze({name:"i18n-t",props:Go({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Zo(e)||!isNaN(e)}},fm),setup(e,t){const{slots:n,attrs:o}=t,s=e.i18n||It({useScope:e.scope,__useComponent:!0});return()=>{const r=()=>{const a=Object.keys(n).filter(d=>d[0]!=="_"),c=lo();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=Rt(e.plural)?+e.plural:e.plural);const u=nR(t,a);return s[g8](e.keypath,u,c)},l=Go(lo(),o),i=Rt(e.tag)||Dn(e.tag)?e.tag:eA();return Dn(i)?cn(i,l,{default:r}):cn(i,l,r())}}}),Qw=oR;function sR(e){return Io(e)&&!Rt(e[0])}function tA(e,t,n,o){const{slots:s,attrs:r}=t;return()=>{const l=()=>{const c={part:!0};let u=lo();e.locale&&(c.locale=e.locale),Rt(e.format)?c.key=e.format:Dn(e.format)&&(Rt(e.format.key)&&(c.key=e.format.key),u=Object.keys(e.format).reduce((p,h)=>n.includes(h)?Go(lo(),p,{[h]:e.format[h]}):p,lo()));const d=o(e.value,c,u);let f=[c.key];return Io(d)?f=d.map((p,h)=>{const m=s[p.type],y=m?m({[p.type]:p.value,index:h,parts:d}):[p.value];return sR(y)&&(y[0].key=`${p.type}-${h}`),y}):Rt(d)&&(f=[d]),f},i=Go(lo(),r),a=Rt(e.tag)||Dn(e.tag)?e.tag:eA();return Dn(a)?cn(a,i,{default:l}):cn(a,i,l())}}const rR=Ze({name:"i18n-n",props:Go({value:{type:Number,required:!0},format:{type:[String,Object]}},fm),setup(e,t){const n=e.i18n||It({useScope:e.scope,__useComponent:!0});return tA(e,t,ZM,(...o)=>n[w8](...o))}}),ey=rR;function lR(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function iR(e){const t=l=>{const{instance:i,value:a}=l;if(!i||!i.$)throw br(tr.UNEXPECTED_ERROR);const c=lR(e,i.$),u=ty(a);return[Reflect.apply(c.t,c,[...ny(u)]),c]};return{created:(l,i)=>{const[a,c]=t(i);K3&&(l.__i18nWatcher=Xe(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=a},unmounted:l=>{K3&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const a=l.__composer,c=ty(i);l.textContent=Reflect.apply(a.t,a,[...ny(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function ty(e){if(Rt(e))return{path:e};if(eo(e)){if(!("path"in e))throw br(tr.REQUIRED_VALUE,"path");return e}else throw br(tr.INVALID_VALUE)}function ny(e){const{path:t,locale:n,args:o,choice:s,plural:r}=e,l={},i=o||{};return Rt(n)&&(l.locale=n),Zo(s)&&(l.plural=s),Zo(r)&&(l.plural=r),[t,i,l]}function aR(e,t,...n){const o=eo(n[0])?n[0]:{};(Pn(o.globalInstall)?o.globalInstall:!0)&&([Qw.name,"I18nT"].forEach(r=>e.component(r,Qw)),[ey.name,"I18nN"].forEach(r=>e.component(r,ey)),[ry.name,"I18nD"].forEach(r=>e.component(r,ry))),e.directive("t",iR(t))}const cR=Fa("global-vue-i18n");function uR(e={}){const t=__VUE_I18N_LEGACY_API__&&Pn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Pn(e.globalInjection)?e.globalInjection:!0,o=new Map,[s,r]=dR(e,t),l=Fa("");function i(d){return o.get(d)||null}function a(d,f){o.set(d,f)}function c(d){o.delete(d)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...f){if(d.__VUE_I18N_SYMBOL__=l,d.provide(d.__VUE_I18N_SYMBOL__,u),eo(f[0])){const m=f[0];u.__composerExtend=m.__composerExtend,u.__vueI18nExtend=m.__vueI18nExtend}let p=null;!t&&n&&(p=wR(d,u.global)),__VUE_I18N_FULL_INSTALL__&&aR(d,u,...f),__VUE_I18N_LEGACY_API__&&t&&d.mixin(tR(r,r.__composer,u));const h=d.unmount;d.unmount=()=>{p&&p(),u.dispose(),h()}},get global(){return r},dispose(){s.stop()},__instances:o,__getInstance:i,__setInstance:a,__deleteInstance:c};return u}function It(e={}){const t=Ou();if(t==null)throw br(tr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw br(tr.NOT_INSTALLED);const n=fR(t),o=hR(n),s=JM(t),r=pR(e,s);if(r==="global")return QM(o,e,s),o;if(r==="parent"){let a=oy(n,t,e.__useComponent);return a==null&&(a=o),a}if(r==="isolated"){if(n.mode!=="composition")throw br(tr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const a=n,c=Go({},e),u=oy(n,t);c.__root=u||o;const d=Y3(c);return a.__composerExtend&&(d[W0]=a.__composerExtend(d)),P7()&&zc(()=>{const p=d[W0];p&&(p(),delete d[W0])}),d}const l=n;let i=l.__getInstance(t);if(i==null){const a=Go({},e);"__i18n"in s&&(a.__i18n=s.__i18n),o&&(a.__root=o),i=Y3(a),l.__composerExtend&&(i[W0]=l.__composerExtend(i)),gR(l,t,i),l.__setInstance(t,i)}return i}function dR(e,t){const n=Iz(),o=__VUE_I18N_LEGACY_API__&&t?n.run(()=>y8(e)):n.run(()=>Y3(e));if(o==null)throw br(tr.UNEXPECTED_ERROR);return[n,o]}function fR(e){const t=kn(e.isCE?cR:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw br(e.isCE?tr.NOT_INSTALLED_WITH_PROVIDE:tr.UNEXPECTED_ERROR);return t}function pR(e,t){return sm(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hR(e){return e.mode==="composition"?e.global:e.global.__composer}function oy(e,t,n=!1){let o=null;const s=t.root;let r=mR(t,n);for(;r!=null;){const l=e;if(e.mode==="composition")o=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(r);i!=null&&(o=i.__composer,n&&o&&!o[XM]&&(o=null))}if(o!=null||s===r)break;r=r.parent}return o}function mR(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gR(e,t,n){Sn(()=>{},t),An(()=>{const o=n;e.__deleteInstance(t);const s=o[W0];s&&(s(),delete o[W0])},t)}const vR=["locale","fallbackLocale","availableLocales"],sy=["t","rt","d","n","tm","te"];function wR(e,t){const n=Object.create(null);return vR.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw br(tr.UNEXPECTED_ERROR);const l=jo(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,l)}),e.config.globalProperties.$i18n=n,sy.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw br(tr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,sy.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const yR=Ze({name:"i18n-d",props:Go({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},fm),setup(e,t){const n=e.i18n||It({useScope:e.scope,__useComponent:!0});return tA(e,t,UM,(...o)=>n[v8](...o))}}),ry=yR;XF();IF(dF);LF(AF);$F(f8);if(__INTLIFY_PROD_DEVTOOLS__){const e=C1();e.__INTLIFY__=!0,fF(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const kR="modulepreload",bR=function(e){return"/"+e},ly={},Es=function(t,n,o){let s=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");s=l(n.map(c=>{if(c=bR(c),c in ly)return;ly[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":kR,u||(f.as="script"),f.crossOrigin="",f.href=c,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(l){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l}return s.then(l=>{for(const i of l||[])i.status==="rejected"&&r(i.reason);return t().catch(r)})};async function Ko(e){const t=typeof navigator<"u"?navigator.clipboard:void 0;if(t&&typeof t.writeText=="function")try{return await t.writeText(e),!0}catch{}return xR(e)}function _R(e){if(typeof e!="string")return;const t=typeof navigator<"u"?navigator.clipboard:void 0;t&&typeof t.writeText=="function"||Ko(e)}function xR(e){if(typeof document>"u"||typeof document.execCommand!="function")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",t.style.opacity="0",document.body.appendChild(t);let n=!1;try{t.focus(),t.select(),n=document.execCommand("copy")}catch{n=!1}finally{document.body.removeChild(t)}return n}const sn={permission:"pythinker-web.permission",activeWorkspace:"pythinker-active-workspace",planMode:"pythinker-web.plan-mode",planArmed:"pythinker-web.plan-armed",dynamicWorkflowMode:"pythinker-web.dynamic-workflow-mode",goalMode:"pythinker-web.goal-mode",uiFontSize:"pythinker-web.ui-font-size",starredModels:"pythinker-web.starred-models",unread:"pythinker-web.unread",onboarded:"pythinker-web.onboarded",accent:"pythinker-web.accent",colorScheme:"pythinker-web.color-scheme",hiddenWorkspaces:"pythinker-web.hidden-workspaces",collapsedWorkspaces:"pythinker-web.collapsed-workspaces",workspaceOrder:"pythinker-web.workspace-order",workspaceNameOverrides:"pythinker-web.workspace-name-overrides",workspaceSort:"pythinker-web.workspace-sort",pinnedSessions:"pythinker-web.pinned-sessions",pinnedCollapsed:"pythinker-web.pinned-collapsed",recentEmojis:"pythinker-web.recent-emojis",conversationToc:"pythinker-web.beta-toc",notifyOnComplete:"pythinker-web.notify-on-complete",notifyOnQuestion:"pythinker-web.notify-on-question",notifyOnApproval:"pythinker-web.notify-on-approval",soundOnComplete:"pythinker-web.sound-on-complete",inputHistory:"pythinker-web.input-history",clientId:"pythinker-web.client-id",debug:"pythinker-web.debug",openInLastTarget:"pythinker-web.open-in.last-target",sidebarCollapsed:"pythinker-web.sidebar-collapsed",sidebarWidth:"pythinker-web.sidebar-width",codeFont:"pythinker-web.code-font",contentAlign:"pythinker-web.content-align",theme:"pythinker-web.theme",thinking:"pythinker-web.thinking"};function iy(e){return`pythinker-web.draft.${e&&e.length>0?e:"__new__"}`}function Oo(e){try{return globalThis.localStorage.getItem(e)}catch{return null}}function Jo(e,t){try{globalThis.localStorage.setItem(e,t)}catch{}}function D1(e){try{globalThis.localStorage.removeItem(e)}catch{}}function Oc(e){const t=Oo(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}function Pa(e,t){try{globalThis.localStorage.setItem(e,JSON.stringify(t))}catch{}}function pm(){const e=Oo(sn.unread);if(!e)return{};try{const t=JSON.parse(e);if(!t||typeof t!="object")return{};const n={};for(const[o,s]of Object.entries(t))s===!0&&(n[o]=!0);return n}catch{return{}}}function hm(e){const n={...pm()};for(const[o,s]of Object.entries(e))s?n[o]=!0:delete n[o];Jo(sn.unread,JSON.stringify(n))}function SR(){const e=Oc(sn.collapsedWorkspaces);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function fp(e){Pa(sn.collapsedWorkspaces,Array.from(e))}function CR(){const e=Oc(sn.workspaceOrder);return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function nA(e){Pa(sn.workspaceOrder,Array.from(e))}function hf(){const e=Oc(sn.workspaceNameOverrides);if(!e||typeof e!="object")return{};const t={};for(const[n,o]of Object.entries(e))typeof o=="string"&&(t[n]=o);return t}function ay(e){Pa(sn.workspaceNameOverrides,e)}function MR(){return Oo(sn.workspaceSort)}function oA(e){Jo(sn.workspaceSort,e)}function AR(e,t){if(e.length===0)return null;const n=new Set(e),o=t.filter(r=>n.has(r)),s=e.filter(r=>!t.includes(r));return s.length===0&&o.length===t.length?null:[...s,...o]}function TR(e,t){const n=new Map(t.map((o,s)=>[o,s]));return e.toSorted((o,s)=>(n.get(o.id)??-1)-(n.get(s.id)??-1))}function ER(e,t,n,o="before"){const s=e.indexOf(t),r=e.indexOf(n);if(s===-1||r===-1||s===r)return e;const l=[...e];l.splice(s,1);const i=s(t.get(o.id)??Number.NEGATIVE_INFINITY)-(t.get(n.id)??Number.NEGATIVE_INFINITY))}function LR(e,t=2e4){const n=q(`${e}?r=0`);let o=0;const s=setInterval(()=>{o+=1,n.value=`${e}?r=${o}`},t);return An(()=>clearInterval(s)),n}const $R=["src","alt","role"],NR=Ze({__name:"PythinkerLogo",props:{size:{default:"sm"},animated:{type:Boolean,default:!0},label:{default:"Pythinker Code"},interactive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=LR("/brand/mascot-waving.png"),o=e,s=t;function r(){o.interactive&&s("click")}return(l,i)=>(g(),C("img",{src:e.animated?_(n):"/brand/icon.svg",class:He(["pythinker-logo",[`size-${e.size}`,{interactive:e.interactive}]]),alt:e.label,role:e.interactive?"button":"img",onClick:r},null,10,$R))}}),ht=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},X3=ht(NR,[["__scopeId","data-v-58c4fde0"]]),zR={"&":"&","<":"<",">":">",'"':""","'":"'"};function cy(e){return e.replace(/[&<>"']/g,t=>zR[t]??t)}function BR(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jR(e,t,n=40){const o=e.replace(/\s+/g," ").trim();if(o.length===0)return"";const s=t.trim();if(s.length===0)return uy(o,n*2);const r=o.toLowerCase().indexOf(s.toLowerCase());if(r<0)return uy(o,n*2);const l=Math.max(0,r-n),i=Math.min(o.length,r+s.length+n),a=l>0,c=i`${r}`)}const y1=q(0),OR=["type","disabled","aria-label"],FR=Ze({__name:"IconButton",props:{size:{default:"md"},disabled:{type:Boolean},label:{},type:{default:"button"}},setup(e,{expose:t}){const n=q();return t({el:n}),(o,s)=>(g(),C("button",{ref_key:"el",ref:n,class:He(["ui-icon-button",`ui-icon-button--${e.size}`]),type:e.type,disabled:e.disabled,"aria-label":e.label},[bn(o.$slots,"default",{},void 0,!0)],10,OR))}}),Gt=ht(FR,[["__scopeId","data-v-4b23513f"]]),mf=q(!1);let dy=!1;function pp(){const e=document.documentElement.dataset.colorScheme;return e==="dark"?!0:e==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function mm(){return!dy&&typeof window<"u"&&typeof document<"u"&&(dy=!0,mf.value=pp(),new MutationObserver(()=>{mf.value=pp()}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-color-scheme"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{mf.value=pp()})),mf}const sA="file",RR="folder",gf={"._sc_":"godot-assets",".adonisrc.json":"adonis",".aiexclude":"gemini-ai",".angular-cli.json":"angular",".appveyor.yml":"appveyor",".astylerc":"astyle",".autorc":"auto",".babel-plugin-macrosrc":"babel",".babel-plugin-macrosrc.cjs":"babel",".babel-plugin-macrosrc.cts":"babel",".babel-plugin-macrosrc.js":"babel",".babel-plugin-macrosrc.json":"babel",".babel-plugin-macrosrc.json5":"babel",".babel-plugin-macrosrc.jsonc":"babel",".babel-plugin-macrosrc.mjs":"babel",".babel-plugin-macrosrc.mts":"babel",".babel-plugin-macrosrc.toml":"babel",".babel-plugin-macrosrc.ts":"babel",".babel-plugin-macrosrc.yaml":"babel",".babel-plugin-macrosrc.yml":"babel",".babelrc":"babel",".babelrc.cjs":"babel",".babelrc.cts":"babel",".babelrc.js":"babel",".babelrc.json":"babel",".babelrc.json5":"babel",".babelrc.jsonc":"babel",".babelrc.mjs":"babel",".babelrc.mts":"babel",".babelrc.toml":"babel",".babelrc.ts":"babel",".babelrc.yaml":"babel",".babelrc.yml":"babel",".bazelignore":"bazel",".bazelrc":"bazel",".bazelversion":"bazel",".biome.json":"biome",".biome.jsonc":"biome",".bithoundrc":"bithound",".blitz.config.compiled.js":"blitz",".bowerrc":"bower",".browserslistrc":"browserlist",".buckconfig":"buck",".buildignore":"settings",".bun-version":"bun",".cfignore":"cloudfoundry",".clang-format":"settings",".clang-format-ignore":"settings",".clang-tidy":"settings",".clangd":"clangd",".clinerules":"cline",".codeclimate.yml":"code-climate",".codecov.yaml":"codecov",".codecov.yml":"codecov",".coderabbit.yaml":"coderabbit-ai",".coderabbit.yml":"coderabbit-ai",".commitlint.yaml":"commitlint",".commitlint.yml":"commitlint",".commitlintrc":"commitlint",".commitlintrc.cjs":"commitlint",".commitlintrc.cts":"commitlint",".commitlintrc.js":"commitlint",".commitlintrc.json":"commitlint",".commitlintrc.json5":"commitlint",".commitlintrc.jsonc":"commitlint",".commitlintrc.mjs":"commitlint",".commitlintrc.mts":"commitlint",".commitlintrc.toml":"commitlint",".commitlintrc.ts":"commitlint",".commitlintrc.yaml":"commitlint",".commitlintrc.yml":"commitlint",".conf":"settings",".config/babel-plugin-macrosrc":"babel",".config/babel-plugin-macrosrc.cjs":"babel",".config/babel-plugin-macrosrc.cts":"babel",".config/babel-plugin-macrosrc.js":"babel",".config/babel-plugin-macrosrc.json":"babel",".config/babel-plugin-macrosrc.json5":"babel",".config/babel-plugin-macrosrc.jsonc":"babel",".config/babel-plugin-macrosrc.mjs":"babel",".config/babel-plugin-macrosrc.mts":"babel",".config/babel-plugin-macrosrc.toml":"babel",".config/babel-plugin-macrosrc.ts":"babel",".config/babel-plugin-macrosrc.yaml":"babel",".config/babel-plugin-macrosrc.yml":"babel",".config/babelrc":"babel",".config/babelrc.cjs":"babel",".config/babelrc.cts":"babel",".config/babelrc.js":"babel",".config/babelrc.json":"babel",".config/babelrc.json5":"babel",".config/babelrc.jsonc":"babel",".config/babelrc.mjs":"babel",".config/babelrc.mts":"babel",".config/babelrc.toml":"babel",".config/babelrc.ts":"babel",".config/babelrc.yaml":"babel",".config/babelrc.yml":"babel",".config/commitlintrc":"commitlint",".config/commitlintrc.cjs":"commitlint",".config/commitlintrc.cts":"commitlint",".config/commitlintrc.js":"commitlint",".config/commitlintrc.json":"commitlint",".config/commitlintrc.json5":"commitlint",".config/commitlintrc.jsonc":"commitlint",".config/commitlintrc.mjs":"commitlint",".config/commitlintrc.mts":"commitlint",".config/commitlintrc.toml":"commitlint",".config/commitlintrc.ts":"commitlint",".config/commitlintrc.yaml":"commitlint",".config/commitlintrc.yml":"commitlint",".config/cracorc":"craco",".config/cracorc.cjs":"craco",".config/cracorc.cts":"craco",".config/cracorc.js":"craco",".config/cracorc.json":"craco",".config/cracorc.json5":"craco",".config/cracorc.jsonc":"craco",".config/cracorc.mjs":"craco",".config/cracorc.mts":"craco",".config/cracorc.toml":"craco",".config/cracorc.ts":"craco",".config/cracorc.yaml":"craco",".config/cracorc.yml":"craco",".config/eslintrc":"eslint",".config/eslintrc.cjs":"eslint",".config/eslintrc.cts":"eslint",".config/eslintrc.js":"eslint",".config/eslintrc.json":"eslint",".config/eslintrc.json5":"eslint",".config/eslintrc.jsonc":"eslint",".config/eslintrc.mjs":"eslint",".config/eslintrc.mts":"eslint",".config/eslintrc.toml":"eslint",".config/eslintrc.ts":"eslint",".config/eslintrc.yaml":"eslint",".config/eslintrc.yml":"eslint",".config/graphqlrc":"graphql",".config/graphqlrc.cjs":"graphql",".config/graphqlrc.cts":"graphql",".config/graphqlrc.js":"graphql",".config/graphqlrc.json":"graphql",".config/graphqlrc.json5":"graphql",".config/graphqlrc.jsonc":"graphql",".config/graphqlrc.mjs":"graphql",".config/graphqlrc.mts":"graphql",".config/graphqlrc.toml":"graphql",".config/graphqlrc.ts":"graphql",".config/graphqlrc.yaml":"graphql",".config/graphqlrc.yml":"graphql",".config/huskyrc":"husky",".config/huskyrc.cjs":"husky",".config/huskyrc.cts":"husky",".config/huskyrc.js":"husky",".config/huskyrc.json":"husky",".config/huskyrc.json5":"husky",".config/huskyrc.jsonc":"husky",".config/huskyrc.mjs":"husky",".config/huskyrc.mts":"husky",".config/huskyrc.toml":"husky",".config/huskyrc.ts":"husky",".config/huskyrc.yaml":"husky",".config/huskyrc.yml":"husky",".config/postcssrc":"postcss",".config/postcssrc.cjs":"postcss",".config/postcssrc.cts":"postcss",".config/postcssrc.js":"postcss",".config/postcssrc.json":"postcss",".config/postcssrc.json5":"postcss",".config/postcssrc.jsonc":"postcss",".config/postcssrc.mjs":"postcss",".config/postcssrc.mts":"postcss",".config/postcssrc.toml":"postcss",".config/postcssrc.ts":"postcss",".config/postcssrc.yaml":"postcss",".config/postcssrc.yml":"postcss",".config/posthtmlrc":"posthtml",".config/posthtmlrc.cjs":"posthtml",".config/posthtmlrc.cts":"posthtml",".config/posthtmlrc.js":"posthtml",".config/posthtmlrc.json":"posthtml",".config/posthtmlrc.json5":"posthtml",".config/posthtmlrc.jsonc":"posthtml",".config/posthtmlrc.mjs":"posthtml",".config/posthtmlrc.mts":"posthtml",".config/posthtmlrc.toml":"posthtml",".config/posthtmlrc.ts":"posthtml",".config/posthtmlrc.yaml":"posthtml",".config/posthtmlrc.yml":"posthtml",".config/prettierrc":"prettier",".config/prettierrc.cjs":"prettier",".config/prettierrc.cts":"prettier",".config/prettierrc.js":"prettier",".config/prettierrc.json":"prettier",".config/prettierrc.json5":"prettier",".config/prettierrc.jsonc":"prettier",".config/prettierrc.mjs":"prettier",".config/prettierrc.mts":"prettier",".config/prettierrc.toml":"prettier",".config/prettierrc.ts":"prettier",".config/prettierrc.yaml":"prettier",".config/prettierrc.yml":"prettier",".config/puppeteerrc":"puppeteer",".config/puppeteerrc.cjs":"puppeteer",".config/puppeteerrc.cts":"puppeteer",".config/puppeteerrc.js":"puppeteer",".config/puppeteerrc.json":"puppeteer",".config/puppeteerrc.json5":"puppeteer",".config/puppeteerrc.jsonc":"puppeteer",".config/puppeteerrc.mjs":"puppeteer",".config/puppeteerrc.mts":"puppeteer",".config/puppeteerrc.toml":"puppeteer",".config/puppeteerrc.ts":"puppeteer",".config/puppeteerrc.yaml":"puppeteer",".config/puppeteerrc.yml":"puppeteer",".config/releaserc":"semantic-release",".config/releaserc.cjs":"semantic-release",".config/releaserc.cts":"semantic-release",".config/releaserc.js":"semantic-release",".config/releaserc.json":"semantic-release",".config/releaserc.json5":"semantic-release",".config/releaserc.jsonc":"semantic-release",".config/releaserc.mjs":"semantic-release",".config/releaserc.mts":"semantic-release",".config/releaserc.toml":"semantic-release",".config/releaserc.ts":"semantic-release",".config/releaserc.yaml":"semantic-release",".config/releaserc.yml":"semantic-release",".config/stylelintrc":"stylelint",".config/stylelintrc.cjs":"stylelint",".config/stylelintrc.cts":"stylelint",".config/stylelintrc.js":"stylelint",".config/stylelintrc.json":"stylelint",".config/stylelintrc.json5":"stylelint",".config/stylelintrc.jsonc":"stylelint",".config/stylelintrc.mjs":"stylelint",".config/stylelintrc.mts":"stylelint",".config/stylelintrc.toml":"stylelint",".config/stylelintrc.ts":"stylelint",".config/stylelintrc.yaml":"stylelint",".config/stylelintrc.yml":"stylelint",".config/svgrrc":"svgr",".config/svgrrc.cjs":"svgr",".config/svgrrc.cts":"svgr",".config/svgrrc.js":"svgr",".config/svgrrc.json":"svgr",".config/svgrrc.json5":"svgr",".config/svgrrc.jsonc":"svgr",".config/svgrrc.mjs":"svgr",".config/svgrrc.mts":"svgr",".config/svgrrc.toml":"svgr",".config/svgrrc.ts":"svgr",".config/svgrrc.yaml":"svgr",".config/svgrrc.yml":"svgr",".config/syncpackrc":"syncpack",".config/syncpackrc.cjs":"syncpack",".config/syncpackrc.cts":"syncpack",".config/syncpackrc.js":"syncpack",".config/syncpackrc.json":"syncpack",".config/syncpackrc.json5":"syncpack",".config/syncpackrc.jsonc":"syncpack",".config/syncpackrc.mjs":"syncpack",".config/syncpackrc.mts":"syncpack",".config/syncpackrc.toml":"syncpack",".config/syncpackrc.ts":"syncpack",".config/syncpackrc.yaml":"syncpack",".config/syncpackrc.yml":"syncpack",".copilotignore":"copilot",".coverage":"python-misc",".coveragerc":"python-misc",".cracorc":"craco",".cracorc.cjs":"craco",".cracorc.cts":"craco",".cracorc.js":"craco",".cracorc.json":"craco",".cracorc.json5":"craco",".cracorc.jsonc":"craco",".cracorc.mjs":"craco",".cracorc.mts":"craco",".cracorc.toml":"craco",".cracorc.ts":"craco",".cracorc.yaml":"craco",".cracorc.yml":"craco",".cursor":"cursor",".cursor.json":"cursor",".cursorignore":"cursor",".cursorindexingignore":"cursor",".cursorrc":"cursor",".cursorrules":"cursor",".cz.json":"commitizen",".cz.toml":"commitizen",".cz.yaml":"commitizen",".cz.yml":"commitizen",".czrc":"commitizen",".deepsource.toml":"deepsource",".dev.vars":"tune",".drone.yml":"drone",".easignore":"expo",".ecrc":"editorconfig",".editorconfig":"editorconfig",".editorconfig-checker.json":"editorconfig",".ember-cli":"ember",".ember-cli.js":"ember",".env.alpha":"tune",".env.defaults":"tune",".env.dev":"tune",".env.dev.local":"tune",".env.development":"tune",".env.development.local":"tune",".env.dist":"tune",".env.e2e":"tune",".env.example":"tune",".env.local":"tune",".env.preview":"tune",".env.prod":"tune",".env.prod.example":"tune",".env.prod.local":"tune",".env.production":"tune",".env.production.example":"tune",".env.production.local":"tune",".env.qa":"tune",".env.qa.local":"tune",".env.sample":"tune",".env.schema":"tune",".env.sentry-build-plugin":"sentry",".env.stage":"tune",".env.staging":"tune",".env.staging.local":"tune",".env.stg":"tune",".env.stg.local":"tune",".env.template":"tune",".env.test":"tune",".env.test.local":"tune",".env.testing":"tune",".env.uat":"tune",".envrc":"console",".esformatter":"json",".eslintcache":"eslint",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc-jsdoc.js":"eslint",".eslintrc-md.js":"eslint",".eslintrc.base.json":"eslint",".eslintrc.cjs":"eslint",".eslintrc.cts":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.json5":"eslint",".eslintrc.jsonc":"eslint",".eslintrc.mjs":"eslint",".eslintrc.mts":"eslint",".eslintrc.toml":"eslint",".eslintrc.ts":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".esmrc":"nodejs",".firebaserc":"firebase",".flowconfig":"flow",".gardenignore":"garden",".gcloudignore":"gcp",".gdignore":"godot-assets",".git":"git",".git-blame-ignore":"git",".git-blame-ignore-revs":"git",".git-for-windows-updater":"git",".gitattributes":"git",".gitattributes-global":"git",".gitattributes_global":"git",".gitconfig":"git",".github/funding.yml":"github-sponsors",".github/labeler.yaml":"label",".github/labeler.yml":"label",".gitignore":"git",".gitignore-global":"git",".gitignore_global":"git",".gitinclude":"git",".gitkeep":"git",".gitmessage":"git",".gitmodules":"git",".gitpod.yml":"gitpod",".gitpreserve":"git",".graphqlconfig":"graphql",".graphqlrc":"graphql",".graphqlrc.cjs":"graphql",".graphqlrc.cts":"graphql",".graphqlrc.js":"graphql",".graphqlrc.json":"graphql",".graphqlrc.json5":"graphql",".graphqlrc.jsonc":"graphql",".graphqlrc.mjs":"graphql",".graphqlrc.mts":"graphql",".graphqlrc.toml":"graphql",".graphqlrc.ts":"graphql",".graphqlrc.yaml":"graphql",".graphqlrc.yml":"graphql",".hadolint.yaml":"hadolint",".hadolint.yml":"hadolint",".happo.cjs":"happo",".happo.js":"happo",".happo.mjs":"happo",".helmignore":"helm",".hg":"mercurial",".hgflow":"mercurial",".hgignore":"mercurial",".hgrc":"mercurial",".hgtags":"mercurial",".hhconfig":"hack",".hintrc":"webhint",".histoire.cjs":"histoire",".histoire.cts":"histoire",".histoire.js":"histoire",".histoire.mjs":"histoire",".histoire.mts":"histoire",".histoire.ts":"histoire",".htaccess":"xml",".htpasswd":"key",".hushlogin":"console",".huskyrc":"husky",".huskyrc.cjs":"husky",".huskyrc.cts":"husky",".huskyrc.js":"husky",".huskyrc.json":"husky",".huskyrc.json5":"husky",".huskyrc.jsonc":"husky",".huskyrc.mjs":"husky",".huskyrc.mts":"husky",".huskyrc.toml":"husky",".huskyrc.ts":"husky",".huskyrc.yaml":"husky",".huskyrc.yml":"husky",".io-config.json":"ionic",".istanbul.yml":"istanbul",".jestrc":"jest",".jestrc.js":"jest",".jestrc.json":"jest",".jsbeautifyrc":"json",".jscsrc":"json",".jshintignore":"settings",".jshintrc":"json",".justfile":"just",".k8s.yaml":"kubernetes",".k8s.yml":"kubernetes",".keep":"git",".kl":"kl",".knip.json":"knip",".knip.jsonc":"knip",".latexmkrc":"latexmk",".lefthook-local.json":"lefthook",".lefthook-local.toml":"lefthook",".lefthook-local.yaml":"lefthook",".lefthook-local.yml":"lefthook",".lefthook.json":"lefthook",".lefthook.toml":"lefthook",".lefthook.yaml":"lefthook",".lefthook.yml":"lefthook",".lefthookrc":"lefthook",".liaraignore":"liara",".lighthouserc.cjs":"lighthouse",".lighthouserc.js":"lighthouse",".lighthouserc.json":"lighthouse",".lighthouserc.yaml":"lighthouse",".lighthouserc.yml":"lighthouse",".lintstagedrc":"lintstaged",".lintstagedrc.cjs":"lintstaged",".lintstagedrc.js":"lintstaged",".lintstagedrc.json":"lintstaged",".lintstagedrc.mjs":"lintstaged",".lintstagedrc.yaml":"lintstaged",".lintstagedrc.yml":"lintstaged",".luacheckrc":"lua",".luaurc":"luau",".mailmap":"email",".markdownlint-cli2.cjs":"markdownlint",".markdownlint-cli2.jsonc":"markdownlint",".markdownlint-cli2.mjs":"markdownlint",".markdownlint-cli2.yaml":"markdownlint",".markdownlint.json":"markdownlint",".markdownlint.jsonc":"markdownlint",".markdownlint.yaml":"markdownlint",".markdownlint.yml":"markdownlint",".markdownlintignore":"markdownlint",".mcattributes":"minecraft",".mcdefinitions":"minecraft",".mcignore":"minecraft",".mincloudrc":"ifanr-cloud",".mjmlconfig":"mjml",".mocharc.cjs":"mocha",".mocharc.js":"mocha",".mocharc.json":"mocha",".mocharc.jsonc":"mocha",".mocharc.yaml":"mocha",".mocharc.yml":"mocha",".modernizrrc":"modernizr",".modernizrrc.js":"modernizr",".modernizrrc.json":"modernizr",".mrconfig":"settings",".nano-staged.cjs":"nano-staged",".nano-staged.js":"nano-staged",".nano-staged.json":"nano-staged",".nano-staged.mjs":"nano-staged",".nanostagedrc":"nano-staged",".nest-cli.json":"nest",".nestconfig.json":"nest",".node-version":"nodejs",".nowignore":"vercel",".npmignore":"npm",".npmrc":"npm",".nuspec":"nuget",".nuxtignore":"nuxt",".nuxtrc":"nuxt",".nvmrc":"nodejs",".nxignore":"nx",".nycrc":"istanbul",".nycrc.json":"istanbul",".nycrc.yaml":"istanbul",".nycrc.yml":"istanbul",".oxfmtrc.json":"oxc",".oxfmtrc.jsonc":"oxc",".oxlintrc.json":"oxc",".oxlintrc.jsonc":"oxc",".packshiprc":"packship",".packshiprc.js":"packship",".packshiprc.json":"packship",".packshiprc.ts":"packship",".parcelrc":"parcel",".pdm-python":"pdm",".percy.yml":"percy",".php-cs-fixer.dist.php":"php-cs-fixer",".php-cs-fixer.php":"php-cs-fixer",".php_cs":"php-cs-fixer",".php_cs.dist":"php-cs-fixer",".php_cs.dist.php":"php-cs-fixer",".php_cs.php":"php-cs-fixer",".phpunit-watcher.yml":"phpunit",".phpunit.result.cache":"phpunit",".pnpmfile.cjs":"pnpm",".postcssrc":"postcss",".postcssrc.cjs":"postcss",".postcssrc.cts":"postcss",".postcssrc.js":"postcss",".postcssrc.json":"postcss",".postcssrc.json5":"postcss",".postcssrc.jsonc":"postcss",".postcssrc.mjs":"postcss",".postcssrc.mts":"postcss",".postcssrc.toml":"postcss",".postcssrc.ts":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".posthtmlrc":"posthtml",".posthtmlrc.cjs":"posthtml",".posthtmlrc.cts":"posthtml",".posthtmlrc.js":"posthtml",".posthtmlrc.json":"posthtml",".posthtmlrc.json5":"posthtml",".posthtmlrc.jsonc":"posthtml",".posthtmlrc.mjs":"posthtml",".posthtmlrc.mts":"posthtml",".posthtmlrc.toml":"posthtml",".posthtmlrc.ts":"posthtml",".posthtmlrc.yaml":"posthtml",".posthtmlrc.yml":"posthtml",".pre-commit-config.yaml":"pre-commit",".pre-commit-hooks.yaml":"pre-commit",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.cts":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.json5":"prettier",".prettierrc.jsonc":"prettier",".prettierrc.mjs":"prettier",".prettierrc.mts":"prettier",".prettierrc.toml":"prettier",".prettierrc.ts":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".pubignore":"dart",".pug-lintrc":"pug",".pug-lintrc.js":"pug",".pug-lintrc.json":"pug",".puppeteerrc":"puppeteer",".puppeteerrc.cjs":"puppeteer",".puppeteerrc.cts":"puppeteer",".puppeteerrc.js":"puppeteer",".puppeteerrc.json":"puppeteer",".puppeteerrc.json5":"puppeteer",".puppeteerrc.jsonc":"puppeteer",".puppeteerrc.mjs":"puppeteer",".puppeteerrc.mts":"puppeteer",".puppeteerrc.toml":"puppeteer",".puppeteerrc.ts":"puppeteer",".puppeteerrc.yaml":"puppeteer",".puppeteerrc.yml":"puppeteer",".pylintrc":"python-misc",".python-version":"python-misc",".qa-mincloudrc":"ifanr-cloud",".release-it.cjs":"rocket",".release-it.js":"rocket",".release-it.json":"rocket",".release-it.toml":"rocket",".release-it.ts":"rocket",".release-it.yaml":"rocket",".release-it.yml":"rocket",".release-plz.toml":"rocket",".releaserc":"semantic-release",".releaserc.cjs":"semantic-release",".releaserc.cts":"semantic-release",".releaserc.js":"semantic-release",".releaserc.json":"semantic-release",".releaserc.json5":"semantic-release",".releaserc.jsonc":"semantic-release",".releaserc.mjs":"semantic-release",".releaserc.mts":"semantic-release",".releaserc.toml":"semantic-release",".releaserc.ts":"semantic-release",".releaserc.yaml":"semantic-release",".releaserc.yml":"semantic-release",".remarkignore":"remark",".remarkrc":"remark",".remarkrc.cjs":"remark",".remarkrc.js":"remark",".remarkrc.json":"remark",".remarkrc.mjs":"remark",".remarkrc.yaml":"remark",".remarkrc.yml":"remark",".renovaterc":"renovate",".renovaterc.json":"renovate",".replit":"replit",".rhistory":"r",".rspec":"rspec",".rubocop-todo.yml":"rubocop",".rubocop.yml":"rubocop",".rubocop_todo.yml":"rubocop",".ruby-version":"ruby",".ruff.toml":"ruff",".scrapy":"python-misc",".secrets":"key",".semgrepignore":"semgrep",".sentryclirc":"sentry",".sequelizerc":"sequelize",".shellcheckrc":"shellcheck",".slugignore":"slug",".snyk":"snyk",".sonarcloud.properties":"sonarcloud",".stackblitzrc":"stackblitz",".steadybit.yaml":"steadybit",".steadybit.yml":"steadybit",".stryker.conf.cjs":"stryker",".stryker.conf.js":"stryker",".stryker.conf.json":"stryker",".stryker.conf.mjs":"stryker",".stryker.config.cjs":"stryker",".stryker.config.js":"stryker",".stryker.config.json":"stryker",".stryker.config.mjs":"stryker",".stylelintcache":"stylelint",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.cts":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.json5":"stylelint",".stylelintrc.jsonc":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.mts":"stylelint",".stylelintrc.toml":"stylelint",".stylelintrc.ts":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".svgrrc":"svgr",".svgrrc.cjs":"svgr",".svgrrc.cts":"svgr",".svgrrc.js":"svgr",".svgrrc.json":"svgr",".svgrrc.json5":"svgr",".svgrrc.jsonc":"svgr",".svgrrc.mjs":"svgr",".svgrrc.mts":"svgr",".svgrrc.toml":"svgr",".svgrrc.ts":"svgr",".svgrrc.yaml":"svgr",".svgrrc.yml":"svgr",".swift-format":"swift",".swift-version":"swift",".swiftformat":"swift",".syncpackrc":"syncpack",".syncpackrc.cjs":"syncpack",".syncpackrc.cts":"syncpack",".syncpackrc.js":"syncpack",".syncpackrc.json":"syncpack",".syncpackrc.json5":"syncpack",".syncpackrc.jsonc":"syncpack",".syncpackrc.mjs":"syncpack",".syncpackrc.mts":"syncpack",".syncpackrc.toml":"syncpack",".syncpackrc.ts":"syncpack",".syncpackrc.yaml":"syncpack",".syncpackrc.yml":"syncpack",".taskrc.yaml":"taskfile",".taskrc.yml":"taskfile",".taurignore":"tauri",".tazerc":"taze",".tazerc.json":"taze",".textlintignore":"textlint",".textlintrc":"textlint",".textlintrc.cjs":"textlint",".textlintrc.js":"textlint",".textlintrc.json":"textlint",".textlintrc.yaml":"textlint",".textlintrc.yml":"textlint",".tobimake":"tobimake",".travis.yml":"travis",".umirc.cjs":"umi",".umirc.cts":"umi",".umirc.js":"umi",".umirc.mjs":"umi",".umirc.mts":"umi",".umirc.ts":"umi",".uv.toml":"uv",".vars":"tune",".vercelignore":"vercel",".vfl":"vfl",".vsconfig":"visualstudio",".vuerc":"vue-config",".wakatime-project":"wakatime",".watchmanconfig":"watchman",".whitesource":"json",".yardopts":"settings",".yarn-integrity":"yarn",".yarnclean":"yarn",".yarnrc":"yarn",".yarnrc.yaml":"yarn",".yarnrc.yml":"yarn",_sc_:"godot-assets",ace:"adonis","amplify.yml":"amplify","androidmanifest.xml":"android","angular-cli.json":"angular","angular.json":"angular",apkbuild:"console","apollo.config.js":"apollo",appfile:"fastlane",appraisals:"ruby","appveyor.yml":"appveyor","appwrite.js":"appwrite","appwrite.json":"appwrite","appwrite.ts":"appwrite",architecture:"architecture","architecture.md":"architecture","architecture.rst":"architecture","architecture.txt":"architecture",artisan:"laravel","astro.config.cjs":"astro-config","astro.config.cts":"astro-config","astro.config.js":"astro-config","astro.config.mjs":"astro-config","astro.config.mts":"astro-config","astro.config.ts":"astro-config","aurelia.json":"aurelia",authors:"authors","authors.md":"authors","authors.rst":"authors","authors.txt":"authors","auto-config.js":"auto","auto-config.json":"auto","auto-config.ts":"auto","auto-config.yaml":"auto","auto-config.yml":"auto","auto.config.js":"auto","auto.config.ts":"auto","azure-pipelines-main.yaml":"azure-pipelines","azure-pipelines-main.yml":"azure-pipelines","azure-pipelines.yaml":"azure-pipelines","azure-pipelines.yml":"azure-pipelines","babel-plugin-macros.config.cjs":"babel","babel-plugin-macros.config.cts":"babel","babel-plugin-macros.config.js":"babel","babel-plugin-macros.config.json":"babel","babel-plugin-macros.config.json5":"babel","babel-plugin-macros.config.jsonc":"babel","babel-plugin-macros.config.mjs":"babel","babel-plugin-macros.config.mts":"babel","babel-plugin-macros.config.toml":"babel","babel-plugin-macros.config.ts":"babel","babel-plugin-macros.config.yaml":"babel","babel-plugin-macros.config.yml":"babel","babel-transform.js":"babel","babel.config.cjs":"babel","babel.config.cts":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.json5":"babel","babel.config.jsonc":"babel","babel.config.mjs":"babel","babel.config.mts":"babel","babel.config.toml":"babel","babel.config.ts":"babel","babel.config.yaml":"babel","babel.config.yml":"babel",bashrc_apple_terminal:"console",berksfile:"ruby","berksfile.lock":"ruby","biome.json":"biome","biome.jsonc":"biome","bitbucket-pipelines.yaml":"bitbucket","bitbucket-pipelines.yml":"bitbucket","blitz.config.js":"blitz","blitz.config.ts":"blitz","bower.json":"bower",brewfile:"ruby",browserslist:"browserlist","buildkite.yaml":"buildkite","buildkite.yml":"buildkite","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","cabal.project":"cabal","cabal.project.freeze":"cabal","cabal.project.local":"cabal",caddyfile:"caddy","capacitor.config.json":"capacitor","capacitor.config.ts":"capacitor",capfile:"ruby","cdp.pid":"json","celerybeat-schedule":"python-misc","celerybeat.pid":"python-misc",changelog:"changelog","changelog.md":"changelog","changelog.rst":"changelog","changelog.txt":"changelog",changes:"changelog","changes.md":"changelog","changes.rst":"changelog","changes.txt":"changelog",cheffile:"ruby","chromatic.config.json":"chromatic","circle.yml":"circleci","citation.cff":"citation","claude.local.md":"claude","claude.md":"claude","cmakecache.txt":"cmake","cmakelists.txt":"cmake","cmakepresets.json":"cmake",cname:"http",code_of_conduct:"conduct","code_of_conduct.md":"conduct","code_of_conduct.txt":"conduct","codecov.yaml":"codecov","codecov.yml":"codecov",codeowners:"codeowners","commit-msg":"console",commit_editmsg:"git","commitlint.config.cjs":"commitlint","commitlint.config.cts":"commitlint","commitlint.config.js":"commitlint","commitlint.config.json":"commitlint","commitlint.config.json5":"commitlint","commitlint.config.jsonc":"commitlint","commitlint.config.mjs":"commitlint","commitlint.config.mts":"commitlint","commitlint.config.toml":"commitlint","commitlint.config.ts":"commitlint","commitlint.config.yaml":"commitlint","commitlint.config.yml":"commitlint","compile_flags.txt":"settings","compose.alpha.yaml":"docker","compose.alpha.yml":"docker","compose.beta.yaml":"docker","compose.beta.yml":"docker","compose.ci.yaml":"docker","compose.ci.yml":"docker","compose.dev.yaml":"docker","compose.dev.yml":"docker","compose.development.yaml":"docker","compose.development.yml":"docker","compose.local.yaml":"docker","compose.local.yml":"docker","compose.override.yaml":"docker","compose.override.yml":"docker","compose.prod.yaml":"docker","compose.prod.yml":"docker","compose.production.yaml":"docker","compose.production.yml":"docker","compose.stage.yaml":"docker","compose.stage.yml":"docker","compose.staging.yaml":"docker","compose.staging.yml":"docker","compose.test.yaml":"docker","compose.test.yml":"docker","compose.testing.yaml":"docker","compose.testing.yml":"docker","compose.web.yaml":"docker","compose.web.yml":"docker","compose.worker.yaml":"docker","compose.worker.yml":"docker","compose.yaml":"docker","compose.yml":"docker","composer.lock":"json","concourse.yml":"concourse",containerfile:"docker","containerfile.alpha":"docker","containerfile.beta":"docker","containerfile.ci":"docker","containerfile.dev":"docker","containerfile.development":"docker","containerfile.local":"docker","containerfile.prod":"docker","containerfile.production":"docker","containerfile.stage":"docker","containerfile.staging":"docker","containerfile.test":"docker","containerfile.testing":"docker","containerfile.web":"docker","containerfile.worker":"docker","contentlayer.config.cjs":"contentlayer","contentlayer.config.cts":"contentlayer","contentlayer.config.js":"contentlayer","contentlayer.config.mjs":"contentlayer","contentlayer.config.mts":"contentlayer","contentlayer.config.ts":"contentlayer",contributing:"contributing","contributing.md":"contributing","contributing.rst":"contributing","contributing.txt":"contributing",contributors:"authors","contributors.md":"authors","contributors.rst":"authors","contributors.txt":"authors","copilot-instructions.md":"copilot",copying:"license","copying.md":"license","copying.rst":"license","copying.txt":"license",copyright:"license","copyright.md":"license","copyright.rst":"license","copyright.txt":"license","craco.config.cjs":"craco","craco.config.cts":"craco","craco.config.js":"craco","craco.config.json":"craco","craco.config.json5":"craco","craco.config.jsonc":"craco","craco.config.mjs":"craco","craco.config.mts":"craco","craco.config.toml":"craco","craco.config.ts":"craco","craco.config.yaml":"craco","craco.config.yml":"craco",credits:"credits","credits.md":"credits","credits.rst":"credits","credits.txt":"credits","cypress.config.cjs":"cypress","cypress.config.cts":"cypress","cypress.config.js":"cypress","cypress.config.mjs":"cypress","cypress.config.mts":"cypress","cypress.config.ts":"cypress","cypress.env.json":"cypress","cypress.json":"cypress","cz.json":"commitizen","cz.toml":"commitizen","cz.yaml":"commitizen","cz.yml":"commitizen",dangerfile:"ruby",deliverfile:"ruby","deno.json":"deno","deno.jsonc":"deno","deno.lock":"deno","dependabot.yaml":"dependabot","dependabot.yml":"dependabot","docker-compose.alpha.yaml":"docker","docker-compose.alpha.yml":"docker","docker-compose.beta.yaml":"docker","docker-compose.beta.yml":"docker","docker-compose.ci.yaml":"docker","docker-compose.ci.yml":"docker","docker-compose.dev.yaml":"docker","docker-compose.dev.yml":"docker","docker-compose.development.yaml":"docker","docker-compose.development.yml":"docker","docker-compose.local.yaml":"docker","docker-compose.local.yml":"docker","docker-compose.override.yaml":"docker","docker-compose.override.yml":"docker","docker-compose.prod.yaml":"docker","docker-compose.prod.yml":"docker","docker-compose.production.yaml":"docker","docker-compose.production.yml":"docker","docker-compose.stage.yaml":"docker","docker-compose.stage.yml":"docker","docker-compose.staging.yaml":"docker","docker-compose.staging.yml":"docker","docker-compose.test.yaml":"docker","docker-compose.test.yml":"docker","docker-compose.testing.yaml":"docker","docker-compose.testing.yml":"docker","docker-compose.web.yaml":"docker","docker-compose.web.yml":"docker","docker-compose.worker.yaml":"docker","docker-compose.worker.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","dockerfile.alpha":"docker","dockerfile.beta":"docker","dockerfile.ci":"docker","dockerfile.dev":"docker","dockerfile.development":"docker","dockerfile.local":"docker","dockerfile.prod":"docker","dockerfile.production":"docker","dockerfile.stage":"docker","dockerfile.staging":"docker","dockerfile.test":"docker","dockerfile.testing":"docker","dockerfile.web":"docker","dockerfile.windows":"docker","dockerfile.worker":"docker","drizzle.config.dev.js":"drizzle","drizzle.config.dev.json":"drizzle","drizzle.config.dev.ts":"drizzle","drizzle.config.js":"drizzle","drizzle.config.json":"drizzle","drizzle.config.prod.js":"drizzle","drizzle.config.prod.json":"drizzle","drizzle.config.prod.ts":"drizzle","drizzle.config.ts":"drizzle","duc.fbs":"duc",dune:"dune","dune-project":"dune","dune-workspace":"dune","dune-workspace.dev":"dune","eas.json":"expo","ecosystem.config.cjs":"pm2-ecosystem","ecosystem.config.cts":"pm2-ecosystem","ecosystem.config.js":"pm2-ecosystem","ecosystem.config.mjs":"pm2-ecosystem","ecosystem.config.mts":"pm2-ecosystem","ecosystem.config.ts":"pm2-ecosystem","ember-cli-builds.js":"ember","esbuild.cjs":"esbuild","esbuild.config.cjs":"esbuild","esbuild.config.cts":"esbuild","esbuild.config.js":"esbuild","esbuild.config.mjs":"esbuild","esbuild.config.mts":"esbuild","esbuild.config.ts":"esbuild","esbuild.cts":"esbuild","esbuild.dev.cjs":"esbuild","esbuild.dev.cts":"esbuild","esbuild.dev.js":"esbuild","esbuild.dev.mjs":"esbuild","esbuild.dev.mts":"esbuild","esbuild.dev.ts":"esbuild","esbuild.js":"esbuild","esbuild.mjs":"esbuild","esbuild.mts":"esbuild","esbuild.prod.cjs":"esbuild","esbuild.prod.cts":"esbuild","esbuild.prod.js":"esbuild","esbuild.prod.mjs":"esbuild","esbuild.prod.mts":"esbuild","esbuild.prod.ts":"esbuild","esbuild.stage.cjs":"esbuild","esbuild.stage.cts":"esbuild","esbuild.stage.js":"esbuild","esbuild.stage.mjs":"esbuild","esbuild.stage.mts":"esbuild","esbuild.stage.ts":"esbuild","esbuild.test.cjs":"esbuild","esbuild.test.cts":"esbuild","esbuild.test.js":"esbuild","esbuild.test.mjs":"esbuild","esbuild.test.mts":"esbuild","esbuild.test.ts":"esbuild","esbuild.ts":"esbuild","eslint-options.js":"eslint","eslint.config.cjs":"eslint","eslint.config.cts":"eslint","eslint.config.js":"eslint","eslint.config.json":"eslint","eslint.config.json5":"eslint","eslint.config.jsonc":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.toml":"eslint","eslint.config.ts":"eslint","eslint.config.yaml":"eslint","eslint.config.yml":"eslint",excalidraw:"excalidraw","excalidraw.json":"excalidraw","excalidraw.png":"excalidraw","excalidraw.svg":"excalidraw","fabric.mod.json":"minecraft-fabric",fastfile:"fastlane","favicon.ico":"favicon","firebase.config.js":"firebase","firebase.json":"firebase","firestore.indexes.json":"firebase","firestore.rules":"firebase","fuse.js":"fusebox","garden.yaml":"garden","garden.yml":"garden","gatsby-browser.js":"gatsby","gatsby-browser.tsx":"gatsby","gatsby-config.js":"gatsby","gatsby-config.mjs":"gatsby","gatsby-config.ts":"gatsby","gatsby-node.js":"gatsby","gatsby-node.mjs":"gatsby","gatsby-node.ts":"gatsby","gatsby-ssr.js":"gatsby","gatsby-ssr.tsx":"gatsby",gemfile:"gemfile","gemini.md":"gemini-ai","git-history":"git","git-rebase-todo":"git","gleam.toml":"gleam",gnumakefile:"makefile","go.mod":"go-mod","go.sum":"go-mod","go.work":"go-mod","go.work.sum":"go-mod","google-services.json":"google","googleservice-info.plist":"google","gradle-wrapper.properties":"gradle","gradle.properties":"gradle",gradlew:"gradle","gradlew.bat":"gradle","graphql.config.cjs":"graphql","graphql.config.cts":"graphql","graphql.config.js":"graphql","graphql.config.json":"graphql","graphql.config.json5":"graphql","graphql.config.jsonc":"graphql","graphql.config.mjs":"graphql","graphql.config.mts":"graphql","graphql.config.toml":"graphql","graphql.config.ts":"graphql","graphql.config.yaml":"graphql","graphql.config.yml":"graphql","gridsome.config.js":"gridsome","gridsome.server.js":"gridsome","gruntfile.babel.coffee":"grunt","gruntfile.babel.js":"grunt","gruntfile.babel.ts":"grunt","gruntfile.cjs":"grunt","gruntfile.coffee":"grunt","gruntfile.cts":"grunt","gruntfile.js":"grunt","gruntfile.ts":"grunt",guardfile:"ruby","gulpfile.babel.js":"gulp","gulpfile.cjs":"gulp","gulpfile.cts":"gulp","gulpfile.js":"gulp","gulpfile.mjs":"gulp","gulpfile.mts":"gulp","gulpfile.ts":"gulp",gymfile:"ruby","hadolint.yaml":"hadolint","hadolint.yml":"hadolint","hardhat.config.js":"hardhat","hardhat.config.ts":"hardhat","harmonix.config.js":"harmonix","harmonix.config.ts":"harmonix",hgrc:"mercurial","histoire.config.cjs":"histoire","histoire.config.cts":"histoire","histoire.config.js":"histoire","histoire.config.mjs":"histoire","histoire.config.mts":"histoire","histoire.config.ts":"histoire",hobofile:"ruby","horusec-config.json":"horusec",hosts:"hosts","husky.config.cjs":"husky","husky.config.cts":"husky","husky.config.js":"husky","husky.config.json":"husky","husky.config.json5":"husky","husky.config.jsonc":"husky","husky.config.mjs":"husky","husky.config.mts":"husky","husky.config.toml":"husky","husky.config.ts":"husky","husky.config.yaml":"husky","husky.config.yml":"husky",install:"installation",installation:"installation","ionic.config.json":"ionic",jakefile:"javascript",jenkinsfile:"jenkins","jest-e2e.config.cjs":"jest","jest-e2e.config.cts":"jest","jest-e2e.config.js":"jest","jest-e2e.config.json":"jest","jest-e2e.config.mjs":"jest","jest-e2e.config.mts":"jest","jest-e2e.config.ts":"jest","jest-e2e.json":"jest","jest-github-actions-reporter.js":"jest","jest-preset.cjs":"jest","jest-preset.js":"jest","jest-preset.json":"jest","jest-preset.mjs":"jest","jest-unit.config.js":"jest","jest.config.cjs":"jest","jest.config.cts":"jest","jest.config.js":"jest","jest.config.json":"jest","jest.config.mjs":"jest","jest.config.mts":"jest","jest.config.ts":"jest","jest.e2e.config.cjs":"jest","jest.e2e.config.cts":"jest","jest.e2e.config.js":"jest","jest.e2e.config.json":"jest","jest.e2e.config.mjs":"jest","jest.e2e.config.mts":"jest","jest.e2e.config.ts":"jest","jest.e2e.json":"jest","jest.json":"jest","jest.preset.cjs":"jest","jest.preset.js":"jest","jest.preset.json":"jest","jest.preset.mjs":"jest","jest.setup.js":"jest","jest.setup.ts":"jest","jest.teardown.js":"jest","jsconfig.json":"jsconfig","jsr.json":"jsr","jsr.jsonc":"jsr",justfile:"just","jvm.config":"maven","k8s.yaml":"kubernetes","k8s.yml":"kubernetes","karma-main.js":"karma","karma-main.ts":"karma","karma.conf.coffee":"karma","karma.conf.js":"karma","karma.conf.ts":"karma","karma.config.js":"karma","karma.config.ts":"karma",kbuild:"makefile","kcl.mod":"kcl","kcl.yaml":"kcl","kcl.yml":"kcl","keystatic.config.js":"keystatic","keystatic.config.jsx":"keystatic","keystatic.config.ts":"keystatic","keystatic.config.tsx":"keystatic","knip.config.js":"knip","knip.config.ts":"knip","knip.js":"knip","knip.json":"knip","knip.jsonc":"knip","knip.ts":"knip","kubernetes.yaml":"kubernetes","kubernetes.yml":"kubernetes",latexmkrc:"latexmk","lefthook-local.json":"lefthook","lefthook-local.toml":"lefthook","lefthook-local.yaml":"lefthook","lefthook-local.yml":"lefthook","lefthook.json":"lefthook","lefthook.toml":"lefthook","lefthook.yaml":"lefthook","lefthook.yml":"lefthook",lefthookrc:"lefthook","lerna.json":"lerna","liara.json":"liara",licence:"license","licence-agpl":"license","licence-apache":"license","licence-bsd":"license","licence-gpl":"license","licence-lgpl":"license","licence-mit":"license","licence.md":"license","licence.rst":"license","licence.txt":"license",license:"license","license-agpl":"license","license-apache":"license","license-bsd":"license","license-gpl":"license","license-lgpl":"license","license-mit":"license","license.md":"license","license.rst":"license","license.txt":"license","lighthouserc.cjs":"lighthouse","lighthouserc.js":"lighthouse","lighthouserc.json":"lighthouse","lighthouserc.yaml":"lighthouse","lighthouserc.yml":"lighthouse","lint-staged.config.cjs":"lintstaged","lint-staged.config.js":"lintstaged","lint-staged.config.mjs":"lintstaged","lynx.config.cjs":"lynx","lynx.config.cts":"lynx","lynx.config.js":"lynx","lynx.config.mjs":"lynx","lynx.config.mts":"lynx","lynx.config.ts":"lynx",makefile:"makefile","manifest.in":"python-misc","manifest.mf":"settings","markdoc.config.cjs":"markdoc-config","markdoc.config.cts":"markdoc-config","markdoc.config.js":"markdoc-config","markdoc.config.mjs":"markdoc-config","markdoc.config.mts":"markdoc-config","markdoc.config.ts":"markdoc-config",matchfile:"ruby","maven.config":"maven","mercurial.ini":"mercurial",merge_msg:"git","meson.build":"meson","meson.options":"meson","meson_options.txt":"meson","metro.config.cjs":"metro","metro.config.cts":"metro","metro.config.js":"metro","metro.config.json":"metro","metro.config.mjs":"metro","metro.config.mts":"metro","metro.config.ts":"metro","milestones.md":"roadmap","milestones.txt":"roadmap","mocha.opts":"mocha","moon.yml":"moon","nano-staged.cjs":"nano-staged","nano-staged.js":"nano-staged","nano-staged.json":"nano-staged","nano-staged.mjs":"nano-staged","nest-cli.json":"nest","nestconfig.json":"nest","netlify.json":"netlify","netlify.toml":"netlify","netlify.yaml":"netlify","netlify.yml":"netlify","next.config.js":"next","next.config.mjs":"next","next.config.mts":"next","next.config.ts":"next","ng-package.json":"angular","nginx.conf":"nginx","nodemon-debug.json":"nodemon","nodemon.json":"nodemon","now.json":"vercel","nuget.config":"nuget","nuget.exe":"nuget","nuxt.config.js":"nuxt","nuxt.config.ts":"nuxt","nx.json":"nx","nyc.config.cjs":"istanbul","nyc.config.js":"istanbul","openapi.json":"openapi","openapi.yaml":"openapi","openapi.yml":"openapi","opencode.json":"opencode","opencode.jsonc":"opencode",owners:"codeowners","oxfmt.config.ts":"oxc","oxlint.config.ts":"oxc","package-lock.json":"nodejs","package.json":"nodejs","packship.config.js":"packship","packship.config.json":"packship","packship.config.mjs":"packship","packship.config.mts":"packship","packship.config.ts":"packship","panda.config.cjs":"panda","panda.config.cts":"panda","panda.config.js":"panda","panda.config.mjs":"panda","panda.config.mts":"panda","panda.config.ts":"panda","payload.config.js":"payload","payload.config.mjs":"payload","payload.config.mts":"payload","payload.config.ts":"payload","pdm.lock":"pdm","pdm.toml":"pdm","phpstan.dist.neon":"phpstan","phpstan.neon":"phpstan","phpstan.neon.dist":"phpstan","phpunit-watcher.yml":"phpunit","phpunit-watcher.yml.dist":"phpunit","phpunit.xml":"phpunit","phpunit.xml.dist":"phpunit",pipfile:"python-misc",pkgbuild:"console",pklproject:"pkl","pklproject.deps.json":"pkl","plastic.branchexplorer":"plastic","plastic.selector":"plastic","plastic.wktree":"plastic","plastic.workspace":"plastic","plastic.workspaces":"plastic","playwright-ct.config.cjs":"playwright","playwright-ct.config.cts":"playwright","playwright-ct.config.js":"playwright","playwright-ct.config.mjs":"playwright","playwright-ct.config.mts":"playwright","playwright-ct.config.ts":"playwright","playwright.config.base.cjs":"playwright","playwright.config.base.cts":"playwright","playwright.config.base.js":"playwright","playwright.config.base.mjs":"playwright","playwright.config.base.mts":"playwright","playwright.config.base.ts":"playwright","playwright.config.cjs":"playwright","playwright.config.cts":"playwright","playwright.config.js":"playwright","playwright.config.mjs":"playwright","playwright.config.mts":"playwright","playwright.config.ts":"playwright","plopfile.cjs":"plop","plopfile.js":"plop","plopfile.mjs":"plop","plopfile.ts":"plop","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm",podfile:"ruby","poetry.lock":"poetry","pom.xml":"maven","post-merge":"console","postcss.config.cjs":"postcss","postcss.config.cts":"postcss","postcss.config.js":"postcss","postcss.config.json":"postcss","postcss.config.json5":"postcss","postcss.config.jsonc":"postcss","postcss.config.mjs":"postcss","postcss.config.mts":"postcss","postcss.config.toml":"postcss","postcss.config.ts":"postcss","postcss.config.yaml":"postcss","postcss.config.yml":"postcss","posthtml.config.cjs":"posthtml","posthtml.config.cts":"posthtml","posthtml.config.js":"posthtml","posthtml.config.json":"posthtml","posthtml.config.json5":"posthtml","posthtml.config.jsonc":"posthtml","posthtml.config.mjs":"posthtml","posthtml.config.mts":"posthtml","posthtml.config.toml":"posthtml","posthtml.config.ts":"posthtml","posthtml.config.yaml":"posthtml","posthtml.config.yml":"posthtml","pre-commit":"console","pre-push":"console","prettier.config.cjs":"prettier","prettier.config.cts":"prettier","prettier.config.js":"prettier","prettier.config.json":"prettier","prettier.config.json5":"prettier","prettier.config.jsonc":"prettier","prettier.config.mjs":"prettier","prettier.config.mts":"prettier","prettier.config.toml":"prettier","prettier.config.ts":"prettier","prettier.config.yaml":"prettier","prettier.config.yml":"prettier","prisma.config.ts":"prisma","prisma.yml":"prisma",procfile:"heroku","procfile.windows":"heroku","project.garden.yaml":"garden","project.garden.yml":"garden","project.graphcool":"graphcool","protractor.conf.coffee":"protractor","protractor.conf.js":"protractor","protractor.conf.ts":"protractor","protractor.config.js":"protractor","protractor.config.ts":"protractor","puppeteer.config.cjs":"puppeteer","puppeteer.config.cts":"puppeteer","puppeteer.config.js":"puppeteer","puppeteer.config.json":"puppeteer","puppeteer.config.json5":"puppeteer","puppeteer.config.jsonc":"puppeteer","puppeteer.config.mjs":"puppeteer","puppeteer.config.mts":"puppeteer","puppeteer.config.toml":"puppeteer","puppeteer.config.ts":"puppeteer","puppeteer.config.yaml":"puppeteer","puppeteer.config.yml":"puppeteer",puppetfile:"ruby","py.typed":"python-misc",pylintrc:"python-misc","pyproject.toml":"python-misc","quasar.conf.js":"quasar","quasar.conf.ts":"quasar","quasar.config.cjs":"quasar","quasar.config.js":"quasar","quasar.config.ts":"quasar",rakefile:"ruby",rantfile:"ruby",readme:"readme","readme.md":"readme","readme.rst":"readme","readme.txt":"readme","release-plz.toml":"rocket","release.config.cjs":"semantic-release","release.config.cts":"semantic-release","release.config.js":"semantic-release","release.config.json":"semantic-release","release.config.json5":"semantic-release","release.config.jsonc":"semantic-release","release.config.mjs":"semantic-release","release.config.mts":"semantic-release","release.config.toml":"semantic-release","release.config.ts":"semantic-release","release.config.yaml":"semantic-release","release.config.yml":"semantic-release","release.toml":"rocket","remix.config.js":"remix","remix.config.ts":"remix","renovate-config.json":"renovate","renovate.json":"renovate","renovate.json5":"renovate","requirements.txt":"python-misc","roadmap.md":"roadmap","roadmap.txt":"roadmap","robots.txt":"robots","rolldown.config.cjs":"rolldown","rolldown.config.cts":"rolldown","rolldown.config.js":"rolldown","rolldown.config.mjs":"rolldown","rolldown.config.mts":"rolldown","rolldown.config.ts":"rolldown","rollup-config.js":"rollup","rollup-config.mjs":"rollup","rollup-config.ts":"rollup","rollup.config.base.js":"rollup","rollup.config.base.mjs":"rollup","rollup.config.base.ts":"rollup","rollup.config.common.js":"rollup","rollup.config.common.mjs":"rollup","rollup.config.common.ts":"rollup","rollup.config.dev.js":"rollup","rollup.config.dev.mjs":"rollup","rollup.config.dev.ts":"rollup","rollup.config.js":"rollup","rollup.config.mjs":"rollup","rollup.config.prod.js":"rollup","rollup.config.prod.mjs":"rollup","rollup.config.prod.ts":"rollup","rollup.config.prod.vendor.js":"rollup","rollup.config.prod.vendor.mjs":"rollup","rollup.config.prod.vendor.ts":"rollup","rollup.config.ts":"rollup","rome.json":"rome","route.js":"routing","route.jsx":"routing","route.ts":"routing","route.tsx":"routing","router.js":"routing","router.jsx":"routing","router.ts":"routing","router.tsx":"routing","routes.js":"routing","routes.jsx":"routing","routes.ts":"routing","routes.tsx":"routing","rsbuild.config.cjs":"rstack","rsbuild.config.cts":"rstack","rsbuild.config.js":"rstack","rsbuild.config.mjs":"rstack","rsbuild.config.mts":"rstack","rsbuild.config.ts":"rstack","rslib.config.cjs":"rstack","rslib.config.cts":"rstack","rslib.config.js":"rstack","rslib.config.mjs":"rstack","rslib.config.mts":"rstack","rslib.config.ts":"rstack","rslint.config.cjs":"rstack","rslint.config.cts":"rstack","rslint.config.js":"rstack","rslint.config.mjs":"rstack","rslint.config.mts":"rstack","rslint.config.ts":"rstack","rslint.json":"rstack","rslint.jsonc":"rstack","rspack.config.cjs":"rstack","rspack.config.cts":"rstack","rspack.config.js":"rstack","rspack.config.mjs":"rstack","rspack.config.mts":"rstack","rspack.config.ts":"rstack","rspress.config.cjs":"rstack","rspress.config.cts":"rstack","rspress.config.js":"rstack","rspress.config.mjs":"rstack","rspress.config.mts":"rstack","rspress.config.ts":"rstack","rstest.config.cjs":"rstack","rstest.config.cts":"rstack","rstest.config.js":"rstack","rstest.config.mjs":"rstack","rstest.config.mts":"rstack","rstest.config.ts":"rstack","ruff.toml":"ruff",scanfile:"ruby",sconscript:"scons",sconstruct:"scons","screwdriver.yaml":"screwdriver","screwdriver.yml":"screwdriver",scsub:"scons",security:"lock","security.md":"lock","security.txt":"lock","semgrep.yml":"semgrep","sentry.client.config.cjs":"sentry","sentry.client.config.cts":"sentry","sentry.client.config.js":"sentry","sentry.client.config.mjs":"sentry","sentry.client.config.mts":"sentry","sentry.client.config.ts":"sentry","sentry.edge.config.cjs":"sentry","sentry.edge.config.cts":"sentry","sentry.edge.config.js":"sentry","sentry.edge.config.mjs":"sentry","sentry.edge.config.mts":"sentry","sentry.edge.config.ts":"sentry","sentry.server.config.cjs":"sentry","sentry.server.config.cts":"sentry","sentry.server.config.js":"sentry","sentry.server.config.mjs":"sentry","sentry.server.config.mts":"sentry","sentry.server.config.ts":"sentry","serverless.js":"serverless","serverless.json":"serverless","serverless.ts":"serverless","serverless.yaml":"serverless","serverless.yml":"serverless",sha256sums:"key",shellcheckrc:"shellcheck","skill.md":"skill",snakefile:"snakemake","snapcraft.yaml":"snapcraft","snapcraft.yml":"snapcraft",snapfile:"ruby","snowpack.config.cjs":"snowpack","snowpack.config.cts":"snowpack","snowpack.config.js":"snowpack","snowpack.config.json":"snowpack","snowpack.config.mjs":"snowpack","snowpack.config.mts":"snowpack","snowpack.config.ts":"snowpack","snowpack.deps.json":"snowpack","sonar-project.properties":"sonarcloud","sonarcloud.yaml":"sonarcloud","sonarqube.analysis.xml":"sonarcloud","src/bashly.yaml":"bashly","src/bashly.yml":"bashly","steadybit.yaml":"steadybit","steadybit.yml":"steadybit","stencil.config.js":"stencil","stencil.config.ts":"stencil","stitches.config.js":"stitches","stitches.config.ts":"stitches","stryker.conf.cjs":"stryker","stryker.conf.js":"stryker","stryker.conf.json":"stryker","stryker.conf.mjs":"stryker","stryker.config.cjs":"stryker","stryker.config.js":"stryker","stryker.config.json":"stryker","stryker.config.mjs":"stryker","stylelint.config.cjs":"stylelint","stylelint.config.cts":"stylelint","stylelint.config.js":"stylelint","stylelint.config.json":"stylelint","stylelint.config.json5":"stylelint","stylelint.config.jsonc":"stylelint","stylelint.config.mjs":"stylelint","stylelint.config.mts":"stylelint","stylelint.config.toml":"stylelint","stylelint.config.ts":"stylelint","stylelint.config.yaml":"stylelint","stylelint.config.yml":"stylelint","supabase.js":"supabase","supabase.py":"supabase","supabase.ts":"supabase","svelte.config.cjs":"svelte","svelte.config.cts":"svelte","svelte.config.js":"svelte","svelte.config.mjs":"svelte","svelte.config.mts":"svelte","svelte.config.ts":"svelte","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgr.config.cjs":"svgr","svgr.config.cts":"svgr","svgr.config.js":"svgr","svgr.config.json":"svgr","svgr.config.json5":"svgr","svgr.config.jsonc":"svgr","svgr.config.mjs":"svgr","svgr.config.mts":"svgr","svgr.config.toml":"svgr","svgr.config.ts":"svgr","svgr.config.yaml":"svgr","svgr.config.yml":"svgr","swagger.json":"swagger","swagger.yaml":"swagger","swagger.yml":"swagger","syncpack.config.cjs":"syncpack","syncpack.config.cts":"syncpack","syncpack.config.js":"syncpack","syncpack.config.json":"syncpack","syncpack.config.json5":"syncpack","syncpack.config.jsonc":"syncpack","syncpack.config.mjs":"syncpack","syncpack.config.mts":"syncpack","syncpack.config.toml":"syncpack","syncpack.config.ts":"syncpack","syncpack.config.yaml":"syncpack","syncpack.config.yml":"syncpack",tags:"label","tailwind.config.cjs":"tailwindcss","tailwind.config.cts":"tailwindcss","tailwind.config.js":"tailwindcss","tailwind.config.mjs":"tailwindcss","tailwind.config.mts":"tailwindcss","tailwind.config.ts":"tailwindcss","tailwind.js":"tailwindcss","tailwind.ts":"tailwindcss","taskfile.dist.yaml":"taskfile","taskfile.dist.yml":"taskfile","taskfile.yaml":"taskfile","taskfile.yml":"taskfile","tauri.conf.json":"tauri","tauri.config.json":"tauri","tauri.linux.conf.json":"tauri","tauri.macos.conf.json":"tauri","tauri.windows.conf.json":"tauri","taze.config.cjs":"taze","taze.config.cts":"taze","taze.config.js":"taze","taze.config.mjs":"taze","taze.config.mts":"taze","taze.config.ts":"taze",thorfile:"ruby",tiltfile:"tilt","timeline.md":"roadmap","timeline.txt":"roadmap","todo.md":"todo","todos.md":"todo","trigger.config.cjs":"trigger","trigger.config.cts":"trigger","trigger.config.js":"trigger","trigger.config.mjs":"trigger","trigger.config.mts":"trigger","trigger.config.ts":"trigger","tsconfig.app.json":"tsconfig","tsconfig.base.json":"tsconfig","tsconfig.build.json":"tsconfig","tsconfig.cjs.json":"tsconfig","tsconfig.client.json":"tsconfig","tsconfig.config.json":"tsconfig","tsconfig.declaration.json":"tsconfig","tsconfig.doc.json":"tsconfig","tsconfig.e2e.json":"tsconfig","tsconfig.editor.json":"tsconfig","tsconfig.eslint.json":"tsconfig","tsconfig.esm.json":"tsconfig","tsconfig.json":"tsconfig","tsconfig.lib.json":"tsconfig","tsconfig.lib.prod.json":"tsconfig","tsconfig.main.json":"tsconfig","tsconfig.mjs.json":"tsconfig","tsconfig.node.json":"tsconfig","tsconfig.paths.json":"tsconfig","tsconfig.renderer.json":"tsconfig","tsconfig.server.json":"tsconfig","tsconfig.spec.json":"tsconfig","tsconfig.test.json":"tsconfig","tsconfig.vitest.json":"tsconfig","tsconfig.web.json":"tsconfig","tsconfig.webworker.json":"tsconfig","tsconfig.worker.json":"tsconfig","tsdoc.json":"tsdoc","tsdown.config":"tsdown","tsdown.config.cjs":"tsdown","tsdown.config.cts":"tsdown","tsdown.config.js":"tsdown","tsdown.config.json":"tsdown","tsdown.config.mjs":"tsdown","tsdown.config.mts":"tsdown","tsdown.config.ts":"tsdown","turbo.json":"turborepo","turbo.jsonc":"turborepo","typedoc.js":"typedoc","typedoc.json":"typedoc","typst.toml":"typst",unlicense:"unlicense","unlicense.txt":"unlicense","uno.config.js":"unocss","uno.config.mjs":"unocss","uno.config.mts":"unocss","uno.config.ts":"unocss","unocss.config.js":"unocss","unocss.config.mjs":"unocss","unocss.config.mts":"unocss","unocss.config.ts":"unocss","uv.lock":"uv","uv.toml":"uv","v.mod":"vlang",vagrantfile:"vagrant","velite.config.cjs":"velite","velite.config.cts":"velite","velite.config.js":"velite","velite.config.mjs":"velite","velite.config.mts":"velite","velite.config.ts":"velite","vercel.json":"vercel","vercel.ts":"vercel","verdaccio.yml":"verdaccio","vetur.config.js":"vue-config","vetur.config.ts":"vue-config","vite.config.cjs":"vite","vite.config.cts":"vite","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","vitest.config.cjs":"vitest","vitest.config.cts":"vitest","vitest.config.js":"vitest","vitest.config.mjs":"vitest","vitest.config.mts":"vitest","vitest.config.ts":"vitest","vitest.e2e.config.cjs":"vitest","vitest.e2e.config.cts":"vitest","vitest.e2e.config.js":"vitest","vitest.e2e.config.mjs":"vitest","vitest.e2e.config.mts":"vitest","vitest.e2e.config.ts":"vitest","vitest.unit.config.cjs":"vitest","vitest.unit.config.cts":"vitest","vitest.unit.config.js":"vitest","vitest.unit.config.mjs":"vitest","vitest.unit.config.mts":"vitest","vitest.unit.config.ts":"vitest","vitest.workspace.cjs":"vitest","vitest.workspace.cts":"vitest","vitest.workspace.js":"vitest","vitest.workspace.mjs":"vitest","vitest.workspace.mts":"vitest","vitest.workspace.ts":"vitest","volar.config.js":"vue-config","vpkg.json":"vlang","vue.config.cjs":"vue-config","vue.config.js":"vue-config","vue.config.mjs":"vue-config","vue.config.ts":"vue-config","wallaby.conf.js":"wallaby","wallaby.js":"wallaby","wally.toml":"wally","warp.md":"warp","webpack.base.cjs":"webpack","webpack.base.cts":"webpack","webpack.base.js":"webpack","webpack.base.mjs":"webpack","webpack.base.mts":"webpack","webpack.base.ts":"webpack","webpack.cjs":"webpack","webpack.client.cjs":"webpack","webpack.client.cts":"webpack","webpack.client.js":"webpack","webpack.client.mjs":"webpack","webpack.client.mts":"webpack","webpack.client.ts":"webpack","webpack.common.cjs":"webpack","webpack.common.cts":"webpack","webpack.common.js":"webpack","webpack.common.mjs":"webpack","webpack.common.mts":"webpack","webpack.common.ts":"webpack","webpack.config.babel.cjs":"webpack","webpack.config.babel.cts":"webpack","webpack.config.babel.js":"webpack","webpack.config.babel.mjs":"webpack","webpack.config.babel.mts":"webpack","webpack.config.babel.ts":"webpack","webpack.config.base.babel.cjs":"webpack","webpack.config.base.babel.cts":"webpack","webpack.config.base.babel.js":"webpack","webpack.config.base.babel.mjs":"webpack","webpack.config.base.babel.mts":"webpack","webpack.config.base.babel.ts":"webpack","webpack.config.base.cjs":"webpack","webpack.config.base.cts":"webpack","webpack.config.base.js":"webpack","webpack.config.base.mjs":"webpack","webpack.config.base.mts":"webpack","webpack.config.base.ts":"webpack","webpack.config.cjs":"webpack","webpack.config.client.cjs":"webpack","webpack.config.client.cts":"webpack","webpack.config.client.js":"webpack","webpack.config.client.mjs":"webpack","webpack.config.client.mts":"webpack","webpack.config.client.ts":"webpack","webpack.config.coffee":"webpack","webpack.config.common.babel.cjs":"webpack","webpack.config.common.babel.cts":"webpack","webpack.config.common.babel.js":"webpack","webpack.config.common.babel.mjs":"webpack","webpack.config.common.babel.mts":"webpack","webpack.config.common.babel.ts":"webpack","webpack.config.common.cjs":"webpack","webpack.config.common.cts":"webpack","webpack.config.common.js":"webpack","webpack.config.common.mjs":"webpack","webpack.config.common.mts":"webpack","webpack.config.common.ts":"webpack","webpack.config.cts":"webpack","webpack.config.dev.babel.cjs":"webpack","webpack.config.dev.babel.cts":"webpack","webpack.config.dev.babel.js":"webpack","webpack.config.dev.babel.mjs":"webpack","webpack.config.dev.babel.mts":"webpack","webpack.config.dev.babel.ts":"webpack","webpack.config.dev.cjs":"webpack","webpack.config.dev.cts":"webpack","webpack.config.dev.js":"webpack","webpack.config.dev.mjs":"webpack","webpack.config.dev.mts":"webpack","webpack.config.dev.ts":"webpack","webpack.config.js":"webpack","webpack.config.main.cjs":"webpack","webpack.config.main.cts":"webpack","webpack.config.main.js":"webpack","webpack.config.main.mjs":"webpack","webpack.config.main.mts":"webpack","webpack.config.main.ts":"webpack","webpack.config.mjs":"webpack","webpack.config.mts":"webpack","webpack.config.prod.babel.cjs":"webpack","webpack.config.prod.babel.cts":"webpack","webpack.config.prod.babel.js":"webpack","webpack.config.prod.babel.mjs":"webpack","webpack.config.prod.babel.mts":"webpack","webpack.config.prod.babel.ts":"webpack","webpack.config.prod.cjs":"webpack","webpack.config.prod.cts":"webpack","webpack.config.prod.js":"webpack","webpack.config.prod.mjs":"webpack","webpack.config.prod.mts":"webpack","webpack.config.prod.ts":"webpack","webpack.config.production.babel.cjs":"webpack","webpack.config.production.babel.cts":"webpack","webpack.config.production.babel.js":"webpack","webpack.config.production.babel.mjs":"webpack","webpack.config.production.babel.mts":"webpack","webpack.config.production.babel.ts":"webpack","webpack.config.production.cjs":"webpack","webpack.config.production.cts":"webpack","webpack.config.production.js":"webpack","webpack.config.production.mjs":"webpack","webpack.config.production.mts":"webpack","webpack.config.production.ts":"webpack","webpack.config.renderer.cjs":"webpack","webpack.config.renderer.cts":"webpack","webpack.config.renderer.js":"webpack","webpack.config.renderer.mjs":"webpack","webpack.config.renderer.mts":"webpack","webpack.config.renderer.ts":"webpack","webpack.config.server.cjs":"webpack","webpack.config.server.cts":"webpack","webpack.config.server.js":"webpack","webpack.config.server.mjs":"webpack","webpack.config.server.mts":"webpack","webpack.config.server.ts":"webpack","webpack.config.staging.babel.cjs":"webpack","webpack.config.staging.babel.cts":"webpack","webpack.config.staging.babel.js":"webpack","webpack.config.staging.babel.mjs":"webpack","webpack.config.staging.babel.mts":"webpack","webpack.config.staging.babel.ts":"webpack","webpack.config.staging.cjs":"webpack","webpack.config.staging.cts":"webpack","webpack.config.staging.js":"webpack","webpack.config.staging.mjs":"webpack","webpack.config.staging.mts":"webpack","webpack.config.staging.ts":"webpack","webpack.config.test.cjs":"webpack","webpack.config.test.cts":"webpack","webpack.config.test.js":"webpack","webpack.config.test.mjs":"webpack","webpack.config.test.mts":"webpack","webpack.config.test.ts":"webpack","webpack.config.ts":"webpack","webpack.config.vendor.cjs":"webpack","webpack.config.vendor.cts":"webpack","webpack.config.vendor.js":"webpack","webpack.config.vendor.mjs":"webpack","webpack.config.vendor.mts":"webpack","webpack.config.vendor.production.cjs":"webpack","webpack.config.vendor.production.cts":"webpack","webpack.config.vendor.production.js":"webpack","webpack.config.vendor.production.mjs":"webpack","webpack.config.vendor.production.mts":"webpack","webpack.config.vendor.production.ts":"webpack","webpack.config.vendor.ts":"webpack","webpack.cts":"webpack","webpack.dev.cjs":"webpack","webpack.dev.cts":"webpack","webpack.dev.js":"webpack","webpack.dev.mjs":"webpack","webpack.dev.mts":"webpack","webpack.dev.ts":"webpack","webpack.development.cjs":"webpack","webpack.development.cts":"webpack","webpack.development.js":"webpack","webpack.development.mjs":"webpack","webpack.development.mts":"webpack","webpack.development.ts":"webpack","webpack.dist.cjs":"webpack","webpack.dist.cts":"webpack","webpack.dist.js":"webpack","webpack.dist.mjs":"webpack","webpack.dist.mts":"webpack","webpack.dist.ts":"webpack","webpack.js":"webpack","webpack.mix.cjs":"webpack","webpack.mix.cts":"webpack","webpack.mix.js":"webpack","webpack.mix.mjs":"webpack","webpack.mix.mts":"webpack","webpack.mix.ts":"webpack","webpack.mjs":"webpack","webpack.mts":"webpack","webpack.prod.cjs":"webpack","webpack.prod.config.cjs":"webpack","webpack.prod.config.cts":"webpack","webpack.prod.config.js":"webpack","webpack.prod.config.mjs":"webpack","webpack.prod.config.mts":"webpack","webpack.prod.config.ts":"webpack","webpack.prod.cts":"webpack","webpack.prod.js":"webpack","webpack.prod.mjs":"webpack","webpack.prod.mts":"webpack","webpack.prod.ts":"webpack","webpack.production.cjs":"webpack","webpack.production.cts":"webpack","webpack.production.js":"webpack","webpack.production.mjs":"webpack","webpack.production.mts":"webpack","webpack.production.ts":"webpack","webpack.server.cjs":"webpack","webpack.server.cts":"webpack","webpack.server.js":"webpack","webpack.server.mjs":"webpack","webpack.server.mts":"webpack","webpack.server.ts":"webpack","webpack.test.cjs":"webpack","webpack.test.cts":"webpack","webpack.test.js":"webpack","webpack.test.mjs":"webpack","webpack.test.mts":"webpack","webpack.test.ts":"webpack","webpack.ts":"webpack","webpackfile.cjs":"webpack","webpackfile.cts":"webpack","webpackfile.js":"webpack","webpackfile.mjs":"webpack","webpackfile.mts":"webpack","webpackfile.ts":"webpack","werf-giterminism.yaml":"werf","werf-giterminism.yml":"werf","werf-includes.lock":"werf","werf-includes.yaml":"werf","werf-includes.yml":"werf","werf.yaml":"werf","werf.yml":"werf","windi.config.cjs":"windicss","windi.config.cts":"windicss","windi.config.js":"windicss","windi.config.json":"windicss","windi.config.ts":"windicss","wrangler.json":"wrangler","wrangler.jsonc":"wrangler","wrangler.toml":"wrangler","wxt.config.cjs":"wxt","wxt.config.cts":"wxt","wxt.config.js":"wxt","wxt.config.mjs":"wxt","wxt.config.mts":"wxt","wxt.config.ts":"wxt","xamlstyler.json":"xaml",xmake:"xmake","xmake.lua":"xmake","yarn-error.log":"yarn","yarn.lock":"yarn","zeabur.json":"zeabur","zeabur.json5":"zeabur","zeabur.jsonc":"zeabur","zeabur.toml":"zeabur","zeabur.yaml":"zeabur","zeabur.yml":"zeabur",zlogin:"console",zlogout:"console",zprofile:"console",zshenv:"console",zshrc:"console",zshrc_apple_terminal:"console"},fy={60:"slint",".ncurc.js":"dependencies-update",".ncurc.json":"dependencies-update",".ncurc.yml":"dependencies-update",".wakatime-project":"wakatime","001":"zip","123dx":"3d","3dm":"3d","3ds":"3d","3fr":"image","3mf":"3d","4th":"forth","7z":"zip","8svx":"audio",a:"lib",a51:"assembly",aa:"audio",aac:"audio",aax:"audio",abap:"abap",abc:"abc",ac:"3d",ac3:"audio",accdb:"database",accde:"database",acds:"abap",act:"palette",ad:"asciidoc",ada:"ada",adb:"ada",adoc:"asciidoc",adp:"database",ads:"ada",aea:"assembly",afphoto:"image",agc:"assembly",ags:"assembly",ahk:"autohotkey",ai:"adobe-illustrator",aif:"audio",aiff:"audio",ait:"adobe-illustrator",alac:"audio",ali:"ada",alloy:"grafana-alloy",ami:"image",amr:"audio",amx:"pawn",ape:"audio",apfs:"zip",apib:"apiblueprint",apiblueprint:"apiblueprint",apk:"android",applescript:"applescript",apx:"image",argus:"assembly",ari:"image",arj:"zip",arw:"image",as:"actionscript",asc:"key",asciidoc:"asciidoc",ascx:"xml",asddls:"abap",ase:"image",aseprite:"image",asm:"assembly",asp:"html",aspx:"html",ass:"subtitles",ast:"sas",astore:"sas",astro:"astro",atom:"xml",au3:"autoit",aux:"tex",avi:"video",avif:"image",awk:"console",axaml:"xml",axml:"xml",azcli:"azure","azure-pipelines-main.yaml":"azure-pipelines","azure-pipelines-main.yml":"azure-pipelines","azure-pipelines.yaml":"azure-pipelines","azure-pipelines.yml":"azure-pipelines",b:"brainfuck",bak:"database",bal:"ballerina",balx:"ballerina",bas:"visualstudio",bash:"console",bash_aliases:"console",bash_login:"console",bash_logout:"console",bash_profile:"console",bashrc:"console",bat:"console",bay:"image",bazel:"bazel",bbl:"bibliography",bbx:"bbx",bcf:"bibliography",bdb:"database",bean:"beancount",beancount:"beancount","bench.cjs":"bench-js","bench.cts":"bench-ts","bench.js":"bench-js","bench.jsx":"bench-jsx","bench.mjs":"bench-js","bench.mts":"bench-ts","bench.ts":"bench-ts","bench.tsx":"bench-jsx",bf:"brainfuck",bib:"bibliography",bicep:"bicep",bin:"hex",binsource:"assembly","blade.php":"laravel",blend:"blender",blend1:"blender",blend2:"blender",blg:"bibliography",blink:"blink",bmap:"font",bmp:"image",bpg:"image",bpmn:"xml",br:"zip",braw:"image",brk:"image",brotli:"zip",brs:"visualstudio",bru:"bruno",bst:"bibtex-style",bubble:"dinophp",bz2:"zip",bzip2:"zip",bzl:"bazel",c:"c","c++":"cpp","c++m":"cpp",c3:"c3",cab:"zip",cabal:"cabal",caf:"audio",cairo:"cairo",cake:"cake",cap:"image",capnp:"capnp",catpart:"3d",catproduct:"3d",cbl:"cobol",cbx:"cbx",cc:"cpp",ccm:"cpp",cda:"audio",cdc:"cadence",cdr:"audio",cds:"cds",cer:"certificate",cert:"certificate",cfc:"coldfusion",cff:"yaml",cfg:"settings",cfm:"coldfusion",cfml:"coldfusion",cginc:"shader",cjs:"javascript","cjs.map":"javascript-map",cl:"lisp",class:"javaclass",clip:"image",clj:"clojure",cljc:"clojure",cljs:"clojure",cljx:"clojure",clo:"tex",clojure:"clojure",cls:"tex",cm:"sml",cmake:"cmake",cmd:"console",cmj:"bucklescript",cmx:"ocaml",cnf:"settings",coafile:"coala",coarc:"coala",cob:"cobol",coco:"coconut","code-profile":"vscode","code-search":"search","code-snippets":"vscode","code-workplace":"vscode","code-workspace":"vscode",coffee:"coffee",command:"command",comp:"shader","comp.glsl":"shader","comp.hlsl":"shader","compose.yaml":"docker","compose.yml":"docker",compute:"shader","compute.glsl":"shader","compute.hlsl":"shader",computeshader:"shader",conf:"settings",config:"settings",containerfile:"docker",containerignore:"docker","controller.js":"controller","controller.ts":"controller",copilotmd:"markdown",cp:"cpp",cpio:"zip",cpn:"coloredpetrinets",cpp:"cpp",cppm:"cpp",cpt:"image",cpy:"python",cr:"crystal",cr2:"image",cr3:"image",crt:"certificate",crw:"image",crx:"chrome",cs:"csharp",csh:"console",csharp:"csharp",cshrc:"console",cshtml:"razor",csl:"xml",cson:"coffee",csproj:"visualstudio","csproj.user":"xml",css:"css","css.cjs":"vanilla-extract","css.js":"vanilla-extract","css.jsx":"vanilla-extract","css.map":"css-map","css.mjs":"vanilla-extract","css.ts":"vanilla-extract","css.tsx":"vanilla-extract",csv:"table",csx:"csharp",ctp:"php",cts:"typescript",ctx:"context",cu:"cuda",cue:"cue",cuh:"cuda",cur:"image",cxx:"cpp",cxxm:"cpp","cy.js":"test-js","cy.jsx":"test-jsx","cy.ts":"test-ts","cy.tsx":"test-jsx",d:"d","d.cts":"typescript-def","d.ets":"typescript-def","d.mts":"typescript-def","d.ts":"typescript-def",dae:"3d",dart:"dart",dat:"hex",data:"image",db:"database",db3:"database",dbf:"database",dblite:"database",dblite3:"database",dcr:"image",dcs:"image",dds:"image",deb:"zip",debugsymbols:"database",def:"dotjs",dex:"android",dfxp:"subtitles",dhall:"dhall",dhallb:"dhall",diff:"diff",dio:"drawio",directory:"settings",dita:"xml",ditamap:"xml",djt:"django",dlc:"settings",dll:"dll",dmg:"disc",dmn:"xml",dng:"image",do:"tcl",doc:"word","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker",dockerignore:"docker",docx:"word",dot:"dotjs",drawio:"drawio",drf:"image","drone.yml":"drone",dsc:"denizenscript",dsql:"database",dss:"audio",dtd:"xml",dtml:"xml",duc:"duc",dwg:"3d",dxf:"3d","e2e-spec.cjs":"test-js","e2e-spec.cts":"test-ts","e2e-spec.js":"test-js","e2e-spec.mjs":"test-js","e2e-spec.mts":"test-ts","e2e-spec.ts":"test-ts",ebuild:"console",ec3:"audio",eclass:"console",ecr:"crystal",edb:"email",edge:"edge",edn:"clojure",eex:"elixir",efs:"audio",egg:"python-misc",eip:"image",ejs:"ejs",elm:"elm",eml:"email",emlx:"email",enc:"audio",ent:"xml",env:"tune",eot:"font",eps:"image",epub:"epub",erb:"ruby",erf:"image",erl:"erlang",es6:"javascript",esd:"zip",esx:"javascript",ex:"elixir",excalidraw:"excalidraw","excalidraw.json":"excalidraw","excalidraw.png":"excalidraw","excalidraw.svg":"excalidraw",exe:"exe",exp:"console",exr:"image",exrc:"vim",exs:"elixir",eyaml:"yaml",eyml:"yaml",f:"fortran",f03:"fortran",f08:"fortran",f3d:"3d",f77:"fortran",f90:"fortran",f95:"fortran",far:"zip",fast:"lisp",fat:"zip",fbx:"3d",fdb:"database",feather:"database",feature:"cucumber",features:"cucumber",fen:"chess",fff:"image",fhtml:"velocity",fig:"figma",fish:"console",flac:"audio",flp:"audio",flv:"video",fnt:"font",font:"font",fonts:"font",fpx:"image",frag:"shader","frag.glsl":"shader","fragment.glsl":"shader",fragmentshader:"shader","freezed.dart":"dart_generated",frm:"database",frt:"forth",fs:"fsharp","fs.glsl":"shader",fsi:"fsharp",fsproj:"fsharp",fsscript:"fsharp",fsx:"fsharp",fth:"forth",ftl:"freemarker",fun:"sml",fx:"shader",fxh:"shader",fxml:"xml",fxp:"foxpro","g.dart":"dart_generated",g4:"antlr","garden.yaml":"garden","garden.yml":"garden",gbr:"image",gd:"godot",gdb:"database",gdextension:"godot-assets",gdnlib:"godot-assets",gdns:"godot-assets",gdshader:"godot-assets",gdshaderinc:"godot-assets",gemini:"gemini",gemspec:"ruby",geojson:"json",geom:"shader","geom.glsl":"shader","geom.hlsl":"shader","geometry.glsl":"shader","geometry.hlsl":"shader",geometryshader:"shader",gif:"image",gifv:"video","gitlab-ci.yml":"gitlab",glb:"3d",gleam:"gleam",glsl:"shader",gltf:"3d",gmi:"gemini",gml:"gamemaker",gnu:"gnuplot",go:"go",godot:"godot-assets",gp:"audio",gpg:"key",gpl:"palette",gpr:"image",gql:"graphql",gr:"grain",gradle:"gradle",graphcool:"graphcool",graphql:"graphql",grm:"sml",groovy:"groovy",gs:"apps-script","gs.glsl":"shader",gsm:"audio",gvimrc:"vim",gvy:"groovy",gyp:"python",gypi:"python",gz:"zip",gzip:"zip",h:"h","h++":"hpp","h.in":"cpp",haml:"haml",handlebars:"handlebars",har:"json",hbs:"handlebars",hcl:"hcl",hdd:"disc",heex:"elixir",heic:"image",heif:"image",hex:"hex",hfs:"zip",hh:"hpp",hip:"hip",hjs:"handlebars",hjson:"hjson",hlsl:"shader",hlsli:"shader","horusec-config.json":"horusec",hp:"hpp",hpp:"hpp","hpp.in":"cpp",hs:"haskell",htm:"html",html:"html","html.bubble":"dinophp",html_vm:"html",http:"http",huff:"huff",hurl:"hurl",hx:"haxe",hxx:"hpp",i:"c",iam:"3d",ibc:"idris",ibd:"database",iced:"coffee",icns:"image",ico:"image",ics:"email",idr:"idris",ige:"3d",iges:"3d",igs:"3d",ii:"cpp",iiq:"image",ilk:"dll",imba:"imba",img:"image",iml:"xml",inc:"assembly",ini:"settings","inky.php":"laravel",inl:"hpp",ino:"arduino",ins:"doctex-installer",ipa:"applescript",ipp:"cpp",ipt:"3d",ipy:"python",ipynb:"jupyter",isml:"xml",iso:"disc",it:"audio",iuml:"uml",ixx:"cpp",j2:"jinja",jade:"pug",jar:"jar",jav:"java",java:"java",jb2:"image",jbig2:"image",jenkins:"jenkins",jenkinsfile:"jenkins",jfif:"image",jinja:"jinja","jinja-html":"jinja",jinja2:"jinja",jl:"julia",jmx:"xml",jng:"image",jpeg:"image",jpg:"image",jrxml:"xml",js:"javascript","js.map":"javascript-map","js.snap":"test-js","jsconfig.json":"jsconfig",jshtm:"html",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsonld:"json",jsp:"java",jst:"dotjs",jsx:"react","jsx.snap":"test-jsx",jt:"3d",jxl:"image",jxr:"image",k:"kcl",k25:"image",kdbx:"database",kdc:"image",key:"key",kl:"kl",kql:"kusto",kra:"image",ksh:"console",kt:"kotlin",kts:"kotlin",ktx:"image",ktx2:"image",kv:"kivy",lang:"i18n",latex:"tex",launch:"xml",lbx:"lbx",ldf:"database",lean:"lean",leex:"elixir",less:"less",lex:"sml",lha:"zip",lhs:"haskell",lib:"lib",liquid:"liquid",lisp:"lisp",litcoffee:"markdown",liz:"zip",lock:"lock",log:"log",lol:"lolcode",lottie:"lottie",lrc:"lyric",ls:"livescript",lsp:"lisp",ltx:"tex",lua:"lua",luau:"luau",lucee:"coldfusion",ly:"lilypond",lz:"zip",lz4:"zip",lz5:"zip",lzh:"zip",lzma:"zip",lzma2:"zip",m:"objective-c",m2:"macaulay2",m2v:"video",m3u:"audio",m3u8:"audio",m4a:"audio",m4b:"audio",m4p:"audio",m4r:"audio",m4v:"video",mak:"settings",manifest:"xml",markdn:"markdown",markdoc:"markdoc","markdoc.md":"markdoc",markdown:"markdown",marko:"markojs",mbox:"email",mca:"minecraft",mcaddon:"minecraft",mcfunction:"minecraft",mcgame:"minecraft",mclevel:"minecraft",mcmeta:"minecraft",mcpack:"minecraft",mcproject:"minecraft",mcr:"minecraft",mcstructure:"minecraft",mctemplate:"minecraft",mcworld:"minecraft",md:"markdown",mdb:"database",mdc:"image",mde:"database",mdf:"database",mdoc:"markdoc",mdown:"markdown",mdp:"image",mdtext:"markdown",mdtxt:"markdown",mdwn:"markdown",mdx:"mdx",mef:"image",menu:"xml",merlin:"merlin",mermaid:"mermaid",mesh:"3d",mi:"c",mid:"audio",mii:"cpp",mine:"minecraft",mint:"mint",mitigus:"assembly",mjml:"mjml",mjs:"javascript","mjs.map":"javascript-map",mk:"makefile",mka:"audio",mkd:"markdown",mkdn:"markdown",mkv:"video",ml:"ocaml",mlb:"sml",mli:"ocaml",mlton:"sml",mm:"objective-cpp",mmd:"mermaid",mmf:"audio",mo:"i18n",mod:"audio","module.js":"angular","module.ts":"angular",mojo:"mojo",moon:"moonscript",mos:"image",mov:"video",mp2:"video",mp3:"audio",mp4:"video",mpc:"audio",mpe:"video",mpeg:"video",mpg:"video",mpv:"video",mqo:"3d",mrf:"font",mrpack:"mrpack",mrw:"image",ms:"assembly",mscz:"audio",msg:"email",msi:"exe",mtm:"audio",mts:"typescript",mui:"audio",mus:"minecraft",mustache:"handlebars",musx:"audio",mxl:"audio",mxml:"mxml",myd:"database",myi:"database",nasm:"assembly",nb:"mathematica",ndf:"database",ndjson:"json","ndst.json":"ndst","ndst.yaml":"ndst","ndst.yml":"ndst",nef:"image",nf:"groovy","ng-template":"angular",nginx:"nginx",nginxconf:"nginx",nginxconfig:"nginx",nim:"nim",nimble:"nim",nix:"nix",njk:"nunjucks",npmrc:"settings",nrw:"image",nsa:"audio",ntf:"font",ntfs:"zip",nu:"console",nunjucks:"nunjucks",nupkg:"nuget",nuspec:"nuget",o:"3d",obj:"3d",obm:"image",odb:"database",odin:"odin",odp:"powerpoint",ods:"table",odt:"word",odttf:"font",oft:"email",ogg:"video",ogv:"video",olm:"email",onnx:"onnx",opam:"opam","openapi.json":"openapi","openapi.yaml":"openapi","openapi.yml":"openapi",opml:"xml",option:"settings",opus:"audio",ora:"image",orc:"database",orf:"image",ost:"email",otf:"font",otne:"otne",owl:"xml",p:"prolog",p7s:"email",pac:"javascript",pal:"palette",parquet:"database",pas:"pascal",passwd:"key",patch:"git",pbm:"image",pcss:"postcss",pdb:"database",pde:"processing",pdf:"pdf","pdm.lock":"pdm","pdm.toml":"pdm",pdn:"image",pef:"image",pem:"key",pgf:"image",pgm:"image",pgn:"chess",pgsql:"database",php:"php","php.bubble":"dinophp",php4:"php",php5:"php",phtml:"php",pic:"image",pine:"pinejs",pipeline:"pipeline","pixel.hlsl":"shader",pkb:"database",pkf:"audio",pkl:"pkl",pks:"database",pl:"prolog",plantuml:"uml",plist:"xml",plpgsql:"database",ply:"3d",pm:"perl",pmd:"3d",pmx:"3d",png:"image",pnm:"image",pnml:"coloredpetrinets",po:"i18n",pod:"perl",podspec:"ruby",postgres:"database",pot:"i18n",potm:"powerpoint",potx:"powerpoint",pp:"puppet",ppa:"powerpoint",ppam:"powerpoint",ppm:"image",pps:"powerpoint",ppsm:"powerpoint",ppsx:"powerpoint",ppt:"powerpoint",pptm:"powerpoint",pptx:"powerpoint",prefs:"settings",prg:"foxpro",prisma:"prisma",pro:"prolog",profile:"console",proj:"xml",project:"xml","prompt.md":"prompt","prompts.md":"prompt",prop:"settings",properties:"settings",props:"settings",proto:"proto",prt:"3d",prw:"advpl",prx:"advpl",ps1:"powershell",ps1xml:"powershell",psb:"adobe-photoshop",psc1:"powershell",psd:"adobe-photoshop",psd1:"powershell",psdt:"adobe-photoshop",psgi:"perl",psh:"shader",psm1:"powershell",psql:"database",psrc:"powershell",pssc:"powershell",pst:"email",psv:"table",pt:"pytorch",pth:"pytorch",ptx:"image",pu:"uml",pub:"key",publishsettings:"xml",pubxml:"xml","pubxml.user":"xml",pug:"pug",puml:"uml",pure:"purescript",purs:"purescript",pwf:"pytorch",pwn:"pawn","px.hlsl":"shader",pxn:"image",py:"python",pyc:"python-misc",pyi:"python",pyt:"python",pyw:"python",qcow:"disc",qcow2:"disc",qcp:"audio",qed:"disc",qmd:"quarto",qs:"qsharp",qt:"video","quokka.js":"quokka","quokka.jsx":"quokka","quokka.ts":"quokka","quokka.tsx":"quokka",r:"r",r3d:"image",ra:"audio",raf:"image",rahit:"shader","rahit.glsl":"shader",rake:"ruby",raku:"perl",raml:"raml",rar:"zip",raw:"image",razor:"razor",rb:"ruby",rbi:"ruby",rbs:"ruby",rbx:"ruby",rbxl:"roblox",rbxlx:"roblox",rbxm:"roblox","rbxmk.lua":"rbxmk","rbxmk.luau":"rbxmk",rbxmx:"roblox",rc:"rc",rcall:"shader","rcall.glsl":"shader",rchit:"shader","rchit.glsl":"shader",rdf:"xml",re:"reason",reb:"image",red:"red",reg:"regedit",rego:"opa",rei:"reason",rej:"diff",repo:"settings",res:"rescript",resi:"rescript-interface",rest:"http",restql:"restql",resx:"xml",rf64:"audio",rgen:"shader","rgen.glsl":"shader",rhistory:"r",rhtml:"html",rint:"shader","rint.glsl":"shader",riot:"riot",rip:"audio",rjs:"ruby",rkt:"racket",rm:"video",rmd:"r",rmiss:"shader","rmiss.glsl":"shader",rmvb:"video",rng:"xml",robot:"robot",ron:"rust",ronn:"markdown","route.js":"routing","route.jsx":"routing","route.ts":"routing","route.tsx":"routing","routes.js":"routing","routes.jsx":"routing","routes.ts":"routing","routes.tsx":"routing","routing.js":"routing","routing.jsx":"routing","routing.ts":"routing","routing.tsx":"routing",rpm:"zip",rpmsg:"email",rprofile:"r",rpy:"python",rql:"restql",rs:"rust",rss:"xml",rst:"markdown",rt:"r",rtf:"word",ru:"ruby",ruleset:"visualstudio",rw2:"image",rwl:"image",rwz:"image",s:"assembly",sab:"3d",sai:"image",san:"san",sas:"sas",sas7bdat:"sas",sashdat:"sas",sass:"sass",sast:"sas",sat:"3d",sbt:"sbt",sbv:"subtitles",sc:"scala",scala:"scala","schema.json":"json_schema",scm:"scheme",scss:"sass",sdf:"database",sdt:"audio",secret:"key",sesx:"audio",settings:"settings",sf2:"audio",sh:"console",sha256:"key",sha256sum:"key",sha256sums:"key",shader:"shader",shasum:"key",shproj:"xml",shtml:"html",sig:"sml","sigstore.json":"verified",sketch:"sketch","skill.md":"skill","skills.md":"skill",skp:"3d",slang:"shader",sldasm:"3d",slddrw:"3d",sldprt:"3d",slim:"slim",slint:"slint",sln:"visualstudio","sln.dotsettings":"settings","sln.dotsettings.user":"settings",slnf:"visualstudio",slnx:"visualstudio",sls:"salt",slx:"simulink",smali:"android",smb:"3d",smk:"snakemake",sml:"sml",smt:"3d",snakemake:"snakemake",so:"dll",sol:"solidity","spec-d.ts":"test-ts","spec-d.tsx":"test-jsx","spec.cjs":"test-js","spec.cts":"test-ts","spec.js":"test-js","spec.jsx":"test-jsx","spec.mjs":"test-js","spec.mts":"test-ts","spec.ts":"test-ts","spec.tsx":"test-jsx",spv:"shader",spwn:"spwn",sql:"database",sqlite:"database",sqlite3:"database",squashfs:"zip",sr2:"image",srf:"image",srt:"subtitles",srw:"image",ss:"scheme",ssa:"subtitles",sss:"postcss","st.css":"stylable",stan:"stan",stap:"audio",ste:"3d","steadybit.yaml":"steadybit","steadybit.yml":"steadybit",step:"3d",stl:"3d","stories.js":"storybook","stories.jsx":"storybook","stories.mdx":"storybook","stories.svelte":"storybook","stories.ts":"storybook","stories.tsx":"storybook","stories.vue":"storybook","story.js":"storybook","story.jsx":"storybook","story.mdx":"storybook","story.ts":"storybook","story.tsx":"storybook",storyboard:"xml",stp:"3d",styl:"stylus",sub:"subtitles","sublime-project":"sublime","sublime-workspace":"sublime",sui:"font",suit:"font",suo:"visualstudio",sv:"verilog",svelte:"svelte",svg:"svg",svh:"verilog",svx:"mdsvex",sw:"sway","swagger.json":"swagger","swagger.yaml":"swagger","swagger.yml":"swagger",swc:"adobe-swc",swcrc:"swc",swf:"flash",swift:"swift",swiftdeps:"swift",swiftdoc:"swift",swiftmodule:"swift",swiftsourceinfo:"swift",swm:"zip",sy:"siyuan",synctex:"tex","synctex.gz":"tex",t:"perl",tag:"riot",tar:"zip",targets:"xml","taskfile.yaml":"taskfile","taskfile.yml":"taskfile",tauri:"tauri",taz:"zip",tbz:"zip",tbz2:"zip",tcc:"hpp",tcl:"tcl",tcsh:"console",tcshrc:"console",templ:"templ",template:"template",terraformignore:"terraform",tesc:"shader","tesc.glsl":"shader",tese:"shader","tese.glsl":"shader","tess.hlsl":"shader","tessellation.hlsl":"shader","test-d.ts":"test-ts","test-d.tsx":"test-jsx","test.cjs":"test-js","test.cts":"test-ts","test.js":"test-js","test.jsx":"test-jsx","test.mjs":"test-js","test.mts":"test-ts","test.ts":"test-ts","test.tsx":"test-jsx",tex:"tex",tf:"terraform","tf.json":"terraform",tfbackend:"terraform",tfstate:"terraform",tfvars:"terraform",tg:"audio",tga:"image",tgz:"zip",tif:"image",tiff:"image",tikz:"tex",tl:"teal",tld:"xml",tldr:"tldraw",tlz:"zip",tmlanguage:"xml",tmx:"xml",tnef:"email",tobi:"tobi",toc:"toc",todo:"todo",tofu:"opentofu",toml:"toml","tool-versions":"settings",toon:"toon",tpl:"smarty",tpp:"cpp",tpz:"zip",tree:"tree",tres:"godot-assets",ts:"typescript","ts.glsl":"shader","ts.map":"json","ts.snap":"test-ts",tsbuildinfo:"json",tscn:"godot-assets","tsconfig.json":"tsconfig",tsv:"table",tsx:"react_ts","tsx.snap":"test-jsx",ttc:"font",ttf:"font",ttml:"subtitles",tw:"twine",twee:"twine",twig:"twig",txt:"document",txx:"cpp",txz:"zip",typ:"typst",tz:"zip",tzst:"zip",tzstd:"zip",ua:"uiua",unity:"unity",unitypackage:"unity",url:"url",usd:"3d",usdz:"3d",use:"sml",v:"vlang",vac:"3d",vagrantfile:"vagrant",vala:"vala",vb:"visualstudio",vba:"visualstudio",vbhtml:"razor",vbox:"virtual","vbox-prev":"virtual",vbproj:"xml","vbproj.user":"xml",vbs:"visualstudio",vcl:"varnish",vcxitems:"visualstudio","vcxitems.filters":"visualstudio",vcxproj:"visualstudio","vcxproj.filters":"visualstudio",vdi:"virtual",vdp:"3d",ved:"vedic",veda:"vedic",vedic:"vedic",verse:"verse",vert:"shader","vert.glsl":"shader","vertex.glsl":"shader",vertexshader:"shader",vfl:"vfl",vhd:"verilog",vhdl:"verilog",vhdx:"verilog",vim:"vim",viminfo:"vim",vimrc:"vim",vm:"velocity",vmdk:"disc",vob:"video",voc:"audio",volt:"html",vox:"3d",vqf:"audio","vs.glsl":"shader",vscodeignore:"vscode",vsh:"shader",vsix:"vscode",vsixmanifest:"vscode",vtl:"velocity",vtt:"subtitles",vue:"vue",wasm:"webassembly",wat:"webassembly",wav:"audio",weba:"audio",webm:"video",webmanifest:"json",webp:"image",wfp:"audio",wgsl:"shader",whl:"python-misc",wim:"zip",windi:"windicss",winget:"yaml",wire:"3d",wixproj:"visualstudio",wl:"wolframlanguage",wls:"wolframlanguage",wma:"audio",wmv:"video",woff:"font",woff2:"font",workbook:"markdown",wpl:"audio",wproj:"audio",wpy:"wepy",wrap:"meson",wrl:"3d",wsd:"uml",wsdl:"xml",wv:"audio",wxi:"xml",wxl:"xml",wxs:"xml",x3f:"image",x_b:"3d",x_t:"3d",xaml:"xaml",xar:"zip",xbl:"xml",xcf:"image",xcplayground:"swift",xht:"html",xhtml:"html",xib:"xml",xlf:"i18n",xliff:"xml",xls:"table",xlsm:"table",xlsx:"table",xml:"xml","xml.dist":"xml","xml.dist.sample":"xml",xmp:"xml",xoml:"xml",xpdl:"xml",xprofile:"console",xquery:"xml",xsd:"xml",xsession:"console",xsessionrc:"console",xsh:"console",xsl:"xml",xslt:"xml",xul:"xml",xz:"zip",yaml:"yaml","yaml-tmlanguage":"yaml","yaml-tmpreferences":"yaml","yaml-tmtheme":"yaml","yaml.dist":"yaml",yang:"yang",yash_profile:"console",yashrc:"console",yml:"yaml","yml.dist":"yaml",yuv:"video",yy:"gamemaker",yyp:"gamemaker",yyz:"gamemaker",z:"zip",zeabur:"zeabur",zig:"zig",zip:"zip",zlogin:"console",zlogout:"console",zon:"zig",zprofile:"console",zsh:"console","zsh-theme":"console",zshenv:"console",zshrc:"console",zst:"zip",zstd:"zip",ц:"tsil","🔥":"mojo"},vf={"-@types":"folder-typescript","-addin":"folder-plugin","-addins":"folder-plugin","-addon":"folder-plugin","-addons":"folder-plugin","-admin":"folder-admin","-admins":"folder-admin","-agent":"folder-robot","-agents":"folder-robot","-android":"folder-android","-angular":"folder-angular","-anim":"folder-animation","-animated":"folder-animation","-animation":"folder-animation","-animations":"folder-animation","-anims":"folder-animation","-ansible":"folder-ansible","-api":"folder-api","-apis":"folder-api","-apollo":"folder-apollo","-apollo-cache":"folder-apollo","-apollo-client":"folder-apollo","-apollo-config":"folder-apollo","-app":"folder-app","-apple":"folder-macos","-application":"folder-app","-applications":"folder-app","-apps":"folder-app","-appwrite":"folder-appwrite","-arc":"folder-archive","-archival":"folder-archive","-archive":"folder-archive","-archives":"folder-archive","-arcs":"folder-archive","-article":"folder-docs","-articles":"folder-docs","-asm":"folder-assembly","-assembly":"folder-assembly","-asset":"folder-resource","-assets":"folder-resource","-astro":"folder-astro","-atom":"folder-atom","-atoms":"folder-atom","-attachment":"folder-attachment","-attachments":"folder-attachment","-aud":"folder-audio","-audio":"folder-audio","-audios":"folder-audio","-auds":"folder-audio","-aurelia_project":"folder-aurelia","-auth":"folder-secure","-authentication":"folder-secure","-auto":"folder-generator","-aws":"folder-aws","-azure":"folder-aws","-azure-pipelines":"folder-azure-pipelines","-azure-pipelines-ci":"folder-azure-pipelines","-back-up":"folder-backup","-back-ups":"folder-backup","-backend":"folder-server","-backends":"folder-server","-backup":"folder-backup","-backups":"folder-backup","-bak":"folder-backup","-baks":"folder-backup","-base":"folder-base","-bases":"folder-base","-batch":"folder-batch","-batches":"folder-batch","-batchs":"folder-batch","-bench":"folder-benchmark","-benches":"folder-benchmark","-benchmark":"folder-benchmark","-benchmarks":"folder-benchmark","-bibliographies":"folder-bibliography","-bibliography":"folder-bibliography","-bicep":"folder-bicep","-bin":"folder-dist","-bkp":"folder-backup","-bkps":"folder-backup","-blender":"folder-blender","-blender-assets":"folder-blender","-blender-files":"folder-blender","-blender-models":"folder-blender","-blender-project":"folder-blender","-bloc":"folder-bloc","-blocs":"folder-bloc","-blog":"folder-docs","-book":"folder-bibliography","-books":"folder-bibliography","-bot":"folder-robot","-bots":"folder-robot","-bower_components":"folder-bower","-browser":"folder-public","-browsers":"folder-public","-build":"folder-dist","-buildkite":"folder-buildkite","-builds":"folder-dist","-built":"folder-dist","-bull":"folder-queue","-cache":"folder-temp","-cached":"folder-temp","-calc":"folder-functions","-calcs":"folder-functions","-calculation":"folder-functions","-calculations":"folder-functions","-cargo":"folder-rust","-cart":"folder-cart","-centos":"folder-linux","-cert":"folder-secure","-certificate":"folder-secure","-certificates":"folder-secure","-certs":"folder-secure","-cfg":"folder-config","-cfgs":"folder-config","-cfn-gen":"folder-generator","-changes":"folder-delta","-changeset":"folder-changesets","-changesets":"folder-changesets","-chat":"folder-messages","-chats":"folder-messages","-ci":"folder-ci","-cipher":"folder-secure","-circleci":"folder-circleci","-cjs":"folder-javascript","-class":"folder-class","-classes":"folder-class","-claude":"folder-claude","-cli":"folder-command","-client":"folder-client","-clients":"folder-client","-cline_docs":"folder-cline","-clis":"folder-command","-cloud-firestore":"folder-firestore","-cloud-functions":"folder-cloud-functions","-cloudflare":"folder-cloudflare","-cloudfunctions":"folder-cloud-functions","-cluster":"folder-cluster","-clusters":"folder-cluster","-cmd":"folder-command","-cobol":"folder-cobol","-code":"folder-src","-color":"folder-theme","-colors":"folder-theme","-colour":"folder-theme","-colours":"folder-theme","-command":"folder-command","-commandline":"folder-command","-commands":"folder-command","-common":"folder-shared","-compiled":"folder-dist","-components":"folder-components","-composable":"folder-functions","-composables":"folder-functions","-concept":"folder-mock","-concepts":"folder-mock","-conf":"folder-config","-config":"folder-config","-configs":"folder-config","-configuration":"folder-config","-configurations":"folder-config","-confs":"folder-config","-connection":"folder-connection","-connections":"folder-connection","-console":"folder-console","-const":"folder-constant","-constant":"folder-constant","-constants":"folder-constant","-consts":"folder-constant","-container":"folder-container","-containers":"folder-container","-content":"folder-content","-contents":"folder-content","-context":"folder-context","-contexts":"folder-context","-contract":"folder-contract","-contract-test":"folder-contract","-contract-testing":"folder-contract","-contract-tests":"folder-contract","-contracts":"folder-contract","-controller":"folder-controller","-controllers":"folder-controller","-controls":"folder-controller","-conversation":"folder-messages","-conversations":"folder-messages","-core":"folder-core","-coverage":"folder-coverage","-crash":"folder-error","-crashes":"folder-error","-crates":"folder-lib","-css":"folder-css","-cts":"folder-typescript","-cubit":"folder-bloc","-cubits":"folder-bloc","-cue":"folder-cue","-cues":"folder-cue","-cursor":"folder-cursor","-custom":"folder-custom","-customs":"folder-custom","-cypher":"folder-secure","-cypress":"folder-cypress","-dal":"folder-dal","-dart":"folder-dart","-dart_tool":"folder-dart","-dart_tools":"folder-dart","-data":"folder-database","-data-access":"folder-dal","-data-access-layer":"folder-dal","-database":"folder-database","-databases":"folder-database","-db":"folder-database","-deb":"folder-linux","-debian":"folder-linux","-debug":"folder-debug","-debugger":"folder-debug","-debugging":"folder-debug","-decorator":"folder-decorators","-decorators":"folder-decorators","-deepin":"folder-linux","-delta":"folder-delta","-deltas":"folder-delta","-demo":"folder-examples","-demos":"folder-examples","-dependencies":"folder-packages","-design":"folder-theme","-designs":"folder-theme","-desktop":"folder-desktop","-devcontainer":"folder-container","-devpackages":"folder-packages","-devtools":"folder-tools","-dialog":"folder-messages","-dialogs":"folder-messages","-diary":"folder-docs","-directive":"folder-directive","-directives":"folder-directive","-display":"folder-desktop","-dist":"folder-dist","-distribution":"folder-dist","-doc":"folder-docs","-docker":"folder-docker","-dockerfiles":"folder-docker","-dockerhub":"folder-docker","-docs":"folder-docs","-document":"folder-docs","-documentation":"folder-docs","-documents":"folder-docs","-download":"folder-download","-downloader":"folder-download","-downloaders":"folder-download","-downloads":"folder-download","-draft":"folder-mock","-drafts":"folder-mock","-drizzle":"folder-drizzle","-ds_store":"folder-macos","-dump":"folder-dump","-dumps":"folder-dump","-e2e":"folder-coverage","-easing":"folder-animation","-easings":"folder-animation","-element":"folder-element","-elements":"folder-element","-email":"folder-mail","-emails":"folder-mail","-enum":"folder-enum","-enums":"folder-enum","-env":"folder-environment","-environment":"folder-environment","-environments":"folder-environment","-envs":"folder-environment","-err":"folder-error","-error":"folder-error","-errors":"folder-error","-errs":"folder-error","-eslint":"folder-eslint","-eslint-config":"folder-eslint","-eslint-configs":"folder-eslint","-eslint-plugin":"folder-eslint","-eslint-plugins":"folder-eslint","-etc":"folder-other","-event":"folder-event","-events":"folder-event","-example":"folder-examples","-examples":"folder-examples","-expo":"folder-expo","-expo-shared":"folder-expo","-export":"folder-export","-exported":"folder-export","-exports":"folder-export","-extension":"folder-plugin","-extensions":"folder-plugin","-external":"folder-lib","-externals":"folder-lib","-extra":"folder-other","-extras":"folder-other","-fastlane":"folder-fastlane","-favicon":"folder-favicon","-favicons":"folder-favicon","-feat":"folder-features","-feats":"folder-features","-feature":"folder-features","-features":"folder-features","-fig":"folder-images","-figs":"folder-images","-figure":"folder-images","-figures":"folder-images","-filter":"folder-filter","-filters":"folder-filter","-firebase":"folder-firebase","-firebase-cloud-functions":"folder-cloud-functions","-firebase-cloudfunctions":"folder-cloud-functions","-firebase-firestore":"folder-firestore","-firestore":"folder-firestore","-fixture":"folder-mock","-fixtures":"folder-mock","-flow-typed":"folder-flow","-flutter":"folder-flutter","-font":"folder-font","-fonts":"folder-font","-forgejo":"folder-forgejo","-form":"folder-form","-forms":"folder-form","-forum":"folder-messages","-fragments":"folder-components","-frontend":"folder-client","-frontends":"folder-client","-func":"folder-functions","-funcs":"folder-functions","-function":"folder-functions","-functions":"folder-functions","-game":"folder-console","-gamemaker":"folder-gamemaker","-gamemaker2":"folder-gamemaker","-games":"folder-console","-gcp":"folder-aws","-gemini":"folder-gemini-ai","-gemini-ai":"folder-gemini-ai","-geminiai":"folder-gemini-ai","-gen":"folder-generator","-generated":"folder-generator","-generator":"folder-generator","-generators":"folder-generator","-gens":"folder-generator","-git":"folder-git","-gitea":"folder-gitea","-githooks":"folder-git","-github":"folder-github","-github/issue_template":"folder-template","-github/pull_request_template":"folder-template","-github/workflows":"folder-gh-workflows","-gitlab":"folder-gitlab","-global":"folder-global","-glsl":"folder-shader","-go":"folder-go","-godot":"folder-godot","-godot-cpp":"folder-godot","-golang":"folder-go","-gql":"folder-graphql","-gradle":"folder-gradle","-graphql":"folder-graphql","-guard":"folder-guard","-guards":"folder-guard","-gui":"folder-ui","-gulp":"folder-gulp","-gulp-tasks":"folder-gulp","-gulpfile.babel.js":"folder-gulp","-gulpfile.js":"folder-gulp","-gulpfile.mjs":"folder-gulp","-gulpfile.ts":"folder-gulp","-gulpfiles":"folder-gulp","-handler":"folder-controller","-handlers":"folder-controller","-helm":"folder-helm","-helmchart":"folder-helm","-helmcharts":"folder-helm","-helper":"folder-helper","-helpers":"folder-helper","-hg":"folder-mercurial","-hgext":"folder-mercurial","-hghooks":"folder-mercurial","-histories":"folder-backup","-history":"folder-backup","-hlsl":"folder-shader","-home":"folder-home","-hook":"folder-hook","-hooks":"folder-hook","-html":"folder-views","-husky":"folder-husky","-i18n":"folder-i18n","-ico":"folder-images","-icon":"folder-images","-icons":"folder-images","-icos":"folder-images","-idea":"folder-intellij","-image":"folder-images","-images":"folder-images","-img":"folder-images","-imgs":"folder-images","-import":"folder-import","-imported":"folder-import","-imports":"folder-import","-in":"folder-input","-inc":"folder-include","-inc64":"folder-include","-include":"folder-include","-includes":"folder-include","-infra":"folder-server","-infrastructure":"folder-server","-input":"folder-input","-inputs":"folder-input","-integration":"folder-connection","-integration-test":"folder-coverage","-integration-tests":"folder-coverage","-integrations":"folder-connection","-interceptor":"folder-interceptor","-interceptors":"folder-interceptor","-interface":"folder-interface","-interfaces":"folder-interface","-internationalization":"folder-i18n","-inventories":"folder-server","-inventory":"folder-server","-io":"folder-input","-ios":"folder-ios","-ipad":"folder-macos","-iphone":"folder-macos","-ipod":"folder-macos","-ipynb":"folder-jupyter","-it":"folder-coverage","-j2":"folder-jinja","-java":"folder-java","-javascript":"folder-javascript","-javascripts":"folder-javascript","-jinja":"folder-jinja","-jinja2":"folder-jinja","-job":"folder-job","-jobs":"folder-job","-js":"folder-javascript","-json":"folder-json","-jsonc":"folder-json","-jsonl":"folder-json","-jsons":"folder-json","-jupyter":"folder-jupyter","-jwt":"folder-keys","-k8s":"folder-kubernetes","-key":"folder-keys","-keys":"folder-keys","-kit":"folder-tools","-kits":"folder-tools","-knowledge":"folder-docs","-kotlin":"folder-kotlin","-kql":"folder-kusto","-kubernetes":"folder-kubernetes","-kusto":"folder-kusto","-l10n":"folder-i18n","-lambda":"folder-functions","-lambdas":"folder-functions","-landing":"folder-home","-lang":"folder-i18n","-langs":"folder-i18n","-language":"folder-i18n","-languages":"folder-i18n","-layout":"folder-layout","-layouts":"folder-layout","-lefthook":"folder-lefthook","-lefthook-local":"folder-lefthook","-less":"folder-less","-lib":"folder-lib","-lib64":"folder-lib","-libraries":"folder-lib","-library":"folder-lib","-libs":"folder-lib","-license":"folder-license","-licenses":"folder-license","-link":"folder-link","-links":"folder-link","-linux":"folder-linux","-linuxbsd":"folder-linux","-liquibase":"folder-liquibase","-locale":"folder-i18n","-locales":"folder-i18n","-localization":"folder-i18n","-log":"folder-log","-logging":"folder-log","-logic":"folder-functions","-logs":"folder-log","-lottie":"folder-lottie","-lottiefiles":"folder-lottie","-lotties":"folder-lottie","-lua":"folder-lua","-luau":"folder-luau","-mac":"folder-macos","-macbook":"folder-macos","-macbook-air":"folder-macos","-macos":"folder-macos","-macosx":"folder-macos","-mail":"folder-mail","-mailers":"folder-mail","-mails":"folder-mail","-main":"folder-home","-manager":"folder-admin","-managers":"folder-admin","-mapping":"folder-mappings","-mappings":"folder-mappings","-markdown":"folder-markdown","-math":"folder-functions","-maths":"folder-functions","-md":"folder-markdown","-measure":"folder-benchmark","-measurement":"folder-benchmark","-measures":"folder-benchmark","-media":"folder-video","-messages":"folder-messages","-messaging":"folder-messages","-meta":"folder-meta","-meta-inf":"folder-config","-metadata":"folder-meta","-metro":"folder-metro","-middleware":"folder-middleware","-middlewares":"folder-middleware","-migration":"folder-migrations","-migrations":"folder-migrations","-mint":"folder-linux","-misc":"folder-other","-miscellaneous":"folder-other","-mjml":"folder-mjml","-mjs":"folder-javascript","-mobile":"folder-mobile","-mobiles":"folder-mobile","-mock":"folder-mock","-mocks":"folder-mock","-mod":"folder-plugin","-modding":"folder-plugin","-model":"folder-class","-models":"folder-class","-moderator":"folder-admin","-moderators":"folder-admin","-mods":"folder-plugin","-module":"folder-plugin","-modules":"folder-plugin","-mojo":"folder-mojo","-molecule":"folder-molecule","-molecules":"folder-molecule","-moon":"folder-moon","-motion":"folder-animation","-motions":"folder-animation","-movie":"folder-video","-movies":"folder-video","-mq":"folder-queue","-mts":"folder-typescript","-music":"folder-audio","-navigation":"folder-routes","-navigations":"folder-routes","-netlify":"folder-netlify","-news":"folder-docs","-next":"folder-next","-nginx":"folder-nginx","-node":"folder-node","-node_modules":"folder-node","-nodejs":"folder-node","-note":"folder-docs","-notebook":"folder-jupyter","-notebooks":"folder-jupyter","-notes":"folder-docs","-now":"folder-vercel","-nuxt":"folder-nuxt","-nyc-output":"folder-coverage","-nyc_output":"folder-coverage","-obsidian":"folder-obsidian","-opencode":"folder-opencode","-option":"folder-config","-options":"folder-config","-organism":"folder-organism","-organisms":"folder-organism","-osx":"folder-macos","-other":"folder-other","-others":"folder-other","-out":"folder-dist","-output":"folder-dist","-outputs":"folder-dist","-package":"folder-packages","-packages":"folder-packages","-pact":"folder-contract","-pacts":"folder-contract","-page":"folder-views","-pages":"folder-views","-palette":"folder-theme","-palettes":"folder-theme","-partial":"folder-include","-partials":"folder-include","-patches":"folder-git","-pdf":"folder-pdf","-pdfs":"folder-pdf","-pdm-build":"folder-pdm","-pdm-plugins":"folder-pdm","-perf":"folder-benchmark","-performance":"folder-benchmark","-phone":"folder-mobile","-phones":"folder-mobile","-photo":"folder-images","-photograph":"folder-images","-photographs":"folder-images","-photos":"folder-images","-php":"folder-php","-phpmailer":"folder-phpmailer","-pic":"folder-images","-pics":"folder-images","-picture":"folder-images","-pictures":"folder-images","-pipe":"folder-pipe","-pipeline":"folder-pipe","-pipelines":"folder-pipe","-pipes":"folder-pipe","-pkg":"folder-packages","-pkgs":"folder-packages","-plastic":"folder-plastic","-playground":"folder-sandbox","-playgrounds":"folder-sandbox","-playlist":"folder-audio","-playlists":"folder-audio","-plugin":"folder-plugin","-plugins":"folder-plugin","-policies":"folder-policy","-policy":"folder-policy","-popos":"folder-linux","-portability":"folder-mobile","-portable":"folder-mobile","-post":"folder-docs","-postman":"folder-postman","-posts":"folder-docs","-powershell":"folder-powershell","-pref":"folder-config","-preference":"folder-config","-preferences":"folder-config","-prefs":"folder-config","-presentation":"folder-ui","-preview":"folder-review","-previews":"folder-review","-prisma":"folder-prisma","-prisma/schema":"folder-prisma","-private":"folder-private","-profiling":"folder-benchmark","-proj":"folder-project","-project":"folder-project","-projects":"folder-project","-projs":"folder-project","-prompt":"folder-prompts","-prompts":"folder-prompts","-properties":"folder-config","-props":"folder-config","-proto":"folder-proto","-protobuf":"folder-proto","-protobufs":"folder-proto","-protos":"folder-proto","-provider":"folder-controller","-providers":"folder-controller","-proxy":"folder-public","-ps":"folder-powershell","-ps1":"folder-powershell","-ps4":"folder-console","-ps5":"folder-console","-public":"folder-public","-public_html":"folder-views","-pwa":"folder-client","-pycache":"folder-python","-pytest_cache":"folder-python","-python":"folder-python","-pytorch":"folder-pytorch","-quasar":"folder-quasar","-queue":"folder-queue","-queues":"folder-queue","-r":"folder-r","-recordings":"folder-audio","-release":"folder-dist","-remote":"folder-connection","-remotes":"folder-connection","-repo":"folder-repository","-report":"folder-resource","-reports":"folder-resource","-repos":"folder-repository","-repositories":"folder-repository","-repository":"folder-repository","-res":"folder-resource","-resolver":"folder-resolver","-resolvers":"folder-resolver","-resource":"folder-resource","-resources":"folder-resource","-restapi":"folder-api","-review":"folder-review","-reviewed":"folder-review","-reviews":"folder-review","-revisal":"folder-review","-revisals":"folder-review","-robot":"folder-robot","-robots":"folder-robot","-router":"folder-routes","-routers":"folder-routes","-routes":"folder-routes","-routing":"folder-routes","-rule":"folder-rules","-rules":"folder-rules","-rust":"folder-rust","-salt":"folder-salt","-saltstack":"folder-salt","-sample":"folder-examples","-sample-data":"folder-examples","-samples":"folder-examples","-sandbox":"folder-sandbox","-sandboxes":"folder-sandbox","-sass":"folder-sass","-scala":"folder-scala","-schema":"folder-class","-schemas":"folder-class","-sconf_temp":"folder-scons","-scons":"folder-scons","-scons_cache":"folder-scons","-screen":"folder-views","-screengrab":"folder-images","-screengrabs":"folder-images","-screens":"folder-views","-screenshot":"folder-images","-screenshots":"folder-images","-script":"folder-scripts","-scripting":"folder-scripts","-scripts":"folder-scripts","-scss":"folder-sass","-secret":"folder-keys","-secrets":"folder-keys","-secure":"folder-secure","-security":"folder-secure","-seed":"folder-seeders","-seeders":"folder-seeders","-seeding":"folder-seeders","-seeds":"folder-seeders","-server":"folder-server","-serverless":"folder-serverless","-serverpackages":"folder-packages","-servers":"folder-server","-service":"folder-controller","-services":"folder-controller","-setting":"folder-config","-settings":"folder-config","-shader":"folder-shader","-shaders":"folder-shader","-shared":"folder-shared","-shop":"folder-cart","-shopping":"folder-cart","-shopping-cart":"folder-cart","-sim":"folder-simulations","-sims":"folder-simulations","-simulation":"folder-simulations","-simulations":"folder-simulations","-site":"folder-public","-sketch":"folder-mock","-sketches":"folder-mock","-skill":"folder-skills","-skills":"folder-skills","-smtp":"folder-mail","-snap":"folder-snapcraft","-snapcraft":"folder-snapcraft","-snapshots":"folder-test","-snippet":"folder-snippet","-snippets":"folder-snippet","-song":"folder-audio","-songs":"folder-audio","-sound":"folder-audio","-sounds":"folder-audio","-source":"folder-src","-sources":"folder-src","-spa":"folder-client","-spec":"folder-test","-specs":"folder-test","-spellcheck":"folder-syntax","-spellcheckers":"folder-syntax","-sql":"folder-database","-src":"folder-src","-src-tauri":"folder-src-tauri","-srcs":"folder-src","-ssl":"folder-secure","-stack":"folder-stack","-stacks":"folder-stack","-start":"folder-home","-static":"folder-resource","-stencil":"folder-stencil","-store":"folder-store","-stores":"folder-store","-stories":"folder-storybook","-storybook":"folder-storybook","-style":"folder-css","-styles":"folder-css","-stylesheet":"folder-css","-stylesheets":"folder-css","-stylus":"folder-stylus","-sublime":"folder-sublime","-submodules":"folder-git","-supabase":"folder-supabase","-svelte":"folder-svelte","-svelte-kit":"folder-svelte","-svg":"folder-svg","-svgs":"folder-svg","-switch":"folder-console","-syntax":"folder-syntax","-syntaxes":"folder-syntax","-table-of-contents":"folder-toc","-target":"folder-target","-taskfile":"folder-taskfile","-taskfiles":"folder-taskfile","-tasks":"folder-tasks","-television":"folder-television","-temp":"folder-temp","-template":"folder-template","-templates":"folder-template","-terraform":"folder-terraform","-test":"folder-test","-testfiles":"folder-test","-testing":"folder-test","-tests":"folder-test","-texture":"folder-images","-textures":"folder-images","-theme":"folder-theme","-themes":"folder-theme","-third-party":"folder-lib","-thirdparty":"folder-lib","-tickets":"folder-tasks","-tls":"folder-secure","-tmp":"folder-temp","-toc":"folder-toc","-token":"folder-keys","-tokens":"folder-keys","-toolbox":"folder-tools","-toolboxes":"folder-tools","-tooling":"folder-tools","-toolkit":"folder-tools","-toolkits":"folder-tools","-tools":"folder-tools","-torch":"folder-pytorch","-transition":"folder-animation","-transitions":"folder-animation","-translate":"folder-i18n","-translation":"folder-i18n","-translations":"folder-i18n","-trash":"folder-trash","-trigger":"folder-trigger","-triggers":"folder-trigger","-ts":"folder-typescript","-turbo":"folder-turborepo","-tv":"folder-television","-tx":"folder-i18n","-typeface":"folder-font","-typefaces":"folder-font","-types":"folder-typescript","-typescript":"folder-typescript","-typings":"folder-typescript","-ubuntu":"folder-linux","-ui":"folder-ui","-unity":"folder-unity","-unix":"folder-linux","-update":"folder-update","-updates":"folder-update","-upgrade":"folder-update","-upgrades":"folder-update","-upload":"folder-upload","-uploads":"folder-upload","-util":"folder-utils","-utilities":"folder-utils","-utility":"folder-utils","-utils":"folder-utils","-ux":"folder-ui","-validation":"folder-rules","-validations":"folder-rules","-validator":"folder-rules","-validators":"folder-rules","-vector":"folder-svg","-vectors":"folder-svg","-vendor":"folder-lib","-vendors":"folder-lib","-venv":"folder-environment","-vercel":"folder-vercel","-verdaccio":"folder-verdaccio","-vid":"folder-video","-video":"folder-video","-videos":"folder-video","-vids":"folder-video","-view":"folder-views","-views":"folder-views","-vm":"folder-vm","-vms":"folder-vm","-voice":"folder-audio","-voices":"folder-audio","-vscode":"folder-vscode","-vscode-test":"folder-vscode","-vue":"folder-vue","-vuepress":"folder-vuepress","-wakatime":"folder-wakatime","-web":"folder-public","-webpack":"folder-webpack","-website":"folder-public","-websites":"folder-public","-widget":"folder-components","-widgets":"folder-components","-wiki":"folder-docs","-win":"folder-windows","-win10":"folder-windows","-win11":"folder-windows","-win32":"folder-windows","-windows":"folder-windows","-windows10":"folder-windows","-windows11":"folder-windows","-windowsnt":"folder-windows","-windowsxp":"folder-windows","-winnt":"folder-windows","-winxp":"folder-windows","-wordpress-org":"folder-wordpress","-wp-content":"folder-wordpress","-wsl":"folder-linux","-www":"folder-public","-wwwroot":"folder-public","-xbox":"folder-console","-xtask":"folder-scripts","-yarn":"folder-yarn","-zeabur":"folder-zeabur","-zed":"folder-zed",".@types":"folder-typescript",".addin":"folder-plugin",".addins":"folder-plugin",".addon":"folder-plugin",".addons":"folder-plugin",".admin":"folder-admin",".admins":"folder-admin",".agent":"folder-robot",".agents":"folder-robot",".android":"folder-android",".angular":"folder-angular",".anim":"folder-animation",".animated":"folder-animation",".animation":"folder-animation",".animations":"folder-animation",".anims":"folder-animation",".ansible":"folder-ansible",".api":"folder-api",".apis":"folder-api",".apollo":"folder-apollo",".apollo-cache":"folder-apollo",".apollo-client":"folder-apollo",".apollo-config":"folder-apollo",".app":"folder-app",".apple":"folder-macos",".application":"folder-app",".applications":"folder-app",".apps":"folder-app",".appwrite":"folder-appwrite",".arc":"folder-archive",".archival":"folder-archive",".archive":"folder-archive",".archives":"folder-archive",".arcs":"folder-archive",".article":"folder-docs",".articles":"folder-docs",".asm":"folder-assembly",".assembly":"folder-assembly",".asset":"folder-resource",".assets":"folder-resource",".astro":"folder-astro",".atom":"folder-atom",".atoms":"folder-atom",".attachment":"folder-attachment",".attachments":"folder-attachment",".aud":"folder-audio",".audio":"folder-audio",".audios":"folder-audio",".auds":"folder-audio",".aurelia_project":"folder-aurelia",".auth":"folder-secure",".authentication":"folder-secure",".auto":"folder-generator",".aws":"folder-aws",".azure":"folder-aws",".azure-pipelines":"folder-azure-pipelines",".azure-pipelines-ci":"folder-azure-pipelines",".back-up":"folder-backup",".back-ups":"folder-backup",".backend":"folder-server",".backends":"folder-server",".backup":"folder-backup",".backups":"folder-backup",".bak":"folder-backup",".baks":"folder-backup",".base":"folder-base",".bases":"folder-base",".batch":"folder-batch",".batches":"folder-batch",".batchs":"folder-batch",".bench":"folder-benchmark",".benches":"folder-benchmark",".benchmark":"folder-benchmark",".benchmarks":"folder-benchmark",".bibliographies":"folder-bibliography",".bibliography":"folder-bibliography",".bicep":"folder-bicep",".bin":"folder-dist",".bkp":"folder-backup",".bkps":"folder-backup",".blender":"folder-blender",".blender-assets":"folder-blender",".blender-files":"folder-blender",".blender-models":"folder-blender",".blender-project":"folder-blender",".bloc":"folder-bloc",".blocs":"folder-bloc",".blog":"folder-docs",".book":"folder-bibliography",".books":"folder-bibliography",".bot":"folder-robot",".bots":"folder-robot",".bower_components":"folder-bower",".browser":"folder-public",".browsers":"folder-public",".build":"folder-dist",".buildkite":"folder-buildkite",".builds":"folder-dist",".built":"folder-dist",".bull":"folder-queue",".cache":"folder-temp",".cached":"folder-temp",".calc":"folder-functions",".calcs":"folder-functions",".calculation":"folder-functions",".calculations":"folder-functions",".cargo":"folder-rust",".cart":"folder-cart",".centos":"folder-linux",".cert":"folder-secure",".certificate":"folder-secure",".certificates":"folder-secure",".certs":"folder-secure",".cfg":"folder-config",".cfgs":"folder-config",".cfn-gen":"folder-generator",".changes":"folder-delta",".changeset":"folder-changesets",".changesets":"folder-changesets",".chat":"folder-messages",".chats":"folder-messages",".ci":"folder-ci",".cipher":"folder-secure",".circleci":"folder-circleci",".cjs":"folder-javascript",".class":"folder-class",".classes":"folder-class",".claude":"folder-claude",".cli":"folder-command",".client":"folder-client",".clients":"folder-client",".cline_docs":"folder-cline",".clis":"folder-command",".cloud-firestore":"folder-firestore",".cloud-functions":"folder-cloud-functions",".cloudflare":"folder-cloudflare",".cloudfunctions":"folder-cloud-functions",".cluster":"folder-cluster",".clusters":"folder-cluster",".cmd":"folder-command",".cobol":"folder-cobol",".code":"folder-src",".color":"folder-theme",".colors":"folder-theme",".colour":"folder-theme",".colours":"folder-theme",".command":"folder-command",".commandline":"folder-command",".commands":"folder-command",".common":"folder-shared",".compiled":"folder-dist",".components":"folder-components",".composable":"folder-functions",".composables":"folder-functions",".concept":"folder-mock",".concepts":"folder-mock",".conf":"folder-config",".config":"folder-config",".configs":"folder-config",".configuration":"folder-config",".configurations":"folder-config",".confs":"folder-config",".connection":"folder-connection",".connections":"folder-connection",".console":"folder-console",".const":"folder-constant",".constant":"folder-constant",".constants":"folder-constant",".consts":"folder-constant",".container":"folder-container",".containers":"folder-container",".content":"folder-content",".contents":"folder-content",".context":"folder-context",".contexts":"folder-context",".contract":"folder-contract",".contract-test":"folder-contract",".contract-testing":"folder-contract",".contract-tests":"folder-contract",".contracts":"folder-contract",".controller":"folder-controller",".controllers":"folder-controller",".controls":"folder-controller",".conversation":"folder-messages",".conversations":"folder-messages",".core":"folder-core",".coverage":"folder-coverage",".crash":"folder-error",".crashes":"folder-error",".crates":"folder-lib",".css":"folder-css",".cts":"folder-typescript",".cubit":"folder-bloc",".cubits":"folder-bloc",".cue":"folder-cue",".cues":"folder-cue",".cursor":"folder-cursor",".custom":"folder-custom",".customs":"folder-custom",".cypher":"folder-secure",".cypress":"folder-cypress",".dal":"folder-dal",".dart":"folder-dart",".dart_tool":"folder-dart",".dart_tools":"folder-dart",".data":"folder-database",".data-access":"folder-dal",".data-access-layer":"folder-dal",".database":"folder-database",".databases":"folder-database",".db":"folder-database",".deb":"folder-linux",".debian":"folder-linux",".debug":"folder-debug",".debugger":"folder-debug",".debugging":"folder-debug",".decorator":"folder-decorators",".decorators":"folder-decorators",".deepin":"folder-linux",".delta":"folder-delta",".deltas":"folder-delta",".demo":"folder-examples",".demos":"folder-examples",".dependencies":"folder-packages",".design":"folder-theme",".designs":"folder-theme",".desktop":"folder-desktop",".devcontainer":"folder-container",".devpackages":"folder-packages",".devtools":"folder-tools",".dialog":"folder-messages",".dialogs":"folder-messages",".diary":"folder-docs",".directive":"folder-directive",".directives":"folder-directive",".display":"folder-desktop",".dist":"folder-dist",".distribution":"folder-dist",".doc":"folder-docs",".docker":"folder-docker",".dockerfiles":"folder-docker",".dockerhub":"folder-docker",".docs":"folder-docs",".document":"folder-docs",".documentation":"folder-docs",".documents":"folder-docs",".download":"folder-download",".downloader":"folder-download",".downloaders":"folder-download",".downloads":"folder-download",".draft":"folder-mock",".drafts":"folder-mock",".drizzle":"folder-drizzle",".ds_store":"folder-macos",".dump":"folder-dump",".dumps":"folder-dump",".e2e":"folder-coverage",".easing":"folder-animation",".easings":"folder-animation",".element":"folder-element",".elements":"folder-element",".email":"folder-mail",".emails":"folder-mail",".enum":"folder-enum",".enums":"folder-enum",".env":"folder-environment",".environment":"folder-environment",".environments":"folder-environment",".envs":"folder-environment",".err":"folder-error",".error":"folder-error",".errors":"folder-error",".errs":"folder-error",".eslint":"folder-eslint",".eslint-config":"folder-eslint",".eslint-configs":"folder-eslint",".eslint-plugin":"folder-eslint",".eslint-plugins":"folder-eslint",".etc":"folder-other",".event":"folder-event",".events":"folder-event",".example":"folder-examples",".examples":"folder-examples",".expo":"folder-expo",".expo-shared":"folder-expo",".export":"folder-export",".exported":"folder-export",".exports":"folder-export",".extension":"folder-plugin",".extensions":"folder-plugin",".external":"folder-lib",".externals":"folder-lib",".extra":"folder-other",".extras":"folder-other",".fastlane":"folder-fastlane",".favicon":"folder-favicon",".favicons":"folder-favicon",".feat":"folder-features",".feats":"folder-features",".feature":"folder-features",".features":"folder-features",".fig":"folder-images",".figs":"folder-images",".figure":"folder-images",".figures":"folder-images",".filter":"folder-filter",".filters":"folder-filter",".firebase":"folder-firebase",".firebase-cloud-functions":"folder-cloud-functions",".firebase-cloudfunctions":"folder-cloud-functions",".firebase-firestore":"folder-firestore",".firestore":"folder-firestore",".fixture":"folder-mock",".fixtures":"folder-mock",".flow-typed":"folder-flow",".flutter":"folder-flutter",".font":"folder-font",".fonts":"folder-font",".forgejo":"folder-forgejo",".form":"folder-form",".forms":"folder-form",".forum":"folder-messages",".fragments":"folder-components",".frontend":"folder-client",".frontends":"folder-client",".func":"folder-functions",".funcs":"folder-functions",".function":"folder-functions",".functions":"folder-functions",".game":"folder-console",".gamemaker":"folder-gamemaker",".gamemaker2":"folder-gamemaker",".games":"folder-console",".gcp":"folder-aws",".gemini":"folder-gemini-ai",".gemini-ai":"folder-gemini-ai",".geminiai":"folder-gemini-ai",".gen":"folder-generator",".generated":"folder-generator",".generator":"folder-generator",".generators":"folder-generator",".gens":"folder-generator",".git":"folder-git",".gitea":"folder-gitea",".githooks":"folder-git",".github":"folder-github",".github/issue_template":"folder-template",".github/pull_request_template":"folder-template",".github/workflows":"folder-gh-workflows",".gitlab":"folder-gitlab",".global":"folder-global",".glsl":"folder-shader",".go":"folder-go",".godot":"folder-godot",".godot-cpp":"folder-godot",".golang":"folder-go",".gql":"folder-graphql",".gradle":"folder-gradle",".graphql":"folder-graphql",".guard":"folder-guard",".guards":"folder-guard",".gui":"folder-ui",".gulp":"folder-gulp",".gulp-tasks":"folder-gulp",".gulpfile.babel.js":"folder-gulp",".gulpfile.js":"folder-gulp",".gulpfile.mjs":"folder-gulp",".gulpfile.ts":"folder-gulp",".gulpfiles":"folder-gulp",".handler":"folder-controller",".handlers":"folder-controller",".helm":"folder-helm",".helmchart":"folder-helm",".helmcharts":"folder-helm",".helper":"folder-helper",".helpers":"folder-helper",".hg":"folder-mercurial",".hgext":"folder-mercurial",".hghooks":"folder-mercurial",".histories":"folder-backup",".history":"folder-backup",".hlsl":"folder-shader",".home":"folder-home",".hook":"folder-hook",".hooks":"folder-hook",".html":"folder-views",".husky":"folder-husky",".i18n":"folder-i18n",".ico":"folder-images",".icon":"folder-images",".icons":"folder-images",".icos":"folder-images",".idea":"folder-intellij",".image":"folder-images",".images":"folder-images",".img":"folder-images",".imgs":"folder-images",".import":"folder-import",".imported":"folder-import",".imports":"folder-import",".in":"folder-input",".inc":"folder-include",".inc64":"folder-include",".include":"folder-include",".includes":"folder-include",".infra":"folder-server",".infrastructure":"folder-server",".input":"folder-input",".inputs":"folder-input",".integration":"folder-connection",".integration-test":"folder-coverage",".integration-tests":"folder-coverage",".integrations":"folder-connection",".interceptor":"folder-interceptor",".interceptors":"folder-interceptor",".interface":"folder-interface",".interfaces":"folder-interface",".internationalization":"folder-i18n",".inventories":"folder-server",".inventory":"folder-server",".io":"folder-input",".ios":"folder-ios",".ipad":"folder-macos",".iphone":"folder-macos",".ipod":"folder-macos",".ipynb":"folder-jupyter",".it":"folder-coverage",".j2":"folder-jinja",".java":"folder-java",".javascript":"folder-javascript",".javascripts":"folder-javascript",".jinja":"folder-jinja",".jinja2":"folder-jinja",".job":"folder-job",".jobs":"folder-job",".js":"folder-javascript",".json":"folder-json",".jsonc":"folder-json",".jsonl":"folder-json",".jsons":"folder-json",".jupyter":"folder-jupyter",".jwt":"folder-keys",".k8s":"folder-kubernetes",".key":"folder-keys",".keys":"folder-keys",".kit":"folder-tools",".kits":"folder-tools",".knowledge":"folder-docs",".kotlin":"folder-kotlin",".kql":"folder-kusto",".kubernetes":"folder-kubernetes",".kusto":"folder-kusto",".l10n":"folder-i18n",".lambda":"folder-functions",".lambdas":"folder-functions",".landing":"folder-home",".lang":"folder-i18n",".langs":"folder-i18n",".language":"folder-i18n",".languages":"folder-i18n",".layout":"folder-layout",".layouts":"folder-layout",".lefthook":"folder-lefthook",".lefthook-local":"folder-lefthook",".less":"folder-less",".lib":"folder-lib",".lib64":"folder-lib",".libraries":"folder-lib",".library":"folder-lib",".libs":"folder-lib",".license":"folder-license",".licenses":"folder-license",".link":"folder-link",".links":"folder-link",".linux":"folder-linux",".linuxbsd":"folder-linux",".liquibase":"folder-liquibase",".locale":"folder-i18n",".locales":"folder-i18n",".localization":"folder-i18n",".log":"folder-log",".logging":"folder-log",".logic":"folder-functions",".logs":"folder-log",".lottie":"folder-lottie",".lottiefiles":"folder-lottie",".lotties":"folder-lottie",".lua":"folder-lua",".luau":"folder-luau",".mac":"folder-macos",".macbook":"folder-macos",".macbook-air":"folder-macos",".macos":"folder-macos",".macosx":"folder-macos",".mail":"folder-mail",".mailers":"folder-mail",".mails":"folder-mail",".main":"folder-home",".manager":"folder-admin",".managers":"folder-admin",".mapping":"folder-mappings",".mappings":"folder-mappings",".markdown":"folder-markdown",".math":"folder-functions",".maths":"folder-functions",".md":"folder-markdown",".measure":"folder-benchmark",".measurement":"folder-benchmark",".measures":"folder-benchmark",".media":"folder-video",".messages":"folder-messages",".messaging":"folder-messages",".meta":"folder-meta",".meta-inf":"folder-config",".metadata":"folder-meta",".metro":"folder-metro",".middleware":"folder-middleware",".middlewares":"folder-middleware",".migration":"folder-migrations",".migrations":"folder-migrations",".mint":"folder-linux",".misc":"folder-other",".miscellaneous":"folder-other",".mjml":"folder-mjml",".mjs":"folder-javascript",".mobile":"folder-mobile",".mobiles":"folder-mobile",".mock":"folder-mock",".mocks":"folder-mock",".mod":"folder-plugin",".modding":"folder-plugin",".model":"folder-class",".models":"folder-class",".moderator":"folder-admin",".moderators":"folder-admin",".mods":"folder-plugin",".module":"folder-plugin",".modules":"folder-plugin",".mojo":"folder-mojo",".molecule":"folder-molecule",".molecules":"folder-molecule",".moon":"folder-moon",".motion":"folder-animation",".motions":"folder-animation",".movie":"folder-video",".movies":"folder-video",".mq":"folder-queue",".mts":"folder-typescript",".music":"folder-audio",".navigation":"folder-routes",".navigations":"folder-routes",".netlify":"folder-netlify",".news":"folder-docs",".next":"folder-next",".nginx":"folder-nginx",".node":"folder-node",".node_modules":"folder-node",".nodejs":"folder-node",".note":"folder-docs",".notebook":"folder-jupyter",".notebooks":"folder-jupyter",".notes":"folder-docs",".now":"folder-vercel",".nuxt":"folder-nuxt",".nyc-output":"folder-coverage",".nyc_output":"folder-coverage",".obsidian":"folder-obsidian",".opencode":"folder-opencode",".option":"folder-config",".options":"folder-config",".organism":"folder-organism",".organisms":"folder-organism",".osx":"folder-macos",".other":"folder-other",".others":"folder-other",".out":"folder-dist",".output":"folder-dist",".outputs":"folder-dist",".package":"folder-packages",".packages":"folder-packages",".pact":"folder-contract",".pacts":"folder-contract",".page":"folder-views",".pages":"folder-views",".palette":"folder-theme",".palettes":"folder-theme",".partial":"folder-include",".partials":"folder-include",".patches":"folder-git",".pdf":"folder-pdf",".pdfs":"folder-pdf",".pdm-build":"folder-pdm",".pdm-plugins":"folder-pdm",".perf":"folder-benchmark",".performance":"folder-benchmark",".phone":"folder-mobile",".phones":"folder-mobile",".photo":"folder-images",".photograph":"folder-images",".photographs":"folder-images",".photos":"folder-images",".php":"folder-php",".phpmailer":"folder-phpmailer",".pic":"folder-images",".pics":"folder-images",".picture":"folder-images",".pictures":"folder-images",".pipe":"folder-pipe",".pipeline":"folder-pipe",".pipelines":"folder-pipe",".pipes":"folder-pipe",".pkg":"folder-packages",".pkgs":"folder-packages",".plastic":"folder-plastic",".playground":"folder-sandbox",".playgrounds":"folder-sandbox",".playlist":"folder-audio",".playlists":"folder-audio",".plugin":"folder-plugin",".plugins":"folder-plugin",".policies":"folder-policy",".policy":"folder-policy",".popos":"folder-linux",".portability":"folder-mobile",".portable":"folder-mobile",".post":"folder-docs",".postman":"folder-postman",".posts":"folder-docs",".powershell":"folder-powershell",".pref":"folder-config",".preference":"folder-config",".preferences":"folder-config",".prefs":"folder-config",".presentation":"folder-ui",".preview":"folder-review",".previews":"folder-review",".prisma":"folder-prisma",".prisma/schema":"folder-prisma",".private":"folder-private",".profiling":"folder-benchmark",".proj":"folder-project",".project":"folder-project",".projects":"folder-project",".projs":"folder-project",".prompt":"folder-prompts",".prompts":"folder-prompts",".properties":"folder-config",".props":"folder-config",".proto":"folder-proto",".protobuf":"folder-proto",".protobufs":"folder-proto",".protos":"folder-proto",".provider":"folder-controller",".providers":"folder-controller",".proxy":"folder-public",".ps":"folder-powershell",".ps1":"folder-powershell",".ps4":"folder-console",".ps5":"folder-console",".public":"folder-public",".public_html":"folder-views",".pwa":"folder-client",".pycache":"folder-python",".pytest_cache":"folder-python",".python":"folder-python",".pytorch":"folder-pytorch",".quasar":"folder-quasar",".queue":"folder-queue",".queues":"folder-queue",".r":"folder-r",".recordings":"folder-audio",".release":"folder-dist",".remote":"folder-connection",".remotes":"folder-connection",".repo":"folder-repository",".report":"folder-resource",".reports":"folder-resource",".repos":"folder-repository",".repositories":"folder-repository",".repository":"folder-repository",".res":"folder-resource",".resolver":"folder-resolver",".resolvers":"folder-resolver",".resource":"folder-resource",".resources":"folder-resource",".restapi":"folder-api",".review":"folder-review",".reviewed":"folder-review",".reviews":"folder-review",".revisal":"folder-review",".revisals":"folder-review",".robot":"folder-robot",".robots":"folder-robot",".router":"folder-routes",".routers":"folder-routes",".routes":"folder-routes",".routing":"folder-routes",".rule":"folder-rules",".rules":"folder-rules",".rust":"folder-rust",".salt":"folder-salt",".saltstack":"folder-salt",".sample":"folder-examples",".sample-data":"folder-examples",".samples":"folder-examples",".sandbox":"folder-sandbox",".sandboxes":"folder-sandbox",".sass":"folder-sass",".scala":"folder-scala",".schema":"folder-class",".schemas":"folder-class",".sconf_temp":"folder-scons",".scons":"folder-scons",".scons_cache":"folder-scons",".screen":"folder-views",".screengrab":"folder-images",".screengrabs":"folder-images",".screens":"folder-views",".screenshot":"folder-images",".screenshots":"folder-images",".script":"folder-scripts",".scripting":"folder-scripts",".scripts":"folder-scripts",".scss":"folder-sass",".secret":"folder-keys",".secrets":"folder-keys",".secure":"folder-secure",".security":"folder-secure",".seed":"folder-seeders",".seeders":"folder-seeders",".seeding":"folder-seeders",".seeds":"folder-seeders",".server":"folder-server",".serverless":"folder-serverless",".serverpackages":"folder-packages",".servers":"folder-server",".service":"folder-controller",".services":"folder-controller",".setting":"folder-config",".settings":"folder-config",".shader":"folder-shader",".shaders":"folder-shader",".shared":"folder-shared",".shop":"folder-cart",".shopping":"folder-cart",".shopping-cart":"folder-cart",".sim":"folder-simulations",".sims":"folder-simulations",".simulation":"folder-simulations",".simulations":"folder-simulations",".site":"folder-public",".sketch":"folder-mock",".sketches":"folder-mock",".skill":"folder-skills",".skills":"folder-skills",".smtp":"folder-mail",".snap":"folder-snapcraft",".snapcraft":"folder-snapcraft",".snapshots":"folder-test",".snippet":"folder-snippet",".snippets":"folder-snippet",".song":"folder-audio",".songs":"folder-audio",".sound":"folder-audio",".sounds":"folder-audio",".source":"folder-src",".sources":"folder-src",".spa":"folder-client",".spec":"folder-test",".specs":"folder-test",".spellcheck":"folder-syntax",".spellcheckers":"folder-syntax",".sql":"folder-database",".src":"folder-src",".src-tauri":"folder-src-tauri",".srcs":"folder-src",".ssl":"folder-secure",".stack":"folder-stack",".stacks":"folder-stack",".start":"folder-home",".static":"folder-resource",".stencil":"folder-stencil",".store":"folder-store",".stores":"folder-store",".stories":"folder-storybook",".storybook":"folder-storybook",".style":"folder-css",".styles":"folder-css",".stylesheet":"folder-css",".stylesheets":"folder-css",".stylus":"folder-stylus",".sublime":"folder-sublime",".submodules":"folder-git",".supabase":"folder-supabase",".svelte":"folder-svelte",".svelte-kit":"folder-svelte",".svg":"folder-svg",".svgs":"folder-svg",".switch":"folder-console",".syntax":"folder-syntax",".syntaxes":"folder-syntax",".table-of-contents":"folder-toc",".target":"folder-target",".taskfile":"folder-taskfile",".taskfiles":"folder-taskfile",".tasks":"folder-tasks",".television":"folder-television",".temp":"folder-temp",".template":"folder-template",".templates":"folder-template",".terraform":"folder-terraform",".test":"folder-test",".testfiles":"folder-test",".testing":"folder-test",".tests":"folder-test",".texture":"folder-images",".textures":"folder-images",".theme":"folder-theme",".themes":"folder-theme",".third-party":"folder-lib",".thirdparty":"folder-lib",".tickets":"folder-tasks",".tls":"folder-secure",".tmp":"folder-temp",".toc":"folder-toc",".token":"folder-keys",".tokens":"folder-keys",".toolbox":"folder-tools",".toolboxes":"folder-tools",".tooling":"folder-tools",".toolkit":"folder-tools",".toolkits":"folder-tools",".tools":"folder-tools",".torch":"folder-pytorch",".transition":"folder-animation",".transitions":"folder-animation",".translate":"folder-i18n",".translation":"folder-i18n",".translations":"folder-i18n",".trash":"folder-trash",".trigger":"folder-trigger",".triggers":"folder-trigger",".ts":"folder-typescript",".turbo":"folder-turborepo",".tv":"folder-television",".tx":"folder-i18n",".typeface":"folder-font",".typefaces":"folder-font",".types":"folder-typescript",".typescript":"folder-typescript",".typings":"folder-typescript",".ubuntu":"folder-linux",".ui":"folder-ui",".unity":"folder-unity",".unix":"folder-linux",".update":"folder-update",".updates":"folder-update",".upgrade":"folder-update",".upgrades":"folder-update",".upload":"folder-upload",".uploads":"folder-upload",".util":"folder-utils",".utilities":"folder-utils",".utility":"folder-utils",".utils":"folder-utils",".ux":"folder-ui",".validation":"folder-rules",".validations":"folder-rules",".validator":"folder-rules",".validators":"folder-rules",".vector":"folder-svg",".vectors":"folder-svg",".vendor":"folder-lib",".vendors":"folder-lib",".venv":"folder-environment",".vercel":"folder-vercel",".verdaccio":"folder-verdaccio",".vid":"folder-video",".video":"folder-video",".videos":"folder-video",".vids":"folder-video",".view":"folder-views",".views":"folder-views",".vm":"folder-vm",".vms":"folder-vm",".voice":"folder-audio",".voices":"folder-audio",".vscode":"folder-vscode",".vscode-test":"folder-vscode",".vue":"folder-vue",".vuepress":"folder-vuepress",".wakatime":"folder-wakatime",".web":"folder-public",".webpack":"folder-webpack",".website":"folder-public",".websites":"folder-public",".widget":"folder-components",".widgets":"folder-components",".wiki":"folder-docs",".win":"folder-windows",".win10":"folder-windows",".win11":"folder-windows",".win32":"folder-windows",".windows":"folder-windows",".windows10":"folder-windows",".windows11":"folder-windows",".windowsnt":"folder-windows",".windowsxp":"folder-windows",".winnt":"folder-windows",".winxp":"folder-windows",".wordpress-org":"folder-wordpress",".wp-content":"folder-wordpress",".wsl":"folder-linux",".www":"folder-public",".wwwroot":"folder-public",".xbox":"folder-console",".xtask":"folder-scripts",".yarn":"folder-yarn",".zeabur":"folder-zeabur",".zed":"folder-zed","@types":"folder-typescript","_@types":"folder-typescript","__@types__":"folder-typescript",__addin__:"folder-plugin",__addins__:"folder-plugin",__addon__:"folder-plugin",__addons__:"folder-plugin",__admin__:"folder-admin",__admins__:"folder-admin",__agent__:"folder-robot",__agents__:"folder-robot",__android__:"folder-android",__angular__:"folder-angular",__anim__:"folder-animation",__animated__:"folder-animation",__animation__:"folder-animation",__animations__:"folder-animation",__anims__:"folder-animation",__ansible__:"folder-ansible",__api__:"folder-api",__apis__:"folder-api","__apollo-cache__":"folder-apollo","__apollo-client__":"folder-apollo","__apollo-config__":"folder-apollo",__apollo__:"folder-apollo",__app__:"folder-app",__apple__:"folder-macos",__application__:"folder-app",__applications__:"folder-app",__apps__:"folder-app",__appwrite__:"folder-appwrite",__arc__:"folder-archive",__archival__:"folder-archive",__archive__:"folder-archive",__archives__:"folder-archive",__arcs__:"folder-archive",__article__:"folder-docs",__articles__:"folder-docs",__asm__:"folder-assembly",__assembly__:"folder-assembly",__asset__:"folder-resource",__assets__:"folder-resource",__astro__:"folder-astro",__atom__:"folder-atom",__atoms__:"folder-atom",__attachment__:"folder-attachment",__attachments__:"folder-attachment",__aud__:"folder-audio",__audio__:"folder-audio",__audios__:"folder-audio",__auds__:"folder-audio",__aurelia_project__:"folder-aurelia",__auth__:"folder-secure",__authentication__:"folder-secure",__auto__:"folder-generator",__aws__:"folder-aws","__azure-pipelines-ci__":"folder-azure-pipelines","__azure-pipelines__":"folder-azure-pipelines",__azure__:"folder-aws","__back-up__":"folder-backup","__back-ups__":"folder-backup",__backend__:"folder-server",__backends__:"folder-server",__backup__:"folder-backup",__backups__:"folder-backup",__bak__:"folder-backup",__baks__:"folder-backup",__base__:"folder-base",__bases__:"folder-base",__batch__:"folder-batch",__batches__:"folder-batch",__batchs__:"folder-batch",__bench__:"folder-benchmark",__benches__:"folder-benchmark",__benchmark__:"folder-benchmark",__benchmarks__:"folder-benchmark",__bibliographies__:"folder-bibliography",__bibliography__:"folder-bibliography",__bicep__:"folder-bicep",__bin__:"folder-dist",__bkp__:"folder-backup",__bkps__:"folder-backup","__blender-assets__":"folder-blender","__blender-files__":"folder-blender","__blender-models__":"folder-blender","__blender-project__":"folder-blender",__blender__:"folder-blender",__bloc__:"folder-bloc",__blocs__:"folder-bloc",__blog__:"folder-docs",__book__:"folder-bibliography",__books__:"folder-bibliography",__bot__:"folder-robot",__bots__:"folder-robot",__bower_components__:"folder-bower",__browser__:"folder-public",__browsers__:"folder-public",__build__:"folder-dist",__buildkite__:"folder-buildkite",__builds__:"folder-dist",__built__:"folder-dist",__bull__:"folder-queue",__cache__:"folder-temp",__cached__:"folder-temp",__calc__:"folder-functions",__calcs__:"folder-functions",__calculation__:"folder-functions",__calculations__:"folder-functions",__cargo__:"folder-rust",__cart__:"folder-cart",__centos__:"folder-linux",__cert__:"folder-secure",__certificate__:"folder-secure",__certificates__:"folder-secure",__certs__:"folder-secure",__cfg__:"folder-config",__cfgs__:"folder-config","__cfn-gen__":"folder-generator",__changes__:"folder-delta",__changeset__:"folder-changesets",__changesets__:"folder-changesets",__chat__:"folder-messages",__chats__:"folder-messages",__ci__:"folder-ci",__cipher__:"folder-secure",__circleci__:"folder-circleci",__cjs__:"folder-javascript",__class__:"folder-class",__classes__:"folder-class",__claude__:"folder-claude",__cli__:"folder-command",__client__:"folder-client",__clients__:"folder-client",__cline_docs__:"folder-cline",__clis__:"folder-command","__cloud-firestore__":"folder-firestore","__cloud-functions__":"folder-cloud-functions",__cloudflare__:"folder-cloudflare",__cloudfunctions__:"folder-cloud-functions",__cluster__:"folder-cluster",__clusters__:"folder-cluster",__cmd__:"folder-command",__cobol__:"folder-cobol",__code__:"folder-src",__color__:"folder-theme",__colors__:"folder-theme",__colour__:"folder-theme",__colours__:"folder-theme",__command__:"folder-command",__commandline__:"folder-command",__commands__:"folder-command",__common__:"folder-shared",__compiled__:"folder-dist",__components__:"folder-components",__composable__:"folder-functions",__composables__:"folder-functions",__concept__:"folder-mock",__concepts__:"folder-mock",__conf__:"folder-config",__config__:"folder-config",__configs__:"folder-config",__configuration__:"folder-config",__configurations__:"folder-config",__confs__:"folder-config",__connection__:"folder-connection",__connections__:"folder-connection",__console__:"folder-console",__const__:"folder-constant",__constant__:"folder-constant",__constants__:"folder-constant",__consts__:"folder-constant",__container__:"folder-container",__containers__:"folder-container",__content__:"folder-content",__contents__:"folder-content",__context__:"folder-context",__contexts__:"folder-context","__contract-test__":"folder-contract","__contract-testing__":"folder-contract","__contract-tests__":"folder-contract",__contract__:"folder-contract",__contracts__:"folder-contract",__controller__:"folder-controller",__controllers__:"folder-controller",__controls__:"folder-controller",__conversation__:"folder-messages",__conversations__:"folder-messages",__core__:"folder-core",__coverage__:"folder-coverage",__crash__:"folder-error",__crashes__:"folder-error",__crates__:"folder-lib",__css__:"folder-css",__cts__:"folder-typescript",__cubit__:"folder-bloc",__cubits__:"folder-bloc",__cue__:"folder-cue",__cues__:"folder-cue",__cursor__:"folder-cursor",__custom__:"folder-custom",__customs__:"folder-custom",__cypher__:"folder-secure",__cypress__:"folder-cypress",__dal__:"folder-dal",__dart__:"folder-dart",__dart_tool__:"folder-dart",__dart_tools__:"folder-dart","__data-access-layer__":"folder-dal","__data-access__":"folder-dal",__data__:"folder-database",__database__:"folder-database",__databases__:"folder-database",__db__:"folder-database",__deb__:"folder-linux",__debian__:"folder-linux",__debug__:"folder-debug",__debugger__:"folder-debug",__debugging__:"folder-debug",__decorator__:"folder-decorators",__decorators__:"folder-decorators",__deepin__:"folder-linux",__delta__:"folder-delta",__deltas__:"folder-delta",__demo__:"folder-examples",__demos__:"folder-examples",__dependencies__:"folder-packages",__design__:"folder-theme",__designs__:"folder-theme",__desktop__:"folder-desktop",__devcontainer__:"folder-container",__devpackages__:"folder-packages",__devtools__:"folder-tools",__dialog__:"folder-messages",__dialogs__:"folder-messages",__diary__:"folder-docs",__directive__:"folder-directive",__directives__:"folder-directive",__display__:"folder-desktop",__dist__:"folder-dist",__distribution__:"folder-dist",__doc__:"folder-docs",__docker__:"folder-docker",__dockerfiles__:"folder-docker",__dockerhub__:"folder-docker",__docs__:"folder-docs",__document__:"folder-docs",__documentation__:"folder-docs",__documents__:"folder-docs",__download__:"folder-download",__downloader__:"folder-download",__downloaders__:"folder-download",__downloads__:"folder-download",__draft__:"folder-mock",__drafts__:"folder-mock",__drizzle__:"folder-drizzle",__ds_store__:"folder-macos",__dump__:"folder-dump",__dumps__:"folder-dump",__e2e__:"folder-coverage",__easing__:"folder-animation",__easings__:"folder-animation",__element__:"folder-element",__elements__:"folder-element",__email__:"folder-mail",__emails__:"folder-mail",__enum__:"folder-enum",__enums__:"folder-enum",__env__:"folder-environment",__environment__:"folder-environment",__environments__:"folder-environment",__envs__:"folder-environment",__err__:"folder-error",__error__:"folder-error",__errors__:"folder-error",__errs__:"folder-error","__eslint-config__":"folder-eslint","__eslint-configs__":"folder-eslint","__eslint-plugin__":"folder-eslint","__eslint-plugins__":"folder-eslint",__eslint__:"folder-eslint",__etc__:"folder-other",__event__:"folder-event",__events__:"folder-event",__example__:"folder-examples",__examples__:"folder-examples","__expo-shared__":"folder-expo",__expo__:"folder-expo",__export__:"folder-export",__exported__:"folder-export",__exports__:"folder-export",__extension__:"folder-plugin",__extensions__:"folder-plugin",__external__:"folder-lib",__externals__:"folder-lib",__extra__:"folder-other",__extras__:"folder-other",__fastlane__:"folder-fastlane",__favicon__:"folder-favicon",__favicons__:"folder-favicon",__feat__:"folder-features",__feats__:"folder-features",__feature__:"folder-features",__features__:"folder-features",__fig__:"folder-images",__figs__:"folder-images",__figure__:"folder-images",__figures__:"folder-images",__filter__:"folder-filter",__filters__:"folder-filter","__firebase-cloud-functions__":"folder-cloud-functions","__firebase-cloudfunctions__":"folder-cloud-functions","__firebase-firestore__":"folder-firestore",__firebase__:"folder-firebase",__firestore__:"folder-firestore",__fixture__:"folder-mock",__fixtures__:"folder-mock","__flow-typed__":"folder-flow",__flutter__:"folder-flutter",__font__:"folder-font",__fonts__:"folder-font",__forgejo__:"folder-forgejo",__form__:"folder-form",__forms__:"folder-form",__forum__:"folder-messages",__fragments__:"folder-components",__frontend__:"folder-client",__frontends__:"folder-client",__func__:"folder-functions",__funcs__:"folder-functions",__function__:"folder-functions",__functions__:"folder-functions",__game__:"folder-console",__gamemaker2__:"folder-gamemaker",__gamemaker__:"folder-gamemaker",__games__:"folder-console",__gcp__:"folder-aws","__gemini-ai__":"folder-gemini-ai",__gemini__:"folder-gemini-ai",__geminiai__:"folder-gemini-ai",__gen__:"folder-generator",__generated__:"folder-generator",__generator__:"folder-generator",__generators__:"folder-generator",__gens__:"folder-generator",__git__:"folder-git",__gitea__:"folder-gitea",__githooks__:"folder-git","__github/issue_template__":"folder-template","__github/pull_request_template__":"folder-template","__github/workflows__":"folder-gh-workflows",__github__:"folder-github",__gitlab__:"folder-gitlab",__global__:"folder-global",__glsl__:"folder-shader",__go__:"folder-go","__godot-cpp__":"folder-godot",__godot__:"folder-godot",__golang__:"folder-go",__gql__:"folder-graphql",__gradle__:"folder-gradle",__graphql__:"folder-graphql",__guard__:"folder-guard",__guards__:"folder-guard",__gui__:"folder-ui","__gulp-tasks__":"folder-gulp",__gulp__:"folder-gulp","__gulpfile.babel.js__":"folder-gulp","__gulpfile.js__":"folder-gulp","__gulpfile.mjs__":"folder-gulp","__gulpfile.ts__":"folder-gulp",__gulpfiles__:"folder-gulp",__handler__:"folder-controller",__handlers__:"folder-controller",__helm__:"folder-helm",__helmchart__:"folder-helm",__helmcharts__:"folder-helm",__helper__:"folder-helper",__helpers__:"folder-helper",__hg__:"folder-mercurial",__hgext__:"folder-mercurial",__hghooks__:"folder-mercurial",__histories__:"folder-backup",__history__:"folder-backup",__hlsl__:"folder-shader",__home__:"folder-home",__hook__:"folder-hook",__hooks__:"folder-hook",__html__:"folder-views",__husky__:"folder-husky",__i18n__:"folder-i18n",__ico__:"folder-images",__icon__:"folder-images",__icons__:"folder-images",__icos__:"folder-images",__idea__:"folder-intellij",__image__:"folder-images",__images__:"folder-images",__img__:"folder-images",__imgs__:"folder-images",__import__:"folder-import",__imported__:"folder-import",__imports__:"folder-import",__in__:"folder-input",__inc64__:"folder-include",__inc__:"folder-include",__include__:"folder-include",__includes__:"folder-include",__infra__:"folder-server",__infrastructure__:"folder-server",__input__:"folder-input",__inputs__:"folder-input","__integration-test__":"folder-coverage","__integration-tests__":"folder-coverage",__integration__:"folder-connection",__integrations__:"folder-connection",__interceptor__:"folder-interceptor",__interceptors__:"folder-interceptor",__interface__:"folder-interface",__interfaces__:"folder-interface",__internationalization__:"folder-i18n",__inventories__:"folder-server",__inventory__:"folder-server",__io__:"folder-input",__ios__:"folder-ios",__ipad__:"folder-macos",__iphone__:"folder-macos",__ipod__:"folder-macos",__ipynb__:"folder-jupyter",__it__:"folder-coverage",__j2__:"folder-jinja",__java__:"folder-java",__javascript__:"folder-javascript",__javascripts__:"folder-javascript",__jinja2__:"folder-jinja",__jinja__:"folder-jinja",__job__:"folder-job",__jobs__:"folder-job",__js__:"folder-javascript",__json__:"folder-json",__jsonc__:"folder-json",__jsonl__:"folder-json",__jsons__:"folder-json",__jupyter__:"folder-jupyter",__jwt__:"folder-keys",__k8s__:"folder-kubernetes",__key__:"folder-keys",__keys__:"folder-keys",__kit__:"folder-tools",__kits__:"folder-tools",__knowledge__:"folder-docs",__kotlin__:"folder-kotlin",__kql__:"folder-kusto",__kubernetes__:"folder-kubernetes",__kusto__:"folder-kusto",__l10n__:"folder-i18n",__lambda__:"folder-functions",__lambdas__:"folder-functions",__landing__:"folder-home",__lang__:"folder-i18n",__langs__:"folder-i18n",__language__:"folder-i18n",__languages__:"folder-i18n",__layout__:"folder-layout",__layouts__:"folder-layout","__lefthook-local__":"folder-lefthook",__lefthook__:"folder-lefthook",__less__:"folder-less",__lib64__:"folder-lib",__lib__:"folder-lib",__libraries__:"folder-lib",__library__:"folder-lib",__libs__:"folder-lib",__license__:"folder-license",__licenses__:"folder-license",__link__:"folder-link",__links__:"folder-link",__linux__:"folder-linux",__linuxbsd__:"folder-linux",__liquibase__:"folder-liquibase",__locale__:"folder-i18n",__locales__:"folder-i18n",__localization__:"folder-i18n",__log__:"folder-log",__logging__:"folder-log",__logic__:"folder-functions",__logs__:"folder-log",__lottie__:"folder-lottie",__lottiefiles__:"folder-lottie",__lotties__:"folder-lottie",__lua__:"folder-lua",__luau__:"folder-luau",__mac__:"folder-macos","__macbook-air__":"folder-macos",__macbook__:"folder-macos",__macos__:"folder-macos",__macosx__:"folder-macos",__mail__:"folder-mail",__mailers__:"folder-mail",__mails__:"folder-mail",__main__:"folder-home",__manager__:"folder-admin",__managers__:"folder-admin",__mapping__:"folder-mappings",__mappings__:"folder-mappings",__markdown__:"folder-markdown",__math__:"folder-functions",__maths__:"folder-functions",__md__:"folder-markdown",__measure__:"folder-benchmark",__measurement__:"folder-benchmark",__measures__:"folder-benchmark",__media__:"folder-video",__messages__:"folder-messages",__messaging__:"folder-messages","__meta-inf__":"folder-config",__meta__:"folder-meta",__metadata__:"folder-meta",__metro__:"folder-metro",__middleware__:"folder-middleware",__middlewares__:"folder-middleware",__migration__:"folder-migrations",__migrations__:"folder-migrations",__mint__:"folder-linux",__misc__:"folder-other",__miscellaneous__:"folder-other",__mjml__:"folder-mjml",__mjs__:"folder-javascript",__mobile__:"folder-mobile",__mobiles__:"folder-mobile",__mock__:"folder-mock",__mocks__:"folder-mock",__mod__:"folder-plugin",__modding__:"folder-plugin",__model__:"folder-class",__models__:"folder-class",__moderator__:"folder-admin",__moderators__:"folder-admin",__mods__:"folder-plugin",__module__:"folder-plugin",__modules__:"folder-plugin",__mojo__:"folder-mojo",__molecule__:"folder-molecule",__molecules__:"folder-molecule",__moon__:"folder-moon",__motion__:"folder-animation",__motions__:"folder-animation",__movie__:"folder-video",__movies__:"folder-video",__mq__:"folder-queue",__mts__:"folder-typescript",__music__:"folder-audio",__navigation__:"folder-routes",__navigations__:"folder-routes",__netlify__:"folder-netlify",__news__:"folder-docs",__next__:"folder-next",__nginx__:"folder-nginx",__node__:"folder-node",__node_modules__:"folder-node",__nodejs__:"folder-node",__note__:"folder-docs",__notebook__:"folder-jupyter",__notebooks__:"folder-jupyter",__notes__:"folder-docs",__now__:"folder-vercel",__nuxt__:"folder-nuxt","__nyc-output__":"folder-coverage",__nyc_output__:"folder-coverage",__obsidian__:"folder-obsidian",__opencode__:"folder-opencode",__option__:"folder-config",__options__:"folder-config",__organism__:"folder-organism",__organisms__:"folder-organism",__osx__:"folder-macos",__other__:"folder-other",__others__:"folder-other",__out__:"folder-dist",__output__:"folder-dist",__outputs__:"folder-dist",__package__:"folder-packages",__packages__:"folder-packages",__pact__:"folder-contract",__pacts__:"folder-contract",__page__:"folder-views",__pages__:"folder-views",__palette__:"folder-theme",__palettes__:"folder-theme",__partial__:"folder-include",__partials__:"folder-include",__patches__:"folder-git",__pdf__:"folder-pdf",__pdfs__:"folder-pdf","__pdm-build__":"folder-pdm","__pdm-plugins__":"folder-pdm",__perf__:"folder-benchmark",__performance__:"folder-benchmark",__phone__:"folder-mobile",__phones__:"folder-mobile",__photo__:"folder-images",__photograph__:"folder-images",__photographs__:"folder-images",__photos__:"folder-images",__php__:"folder-php",__phpmailer__:"folder-phpmailer",__pic__:"folder-images",__pics__:"folder-images",__picture__:"folder-images",__pictures__:"folder-images",__pipe__:"folder-pipe",__pipeline__:"folder-pipe",__pipelines__:"folder-pipe",__pipes__:"folder-pipe",__pkg__:"folder-packages",__pkgs__:"folder-packages",__plastic__:"folder-plastic",__playground__:"folder-sandbox",__playgrounds__:"folder-sandbox",__playlist__:"folder-audio",__playlists__:"folder-audio",__plugin__:"folder-plugin",__plugins__:"folder-plugin",__policies__:"folder-policy",__policy__:"folder-policy",__popos__:"folder-linux",__portability__:"folder-mobile",__portable__:"folder-mobile",__post__:"folder-docs",__postman__:"folder-postman",__posts__:"folder-docs",__powershell__:"folder-powershell",__pref__:"folder-config",__preference__:"folder-config",__preferences__:"folder-config",__prefs__:"folder-config",__presentation__:"folder-ui",__preview__:"folder-review",__previews__:"folder-review","__prisma/schema__":"folder-prisma",__prisma__:"folder-prisma",__private__:"folder-private",__profiling__:"folder-benchmark",__proj__:"folder-project",__project__:"folder-project",__projects__:"folder-project",__projs__:"folder-project",__prompt__:"folder-prompts",__prompts__:"folder-prompts",__properties__:"folder-config",__props__:"folder-config",__protobuf__:"folder-proto",__protobufs__:"folder-proto",__protos__:"folder-proto",__provider__:"folder-controller",__providers__:"folder-controller",__proxy__:"folder-public",__ps1__:"folder-powershell",__ps4__:"folder-console",__ps5__:"folder-console",__ps__:"folder-powershell",__public__:"folder-public",__public_html__:"folder-views",__pwa__:"folder-client",__pycache__:"folder-python",__pytest_cache__:"folder-python",__python__:"folder-python",__pytorch__:"folder-pytorch",__quasar__:"folder-quasar",__queue__:"folder-queue",__queues__:"folder-queue",__r__:"folder-r",__recordings__:"folder-audio",__release__:"folder-dist",__remote__:"folder-connection",__remotes__:"folder-connection",__repo__:"folder-repository",__report__:"folder-resource",__reports__:"folder-resource",__repos__:"folder-repository",__repositories__:"folder-repository",__repository__:"folder-repository",__res__:"folder-resource",__resolver__:"folder-resolver",__resolvers__:"folder-resolver",__resource__:"folder-resource",__resources__:"folder-resource",__restapi__:"folder-api",__review__:"folder-review",__reviewed__:"folder-review",__reviews__:"folder-review",__revisal__:"folder-review",__revisals__:"folder-review",__robot__:"folder-robot",__robots__:"folder-robot",__router__:"folder-routes",__routers__:"folder-routes",__routes__:"folder-routes",__routing__:"folder-routes",__rule__:"folder-rules",__rules__:"folder-rules",__rust__:"folder-rust",__salt__:"folder-salt",__saltstack__:"folder-salt","__sample-data__":"folder-examples",__sample__:"folder-examples",__samples__:"folder-examples",__sandbox__:"folder-sandbox",__sandboxes__:"folder-sandbox",__sass__:"folder-sass",__scala__:"folder-scala",__schema__:"folder-class",__schemas__:"folder-class",__sconf_temp__:"folder-scons",__scons__:"folder-scons",__scons_cache__:"folder-scons",__screen__:"folder-views",__screengrab__:"folder-images",__screengrabs__:"folder-images",__screens__:"folder-views",__screenshot__:"folder-images",__screenshots__:"folder-images",__script__:"folder-scripts",__scripting__:"folder-scripts",__scripts__:"folder-scripts",__scss__:"folder-sass",__secret__:"folder-keys",__secrets__:"folder-keys",__secure__:"folder-secure",__security__:"folder-secure",__seed__:"folder-seeders",__seeders__:"folder-seeders",__seeding__:"folder-seeders",__seeds__:"folder-seeders",__server__:"folder-server",__serverless__:"folder-serverless",__serverpackages__:"folder-packages",__servers__:"folder-server",__service__:"folder-controller",__services__:"folder-controller",__setting__:"folder-config",__settings__:"folder-config",__shader__:"folder-shader",__shaders__:"folder-shader",__shared__:"folder-shared",__shop__:"folder-cart","__shopping-cart__":"folder-cart",__shopping__:"folder-cart",__sim__:"folder-simulations",__sims__:"folder-simulations",__simulation__:"folder-simulations",__simulations__:"folder-simulations",__site__:"folder-public",__sketch__:"folder-mock",__sketches__:"folder-mock",__skill__:"folder-skills",__skills__:"folder-skills",__smtp__:"folder-mail",__snap__:"folder-snapcraft",__snapcraft__:"folder-snapcraft",__snapshots__:"folder-test",__snippet__:"folder-snippet",__snippets__:"folder-snippet",__song__:"folder-audio",__songs__:"folder-audio",__sound__:"folder-audio",__sounds__:"folder-audio",__source__:"folder-src",__sources__:"folder-src",__spa__:"folder-client",__spec__:"folder-test",__specs__:"folder-test",__spellcheck__:"folder-syntax",__spellcheckers__:"folder-syntax",__sql__:"folder-database","__src-tauri__":"folder-src-tauri",__src__:"folder-src",__srcs__:"folder-src",__ssl__:"folder-secure",__stack__:"folder-stack",__stacks__:"folder-stack",__start__:"folder-home",__static__:"folder-resource",__stencil__:"folder-stencil",__store__:"folder-store",__stores__:"folder-store",__stories__:"folder-storybook",__storybook__:"folder-storybook",__style__:"folder-css",__styles__:"folder-css",__stylesheet__:"folder-css",__stylesheets__:"folder-css",__stylus__:"folder-stylus",__sublime__:"folder-sublime",__submodules__:"folder-git",__supabase__:"folder-supabase","__svelte-kit__":"folder-svelte",__svelte__:"folder-svelte",__svg__:"folder-svg",__svgs__:"folder-svg",__switch__:"folder-console",__syntax__:"folder-syntax",__syntaxes__:"folder-syntax","__table-of-contents__":"folder-toc",__target__:"folder-target",__taskfile__:"folder-taskfile",__taskfiles__:"folder-taskfile",__tasks__:"folder-tasks",__television__:"folder-television",__temp__:"folder-temp",__template__:"folder-template",__templates__:"folder-template",__terraform__:"folder-terraform",__test__:"folder-test",__testfiles__:"folder-test",__testing__:"folder-test",__tests__:"folder-test",__texture__:"folder-images",__textures__:"folder-images",__theme__:"folder-theme",__themes__:"folder-theme","__third-party__":"folder-lib",__thirdparty__:"folder-lib",__tickets__:"folder-tasks",__tls__:"folder-secure",__tmp__:"folder-temp",__toc__:"folder-toc",__token__:"folder-keys",__tokens__:"folder-keys",__toolbox__:"folder-tools",__toolboxes__:"folder-tools",__tooling__:"folder-tools",__toolkit__:"folder-tools",__toolkits__:"folder-tools",__tools__:"folder-tools",__torch__:"folder-pytorch",__transition__:"folder-animation",__transitions__:"folder-animation",__translate__:"folder-i18n",__translation__:"folder-i18n",__translations__:"folder-i18n",__trash__:"folder-trash",__trigger__:"folder-trigger",__triggers__:"folder-trigger",__ts__:"folder-typescript",__turbo__:"folder-turborepo",__tv__:"folder-television",__tx__:"folder-i18n",__typeface__:"folder-font",__typefaces__:"folder-font",__types__:"folder-typescript",__typescript__:"folder-typescript",__typings__:"folder-typescript",__ubuntu__:"folder-linux",__ui__:"folder-ui",__unity__:"folder-unity",__unix__:"folder-linux",__update__:"folder-update",__updates__:"folder-update",__upgrade__:"folder-update",__upgrades__:"folder-update",__upload__:"folder-upload",__uploads__:"folder-upload",__util__:"folder-utils",__utilities__:"folder-utils",__utility__:"folder-utils",__utils__:"folder-utils",__ux__:"folder-ui",__validation__:"folder-rules",__validations__:"folder-rules",__validator__:"folder-rules",__validators__:"folder-rules",__vector__:"folder-svg",__vectors__:"folder-svg",__vendor__:"folder-lib",__vendors__:"folder-lib",__venv__:"folder-environment",__vercel__:"folder-vercel",__verdaccio__:"folder-verdaccio",__vid__:"folder-video",__video__:"folder-video",__videos__:"folder-video",__vids__:"folder-video",__view__:"folder-views",__views__:"folder-views",__vm__:"folder-vm",__vms__:"folder-vm",__voice__:"folder-audio",__voices__:"folder-audio","__vscode-test__":"folder-vscode",__vscode__:"folder-vscode",__vue__:"folder-vue",__vuepress__:"folder-vuepress",__wakatime__:"folder-wakatime",__web__:"folder-public",__webpack__:"folder-webpack",__website__:"folder-public",__websites__:"folder-public",__widget__:"folder-components",__widgets__:"folder-components",__wiki__:"folder-docs",__win10__:"folder-windows",__win11__:"folder-windows",__win32__:"folder-windows",__win__:"folder-windows",__windows10__:"folder-windows",__windows11__:"folder-windows",__windows__:"folder-windows",__windowsnt__:"folder-windows",__windowsxp__:"folder-windows",__winnt__:"folder-windows",__winxp__:"folder-windows","__wordpress-org__":"folder-wordpress","__wp-content__":"folder-wordpress",__wsl__:"folder-linux",__www__:"folder-public",__wwwroot__:"folder-public",__xbox__:"folder-console",__xtask__:"folder-scripts",__yarn__:"folder-yarn",__zeabur__:"folder-zeabur",__zed__:"folder-zed",_addin:"folder-plugin",_addins:"folder-plugin",_addon:"folder-plugin",_addons:"folder-plugin",_admin:"folder-admin",_admins:"folder-admin",_agent:"folder-robot",_agents:"folder-robot",_android:"folder-android",_angular:"folder-angular",_anim:"folder-animation",_animated:"folder-animation",_animation:"folder-animation",_animations:"folder-animation",_anims:"folder-animation",_ansible:"folder-ansible",_api:"folder-api",_apis:"folder-api",_apollo:"folder-apollo","_apollo-cache":"folder-apollo","_apollo-client":"folder-apollo","_apollo-config":"folder-apollo",_app:"folder-app",_apple:"folder-macos",_application:"folder-app",_applications:"folder-app",_apps:"folder-app",_appwrite:"folder-appwrite",_arc:"folder-archive",_archival:"folder-archive",_archive:"folder-archive",_archives:"folder-archive",_arcs:"folder-archive",_article:"folder-docs",_articles:"folder-docs",_asm:"folder-assembly",_assembly:"folder-assembly",_asset:"folder-resource",_assets:"folder-resource",_astro:"folder-astro",_atom:"folder-atom",_atoms:"folder-atom",_attachment:"folder-attachment",_attachments:"folder-attachment",_aud:"folder-audio",_audio:"folder-audio",_audios:"folder-audio",_auds:"folder-audio",_aurelia_project:"folder-aurelia",_auth:"folder-secure",_authentication:"folder-secure",_auto:"folder-generator",_aws:"folder-aws",_azure:"folder-aws","_azure-pipelines":"folder-azure-pipelines","_azure-pipelines-ci":"folder-azure-pipelines","_back-up":"folder-backup","_back-ups":"folder-backup",_backend:"folder-server",_backends:"folder-server",_backup:"folder-backup",_backups:"folder-backup",_bak:"folder-backup",_baks:"folder-backup",_base:"folder-base",_bases:"folder-base",_batch:"folder-batch",_batches:"folder-batch",_batchs:"folder-batch",_bench:"folder-benchmark",_benches:"folder-benchmark",_benchmark:"folder-benchmark",_benchmarks:"folder-benchmark",_bibliographies:"folder-bibliography",_bibliography:"folder-bibliography",_bicep:"folder-bicep",_bin:"folder-dist",_bkp:"folder-backup",_bkps:"folder-backup",_blender:"folder-blender","_blender-assets":"folder-blender","_blender-files":"folder-blender","_blender-models":"folder-blender","_blender-project":"folder-blender",_bloc:"folder-bloc",_blocs:"folder-bloc",_blog:"folder-docs",_book:"folder-bibliography",_books:"folder-bibliography",_bot:"folder-robot",_bots:"folder-robot",_bower_components:"folder-bower",_browser:"folder-public",_browsers:"folder-public",_build:"folder-dist",_buildkite:"folder-buildkite",_builds:"folder-dist",_built:"folder-dist",_bull:"folder-queue",_cache:"folder-temp",_cached:"folder-temp",_calc:"folder-functions",_calcs:"folder-functions",_calculation:"folder-functions",_calculations:"folder-functions",_cargo:"folder-rust",_cart:"folder-cart",_centos:"folder-linux",_cert:"folder-secure",_certificate:"folder-secure",_certificates:"folder-secure",_certs:"folder-secure",_cfg:"folder-config",_cfgs:"folder-config","_cfn-gen":"folder-generator",_changes:"folder-delta",_changeset:"folder-changesets",_changesets:"folder-changesets",_chat:"folder-messages",_chats:"folder-messages",_ci:"folder-ci",_cipher:"folder-secure",_circleci:"folder-circleci",_cjs:"folder-javascript",_class:"folder-class",_classes:"folder-class",_claude:"folder-claude",_cli:"folder-command",_client:"folder-client",_clients:"folder-client",_cline_docs:"folder-cline",_clis:"folder-command","_cloud-firestore":"folder-firestore","_cloud-functions":"folder-cloud-functions",_cloudflare:"folder-cloudflare",_cloudfunctions:"folder-cloud-functions",_cluster:"folder-cluster",_clusters:"folder-cluster",_cmd:"folder-command",_cobol:"folder-cobol",_code:"folder-src",_color:"folder-theme",_colors:"folder-theme",_colour:"folder-theme",_colours:"folder-theme",_command:"folder-command",_commandline:"folder-command",_commands:"folder-command",_common:"folder-shared",_compiled:"folder-dist",_components:"folder-components",_composable:"folder-functions",_composables:"folder-functions",_concept:"folder-mock",_concepts:"folder-mock",_conf:"folder-config",_config:"folder-config",_configs:"folder-config",_configuration:"folder-config",_configurations:"folder-config",_confs:"folder-config",_connection:"folder-connection",_connections:"folder-connection",_console:"folder-console",_const:"folder-constant",_constant:"folder-constant",_constants:"folder-constant",_consts:"folder-constant",_container:"folder-container",_containers:"folder-container",_content:"folder-content",_contents:"folder-content",_context:"folder-context",_contexts:"folder-context",_contract:"folder-contract","_contract-test":"folder-contract","_contract-testing":"folder-contract","_contract-tests":"folder-contract",_contracts:"folder-contract",_controller:"folder-controller",_controllers:"folder-controller",_controls:"folder-controller",_conversation:"folder-messages",_conversations:"folder-messages",_core:"folder-core",_coverage:"folder-coverage",_crash:"folder-error",_crashes:"folder-error",_crates:"folder-lib",_css:"folder-css",_cts:"folder-typescript",_cubit:"folder-bloc",_cubits:"folder-bloc",_cue:"folder-cue",_cues:"folder-cue",_cursor:"folder-cursor",_custom:"folder-custom",_customs:"folder-custom",_cypher:"folder-secure",_cypress:"folder-cypress",_dal:"folder-dal",_dart:"folder-dart",_dart_tool:"folder-dart",_dart_tools:"folder-dart",_data:"folder-database","_data-access":"folder-dal","_data-access-layer":"folder-dal",_database:"folder-database",_databases:"folder-database",_db:"folder-database",_deb:"folder-linux",_debian:"folder-linux",_debug:"folder-debug",_debugger:"folder-debug",_debugging:"folder-debug",_decorator:"folder-decorators",_decorators:"folder-decorators",_deepin:"folder-linux",_delta:"folder-delta",_deltas:"folder-delta",_demo:"folder-examples",_demos:"folder-examples",_dependencies:"folder-packages",_design:"folder-theme",_designs:"folder-theme",_desktop:"folder-desktop",_devcontainer:"folder-container",_devpackages:"folder-packages",_devtools:"folder-tools",_dialog:"folder-messages",_dialogs:"folder-messages",_diary:"folder-docs",_directive:"folder-directive",_directives:"folder-directive",_display:"folder-desktop",_dist:"folder-dist",_distribution:"folder-dist",_doc:"folder-docs",_docker:"folder-docker",_dockerfiles:"folder-docker",_dockerhub:"folder-docker",_docs:"folder-docs",_document:"folder-docs",_documentation:"folder-docs",_documents:"folder-docs",_download:"folder-download",_downloader:"folder-download",_downloaders:"folder-download",_downloads:"folder-download",_draft:"folder-mock",_drafts:"folder-mock",_drizzle:"folder-drizzle",_ds_store:"folder-macos",_dump:"folder-dump",_dumps:"folder-dump",_e2e:"folder-coverage",_easing:"folder-animation",_easings:"folder-animation",_element:"folder-element",_elements:"folder-element",_email:"folder-mail",_emails:"folder-mail",_enum:"folder-enum",_enums:"folder-enum",_env:"folder-environment",_environment:"folder-environment",_environments:"folder-environment",_envs:"folder-environment",_err:"folder-error",_error:"folder-error",_errors:"folder-error",_errs:"folder-error",_eslint:"folder-eslint","_eslint-config":"folder-eslint","_eslint-configs":"folder-eslint","_eslint-plugin":"folder-eslint","_eslint-plugins":"folder-eslint",_etc:"folder-other",_event:"folder-event",_events:"folder-event",_example:"folder-examples",_examples:"folder-examples",_expo:"folder-expo","_expo-shared":"folder-expo",_export:"folder-export",_exported:"folder-export",_exports:"folder-export",_extension:"folder-plugin",_extensions:"folder-plugin",_external:"folder-lib",_externals:"folder-lib",_extra:"folder-other",_extras:"folder-other",_fastlane:"folder-fastlane",_favicon:"folder-favicon",_favicons:"folder-favicon",_feat:"folder-features",_feats:"folder-features",_feature:"folder-features",_features:"folder-features",_fig:"folder-images",_figs:"folder-images",_figure:"folder-images",_figures:"folder-images",_filter:"folder-filter",_filters:"folder-filter",_firebase:"folder-firebase","_firebase-cloud-functions":"folder-cloud-functions","_firebase-cloudfunctions":"folder-cloud-functions","_firebase-firestore":"folder-firestore",_firestore:"folder-firestore",_fixture:"folder-mock",_fixtures:"folder-mock","_flow-typed":"folder-flow",_flutter:"folder-flutter",_font:"folder-font",_fonts:"folder-font",_forgejo:"folder-forgejo",_form:"folder-form",_forms:"folder-form",_forum:"folder-messages",_fragments:"folder-components",_frontend:"folder-client",_frontends:"folder-client",_func:"folder-functions",_funcs:"folder-functions",_function:"folder-functions",_functions:"folder-functions",_game:"folder-console",_gamemaker:"folder-gamemaker",_gamemaker2:"folder-gamemaker",_games:"folder-console",_gcp:"folder-aws",_gemini:"folder-gemini-ai","_gemini-ai":"folder-gemini-ai",_geminiai:"folder-gemini-ai",_gen:"folder-generator",_generated:"folder-generator",_generator:"folder-generator",_generators:"folder-generator",_gens:"folder-generator",_git:"folder-git",_gitea:"folder-gitea",_githooks:"folder-git",_github:"folder-github","_github/issue_template":"folder-template","_github/pull_request_template":"folder-template","_github/workflows":"folder-gh-workflows",_gitlab:"folder-gitlab",_global:"folder-global",_glsl:"folder-shader",_go:"folder-go",_godot:"folder-godot","_godot-cpp":"folder-godot",_golang:"folder-go",_gql:"folder-graphql",_gradle:"folder-gradle",_graphql:"folder-graphql",_guard:"folder-guard",_guards:"folder-guard",_gui:"folder-ui",_gulp:"folder-gulp","_gulp-tasks":"folder-gulp","_gulpfile.babel.js":"folder-gulp","_gulpfile.js":"folder-gulp","_gulpfile.mjs":"folder-gulp","_gulpfile.ts":"folder-gulp",_gulpfiles:"folder-gulp",_handler:"folder-controller",_handlers:"folder-controller",_helm:"folder-helm",_helmchart:"folder-helm",_helmcharts:"folder-helm",_helper:"folder-helper",_helpers:"folder-helper",_hg:"folder-mercurial",_hgext:"folder-mercurial",_hghooks:"folder-mercurial",_histories:"folder-backup",_history:"folder-backup",_hlsl:"folder-shader",_home:"folder-home",_hook:"folder-hook",_hooks:"folder-hook",_html:"folder-views",_husky:"folder-husky",_i18n:"folder-i18n",_ico:"folder-images",_icon:"folder-images",_icons:"folder-images",_icos:"folder-images",_idea:"folder-intellij",_image:"folder-images",_images:"folder-images",_img:"folder-images",_imgs:"folder-images",_import:"folder-import",_imported:"folder-import",_imports:"folder-import",_in:"folder-input",_inc:"folder-include",_inc64:"folder-include",_include:"folder-include",_includes:"folder-include",_infra:"folder-server",_infrastructure:"folder-server",_input:"folder-input",_inputs:"folder-input",_integration:"folder-connection","_integration-test":"folder-coverage","_integration-tests":"folder-coverage",_integrations:"folder-connection",_interceptor:"folder-interceptor",_interceptors:"folder-interceptor",_interface:"folder-interface",_interfaces:"folder-interface",_internationalization:"folder-i18n",_inventories:"folder-server",_inventory:"folder-server",_io:"folder-input",_ios:"folder-ios",_ipad:"folder-macos",_iphone:"folder-macos",_ipod:"folder-macos",_ipynb:"folder-jupyter",_it:"folder-coverage",_j2:"folder-jinja",_java:"folder-java",_javascript:"folder-javascript",_javascripts:"folder-javascript",_jinja:"folder-jinja",_jinja2:"folder-jinja",_job:"folder-job",_jobs:"folder-job",_js:"folder-javascript",_json:"folder-json",_jsonc:"folder-json",_jsonl:"folder-json",_jsons:"folder-json",_jupyter:"folder-jupyter",_jwt:"folder-keys",_k8s:"folder-kubernetes",_key:"folder-keys",_keys:"folder-keys",_kit:"folder-tools",_kits:"folder-tools",_knowledge:"folder-docs",_kotlin:"folder-kotlin",_kql:"folder-kusto",_kubernetes:"folder-kubernetes",_kusto:"folder-kusto",_l10n:"folder-i18n",_lambda:"folder-functions",_lambdas:"folder-functions",_landing:"folder-home",_lang:"folder-i18n",_langs:"folder-i18n",_language:"folder-i18n",_languages:"folder-i18n",_layout:"folder-layout",_layouts:"folder-layout",_lefthook:"folder-lefthook","_lefthook-local":"folder-lefthook",_less:"folder-less",_lib:"folder-lib",_lib64:"folder-lib",_libraries:"folder-lib",_library:"folder-lib",_libs:"folder-lib",_license:"folder-license",_licenses:"folder-license",_link:"folder-link",_links:"folder-link",_linux:"folder-linux",_linuxbsd:"folder-linux",_liquibase:"folder-liquibase",_locale:"folder-i18n",_locales:"folder-i18n",_localization:"folder-i18n",_log:"folder-log",_logging:"folder-log",_logic:"folder-functions",_logs:"folder-log",_lottie:"folder-lottie",_lottiefiles:"folder-lottie",_lotties:"folder-lottie",_lua:"folder-lua",_luau:"folder-luau",_mac:"folder-macos",_macbook:"folder-macos","_macbook-air":"folder-macos",_macos:"folder-macos",_macosx:"folder-macos",_mail:"folder-mail",_mailers:"folder-mail",_mails:"folder-mail",_main:"folder-home",_manager:"folder-admin",_managers:"folder-admin",_mapping:"folder-mappings",_mappings:"folder-mappings",_markdown:"folder-markdown",_math:"folder-functions",_maths:"folder-functions",_md:"folder-markdown",_measure:"folder-benchmark",_measurement:"folder-benchmark",_measures:"folder-benchmark",_media:"folder-video",_messages:"folder-messages",_messaging:"folder-messages",_meta:"folder-meta","_meta-inf":"folder-config",_metadata:"folder-meta",_metro:"folder-metro",_middleware:"folder-middleware",_middlewares:"folder-middleware",_migration:"folder-migrations",_migrations:"folder-migrations",_mint:"folder-linux",_misc:"folder-other",_miscellaneous:"folder-other",_mjml:"folder-mjml",_mjs:"folder-javascript",_mobile:"folder-mobile",_mobiles:"folder-mobile",_mock:"folder-mock",_mocks:"folder-mock",_mod:"folder-plugin",_modding:"folder-plugin",_model:"folder-class",_models:"folder-class",_moderator:"folder-admin",_moderators:"folder-admin",_mods:"folder-plugin",_module:"folder-plugin",_modules:"folder-plugin",_mojo:"folder-mojo",_molecule:"folder-molecule",_molecules:"folder-molecule",_moon:"folder-moon",_motion:"folder-animation",_motions:"folder-animation",_movie:"folder-video",_movies:"folder-video",_mq:"folder-queue",_mts:"folder-typescript",_music:"folder-audio",_navigation:"folder-routes",_navigations:"folder-routes",_netlify:"folder-netlify",_news:"folder-docs",_next:"folder-next",_nginx:"folder-nginx",_node:"folder-node",_node_modules:"folder-node",_nodejs:"folder-node",_note:"folder-docs",_notebook:"folder-jupyter",_notebooks:"folder-jupyter",_notes:"folder-docs",_now:"folder-vercel",_nuxt:"folder-nuxt","_nyc-output":"folder-coverage",_nyc_output:"folder-coverage",_obsidian:"folder-obsidian",_opencode:"folder-opencode",_option:"folder-config",_options:"folder-config",_organism:"folder-organism",_organisms:"folder-organism",_osx:"folder-macos",_other:"folder-other",_others:"folder-other",_out:"folder-dist",_output:"folder-dist",_outputs:"folder-dist",_package:"folder-packages",_packages:"folder-packages",_pact:"folder-contract",_pacts:"folder-contract",_page:"folder-views",_pages:"folder-views",_palette:"folder-theme",_palettes:"folder-theme",_partial:"folder-include",_partials:"folder-include",_patches:"folder-git",_pdf:"folder-pdf",_pdfs:"folder-pdf","_pdm-build":"folder-pdm","_pdm-plugins":"folder-pdm",_perf:"folder-benchmark",_performance:"folder-benchmark",_phone:"folder-mobile",_phones:"folder-mobile",_photo:"folder-images",_photograph:"folder-images",_photographs:"folder-images",_photos:"folder-images",_php:"folder-php",_phpmailer:"folder-phpmailer",_pic:"folder-images",_pics:"folder-images",_picture:"folder-images",_pictures:"folder-images",_pipe:"folder-pipe",_pipeline:"folder-pipe",_pipelines:"folder-pipe",_pipes:"folder-pipe",_pkg:"folder-packages",_pkgs:"folder-packages",_plastic:"folder-plastic",_playground:"folder-sandbox",_playgrounds:"folder-sandbox",_playlist:"folder-audio",_playlists:"folder-audio",_plugin:"folder-plugin",_plugins:"folder-plugin",_policies:"folder-policy",_policy:"folder-policy",_popos:"folder-linux",_portability:"folder-mobile",_portable:"folder-mobile",_post:"folder-docs",_postman:"folder-postman",_posts:"folder-docs",_powershell:"folder-powershell",_pref:"folder-config",_preference:"folder-config",_preferences:"folder-config",_prefs:"folder-config",_presentation:"folder-ui",_preview:"folder-review",_previews:"folder-review",_prisma:"folder-prisma","_prisma/schema":"folder-prisma",_private:"folder-private",_profiling:"folder-benchmark",_proj:"folder-project",_project:"folder-project",_projects:"folder-project",_projs:"folder-project",_prompt:"folder-prompts",_prompts:"folder-prompts",_properties:"folder-config",_props:"folder-config",_proto:"folder-proto",_protobuf:"folder-proto",_protobufs:"folder-proto",_protos:"folder-proto",_provider:"folder-controller",_providers:"folder-controller",_proxy:"folder-public",_ps:"folder-powershell",_ps1:"folder-powershell",_ps4:"folder-console",_ps5:"folder-console",_public:"folder-public",_public_html:"folder-views",_pwa:"folder-client",_pycache:"folder-python",_pytest_cache:"folder-python",_python:"folder-python",_pytorch:"folder-pytorch",_quasar:"folder-quasar",_queue:"folder-queue",_queues:"folder-queue",_r:"folder-r",_recordings:"folder-audio",_release:"folder-dist",_remote:"folder-connection",_remotes:"folder-connection",_repo:"folder-repository",_report:"folder-resource",_reports:"folder-resource",_repos:"folder-repository",_repositories:"folder-repository",_repository:"folder-repository",_res:"folder-resource",_resolver:"folder-resolver",_resolvers:"folder-resolver",_resource:"folder-resource",_resources:"folder-resource",_restapi:"folder-api",_review:"folder-review",_reviewed:"folder-review",_reviews:"folder-review",_revisal:"folder-review",_revisals:"folder-review",_robot:"folder-robot",_robots:"folder-robot",_router:"folder-routes",_routers:"folder-routes",_routes:"folder-routes",_routing:"folder-routes",_rule:"folder-rules",_rules:"folder-rules",_rust:"folder-rust",_salt:"folder-salt",_saltstack:"folder-salt",_sample:"folder-examples","_sample-data":"folder-examples",_samples:"folder-examples",_sandbox:"folder-sandbox",_sandboxes:"folder-sandbox",_sass:"folder-sass",_scala:"folder-scala",_schema:"folder-class",_schemas:"folder-class",_sconf_temp:"folder-scons",_scons:"folder-scons",_scons_cache:"folder-scons",_screen:"folder-views",_screengrab:"folder-images",_screengrabs:"folder-images",_screens:"folder-views",_screenshot:"folder-images",_screenshots:"folder-images",_script:"folder-scripts",_scripting:"folder-scripts",_scripts:"folder-scripts",_scss:"folder-sass",_secret:"folder-keys",_secrets:"folder-keys",_secure:"folder-secure",_security:"folder-secure",_seed:"folder-seeders",_seeders:"folder-seeders",_seeding:"folder-seeders",_seeds:"folder-seeders",_server:"folder-server",_serverless:"folder-serverless",_serverpackages:"folder-packages",_servers:"folder-server",_service:"folder-controller",_services:"folder-controller",_setting:"folder-config",_settings:"folder-config",_shader:"folder-shader",_shaders:"folder-shader",_shared:"folder-shared",_shop:"folder-cart",_shopping:"folder-cart","_shopping-cart":"folder-cart",_sim:"folder-simulations",_sims:"folder-simulations",_simulation:"folder-simulations",_simulations:"folder-simulations",_site:"folder-public",_sketch:"folder-mock",_sketches:"folder-mock",_skill:"folder-skills",_skills:"folder-skills",_smtp:"folder-mail",_snap:"folder-snapcraft",_snapcraft:"folder-snapcraft",_snapshots:"folder-test",_snippet:"folder-snippet",_snippets:"folder-snippet",_song:"folder-audio",_songs:"folder-audio",_sound:"folder-audio",_sounds:"folder-audio",_source:"folder-src",_sources:"folder-src",_spa:"folder-client",_spec:"folder-test",_specs:"folder-test",_spellcheck:"folder-syntax",_spellcheckers:"folder-syntax",_sql:"folder-database",_src:"folder-src","_src-tauri":"folder-src-tauri",_srcs:"folder-src",_ssl:"folder-secure",_stack:"folder-stack",_stacks:"folder-stack",_start:"folder-home",_static:"folder-resource",_stencil:"folder-stencil",_store:"folder-store",_stores:"folder-store",_stories:"folder-storybook",_storybook:"folder-storybook",_style:"folder-css",_styles:"folder-css",_stylesheet:"folder-css",_stylesheets:"folder-css",_stylus:"folder-stylus",_sublime:"folder-sublime",_submodules:"folder-git",_supabase:"folder-supabase",_svelte:"folder-svelte","_svelte-kit":"folder-svelte",_svg:"folder-svg",_svgs:"folder-svg",_switch:"folder-console",_syntax:"folder-syntax",_syntaxes:"folder-syntax","_table-of-contents":"folder-toc",_target:"folder-target",_taskfile:"folder-taskfile",_taskfiles:"folder-taskfile",_tasks:"folder-tasks",_television:"folder-television",_temp:"folder-temp",_template:"folder-template",_templates:"folder-template",_terraform:"folder-terraform",_test:"folder-test",_testfiles:"folder-test",_testing:"folder-test",_tests:"folder-test",_texture:"folder-images",_textures:"folder-images",_theme:"folder-theme",_themes:"folder-theme","_third-party":"folder-lib",_thirdparty:"folder-lib",_tickets:"folder-tasks",_tls:"folder-secure",_tmp:"folder-temp",_toc:"folder-toc",_token:"folder-keys",_tokens:"folder-keys",_toolbox:"folder-tools",_toolboxes:"folder-tools",_tooling:"folder-tools",_toolkit:"folder-tools",_toolkits:"folder-tools",_tools:"folder-tools",_torch:"folder-pytorch",_transition:"folder-animation",_transitions:"folder-animation",_translate:"folder-i18n",_translation:"folder-i18n",_translations:"folder-i18n",_trash:"folder-trash",_trigger:"folder-trigger",_triggers:"folder-trigger",_ts:"folder-typescript",_turbo:"folder-turborepo",_tv:"folder-television",_tx:"folder-i18n",_typeface:"folder-font",_typefaces:"folder-font",_types:"folder-typescript",_typescript:"folder-typescript",_typings:"folder-typescript",_ubuntu:"folder-linux",_ui:"folder-ui",_unity:"folder-unity",_unix:"folder-linux",_update:"folder-update",_updates:"folder-update",_upgrade:"folder-update",_upgrades:"folder-update",_upload:"folder-upload",_uploads:"folder-upload",_util:"folder-utils",_utilities:"folder-utils",_utility:"folder-utils",_utils:"folder-utils",_ux:"folder-ui",_validation:"folder-rules",_validations:"folder-rules",_validator:"folder-rules",_validators:"folder-rules",_vector:"folder-svg",_vectors:"folder-svg",_vendor:"folder-lib",_vendors:"folder-lib",_venv:"folder-environment",_vercel:"folder-vercel",_verdaccio:"folder-verdaccio",_vid:"folder-video",_video:"folder-video",_videos:"folder-video",_vids:"folder-video",_view:"folder-views",_views:"folder-views",_vm:"folder-vm",_vms:"folder-vm",_voice:"folder-audio",_voices:"folder-audio",_vscode:"folder-vscode","_vscode-test":"folder-vscode",_vue:"folder-vue",_vuepress:"folder-vuepress",_wakatime:"folder-wakatime",_web:"folder-public",_webpack:"folder-webpack",_website:"folder-public",_websites:"folder-public",_widget:"folder-components",_widgets:"folder-components",_wiki:"folder-docs",_win:"folder-windows",_win10:"folder-windows",_win11:"folder-windows",_win32:"folder-windows",_windows:"folder-windows",_windows10:"folder-windows",_windows11:"folder-windows",_windowsnt:"folder-windows",_windowsxp:"folder-windows",_winnt:"folder-windows",_winxp:"folder-windows","_wordpress-org":"folder-wordpress","_wp-content":"folder-wordpress",_wsl:"folder-linux",_www:"folder-public",_wwwroot:"folder-public",_xbox:"folder-console",_xtask:"folder-scripts",_yarn:"folder-yarn",_zeabur:"folder-zeabur",_zed:"folder-zed",addin:"folder-plugin",addins:"folder-plugin",addon:"folder-plugin",addons:"folder-plugin",admin:"folder-admin",admins:"folder-admin",agent:"folder-robot",agents:"folder-robot",android:"folder-android",angular:"folder-angular",anim:"folder-animation",animated:"folder-animation",animation:"folder-animation",animations:"folder-animation",anims:"folder-animation",ansible:"folder-ansible",api:"folder-api",apis:"folder-api",apollo:"folder-apollo","apollo-cache":"folder-apollo","apollo-client":"folder-apollo","apollo-config":"folder-apollo",app:"folder-app",apple:"folder-macos",application:"folder-app",applications:"folder-app",apps:"folder-app",appwrite:"folder-appwrite",arc:"folder-archive",archival:"folder-archive",archive:"folder-archive",archives:"folder-archive",arcs:"folder-archive",article:"folder-docs",articles:"folder-docs",asm:"folder-assembly",assembly:"folder-assembly",asset:"folder-resource",assets:"folder-resource",astro:"folder-astro",atom:"folder-atom",atoms:"folder-atom",attachment:"folder-attachment",attachments:"folder-attachment",aud:"folder-audio",audio:"folder-audio",audios:"folder-audio",auds:"folder-audio",aurelia_project:"folder-aurelia",auth:"folder-secure",authentication:"folder-secure",auto:"folder-generator",aws:"folder-aws",azure:"folder-aws","azure-pipelines":"folder-azure-pipelines","azure-pipelines-ci":"folder-azure-pipelines","back-up":"folder-backup","back-ups":"folder-backup",backend:"folder-server",backends:"folder-server",backup:"folder-backup",backups:"folder-backup",bak:"folder-backup",baks:"folder-backup",base:"folder-base",bases:"folder-base",batch:"folder-batch",batches:"folder-batch",batchs:"folder-batch",bench:"folder-benchmark",benches:"folder-benchmark",benchmark:"folder-benchmark",benchmarks:"folder-benchmark",bibliographies:"folder-bibliography",bibliography:"folder-bibliography",bicep:"folder-bicep",bin:"folder-dist",bkp:"folder-backup",bkps:"folder-backup",blender:"folder-blender","blender-assets":"folder-blender","blender-files":"folder-blender","blender-models":"folder-blender","blender-project":"folder-blender",bloc:"folder-bloc",blocs:"folder-bloc",blog:"folder-docs",book:"folder-bibliography",books:"folder-bibliography",bot:"folder-robot",bots:"folder-robot",bower_components:"folder-bower",browser:"folder-public",browsers:"folder-public",build:"folder-dist",buildkite:"folder-buildkite",builds:"folder-dist",built:"folder-dist",bull:"folder-queue",cache:"folder-temp",cached:"folder-temp",calc:"folder-functions",calcs:"folder-functions",calculation:"folder-functions",calculations:"folder-functions",cargo:"folder-rust",cart:"folder-cart",centos:"folder-linux",cert:"folder-secure",certificate:"folder-secure",certificates:"folder-secure",certs:"folder-secure",cfg:"folder-config",cfgs:"folder-config","cfn-gen":"folder-generator",changes:"folder-delta",changeset:"folder-changesets",changesets:"folder-changesets",chat:"folder-messages",chats:"folder-messages",ci:"folder-ci",cipher:"folder-secure",circleci:"folder-circleci",cjs:"folder-javascript",class:"folder-class",classes:"folder-class",claude:"folder-claude",cli:"folder-command",client:"folder-client",clients:"folder-client",cline_docs:"folder-cline",clis:"folder-command","cloud-firestore":"folder-firestore","cloud-functions":"folder-cloud-functions",cloudflare:"folder-cloudflare",cloudfunctions:"folder-cloud-functions",cluster:"folder-cluster",clusters:"folder-cluster",cmd:"folder-command",cobol:"folder-cobol",code:"folder-src",color:"folder-theme",colors:"folder-theme",colour:"folder-theme",colours:"folder-theme",command:"folder-command",commandline:"folder-command",commands:"folder-command",common:"folder-shared",compiled:"folder-dist",components:"folder-components",composable:"folder-functions",composables:"folder-functions",concept:"folder-mock",concepts:"folder-mock",conf:"folder-config",config:"folder-config",configs:"folder-config",configuration:"folder-config",configurations:"folder-config",confs:"folder-config",connection:"folder-connection",connections:"folder-connection",console:"folder-console",const:"folder-constant",constant:"folder-constant",constants:"folder-constant",consts:"folder-constant",container:"folder-container",containers:"folder-container",content:"folder-content",contents:"folder-content",context:"folder-context",contexts:"folder-context",contract:"folder-contract","contract-test":"folder-contract","contract-testing":"folder-contract","contract-tests":"folder-contract",contracts:"folder-contract",controller:"folder-controller",controllers:"folder-controller",controls:"folder-controller",conversation:"folder-messages",conversations:"folder-messages",core:"folder-core",coverage:"folder-coverage",crash:"folder-error",crashes:"folder-error",crates:"folder-lib",css:"folder-css",cts:"folder-typescript",cubit:"folder-bloc",cubits:"folder-bloc",cue:"folder-cue",cues:"folder-cue",cursor:"folder-cursor",custom:"folder-custom",customs:"folder-custom",cypher:"folder-secure",cypress:"folder-cypress",dal:"folder-dal",dart:"folder-dart",dart_tool:"folder-dart",dart_tools:"folder-dart",data:"folder-database","data-access":"folder-dal","data-access-layer":"folder-dal",database:"folder-database",databases:"folder-database",db:"folder-database",deb:"folder-linux",debian:"folder-linux",debug:"folder-debug",debugger:"folder-debug",debugging:"folder-debug",decorator:"folder-decorators",decorators:"folder-decorators",deepin:"folder-linux",delta:"folder-delta",deltas:"folder-delta",demo:"folder-examples",demos:"folder-examples",dependencies:"folder-packages",design:"folder-theme",designs:"folder-theme",desktop:"folder-desktop",devcontainer:"folder-container",devpackages:"folder-packages",devtools:"folder-tools",dialog:"folder-messages",dialogs:"folder-messages",diary:"folder-docs",directive:"folder-directive",directives:"folder-directive",display:"folder-desktop",dist:"folder-dist",distribution:"folder-dist",doc:"folder-docs",docker:"folder-docker",dockerfiles:"folder-docker",dockerhub:"folder-docker",docs:"folder-docs",document:"folder-docs",documentation:"folder-docs",documents:"folder-docs",download:"folder-download",downloader:"folder-download",downloaders:"folder-download",downloads:"folder-download",draft:"folder-mock",drafts:"folder-mock",drizzle:"folder-drizzle",ds_store:"folder-macos",dump:"folder-dump",dumps:"folder-dump",e2e:"folder-coverage",easing:"folder-animation",easings:"folder-animation",element:"folder-element",elements:"folder-element",email:"folder-mail",emails:"folder-mail",enum:"folder-enum",enums:"folder-enum",env:"folder-environment",environment:"folder-environment",environments:"folder-environment",envs:"folder-environment",err:"folder-error",error:"folder-error",errors:"folder-error",errs:"folder-error",eslint:"folder-eslint","eslint-config":"folder-eslint","eslint-configs":"folder-eslint","eslint-plugin":"folder-eslint","eslint-plugins":"folder-eslint",etc:"folder-other",event:"folder-event",events:"folder-event",example:"folder-examples",examples:"folder-examples",expo:"folder-expo","expo-shared":"folder-expo",export:"folder-export",exported:"folder-export",exports:"folder-export",extension:"folder-plugin",extensions:"folder-plugin",external:"folder-lib",externals:"folder-lib",extra:"folder-other",extras:"folder-other",fastlane:"folder-fastlane",favicon:"folder-favicon",favicons:"folder-favicon",feat:"folder-features",feats:"folder-features",feature:"folder-features",features:"folder-features",fig:"folder-images",figs:"folder-images",figure:"folder-images",figures:"folder-images",filter:"folder-filter",filters:"folder-filter",firebase:"folder-firebase","firebase-cloud-functions":"folder-cloud-functions","firebase-cloudfunctions":"folder-cloud-functions","firebase-firestore":"folder-firestore",firestore:"folder-firestore",fixture:"folder-mock",fixtures:"folder-mock","flow-typed":"folder-flow",flutter:"folder-flutter",font:"folder-font",fonts:"folder-font",forgejo:"folder-forgejo",form:"folder-form",forms:"folder-form",forum:"folder-messages",fragments:"folder-components",frontend:"folder-client",frontends:"folder-client",func:"folder-functions",funcs:"folder-functions",function:"folder-functions",functions:"folder-functions",game:"folder-console",gamemaker:"folder-gamemaker",gamemaker2:"folder-gamemaker",games:"folder-console",gcp:"folder-aws",gemini:"folder-gemini-ai","gemini-ai":"folder-gemini-ai",geminiai:"folder-gemini-ai",gen:"folder-generator",generated:"folder-generator",generator:"folder-generator",generators:"folder-generator",gens:"folder-generator",git:"folder-git",gitea:"folder-gitea",githooks:"folder-git",github:"folder-github","github/issue_template":"folder-template","github/pull_request_template":"folder-template","github/workflows":"folder-gh-workflows",gitlab:"folder-gitlab",global:"folder-global",glsl:"folder-shader",go:"folder-go",godot:"folder-godot","godot-cpp":"folder-godot",golang:"folder-go",gql:"folder-graphql",gradle:"folder-gradle",graphql:"folder-graphql",guard:"folder-guard",guards:"folder-guard",gui:"folder-ui",gulp:"folder-gulp","gulp-tasks":"folder-gulp","gulpfile.babel.js":"folder-gulp","gulpfile.js":"folder-gulp","gulpfile.mjs":"folder-gulp","gulpfile.ts":"folder-gulp",gulpfiles:"folder-gulp",handler:"folder-controller",handlers:"folder-controller",helm:"folder-helm",helmchart:"folder-helm",helmcharts:"folder-helm",helper:"folder-helper",helpers:"folder-helper",hg:"folder-mercurial",hgext:"folder-mercurial",hghooks:"folder-mercurial",histories:"folder-backup",history:"folder-backup",hlsl:"folder-shader",home:"folder-home",hook:"folder-hook",hooks:"folder-hook",html:"folder-views",husky:"folder-husky",i18n:"folder-i18n",ico:"folder-images",icon:"folder-images",icons:"folder-images",icos:"folder-images",idea:"folder-intellij",image:"folder-images",images:"folder-images",img:"folder-images",imgs:"folder-images",import:"folder-import",imported:"folder-import",imports:"folder-import",in:"folder-input",inc:"folder-include",inc64:"folder-include",include:"folder-include",includes:"folder-include",infra:"folder-server",infrastructure:"folder-server",input:"folder-input",inputs:"folder-input",integration:"folder-connection","integration-test":"folder-coverage","integration-tests":"folder-coverage",integrations:"folder-connection",interceptor:"folder-interceptor",interceptors:"folder-interceptor",interface:"folder-interface",interfaces:"folder-interface",internationalization:"folder-i18n",inventories:"folder-server",inventory:"folder-server",io:"folder-input",ios:"folder-ios",ipad:"folder-macos",iphone:"folder-macos",ipod:"folder-macos",ipynb:"folder-jupyter",it:"folder-coverage",j2:"folder-jinja",java:"folder-java",javascript:"folder-javascript",javascripts:"folder-javascript",jinja:"folder-jinja",jinja2:"folder-jinja",job:"folder-job",jobs:"folder-job",js:"folder-javascript",json:"folder-json",jsonc:"folder-json",jsonl:"folder-json",jsons:"folder-json",jupyter:"folder-jupyter",jwt:"folder-keys",k8s:"folder-kubernetes",key:"folder-keys",keys:"folder-keys",kit:"folder-tools",kits:"folder-tools",knowledge:"folder-docs",kotlin:"folder-kotlin",kql:"folder-kusto",kubernetes:"folder-kubernetes",kusto:"folder-kusto",l10n:"folder-i18n",lambda:"folder-functions",lambdas:"folder-functions",landing:"folder-home",lang:"folder-i18n",langs:"folder-i18n",language:"folder-i18n",languages:"folder-i18n",layout:"folder-layout",layouts:"folder-layout",lefthook:"folder-lefthook","lefthook-local":"folder-lefthook",less:"folder-less",lib:"folder-lib",lib64:"folder-lib",libraries:"folder-lib",library:"folder-lib",libs:"folder-lib",license:"folder-license",licenses:"folder-license",link:"folder-link",links:"folder-link",linux:"folder-linux",linuxbsd:"folder-linux",liquibase:"folder-liquibase",locale:"folder-i18n",locales:"folder-i18n",localization:"folder-i18n",log:"folder-log",logging:"folder-log",logic:"folder-functions",logs:"folder-log",lottie:"folder-lottie",lottiefiles:"folder-lottie",lotties:"folder-lottie",lua:"folder-lua",luau:"folder-luau",mac:"folder-macos",macbook:"folder-macos","macbook-air":"folder-macos",macos:"folder-macos",macosx:"folder-macos",mail:"folder-mail",mailers:"folder-mail",mails:"folder-mail",main:"folder-home",manager:"folder-admin",managers:"folder-admin",mapping:"folder-mappings",mappings:"folder-mappings",markdown:"folder-markdown",math:"folder-functions",maths:"folder-functions",md:"folder-markdown",measure:"folder-benchmark",measurement:"folder-benchmark",measures:"folder-benchmark",media:"folder-video",messages:"folder-messages",messaging:"folder-messages",meta:"folder-meta","meta-inf":"folder-config",metadata:"folder-meta",metro:"folder-metro",middleware:"folder-middleware",middlewares:"folder-middleware",migration:"folder-migrations",migrations:"folder-migrations",mint:"folder-linux",misc:"folder-other",miscellaneous:"folder-other",mjml:"folder-mjml",mjs:"folder-javascript",mobile:"folder-mobile",mobiles:"folder-mobile",mock:"folder-mock",mocks:"folder-mock",mod:"folder-plugin",modding:"folder-plugin",model:"folder-class",models:"folder-class",moderator:"folder-admin",moderators:"folder-admin",mods:"folder-plugin",module:"folder-plugin",modules:"folder-plugin",mojo:"folder-mojo",molecule:"folder-molecule",molecules:"folder-molecule",moon:"folder-moon",motion:"folder-animation",motions:"folder-animation",movie:"folder-video",movies:"folder-video",mq:"folder-queue",mts:"folder-typescript",music:"folder-audio",navigation:"folder-routes",navigations:"folder-routes",netlify:"folder-netlify",news:"folder-docs",next:"folder-next",nginx:"folder-nginx",node:"folder-node",node_modules:"folder-node",nodejs:"folder-node",note:"folder-docs",notebook:"folder-jupyter",notebooks:"folder-jupyter",notes:"folder-docs",now:"folder-vercel",nuxt:"folder-nuxt","nyc-output":"folder-coverage",nyc_output:"folder-coverage",obsidian:"folder-obsidian",opencode:"folder-opencode",option:"folder-config",options:"folder-config",organism:"folder-organism",organisms:"folder-organism",osx:"folder-macos",other:"folder-other",others:"folder-other",out:"folder-dist",output:"folder-dist",outputs:"folder-dist",package:"folder-packages",packages:"folder-packages",pact:"folder-contract",pacts:"folder-contract",page:"folder-views",pages:"folder-views",palette:"folder-theme",palettes:"folder-theme",partial:"folder-include",partials:"folder-include",patches:"folder-git",pdf:"folder-pdf",pdfs:"folder-pdf","pdm-build":"folder-pdm","pdm-plugins":"folder-pdm",perf:"folder-benchmark",performance:"folder-benchmark",phone:"folder-mobile",phones:"folder-mobile",photo:"folder-images",photograph:"folder-images",photographs:"folder-images",photos:"folder-images",php:"folder-php",phpmailer:"folder-phpmailer",pic:"folder-images",pics:"folder-images",picture:"folder-images",pictures:"folder-images",pipe:"folder-pipe",pipeline:"folder-pipe",pipelines:"folder-pipe",pipes:"folder-pipe",pkg:"folder-packages",pkgs:"folder-packages",plastic:"folder-plastic",playground:"folder-sandbox",playgrounds:"folder-sandbox",playlist:"folder-audio",playlists:"folder-audio",plugin:"folder-plugin",plugins:"folder-plugin",policies:"folder-policy",policy:"folder-policy",popos:"folder-linux",portability:"folder-mobile",portable:"folder-mobile",post:"folder-docs",postman:"folder-postman",posts:"folder-docs",powershell:"folder-powershell",pref:"folder-config",preference:"folder-config",preferences:"folder-config",prefs:"folder-config",presentation:"folder-ui",preview:"folder-review",previews:"folder-review",prisma:"folder-prisma","prisma/schema":"folder-prisma",private:"folder-private",profiling:"folder-benchmark",proj:"folder-project",project:"folder-project",projects:"folder-project",projs:"folder-project",prompt:"folder-prompts",prompts:"folder-prompts",properties:"folder-config",props:"folder-config",proto:"folder-proto",protobuf:"folder-proto",protobufs:"folder-proto",protos:"folder-proto",provider:"folder-controller",providers:"folder-controller",proxy:"folder-public",ps:"folder-powershell",ps1:"folder-powershell",ps4:"folder-console",ps5:"folder-console",public:"folder-public",public_html:"folder-views",pwa:"folder-client",pycache:"folder-python",pytest_cache:"folder-python",python:"folder-python",pytorch:"folder-pytorch",quasar:"folder-quasar",queue:"folder-queue",queues:"folder-queue",r:"folder-r",recordings:"folder-audio",release:"folder-dist",remote:"folder-connection",remotes:"folder-connection",repo:"folder-repository",report:"folder-resource",reports:"folder-resource",repos:"folder-repository",repositories:"folder-repository",repository:"folder-repository",res:"folder-resource",resolver:"folder-resolver",resolvers:"folder-resolver",resource:"folder-resource",resources:"folder-resource",restapi:"folder-api",review:"folder-review",reviewed:"folder-review",reviews:"folder-review",revisal:"folder-review",revisals:"folder-review",robot:"folder-robot",robots:"folder-robot",router:"folder-routes",routers:"folder-routes",routes:"folder-routes",routing:"folder-routes",rule:"folder-rules",rules:"folder-rules",rust:"folder-rust",salt:"folder-salt",saltstack:"folder-salt",sample:"folder-examples","sample-data":"folder-examples",samples:"folder-examples",sandbox:"folder-sandbox",sandboxes:"folder-sandbox",sass:"folder-sass",scala:"folder-scala",schema:"folder-class",schemas:"folder-class",sconf_temp:"folder-scons",scons:"folder-scons",scons_cache:"folder-scons",screen:"folder-views",screengrab:"folder-images",screengrabs:"folder-images",screens:"folder-views",screenshot:"folder-images",screenshots:"folder-images",script:"folder-scripts",scripting:"folder-scripts",scripts:"folder-scripts",scss:"folder-sass",secret:"folder-keys",secrets:"folder-keys",secure:"folder-secure",security:"folder-secure",seed:"folder-seeders",seeders:"folder-seeders",seeding:"folder-seeders",seeds:"folder-seeders",server:"folder-server",serverless:"folder-serverless",serverpackages:"folder-packages",servers:"folder-server",service:"folder-controller",services:"folder-controller",setting:"folder-config",settings:"folder-config",shader:"folder-shader",shaders:"folder-shader",shared:"folder-shared",shop:"folder-cart",shopping:"folder-cart","shopping-cart":"folder-cart",sim:"folder-simulations",sims:"folder-simulations",simulation:"folder-simulations",simulations:"folder-simulations",site:"folder-public",sketch:"folder-mock",sketches:"folder-mock",skill:"folder-skills",skills:"folder-skills",smtp:"folder-mail",snap:"folder-snapcraft",snapcraft:"folder-snapcraft",snapshots:"folder-test",snippet:"folder-snippet",snippets:"folder-snippet",song:"folder-audio",songs:"folder-audio",sound:"folder-audio",sounds:"folder-audio",source:"folder-src",sources:"folder-src",spa:"folder-client",spec:"folder-test",specs:"folder-test",spellcheck:"folder-syntax",spellcheckers:"folder-syntax",sql:"folder-database",src:"folder-src","src-tauri":"folder-src-tauri",srcs:"folder-src",ssl:"folder-secure",stack:"folder-stack",stacks:"folder-stack",start:"folder-home",static:"folder-resource",stencil:"folder-stencil",store:"folder-store",stores:"folder-store",stories:"folder-storybook",storybook:"folder-storybook",style:"folder-css",styles:"folder-css",stylesheet:"folder-css",stylesheets:"folder-css",stylus:"folder-stylus",sublime:"folder-sublime",submodules:"folder-git",supabase:"folder-supabase",svelte:"folder-svelte","svelte-kit":"folder-svelte",svg:"folder-svg",svgs:"folder-svg",switch:"folder-console",syntax:"folder-syntax",syntaxes:"folder-syntax","table-of-contents":"folder-toc",target:"folder-target",taskfile:"folder-taskfile",taskfiles:"folder-taskfile",tasks:"folder-tasks",television:"folder-television",temp:"folder-temp",template:"folder-template",templates:"folder-template",terraform:"folder-terraform",test:"folder-test",testfiles:"folder-test",testing:"folder-test",tests:"folder-test",texture:"folder-images",textures:"folder-images",theme:"folder-theme",themes:"folder-theme","third-party":"folder-lib",thirdparty:"folder-lib",tickets:"folder-tasks",tls:"folder-secure",tmp:"folder-temp",toc:"folder-toc",token:"folder-keys",tokens:"folder-keys",toolbox:"folder-tools",toolboxes:"folder-tools",tooling:"folder-tools",toolkit:"folder-tools",toolkits:"folder-tools",tools:"folder-tools",torch:"folder-pytorch",transition:"folder-animation",transitions:"folder-animation",translate:"folder-i18n",translation:"folder-i18n",translations:"folder-i18n",trash:"folder-trash",trigger:"folder-trigger",triggers:"folder-trigger",ts:"folder-typescript",turbo:"folder-turborepo",tv:"folder-television",tx:"folder-i18n",typeface:"folder-font",typefaces:"folder-font",types:"folder-typescript",typescript:"folder-typescript",typings:"folder-typescript",ubuntu:"folder-linux",ui:"folder-ui",unity:"folder-unity",unix:"folder-linux",update:"folder-update",updates:"folder-update",upgrade:"folder-update",upgrades:"folder-update",upload:"folder-upload",uploads:"folder-upload",util:"folder-utils",utilities:"folder-utils",utility:"folder-utils",utils:"folder-utils",ux:"folder-ui",validation:"folder-rules",validations:"folder-rules",validator:"folder-rules",validators:"folder-rules",vector:"folder-svg",vectors:"folder-svg",vendor:"folder-lib",vendors:"folder-lib",venv:"folder-environment",vercel:"folder-vercel",verdaccio:"folder-verdaccio",vid:"folder-video",video:"folder-video",videos:"folder-video",vids:"folder-video",view:"folder-views",views:"folder-views",vm:"folder-vm",vms:"folder-vm",voice:"folder-audio",voices:"folder-audio",vscode:"folder-vscode","vscode-test":"folder-vscode",vue:"folder-vue",vuepress:"folder-vuepress",wakatime:"folder-wakatime",web:"folder-public",webpack:"folder-webpack",website:"folder-public",websites:"folder-public",widget:"folder-components",widgets:"folder-components",wiki:"folder-docs",win:"folder-windows",win10:"folder-windows",win11:"folder-windows",win32:"folder-windows",windows:"folder-windows",windows10:"folder-windows",windows11:"folder-windows",windowsnt:"folder-windows",windowsxp:"folder-windows",winnt:"folder-windows",winxp:"folder-windows","wordpress-org":"folder-wordpress","wp-content":"folder-wordpress",wsl:"folder-linux",www:"folder-public",wwwroot:"folder-public",xbox:"folder-console",xtask:"folder-scripts",yarn:"folder-yarn",zeabur:"folder-zeabur",zed:"folder-zed"},py={".autorc":"auto_light",".browserslistrc":"browserlist_light",".bun-version":"bun_light",".codeclimate.yml":"code-climate_light",".config/releaserc":"semantic-release_light",".config/releaserc.cjs":"semantic-release_light",".config/releaserc.cts":"semantic-release_light",".config/releaserc.js":"semantic-release_light",".config/releaserc.json":"semantic-release_light",".config/releaserc.json5":"semantic-release_light",".config/releaserc.jsonc":"semantic-release_light",".config/releaserc.mjs":"semantic-release_light",".config/releaserc.mts":"semantic-release_light",".config/releaserc.toml":"semantic-release_light",".config/releaserc.ts":"semantic-release_light",".config/releaserc.yaml":"semantic-release_light",".config/releaserc.yml":"semantic-release_light",".config/stylelintrc":"stylelint_light",".config/stylelintrc.cjs":"stylelint_light",".config/stylelintrc.cts":"stylelint_light",".config/stylelintrc.js":"stylelint_light",".config/stylelintrc.json":"stylelint_light",".config/stylelintrc.json5":"stylelint_light",".config/stylelintrc.jsonc":"stylelint_light",".config/stylelintrc.mjs":"stylelint_light",".config/stylelintrc.mts":"stylelint_light",".config/stylelintrc.toml":"stylelint_light",".config/stylelintrc.ts":"stylelint_light",".config/stylelintrc.yaml":"stylelint_light",".config/stylelintrc.yml":"stylelint_light",".copilotignore":"copilot_light",".cursor":"cursor_light",".cursor.json":"cursor_light",".cursorignore":"cursor_light",".cursorindexingignore":"cursor_light",".cursorrc":"cursor_light",".cursorrules":"cursor_light",".drone.yml":"drone_light",".easignore":"expo_light",".nano-staged.cjs":"nano-staged_light",".nano-staged.js":"nano-staged_light",".nano-staged.json":"nano-staged_light",".nano-staged.mjs":"nano-staged_light",".nanostagedrc":"nano-staged_light",".nowignore":"vercel_light",".pnpmfile.cjs":"pnpm_light",".releaserc":"semantic-release_light",".releaserc.cjs":"semantic-release_light",".releaserc.cts":"semantic-release_light",".releaserc.js":"semantic-release_light",".releaserc.json":"semantic-release_light",".releaserc.json5":"semantic-release_light",".releaserc.jsonc":"semantic-release_light",".releaserc.mjs":"semantic-release_light",".releaserc.mts":"semantic-release_light",".releaserc.toml":"semantic-release_light",".releaserc.ts":"semantic-release_light",".releaserc.yaml":"semantic-release_light",".releaserc.yml":"semantic-release_light",".rubocop-todo.yml":"rubocop_light",".rubocop.yml":"rubocop_light",".rubocop_todo.yml":"rubocop_light",".shellcheckrc":"shellcheck_light",".stylelintcache":"stylelint_light",".stylelintignore":"stylelint_light",".stylelintrc":"stylelint_light",".stylelintrc.cjs":"stylelint_light",".stylelintrc.cts":"stylelint_light",".stylelintrc.js":"stylelint_light",".stylelintrc.json":"stylelint_light",".stylelintrc.json5":"stylelint_light",".stylelintrc.jsonc":"stylelint_light",".stylelintrc.mjs":"stylelint_light",".stylelintrc.mts":"stylelint_light",".stylelintrc.toml":"stylelint_light",".stylelintrc.ts":"stylelint_light",".stylelintrc.yaml":"stylelint_light",".stylelintrc.yml":"stylelint_light",".vercelignore":"vercel_light",".wakatime-project":"wakatime_light","auto-config.js":"auto_light","auto-config.json":"auto_light","auto-config.ts":"auto_light","auto-config.yaml":"auto_light","auto-config.yml":"auto_light","auto.config.js":"auto_light","auto.config.ts":"auto_light",browserslist:"browserlist_light","bun.lock":"bun_light","bun.lockb":"bun_light","bunfig.toml":"bun_light","circle.yml":"circleci_light","copilot-instructions.md":"copilot_light","deno.json":"deno_light","deno.jsonc":"deno_light","deno.lock":"deno_light","eas.json":"expo_light",hosts:"hosts_light","jsr.json":"jsr_light","jsr.jsonc":"jsr_light","nano-staged.cjs":"nano-staged_light","nano-staged.js":"nano-staged_light","nano-staged.json":"nano-staged_light","nano-staged.mjs":"nano-staged_light","netlify.json":"netlify_light","netlify.toml":"netlify_light","netlify.yaml":"netlify_light","netlify.yml":"netlify_light","next.config.js":"next_light","next.config.mjs":"next_light","next.config.mts":"next_light","next.config.ts":"next_light","now.json":"vercel_light","openapi.json":"openapi_light","openapi.yaml":"openapi_light","openapi.yml":"openapi_light","opencode.json":"opencode_light","opencode.jsonc":"opencode_light","payload.config.js":"payload_light","payload.config.mjs":"payload_light","payload.config.mts":"payload_light","payload.config.ts":"payload_light","pnpm-lock.yaml":"pnpm_light","pnpm-workspace.yaml":"pnpm_light","release.config.cjs":"semantic-release_light","release.config.cts":"semantic-release_light","release.config.js":"semantic-release_light","release.config.json":"semantic-release_light","release.config.json5":"semantic-release_light","release.config.jsonc":"semantic-release_light","release.config.mjs":"semantic-release_light","release.config.mts":"semantic-release_light","release.config.toml":"semantic-release_light","release.config.ts":"semantic-release_light","release.config.yaml":"semantic-release_light","release.config.yml":"semantic-release_light","remix.config.js":"remix_light","remix.config.ts":"remix_light",sconscript:"scons_light",sconstruct:"scons_light",scsub:"scons_light",shellcheckrc:"shellcheck_light","snowpack.config.cjs":"snowpack_light","snowpack.config.cts":"snowpack_light","snowpack.config.js":"snowpack_light","snowpack.config.json":"snowpack_light","snowpack.config.mjs":"snowpack_light","snowpack.config.mts":"snowpack_light","snowpack.config.ts":"snowpack_light","snowpack.deps.json":"snowpack_light","stitches.config.js":"stitches_light","stitches.config.ts":"stitches_light","stylelint.config.cjs":"stylelint_light","stylelint.config.cts":"stylelint_light","stylelint.config.js":"stylelint_light","stylelint.config.json":"stylelint_light","stylelint.config.json5":"stylelint_light","stylelint.config.jsonc":"stylelint_light","stylelint.config.mjs":"stylelint_light","stylelint.config.mts":"stylelint_light","stylelint.config.toml":"stylelint_light","stylelint.config.ts":"stylelint_light","stylelint.config.yaml":"stylelint_light","stylelint.config.yml":"stylelint_light","turbo.json":"turborepo_light","turbo.jsonc":"turborepo_light","vercel.json":"vercel_light","vercel.ts":"vercel_light","warp.md":"warp_light","zeabur.json":"zeabur_light","zeabur.json5":"zeabur_light","zeabur.jsonc":"zeabur_light","zeabur.toml":"zeabur_light","zeabur.yaml":"zeabur_light","zeabur.yml":"zeabur_light"},HR={".wakatime-project":"wakatime_light",ai:"adobe-illustrator_light",ait:"adobe-illustrator_light",blink:"blink_light",cr:"crystal_light","drone.yml":"drone_light",ecr:"crystal_light",fen:"chess_light",hcl:"hcl_light",huff:"huff_light",iuml:"uml_light",j2:"jinja_light",jinja:"jinja_light","jinja-html":"jinja_light",jinja2:"jinja_light","openapi.json":"openapi_light","openapi.yaml":"openapi_light","openapi.yml":"openapi_light",pgn:"chess_light",plantuml:"uml_light",psb:"adobe-photoshop_light",psd:"adobe-photoshop_light",psdt:"adobe-photoshop_light",pu:"uml_light",puml:"uml_light",tldr:"tldraw_light",tofu:"opentofu_light",toml:"toml_light",verse:"verse_light",wsd:"uml_light",zeabur:"zeabur_light"},hy={"-cursor":"folder-cursor_light","-idea":"folder-intellij_light","-j2":"folder-jinja_light","-jinja":"folder-jinja_light","-jinja2":"folder-jinja_light",".cursor":"folder-cursor_light",".idea":"folder-intellij_light",".j2":"folder-jinja_light",".jinja":"folder-jinja_light",".jinja2":"folder-jinja_light",__cursor__:"folder-cursor_light",__idea__:"folder-intellij_light",__j2__:"folder-jinja_light",__jinja2__:"folder-jinja_light",__jinja__:"folder-jinja_light",_cursor:"folder-cursor_light",_idea:"folder-intellij_light",_j2:"folder-jinja_light",_jinja:"folder-jinja_light",_jinja2:"folder-jinja_light",cursor:"folder-cursor_light",idea:"folder-intellij_light",j2:"folder-jinja_light",jinja:"folder-jinja_light",jinja2:"folder-jinja_light"},my={pug:'',just:'',json:'',playwright:'',xml:'',javascript:'',rocket:'',routing:'',settings:'',typedoc:'',"markdoc-config":'',"astro-config":'',visualstudio:'',"go-mod":'',"python-misc":'',ruff:'',uv:'',scons:'',console:'',excalidraw:'',gradle:'',license:'',unlicense:'',key:'',keystatic:'',ruby:'',gemfile:'',rubocop:'',rspec:'',swift:'',docker:'',latexmk:'',email:'',graphql:'',xaml:'',happo:'',chromatic:'',git:'',lua:'',r:'',dart:'',cmake:'',semgrep:'',"vue-config":'',nuxt:'',harmonix:'',lock:'',angular:'',mjml:'',vercel:'',liara:'',verdaccio:'',payload:'',next:'',remark:'',remix:'',laravel:'',vfl:'',kl:'',postcss:'',posthtml:'',todo:'',cabal:'',http:'',graphcool:'',webpack:'',rstack:'',lynx:'',ionic:'',gulp:'',nodejs:'',npm:'',yarn:'',android:'',tune:'',turborepo:'',babel:'',blitz:'',contributing:'',readme:'',changelog:'',architecture:'',credits:'',authors:'',flow:'',favicon:'',karma:'',bithound:'',svgo:'',appveyor:'',travis:'',codecov:'',sonarcloud:'',protractor:'',fusebox:'',heroku:'',editorconfig:'',bower:'',eslint:'',conduct:'',watchman:'',aurelia:'',auto:'',mocha:'',jenkins:'',firebase:'',rollup:'',hack:'',hardhat:'',stylelint:'',"code-climate":'',prettier:'',renovate:'',apollo:'',nodemon:'',webhint:'',browserlist:'',snyk:'',drone:'',opencode:'',sequelize:'',gatsby:'',wakatime:'',circleci:'',cloudfoundry:'',grunt:'',jest:'',fastlane:'',helm:'',wallaby:'',stencil:'',makefile:'',"semantic-release":'',bitbucket:'',bazel:'',"godot-assets":'',"azure-pipelines":'',vagrant:'',prisma:'',istanbul:'',tailwindcss:'',buildkite:'',netlify:'',svelte:'',nest:'',moon:'',percy:'',gitpod:'',stackblitz:'',codeowners:'',gcp:'',amplify:'',husky:'',tilt:'',capacitor:'',adonis:'',meson:'',commitizen:'',commitlint:'',buck:'',nx:'',dune:'',roadmap:'',nuget:'',stryker:'',modernizr:'',slug:'',stitches:'',nginx:'',minecraft:'',replit:'',duc:'',snowpack:'',quasar:'',dependabot:'',vite:'',vitest:'',velite:'',rolldown:'',lerna:'',windicss:'',textlint:'',vlang:'',sentry:'',contentlayer:'',phpunit:'',"php-cs-fixer":'',robots:'',tsconfig:'',tauri:'',jsconfig:'',maven:'',serverless:'',supabase:'',ember:'',horusec:'',poetry:'',pdm:'',parcel:'',astyle:'',lighthouse:'',svgr:'',rome:'',cypress:'',plop:'',tobimake:'',gleam:'',pnpm:'',gridsome:'',steadybit:'',caddy:'',openapi:'',swagger:'',bun:'',"nano-staged":'',knip:'',taskfile:'',craco:'',mercurial:'',deno:'',plastic:'',typst:'',unocss:'',"ifanr-cloud":'',concourse:'',syncpack:'',werf:'',luau:'',wally:'',panda:'',biome:'',esbuild:'',drizzle:'',puppeteer:'',garden:'',pkl:'',kubernetes:'',phpstan:'',screwdriver:'',snapcraft:'',kcl:'',clangd:'',markdownlint:'',trigger:'',deepsource:'',jsr:'',"coderabbit-ai":'',"gemini-ai":'',taze:'',wxt:'',lefthook:'',label:'',zeabur:'',copilot:'',"pre-commit":'',lintstaged:'',histoire:'',installation:'',"github-sponsors":'',"minecraft-fabric":'',umi:'',"pm2-ecosystem":'',hosts:'',citation:'',xmake:'',wrangler:'',cline:'',packship:'',snakemake:'',hadolint:'',tsdoc:'',oxc:'',claude:'',cursor:'',metro:'',bashly:'',google:'',shellcheck:'',warp:'',skill:'',tsdown:'',appwrite:'',expo:'',slint:'',html:'',markdown:'',blink:'',css:'',sass:'',less:'',json_schema:'',hjson:'',jinja:'',proto:'',prompt:'',sublime:'',simulink:'',quarto:'',twine:'',yaml:'',toml:'',toon:'',image:'',palette:'',react:'',react_ts:'',typescript:'',"typescript-def":'',markdoc:'',markojs:'',astro:'',pdf:'',table:'',vscode:'',varnish:'',database:'',kusto:'',csharp:'',qsharp:'',zip:'',vala:'',zig:'',exe:'',hex:'',java:'',jar:'',javaclass:'',c3:'',c:'',h:'',hip:'',cpp:'',hpp:'',"objective-c":'',"objective-cpp":'',rc:'',go:'',python:'',url:'',powershell:'',word:'',certificate:'',font:'',lib:'',bibliography:'',"bibtex-style":'',dll:'',fsharp:'',arduino:'',tex:'',context:'',"doctex-installer":'',bbx:'',cbx:'',lbx:'',powerpoint:'',video:'',virtual:'',vedic:'',audio:'',coffee:'',document:'',lyric:'',rust:'',raml:'',haskell:'',kotlin:'',otne:'',diff:'',clojure:'',groovy:'',dart_generated:'',actionscript:'',mxml:'',autohotkey:'',flash:'',"adobe-swc":'',swc:'',assembly:'',vue:'',ocaml:'',odin:'',onnx:'',"javascript-map":'',"css-map":'',handlebars:'',perl:'',haxe:'',"test-ts":'',"test-jsx":'',"test-js":'',puppet:'',elixir:'',livescript:'',erlang:'',twig:'',julia:'',elm:'',purescript:'',smarty:'',stylus:'',reason:'',bucklescript:'',merlin:'',verilog:'',mathematica:'',wolframlanguage:'',nunjucks:'',robot:'',solidity:'',autoit:'',haml:'',yang:'',terraform:'',opentofu:'',applescript:'',cake:'',cucumber:'',nim:'',apiblueprint:'',riot:'',coldfusion:'',nix:'',slim:'',restql:'',kivy:'',sbt:'',gitlab:'',figma:'',huff:'',crystal:'',cuda:'',log:'',dotjs:'',ejs:'',processing:'',storybook:'',wepy:'',hcl:'',san:'',quokka:'',django:'',red:'',foxpro:'',i18n:'',webassembly:'',jupyter:'',d:'',mdx:'',mdsvex:'',ballerina:'',racket:'',mint:'',velocity:'',godot:'',azure:'',razor:'',abc:'',asciidoc:'',edge:'',scheme:'',lisp:'',"3d":'',svg:'',"adobe-illustrator":'',"adobe-photoshop":'',vim:'',moonscript:'',advpl:'',disc:'',fortran:'',tcl:'',liquid:'',prolog:'',coconut:'',sketch:'',pawn:'',forth:'',uml:'',dhall:'',sml:'',opam:'',imba:'',drawio:'',pascal:'',unity:'',sas:'',command:'',denizenscript:'',search:'',rescript:'',"rescript-interface":'',brainfuck:'',bicep:'',cobol:'',grain:'',lolcode:'',idris:'',pipeline:'',opa:'',scala:'',lilypond:'',chess:'',gemini:'',php:'',ada:'',coala:'',dinophp:'',teal:'',template:'',shader:'',siyuan:'',ndst:'',tobi:'',capnp:'',tree:'',cadence:'',antlr:'',stylable:'',pinejs:'',gamemaker:'',tldraw:'',mermaid:'',mojo:'',roblox:'',rbxmk:'',spwn:'',templ:'',chrome:'',stan:'',abap:'',lottie:'',"apps-script":'',verified:'',bruno:'',cairo:'',"grafana-alloy":'',freemarker:'',tsil:'',hurl:'',cds:'',verse:'',sway:'',"bench-ts":'',"bench-jsx":'',"bench-js":'',controller:'',"dependencies-update":'',subtitles:'',beancount:'',epub:'',regedit:'',gnuplot:'',coloredpetrinets:'',pytorch:'',blender:'',"vanilla-extract":'',toc:'',cue:'',lean:'',salt:'',macaulay2:'',uiua:'',mrpack:'',"folder-rust":'',"folder-robot":'',"folder-src":'',"folder-dist":'',"folder-css":'',"folder-sass":'',"folder-television":'',"folder-desktop":'',"folder-console":'',"folder-images":'',"folder-scripts":'',"folder-node":'',"folder-javascript":'',"folder-json":'',"folder-font":'',"folder-bower":'',"folder-test":'',"folder-directive":'',"folder-jinja":'',"folder-markdown":'',"folder-pdm":'',"folder-php":'',"folder-phpmailer":'',"folder-sublime":'',"folder-docs":'',"folder-gh-workflows":'',"folder-git":'',"folder-github":'',"folder-gitea":'',"folder-gitlab":'',"folder-forgejo":'',"folder-vscode":'',"folder-views":'',"folder-vue":'',"folder-vuepress":'',"folder-expo":'',"folder-config":'',"folder-i18n":'',"folder-components":'',"folder-verdaccio":'',"folder-aurelia":'',"folder-resource":'',"folder-lib":'',"folder-theme":'',"folder-webpack":'',"folder-global":'',"folder-public":'',"folder-include":'',"folder-docker":'',"folder-nginx":'',"folder-astro":'',"folder-database":'',"folder-migrations":'',"folder-log":'',"folder-target":'',"folder-temp":'',"folder-aws":'',"folder-audio":'',"folder-video":'',"folder-kubernetes":'',"folder-import":'',"folder-export":'',"folder-wakatime":'',"folder-circleci":'',"folder-wordpress":'',"folder-gradle":'',"folder-coverage":'',"folder-class":'',"folder-other":'',"folder-lua":'',"folder-turborepo":'',"folder-typescript":'',"folder-graphql":'',"folder-routes":'',"folder-ci":'',"folder-eslint":'',"folder-benchmark":'',"folder-messages":'',"folder-less":'',"folder-gulp":'',"folder-python":'',"folder-r":'',"folder-sandbox":'',"folder-scons":'',"folder-mojo":'',"folder-moon":'',"folder-debug":'',"folder-fastlane":'',"folder-plugin":'',"folder-middleware":'',"folder-controller":'',"folder-ansible":'',"folder-server":'',"folder-client":'',"folder-tasks":'',"folder-android":'',"folder-ios":'',"folder-ui":'',"folder-upload":'',"folder-download":'',"folder-tools":'',"folder-helper":'',"folder-serverless":'',"folder-api":'',"folder-app":'',"folder-apollo":'',"folder-archive":'',"folder-backup":'',"folder-batch":'',"folder-buildkite":'',"folder-cluster":'',"folder-command":'',"folder-constant":'',"folder-container":'',"folder-content":'',"folder-context":'',"folder-core":'',"folder-delta":'',"folder-dump":'',"folder-examples":'',"folder-environment":'',"folder-functions":'',"folder-generator":'',"folder-hook":'',"folder-trigger":'',"folder-job":'',"folder-keys":'',"folder-layout":'',"folder-mail":'',"folder-mappings":'',"folder-meta":'',"folder-changesets":'',"folder-packages":'',"folder-shared":'',"folder-shader":'',"folder-stack":'',"folder-template":'',"folder-utils":'',"folder-supabase":'',"folder-private":'',"folder-linux":'',"folder-windows":'',"folder-macos":'',"folder-error":'',"folder-event":'',"folder-secure":'',"folder-custom":'',"folder-mock":'',"folder-syntax":'',"folder-vm":'',"folder-stylus":'',"folder-flow":'',"folder-rules":'',"folder-review":'',"folder-animation":'',"folder-guard":'',"folder-prisma":'',"folder-pipe":'',"folder-interceptor":'',"folder-svg":'',"folder-nuxt":'',"folder-terraform":'',"folder-mobile":'',"folder-stencil":'',"folder-firebase":'',"folder-firestore":'',"folder-cloud-functions":'',"folder-svelte":'',"folder-update":'',"folder-intellij":'',"folder-azure-pipelines":'',"folder-mjml":'',"folder-admin":'',"folder-jupyter":'',"folder-scala":'',"folder-connection":'',"folder-quasar":'',"folder-next":'',"folder-dal":'',"folder-cobol":'',"folder-yarn":'',"folder-husky":'',"folder-storybook":'',"folder-base":'',"folder-cart":'',"folder-home":'',"folder-project":'',"folder-prompts":'',"folder-interface":'',"folder-netlify":'',"folder-enum":'',"folder-contract":'',"folder-helm":'',"folder-queue":'',"folder-vercel":'',"folder-cypress":'',"folder-decorators":'',"folder-java":'',"folder-resolver":'',"folder-angular":'',"folder-unity":'',"folder-pdf":'',"folder-proto":'',"folder-plastic":'',"folder-gamemaker":'',"folder-mercurial":'',"folder-godot":'',"folder-lottie":'',"folder-taskfile":'',"folder-drizzle":'',"folder-cloudflare":'',"folder-seeders":'',"folder-store":'',"folder-bicep":'',"folder-snapcraft":'',"folder-flutter":'',"folder-snippet":'',"folder-element":'',"folder-src-tauri":'',"folder-favicon":'',"folder-features":'',"folder-lefthook":'',"folder-bloc":'',"folder-powershell":'',"folder-repository":'',"folder-luau":'',"folder-obsidian":'',"folder-trash":'',"folder-cline":'',"folder-liquibase":'',"folder-dart":'',"folder-zeabur":'',"folder-kusto":'',"folder-policy":'',"folder-attachment":'',"folder-bibliography":'',"folder-link":'',"folder-pytorch":'',"folder-blender":'',"folder-atom":'',"folder-molecule":'',"folder-organism":'',"folder-claude":'',"folder-cursor":'',"folder-gemini-ai":'',"folder-opencode":'',"folder-input":'',"folder-salt":'',"folder-simulations":'',"folder-metro":'',"folder-filter":'',"folder-toc":'',"folder-cue":'',"folder-license":'',"folder-form":'',"folder-postman":'',"folder-skills":'',"folder-zed":'',"folder-appwrite":'',"folder-assembly":'',"folder-go":'',"folder-kotlin":'',file:'',folder:'',scons_light:'',rubocop_light:'',vercel_light:'',payload_light:'',next_light:'',remix_light:'',turborepo_light:'',auto_light:'',stylelint_light:'',"code-climate_light":'',browserlist_light:'',drone_light:'',opencode_light:'',wakatime_light:'',circleci_light:'',"semantic-release_light":'',netlify_light:'',stitches_light:'',snowpack_light:'',pnpm_light:'',openapi_light:'',bun_light:'',"nano-staged_light":'',deno_light:'',jsr_light:'',zeabur_light:'',copilot_light:'',hosts_light:'',cursor_light:'',shellcheck_light:'',warp_light:'',expo_light:'',blink_light:'',jinja_light:'',toml_light:'',opentofu_light:'',huff_light:'',crystal_light:'',hcl_light:'',"adobe-illustrator_light":'',"adobe-photoshop_light":'',uml_light:'',chess_light:'',tldraw_light:'',verse_light:'',"folder-jinja_light":'',"folder-intellij_light":'',"folder-cursor_light":''};function xc(e,t){return Object.hasOwn(e,t)}function Fu(e,t,n,o){const s=e[n];return!o||!xc(t,n)?s:t[n]}function PR(){return typeof window<"u"&&typeof window.matchMedia!="function"?!1:!mm().value}function DR(e,t){const n=e.toLowerCase();if(xc(gf,e))return Fu(gf,py,e,t);if(xc(gf,n))return Fu(gf,py,n,t)}function VR(e,t){const o=e.toLowerCase().split(".");for(let s=1;sn.length>0).at(-1)??e}function qR(e){return e.replaceAll(/\s(?:width|height)="[^"]*"/g,"").replace(/^