@intent-hq/web 2.374.0 → 2.374.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DM5MJ3Sn.js → 3cKBmyAG.js} +1 -1
- package/web/app/immutable/chunks/{BqB2D1x5.js → 4QO0cu3z.js} +4 -4
- package/web/app/immutable/chunks/{oHriEIAi.js → 5ubKG1fw.js} +2 -2
- package/web/app/immutable/chunks/{ggBdElOR.js → 7u4ZW-_Z.js} +1 -1
- package/web/app/immutable/chunks/{1e1uSG0B.js → 85wf0Cv8.js} +1 -1
- package/web/app/immutable/chunks/{BoaqP5ET.js → A9zSZ8H9.js} +1 -1
- package/web/app/immutable/chunks/{CZoORueB.js → ATfBW89h.js} +1 -1
- package/web/app/immutable/chunks/{Jd-PTJBp.js → B-4SMsb_.js} +3 -3
- package/web/app/immutable/chunks/{wouXHNlM.js → B0GuR3bJ.js} +13 -13
- package/web/app/immutable/chunks/{CSrI4A-Z.js → B1JbKfg-.js} +1 -1
- package/web/app/immutable/chunks/{DLJOBEeO.js → B3U3T8_Z.js} +3 -3
- package/web/app/immutable/chunks/{78vu4B3v.js → B7M-47Is.js} +1 -1
- package/web/app/immutable/chunks/{ygVTpe0W.js → B8jCEPhi.js} +1 -1
- package/web/app/immutable/chunks/{Btxass_5.js → B9BY7BTd.js} +1 -1
- package/web/app/immutable/chunks/{LIjxNVmo.js → BA5rGp3P.js} +1 -1
- package/web/app/immutable/chunks/{D--r5mHa.js → BAUDY8ju.js} +1 -1
- package/web/app/immutable/chunks/{IcK2O8wN.js → BCAvWplY.js} +1 -1
- package/web/app/immutable/chunks/{DCwrIUyt.js → BDX_Xsmi.js} +1 -1
- package/web/app/immutable/chunks/{Z_Zl_SfR.js → BEs8P5qJ.js} +1 -1
- package/web/app/immutable/chunks/{CVKwip72.js → BGUKyP63.js} +1 -1
- package/web/app/immutable/chunks/{BpM87Usm.js → BIkmu8XX.js} +1 -1
- package/web/app/immutable/chunks/{o6BZHHo-.js → BMrvDo7v.js} +1 -1
- package/web/app/immutable/chunks/{DNvCdh98.js → BOf4ykdJ.js} +1 -1
- package/web/app/immutable/chunks/{0Xr6eOOE.js → BPK1anoi.js} +1 -1
- package/web/app/immutable/chunks/{C7CeFFBU.js → BQWRYuYV.js} +1 -1
- package/web/app/immutable/chunks/{C4ERaDtS.js → BTLE7W-J.js} +1 -1
- package/web/app/immutable/chunks/{Dt0cEsoV.js → BVhdEiOI.js} +2 -2
- package/web/app/immutable/chunks/{DUmGlkcv.js → BVpl8e4e.js} +1 -1
- package/web/app/immutable/chunks/{CSiViQVW.js → BXm1LOV6.js} +1 -1
- package/web/app/immutable/chunks/{GfYLoKaL.js → BYoDJRDO.js} +1 -1
- package/web/app/immutable/chunks/{DKOHx2a9.js → B_T-BNgN.js} +2 -2
- package/web/app/immutable/chunks/{DUGzdx5G.js → B_rOdNUT.js} +1 -1
- package/web/app/immutable/chunks/{hjdg1APe.js → BaUyyVaF.js} +2 -2
- package/web/app/immutable/chunks/{CivTzCBV.js → BalRQ77x.js} +1 -1
- package/web/app/immutable/chunks/{DMnVAzAI.js → Bb8U_oXl.js} +1 -1
- package/web/app/immutable/chunks/{CttZcTQ2.js → BcCmxwSj.js} +1 -1
- package/web/app/immutable/chunks/{BIzGfV52.js → BcM59Lcv.js} +1 -1
- package/web/app/immutable/chunks/{BymgwXRn.js → BdtL69yP.js} +1 -1
- package/web/app/immutable/chunks/{DXFg1wKa.js → Be3ctlCz.js} +1 -1
- package/web/app/immutable/chunks/{vE_bc7tB.js → Bg5oaQDG.js} +1 -1
- package/web/app/immutable/chunks/{v1GNktmz.js → BiVcCGFj.js} +3 -3
- package/web/app/immutable/chunks/{DsRXAU7N.js → BiekSSQx.js} +1 -1
- package/web/app/immutable/chunks/{C7QIVjEh.js → Bj-YBxcA.js} +1 -1
- package/web/app/immutable/chunks/{hsWXTUXg.js → Bm8gOyQA.js} +1 -1
- package/web/app/immutable/chunks/{BEtv8tBy.js → Bo-dnNXZ.js} +1 -1
- package/web/app/immutable/chunks/{CCK5TGK5.js → BoIx_pzM.js} +1 -1
- package/web/app/immutable/chunks/{DQPV9Jid.js → Boj7sQg1.js} +1 -1
- package/web/app/immutable/chunks/{D8IZMM7C.js → BsmtfVfM.js} +1 -1
- package/web/app/immutable/chunks/{DGK1iojf.js → BtIGJq9M.js} +1 -1
- package/web/app/immutable/chunks/{Dyo489Aj.js → Bw79RGVy.js} +4 -4
- package/web/app/immutable/chunks/{BNlcBg5q.js → BwxJWPNn.js} +1 -1
- package/web/app/immutable/chunks/{I7PibMUG.js → BzsWb2DZ.js} +1 -1
- package/web/app/immutable/chunks/{CW2YUdJi.js → Bzwng2vU.js} +1 -1
- package/web/app/immutable/chunks/{Opn_u-ak.js → C23BHMTF.js} +1 -1
- package/web/app/immutable/chunks/{Dtfq8wlv.js → C2RXgXeo.js} +1 -1
- package/web/app/immutable/chunks/{B3pPpWYK.js → C7p2lOwL.js} +1 -1
- package/web/app/immutable/chunks/{Cf5H5FW2.js → CAYmzy7n.js} +1 -1
- package/web/app/immutable/chunks/{BoDtRDem.js → CDt7gkIg.js} +1 -1
- package/web/app/immutable/chunks/{BLub_WLN.js → CFd4ikzx.js} +3 -3
- package/web/app/immutable/chunks/{DT6jGD_v.js → CKLF9hRU.js} +2 -2
- package/web/app/immutable/chunks/{xOVHBiMd.js → COUouSsQ.js} +1 -1
- package/web/app/immutable/chunks/{DZLkwu2T.js → CPloqKhj.js} +1 -1
- package/web/app/immutable/chunks/{mln4aKyz.js → CTAiPv85.js} +1 -1
- package/web/app/immutable/chunks/{CuLrgEBU.js → CTKxd-aq.js} +1 -1
- package/web/app/immutable/chunks/{B6z9N_8y.js → CTc2r7_5.js} +1 -1
- package/web/app/immutable/chunks/{Bq5w_10y.js → CVA4h5nu.js} +1 -1
- package/web/app/immutable/chunks/{DhezPe3y.js → CWAFstnw.js} +1 -1
- package/web/app/immutable/chunks/{B7FRjLIO.js → CWdVki31.js} +2 -2
- package/web/app/immutable/chunks/{Dlu7eNjM.js → CY3iiE5t.js} +1 -1
- package/web/app/immutable/chunks/{fvPmV5Gi.js → CYrmrI7Y.js} +2 -2
- package/web/app/immutable/chunks/{Bb4KDW-H.js → C_lt_MLT.js} +1 -1
- package/web/app/immutable/chunks/{BJkBPBON.js → CaA0sSW1.js} +2 -2
- package/web/app/immutable/chunks/{C6a1-Err.js → CeKzyAwj.js} +1 -1
- package/web/app/immutable/chunks/{CWplqerm.js → CgrfkEos.js} +1 -1
- package/web/app/immutable/chunks/{MncpPyA-.js → ColX8Rl-.js} +1 -1
- package/web/app/immutable/chunks/{FC-pHBfg.js → CrkK-7cq.js} +2 -2
- package/web/app/immutable/chunks/{C8hkzPoK.js → CtA5V2Vr.js} +2 -2
- package/web/app/immutable/chunks/{DKBM0Gj4.js → Cyu5F7IF.js} +1 -1
- package/web/app/immutable/chunks/{DcPZVozd.js → D0nMX7Fy.js} +1 -1
- package/web/app/immutable/chunks/{C-hRvbpj.js → D48rWb8_.js} +3 -3
- package/web/app/immutable/chunks/{Bi-OoqI4.js → D4Ynme_h.js} +3 -3
- package/web/app/immutable/chunks/{Dw2_URl8.js → D6KeRVx3.js} +1 -1
- package/web/app/immutable/chunks/{DJsRid9i.js → D6l063h1.js} +1 -1
- package/web/app/immutable/chunks/{D5D__L6c.js → D7zF8mVD.js} +1 -1
- package/web/app/immutable/chunks/{Chgxj7dA.js → D7zs1WNS.js} +1 -1
- package/web/app/immutable/chunks/{CLMgFYIH.js → DApALACW.js} +1 -1
- package/web/app/immutable/chunks/{DWBuWaVE.js → DBwPHDLx.js} +1 -1
- package/web/app/immutable/chunks/{C2eOYH_G.js → DFO9hn7q.js} +1 -1
- package/web/app/immutable/chunks/{DQbaQwzY.js → DHQlFr3x.js} +1 -1
- package/web/app/immutable/chunks/{Dxc-KEkE.js → DJVOcVb6.js} +3 -3
- package/web/app/immutable/chunks/{C-MW647h.js → DJmFFfBr.js} +1 -1
- package/web/app/immutable/chunks/{CN1fsMHu.js → DKqiEltW.js} +1 -1
- package/web/app/immutable/chunks/{DQjZPSYr.js → DVZxKzOj.js} +1 -1
- package/web/app/immutable/chunks/{C3XalDjV.js → DYtp8pRu.js} +1 -1
- package/web/app/immutable/chunks/{DoEVipUF.js → DYw1r29m.js} +1 -1
- package/web/app/immutable/chunks/{8un-1yF0.js → D_Ck4oYy.js} +1 -1
- package/web/app/immutable/chunks/{DHyTxmrF.js → Daka7UwW.js} +1 -1
- package/web/app/immutable/chunks/{4aIDpPwE.js → Daz1QCGS.js} +1 -1
- package/web/app/immutable/chunks/{CbMctCk2.js → DbKwos66.js} +1 -1
- package/web/app/immutable/chunks/{BWtNXuH3.js → DecRlFIH.js} +1 -1
- package/web/app/immutable/chunks/{b7K3kFDW.js → DfmpMhdc.js} +1 -1
- package/web/app/immutable/chunks/{CiEru0ce.js → Dh0g4rYu.js} +1 -1
- package/web/app/immutable/chunks/{BjC_rKsH.js → DhfRQpUa.js} +1 -1
- package/web/app/immutable/chunks/{DeREMpl2.js → DkgA-dp6.js} +1 -1
- package/web/app/immutable/chunks/{B7v8ICP4.js → DwwhuCym.js} +1 -1
- package/web/app/immutable/chunks/{BE1cGlQD.js → DwxO0CzF.js} +1 -1
- package/web/app/immutable/chunks/{CYk_a71f.js → Dx94_CW7.js} +1 -1
- package/web/app/immutable/chunks/{Dl3FDpKM.js → DxHDxHbR.js} +1 -1
- package/web/app/immutable/chunks/{5kmlNoKC.js → IyDGTGib.js} +4 -4
- package/web/app/immutable/chunks/{B4Pcyup-.js → KqnunP55.js} +1 -1
- package/web/app/immutable/chunks/{Qk2Uvykz.js → PAMGn91D.js} +1 -1
- package/web/app/immutable/chunks/{BLM5WEkv.js → YxIlUfko.js} +1 -1
- package/web/app/immutable/chunks/{BIXB2sEM.js → ZxE81vSk.js} +3 -3
- package/web/app/immutable/chunks/{DtYEnzBU.js → _a6vNmVW.js} +1 -1
- package/web/app/immutable/chunks/{DmmbYbmC.js → _zL9bNp2.js} +2 -2
- package/web/app/immutable/chunks/{BHrccWS6.js → d6_ZY1Pu.js} +1 -1
- package/web/app/immutable/chunks/{BlEa7UsU.js → eDLszxKs.js} +1 -1
- package/web/app/immutable/chunks/{PrLg-ksP.js → eMk2ArKz.js} +1 -1
- package/web/app/immutable/chunks/{Dotp5YRU.js → jX0VhUGG.js} +1 -1
- package/web/app/immutable/chunks/{CXwkFfQD.js → jgG3dE9T.js} +1 -1
- package/web/app/immutable/chunks/{BbRVqgQZ.js → k6oRCp56.js} +1 -1
- package/web/app/immutable/chunks/{CPc9hi45.js → piMAhJa1.js} +1 -1
- package/web/app/immutable/chunks/{ZyBOjDmf.js → tNwydG8P.js} +1 -1
- package/web/app/immutable/chunks/{B4on2wzU.js → tnMWXb13.js} +1 -1
- package/web/app/immutable/chunks/{CGvpPKXI.js → x4xTOnLp.js} +1 -1
- package/web/app/immutable/chunks/{CsaKmxO_.js → y-zFXgFQ.js} +1 -1
- package/web/app/immutable/chunks/{DZc-gQMq.js → z37DF9wR.js} +1 -1
- package/web/app/immutable/entry/{app.C3_ct89H.js → app.BbxDhWp9.js} +2 -2
- package/web/app/immutable/entry/start.BnlppRR8.js +1 -0
- package/web/app/immutable/nodes/{0.B60cY-E8.js → 0.DSIplukO.js} +1 -1
- package/web/app/immutable/nodes/{1.Fg7YybpB.js → 1.CXRUG1SB.js} +1 -1
- package/web/app/immutable/nodes/{10.CGBrSCkB.js → 10.DxleRET6.js} +4 -4
- package/web/app/immutable/nodes/{11.CxV9uXd7.js → 11.CbSyrlEM.js} +1 -1
- package/web/app/immutable/nodes/{15.Bh_nopxE.js → 15.keGRwwSO.js} +1 -1
- package/web/app/immutable/nodes/{19.0bOGZuAY.js → 19.NgmHhhjU.js} +2 -2
- package/web/app/immutable/nodes/{2.DREuwjqg.js → 2.BKQlffFF.js} +4 -4
- package/web/app/immutable/nodes/{3.DSIPMWPB.js → 3.Bdi4F8FT.js} +1 -1
- package/web/app/immutable/nodes/{4.CZVyJ7C4.js → 4.AJeYxvcn.js} +1 -1
- package/web/app/immutable/nodes/{5.DND6GJwF.js → 5.Wga00_ld.js} +1 -1
- package/web/app/immutable/nodes/{6.Bk5k_Omu.js → 6.0Su9KBVy.js} +1 -1
- package/web/app/immutable/nodes/{7.DCF-Fawn.js → 7.Dq7qh1Tw.js} +1 -1
- package/web/app/immutable/nodes/{8.aBszzfhj.js → 8.BC8OLPhP.js} +1 -1
- package/web/app/immutable/nodes/{9.Bs6CVTCT.js → 9.BAS_V8so.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BIOjq307.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./BDX_Xsmi.js";import{p as f}from"./C7p2lOwL.js";import{b as a,ay as o}from"./Bw79RGVy.js";import{M as c,c as d}from"./Co5Wv5vC.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ie}from"./DUmGlkcv.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./Dyo489Aj.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[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],Pt=[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],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[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],Ht={trace:d(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:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;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:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[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:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{e as Ie}from"./BVpl8e4e.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./Bw79RGVy.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[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],Pt=[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],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[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],Ht={trace:d(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:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;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:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[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:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Zt="Parse error on line "+(vt+1)+": Unexpected "+(M==ce?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Zt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:Kt,expected:Ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,le=A.yyleng,f=A.yytext,vt=A.yylineno,Kt=A.yylloc;break;case 2:if(z=this.productions_[V[1]][1],Ct.$=D[D.length-z],Ct._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Ae&&(Ct._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Ct,[f,le,vt,Et.yy,V[1],D,o].concat(Ne)),typeof Gt<"u")return Gt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[V[1]][0]),D.push(Ct.$),o.push(Ct._$),he=Dt[E[E.length-2]][E[E.length-1]],E.push(he);break;case 3:return!0}}return!0},"parse")},Pe=(function(){var _t={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||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 x=m.match(/(?:\r\n?|\n).*/g);return x?(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 x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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 D=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===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),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).
|
|
4
4
|
`+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(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./DwwhuCym.js";import{s as ce}from"./BsmtfVfM.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./Bw79RGVy.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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 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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,B as w,ay as x}from"./
|
|
1
|
+
import{b as a,B as w,ay as x}from"./Bw79RGVy.js";var g=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=B(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"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./C7p2lOwL.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./Bw79RGVy.js";import{p as I}from"./Co5Wv5vC.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))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.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./DxxarOOi.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/d6_ZY1Pu.js","/app/immutable/chunks/B1JbKfg-.js","/app/immutable/chunks/B_T-BNgN.js","/app/immutable/chunks/DxxarOOi.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B9BY7BTd.js","/app/immutable/chunks/DbKwos66.js","/app/immutable/chunks/BalRQ77x.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/BoIx_pzM.js","/app/immutable/chunks/BVpl8e4e.js","/app/immutable/chunks/CTc2r7_5.js","/app/immutable/chunks/D7zs1WNS.js","/app/immutable/chunks/DwwhuCym.js","/app/immutable/chunks/BsmtfVfM.js","/app/immutable/chunks/Be3ctlCz.js","/app/immutable/chunks/BfdTnj-p.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Zs30783q.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/50l-lj9m.js","/app/immutable/chunks/C600Ggsz.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B5yEHkSy.js","/app/immutable/chunks/CruJ4jyB.js","/app/immutable/chunks/DzAQQ1i-.js","/app/immutable/chunks/Ch-D6DCZ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BUT4El0L.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BfQPFCP7.js","/app/immutable/chunks/C0_snm4j.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CkbzWFJM.js","/app/immutable/chunks/BqJSWZOr.js","/app/immutable/chunks/piMAhJa1.js","/app/immutable/chunks/DkkzFfYK.js","/app/immutable/chunks/D5eCb9SA.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/ByAetY4P.js","/app/immutable/chunks/BWsFbeUj.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DSjVYlVX.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/CYrmrI7Y.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/BmO6NekI.js","/app/immutable/chunks/D1E_1zhz.js","/app/immutable/chunks/CAeNUoVv.js","/app/immutable/chunks/DhNEeuS_.js","/app/immutable/chunks/Hxdz4eYy.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BXwdEeCG.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/eDLszxKs.js","/app/immutable/chunks/Bb8U_oXl.js","/app/immutable/chunks/B8jCEPhi.js","/app/immutable/chunks/CVA4h5nu.js","/app/immutable/chunks/DecRlFIH.js","/app/immutable/chunks/C7p2lOwL.js","/app/immutable/chunks/Co5Wv5vC.js","/app/immutable/chunks/BEs8P5qJ.js","/app/immutable/chunks/D0nMX7Fy.js","/app/immutable/chunks/k6oRCp56.js","/app/immutable/chunks/Daz1QCGS.js","/app/immutable/chunks/CgrfkEos.js","/app/immutable/chunks/DYtp8pRu.js","/app/immutable/chunks/ATfBW89h.js","/app/immutable/chunks/BcM59Lcv.js","/app/immutable/chunks/BCAvWplY.js","/app/immutable/chunks/x4xTOnLp.js","/app/immutable/chunks/BIkmu8XX.js","/app/immutable/chunks/Boj7sQg1.js","/app/immutable/chunks/DfmpMhdc.js","/app/immutable/chunks/CDt7gkIg.js","/app/immutable/chunks/BtIGJq9M.js","/app/immutable/chunks/tnMWXb13.js","/app/immutable/chunks/D_Ck4oYy.js","/app/immutable/chunks/PAMGn91D.js","/app/immutable/chunks/D6l063h1.js","/app/immutable/chunks/BTLE7W-J.js","/app/immutable/chunks/CTAiPv85.js","/app/immutable/chunks/7u4ZW-_Z.js","/app/immutable/chunks/DkgA-dp6.js","/app/immutable/chunks/DHQlFr3x.js","/app/immutable/chunks/3cKBmyAG.js","/app/immutable/chunks/BDX_Xsmi.js","/app/immutable/chunks/CWAFstnw.js","/app/immutable/chunks/Bo-dnNXZ.js","/app/immutable/chunks/C_lt_MLT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./DxxarOOi.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./Be3ctlCz.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as A,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as _e,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./3SdAC2_C.js";import{i as yr}from"./DzAQQ1i-.js";import{h as zu}from"./BKD7o1lQ.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./Ch-D6DCZ.js";import{b as no}from"./Dn334wJv.js";import{c as mC}from"./ChTqQfQN.js";import{d4 as yC,cW as xC,F as dn,aM as bC,bb as zp,m as CC,n as wC,f as kC,j as SC,y as Hu,v as Yu,h as vC,u as MC,P as TC,s as BC,O as _C,r as LC,k as AC,D as Xu,H as FC,U as $C,ax as EC,ay as PC,aY as IC}from"./B5yEHkSy.js";import{f as Ja,ae as OC}from"./D5eCb9SA.js";import"./BfQPFCP7.js";import{M as DC,Z as RC}from"./C23BHMTF.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./BUT4El0L.js";import{c as HC}from"./BbIcudMY.js";import{k as Hp}from"./ByAetY4P.js";import{n as To,h as Gu,t as Is,d as Uu}from"./DSjVYlVX.js";import{c as fa}from"./CruJ4jyB.js";import{e as YC}from"./qM_0Sky2.js";import{t as XC}from"./DAsc1V4f.js";import{s as il}from"./C600Ggsz.js";import{H as jC}from"./BYqiRSP_.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{l as UC,K as VC,d as ZC,e as Cc,M as KC}from"./CvP7-iXZ.js";import"./BrfF5NLx.js";import{u as wo}from"./DkkzFfYK.js";import"./BWsFbeUj.js";import"./Zs30783q.js";import{bL as QC}from"./piMAhJa1.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
|
|
3
3
|
|
|
4
4
|
`+r.mark.snippet),a+" "+o):a}C(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return C(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=C(function(i){return this.name+": "+e(this,i)},"toString"),wc=t,wc}C(Bs,"requireException");var kc,Qu;function jp(){if(Qu)return kc;Qu=1;const e=Ts();function t(o,a,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-a>d&&(c=" ... ",a=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+o.slice(a,s).replace(/\t/g,"→")+h,pos:n-a+c.length}}C(t,"getLine");function r(o,a){return e.repeat(" ",a-o.length)+o}C(r,"padStart");function i(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(o.buffer);)l.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(o.line+a.linesAfter,l.length).toString().length,f=a.maxLength-(a.indent+u+3);for(let p=1;p<=a.linesBefore&&!(h-p<0);p++){const m=t(o.buffer,n[h-p],l[h-p],o.position-(n[h]-n[h-p]),f);d=e.repeat(" ",a.indent)+r((o.line-p+1).toString(),u)+" | "+m.str+`
|
|
5
5
|
`+d}const g=t(o.buffer,n[h],l[h],o.position,f);d+=e.repeat(" ",a.indent)+r((o.line+1).toString(),u)+" | "+g.str+`
|
|
@@ -298,8 +298,8 @@ ${a.join(`
|
|
|
298
298
|
L0,20`)},"requirement_arrow"),lL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
299
299
|
L20,10
|
|
300
300
|
M20,10
|
|
301
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./BHrccWS6.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./Btxass_5.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./CbMctCk2.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./CivTzCBV.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CCK5TGK5.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B6z9N_8y.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BlEa7UsU.js");return{diagram:t}},__vite__mapDeps([63,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DMnVAzAI.js");return{diagram:t}},__vite__mapDeps([64,13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ygVTpe0W.js");return{diagram:t}},__vite__mapDeps([65,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bq5w_10y.js");return{diagram:t}},__vite__mapDeps([66,67,68,69,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Z_Zl_SfR.js");return{diagram:t}},__vite__mapDeps([70,6,71]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BbRVqgQZ.js");return{diagram:t}},__vite__mapDeps([72,69,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./4aIDpPwE.js");return{diagram:t}},__vite__mapDeps([73,68,69,3,4,71]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CWplqerm.js");return{diagram:t}},__vite__mapDeps([74,71]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C3XalDjV.js");return{diagram:t}},__vite__mapDeps([75,71]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CZoORueB.js");return{diagram:t}},__vite__mapDeps([76,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BIzGfV52.js");return{diagram:t}},__vite__mapDeps([77,67,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./IcK2O8wN.js");return{diagram:t}},__vite__mapDeps([78,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CGvpPKXI.js");return{diagram:t}},__vite__mapDeps([79,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BpM87Usm.js");return{diagram:t}},__vite__mapDeps([80,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
-
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B6z9N_8y.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DQjZPSYr.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DQPV9Jid.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./b7K3kFDW.js");return{diagram:t}},__vite__mapDeps([82,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BoDtRDem.js");return{diagram:t}},__vite__mapDeps([83,71]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DGK1iojf.js");return{diagram:t}},__vite__mapDeps([84,68,69,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B4on2wzU.js");return{diagram:t}},__vite__mapDeps([85,68,69,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./8un-1yF0.js");return{diagram:t}},__vite__mapDeps([86,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Qk2Uvykz.js");return{diagram:t}},__vite__mapDeps([87,67,68,69,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DJsRid9i.js");return{diagram:t}},__vite__mapDeps([88,68,69,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C4ERaDtS.js");return{diagram:t}},__vite__mapDeps([89,68,69,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DZc-gQMq.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CLMgFYIH.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./mln4aKyz.js");return{diagram:t}},__vite__mapDeps([90,16,68,69,3,4,71]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ggBdElOR.js");return{diagram:t}},__vite__mapDeps([91,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DeREMpl2.js");return{diagram:t}},__vite__mapDeps([92,68,69,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DQbaQwzY.js");return{diagram:t}},__vite__mapDeps([93,68,69,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DM5MJ3Sn.js");return{diagram:t}},__vite__mapDeps([94,95,68,69,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DhezPe3y.js");return{diagram:t}},__vite__mapDeps([96,95,68,69,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BEtv8tBy.js");return{diagram:t}},__vite__mapDeps([97,95,68,69,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bb4KDW-H.js");return{diagram:t}},__vite__mapDeps([98,95,68,69,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
301
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./d6_ZY1Pu.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./B9BY7BTd.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./DbKwos66.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./BalRQ77x.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BoIx_pzM.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CTc2r7_5.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./eDLszxKs.js");return{diagram:t}},__vite__mapDeps([63,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bb8U_oXl.js");return{diagram:t}},__vite__mapDeps([64,13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B8jCEPhi.js");return{diagram:t}},__vite__mapDeps([65,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CVA4h5nu.js");return{diagram:t}},__vite__mapDeps([66,67,68,69,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BEs8P5qJ.js");return{diagram:t}},__vite__mapDeps([70,6,71]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./k6oRCp56.js");return{diagram:t}},__vite__mapDeps([72,69,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Daz1QCGS.js");return{diagram:t}},__vite__mapDeps([73,68,69,3,4,71]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CgrfkEos.js");return{diagram:t}},__vite__mapDeps([74,71]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DYtp8pRu.js");return{diagram:t}},__vite__mapDeps([75,71]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./ATfBW89h.js");return{diagram:t}},__vite__mapDeps([76,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BcM59Lcv.js");return{diagram:t}},__vite__mapDeps([77,67,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BCAvWplY.js");return{diagram:t}},__vite__mapDeps([78,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./x4xTOnLp.js");return{diagram:t}},__vite__mapDeps([79,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BIkmu8XX.js");return{diagram:t}},__vite__mapDeps([80,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
+
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CTc2r7_5.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,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,6,53,54,55,56,57,58,59,60,61,62]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DVZxKzOj.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Boj7sQg1.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DfmpMhdc.js");return{diagram:t}},__vite__mapDeps([82,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CDt7gkIg.js");return{diagram:t}},__vite__mapDeps([83,71]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BtIGJq9M.js");return{diagram:t}},__vite__mapDeps([84,68,69,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./tnMWXb13.js");return{diagram:t}},__vite__mapDeps([85,68,69,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D_Ck4oYy.js");return{diagram:t}},__vite__mapDeps([86,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./PAMGn91D.js");return{diagram:t}},__vite__mapDeps([87,67,68,69,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D6l063h1.js");return{diagram:t}},__vite__mapDeps([88,68,69,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BTLE7W-J.js");return{diagram:t}},__vite__mapDeps([89,68,69,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./z37DF9wR.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DApALACW.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CTAiPv85.js");return{diagram:t}},__vite__mapDeps([90,16,68,69,3,4,71]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./7u4ZW-_Z.js");return{diagram:t}},__vite__mapDeps([91,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DkgA-dp6.js");return{diagram:t}},__vite__mapDeps([92,68,69,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DHQlFr3x.js");return{diagram:t}},__vite__mapDeps([93,68,69,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./3cKBmyAG.js");return{diagram:t}},__vite__mapDeps([94,95,68,69,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CWAFstnw.js");return{diagram:t}},__vite__mapDeps([96,95,68,69,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bo-dnNXZ.js");return{diagram:t}},__vite__mapDeps([97,95,68,69,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C_lt_MLT.js");return{diagram:t}},__vite__mapDeps([98,95,68,69,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
303
303
|
`;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new Ma(a,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ma,"Diagram"),Ma),lp=[],wF=C(()=>{lp.forEach(e=>{e()}),lp=[]},"attachFunctions"),kF=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f1(e){const t=Qp(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
|
|
304
304
|
`).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
|
|
305
305
|
`):t.body;let o=o2(i,{schema:i2})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:e.slice(t.length),metadata:a}}C(f1,"extractFrontMatter");var SF=C(e=>e.replace(/\r\n?/g,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./_zL9bNp2.js";import{p as g}from"./BOf4ykdJ.js";import{d as I}from"./B0Z-1lwJ.js";import{dP as f}from"./BfdTnj-p.js";import{Cl as u,m as y,Jq as o,h6 as A,vF as m,vG as N,vI as b}from"./Zs30783q.js";import{g as W,n as h}from"./CAeNUoVv.js";import{S as D,a as R,n as E}from"./CYrmrI7Y.js";import{n as O,o as v}from"./BYoDJRDO.js";const P="intent:onboarding-skip:v1";function k(e){return u.getItem(h(P,e))==="1"}function re(e){k(e)||u.setItem(h(P,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&k(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function q(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:q,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:H,navigateToSpec:M,navigateToTask:G,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,H as d,G as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as lt,bo as _,bw as dt,b as ct,bm as e,br as ft,bs as Ae,bq as Lt}from"./DxxarOOi.js";import{bs as pt,ay as qe,be as S,b$ as A,b_ as n,bO as i,W as s,bS as o,bl as D,bn as ut,aA as v,a7 as Et,aD as t,c9 as y,aB as b,a5 as h,bA as x,bf as gt,bo as Gt,bV as tt,br as It,ca as bt,bH as Ke,bk as Ut}from"./3SdAC2_C.js";import{g as zt,i as Tt,I as mt}from"./BUT4El0L.js";import{c as Ft}from"./CruJ4jyB.js";import{s as ot,f as Ot,c as Bt}from"./Ch-D6DCZ.js";import{f as U}from"./D5eCb9SA.js";import"./BfQPFCP7.js";import"./DBI9dTMM.js";import{b as Mt}from"./DeaknxEN.js";import"./Cncxuk-H.js";import"./euI_ACTK.js";import{b as Ht}from"./BHhpe04T.js";import{i as k}from"./DzAQQ1i-.js";import{b as Rt}from"./D3yXvqwY.js";import{F as Nt,ay as qt}from"./B5yEHkSy.js";import"./C600Ggsz.js";import{F as ht,G as Jt}from"./Dw2_URl8.js";import"./BrfF5NLx.js";/* empty css */import{C as Wt}from"./DkkzFfYK.js";import{L as xt}from"./BtLlD_LO.js";import{I as rt}from"./VlOW_lom.js";import"./BzL9Egzq.js";import"./DtVS2Hpo.js";import{h as Qt}from"./hjdg1APe.js";import{Jq as Pe,fB as kt,J as Vt,eo as yt,r3 as jt,uy as Xt,Jh as Yt,oB as Zt,hQ as er}from"./Zs30783q.js";import{aC as $t,aD as Kt,aE as tr,ax as rr,ay as Pt,az as sr,aA as ar,aI as ir}from"./CPc9hi45.js";var nr=b('<!> <p class="type-body"> </p>',1);function or(c,a){if(new.target)return lt({component:or,...c});pt(a,!0);let O=_(a,"open",15,!1),G=_(a,"static",7,!1),W=_(a,"title",7),m=_(a,"message",7),I=_(a,"buttons",7),f=_(a,"cancelIndex",7,0),ae=_(a,"onSelect",7);function Q(l){O(!1),ae()?.(l)}var he={get open(){return O()},set open(l=!1){O(l),v()},get static(){return G()},set static(l=!1){G(l),v()},get title(){return W()},set title(l){W(l),v()},get message(){return m()},set message(l){m(l),v()},get buttons(){return I()},set buttons(l){I(l),v()},get cancelIndex(){return f()},set cancelIndex(l=0){f(l),v()},get onSelect(){return ae()},set onSelect(l){ae(l),v()},$set:dt,$on:(l,V)=>ct(a,l,V)};return Ht(c,{get static(){return G()},role:"alertdialog",get title(){return W()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(I().length-1),onCancel:()=>Q(f()),get open(){return O()},set open(V){O(V)},footer:V=>{var $=Et(),B=qe($);zt(B,17,I,Tt,(ie,ne,te)=>{{let xe=y(()=>te===f()?"ghost":te===I().length-1?"primary":"outline");U(ie,{get variant(){return t(xe)},onclick:()=>Q(te),children:(De,M)=>{S();var we=A();n(()=>i(we,t(ne))),s(De,we)},$$slots:{default:!0}})}}),s(V,$)},children:(V,$)=>{var B=nr(),ie=qe(B);Ft(ie,()=>Mt,(xe,De)=>{De(xe,{class:"sr-only",children:(M,we)=>{S();var Oe=A();n(()=>i(Oe,m())),s(M,Oe)},$$slots:{default:!0}})});var ne=o(ie,2),te=D(ne,!0);n(()=>i(te,m())),s(V,B)},$$slots:{footer:!0,default:!0}}),ut(he)}const Fe={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},lr="claude setup-token",dr="auggie token print";function cr(c,a){if(a==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenCodex_description():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(c){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function pr(c,a){return a==="apiKey"?e.settings_providerProfileKinds_apiKey_label():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function cs(c,a){return c!=="claude"&&c!=="codex"?cr(c,a):a==="token"?c==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():c==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function ur(c,a){if(a==="token")return c==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Fe.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:c==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:dr,link:{href:Fe.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:lr};switch(c){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Fe.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Fe.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Fe.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Fe.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Fe.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function _r(c,a){return a?c==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function ps(c,a){if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():c==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(c){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var vr=b('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),fr=b('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Ct=b("<li> </li>"),gr=b('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),St=b('<div class="flex items-center gap-2"><!> <!></div>'),br=b('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),mr=b('<span class="type-body text-muted-foreground"> </span> <!>',1),hr=b('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),xr=b('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),kr=b('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),yr=b('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function $r(c,a){if(new.target)return lt({component:$r,...c});pt(a,!0);let O=_(a,"provider",7),G=_(a,"kind",7),W=_(a,"mode",7),m=_(a,"secret",15,""),I=_(a,"secretSaved",7,!1),f=_(a,"replacing",15,!1),ae=_(a,"secretError",7),Q=_(a,"baseUrl",15,""),he=_(a,"baseUrlSaved",7,!1),l=_(a,"baseUrlAction",15,"keep"),V=_(a,"customEndpointOpen",15,!1),$=_(a,"disabled",7,!1),B=_(a,"secretDisabled",23,$),ie=_(a,"keyCheck",7,!0),ne=_(a,"pasteStep",7,!0),te=_(a,"customEndpoint",7,!0);const xe="https://",De=y(()=>O()==="claude"&&G()==="apiKey"),M=y(()=>ur(O(),G())),we=y(()=>_r(G(),ie())),Oe=y(()=>W()==="add"||!I()||f()),Qe=y(()=>pr(O(),G()));function st(){f(!1),m("")}var at={get provider(){return O()},set provider(r){O(r),v()},get kind(){return G()},set kind(r){G(r),v()},get mode(){return W()},set mode(r){W(r),v()},get secret(){return m()},set secret(r=""){m(r),v()},get secretSaved(){return I()},set secretSaved(r=!1){I(r),v()},get replacing(){return f()},set replacing(r=!1){f(r),v()},get secretError(){return ae()},set secretError(r){ae(r),v()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),v()},get baseUrlSaved(){return he()},set baseUrlSaved(r=!1){he(r),v()},get baseUrlAction(){return l()},set baseUrlAction(r="keep"){l(r),v()},get customEndpointOpen(){return V()},set customEndpointOpen(r=!1){V(r),v()},get disabled(){return $()},set disabled(r=!1){$(r),v()},get secretDisabled(){return B()},set secretDisabled(r=$){B(r),v()},get keyCheck(){return ie()},set keyCheck(r=!0){ie(r),v()},get pasteStep(){return ne()},set pasteStep(r=!0){ne(r),v()},get customEndpoint(){return te()},set customEndpoint(r=!0){te(r),v()},$set:dt,$on:(r,P)=>ct(a,r,P)},Be=yr(),Le=h(Be);{var Ve=r=>{var P=vr(),H=D(P,!0);n(()=>i(H,t(M).eligibility)),s(r,P)};k(Le,r=>{t(M).eligibility&&r(Ve)})}var _e=o(Le,2);{var Me=r=>{var P=gr(),H=h(P),oe=D(H,!0),j=o(H,2),X=h(j),le=h(X),ke=o(le);{var N=g=>{var w=fr(),q=h(w),T=D(q,!0),de=o(q,2);Wt(de,{get text(){return t(M).command},size:"sm"}),x(w),n(()=>i(T,t(M).command)),s(g,w)};k(ke,g=>{t(M).command&&g(N)})}x(X);var ve=o(X,2);{var re=g=>{var w=Ct(),q=D(w,!0);n(()=>i(q,t(M).steps[1])),s(g,w)};k(ve,g=>{t(M).steps[1]&&g(re)})}var z=o(ve,2);{var R=g=>{var w=Ct(),q=D(w,!0);n(()=>i(q,t(we))),s(g,w)};k(z,g=>{ne()&&g(R)})}x(j);var ye=o(j,2);{var Ee=g=>{U(g,{variant:"link",size:"sm",get href(){return t(M).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(w,q)=>{S();var T=A();n(()=>i(T,t(M).link.label)),s(w,T)},$$slots:{default:!0}})};k(ye,g=>{t(M).link&&g(Ee)})}x(P),n(g=>{i(oe,g),i(le,`${t(M).steps[0]??""} `)},[()=>G()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),s(r,P)};k(_e,r=>{(W()==="add"||f())&&r(Me)})}var K=o(_e,2);{var je=r=>{ht(r,{get label(){return t(Qe)},get error(){return ae()},control:(H,oe=gt)=>{var j=St(),X=h(j);rt(X,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return B()},"data-testid":"provider-profile-secret-input",get value(){return m()},set value(N){m(N)}}));var le=o(X,2);{var ke=N=>{U(N,{variant:"ghost-light",size:"sm",get disabled(){return B()},onclick:st,children:(ve,re)=>{S();var z=A();n(R=>i(z,R),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(ve,z)},$$slots:{default:!0}})};k(le,N=>{W()==="edit"&&I()&&N(ke)})}x(j),s(H,j)},$$slots:{control:!0}})},Je=r=>{var P=br(),H=h(P),oe=D(H,!0),j=o(H,2),X=h(j),le=D(X,!0),ke=o(X,2);U(ke,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>f(!0),children:(N,ve)=>{S();var re=A();n(z=>i(re,z),[()=>e.settings_providerProfileKinds_replace_label()]),s(N,re)},$$slots:{default:!0}}),x(j),x(P),n(N=>{i(oe,t(Qe)),i(le,N)},[()=>e.settings_providerProfileKinds_saved_label()]),s(r,P)};k(K,r=>{t(Oe)?r(je):r(Je,-1)})}var it=o(K,2);{var Xe=r=>{var P=kr(),H=h(P),oe=h(H);Nt(oe,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var j=o(oe);x(H);var X=o(H,2),le=h(X),ke=D(le,!0),N=o(le,2);{var ve=z=>{var R=xr(),ye=h(R),Ee=D(ye,!0),g=o(ye,2);{var w=T=>{var de=mr(),Y=qe(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("keep"),children:(fe,ge)=>{S();var He=A();n($e=>i(He,$e),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(fe,He)},$$slots:{default:!0}}),n(fe=>i(Ce,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),s(T,de)},q=T=>{var de=hr(),Y=qe(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>l("replace"),children:(ge,He)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfileKinds_replace_label()]),s(ge,$e)},$$slots:{default:!0}});var fe=o(Ge,2);U(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("remove"),children:(ge,He)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfiles_remove_label()]),s(ge,$e)},$$slots:{default:!0}}),n(ge=>i(Ce,ge),[()=>e.settings_providerProfileKinds_saved_label()]),s(T,de)};k(g,T=>{l()==="remove"?T(w):T(q,-1)})}x(R),n(T=>i(Ee,T),[()=>e.settings_providerProfileKinds_baseUrl_label()]),s(z,R)},re=z=>{{const R=(Ee,g=gt)=>{var w=St(),q=h(w);rt(q,ft(g,{type:"url",placeholder:xe,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(Y){Q(Y)}}));var T=o(q,2);{var de=Y=>{U(Y,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{l("keep"),Q("")},children:(Ce,Ge)=>{S();var fe=A();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(Ce,fe)},$$slots:{default:!0}})};k(T,Y=>{W()==="edit"&&he()&&Y(de)})}x(w),s(Ee,w)};let ye=y(()=>e.settings_providerProfileKinds_baseUrl_label());ht(z,{get label(){return t(ye)},control:R,$$slots:{control:!0}})}};k(N,z=>{W()==="edit"&&he()&&l()!=="replace"?z(ve):z(re,-1)})}x(X),x(P),n((z,R)=>{i(j,` ${z??""}`),i(ke,R)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Rt("open","toggle",P,V,V),s(r,P)};k(it,r=>{t(De)&&te()&&r(Xe)})}return x(Be),n(()=>ot(Be,"data-kind",G())),s(c,Be),ut(at)}var Kr=b('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Pr=b('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Cr=b('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Sr=b('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),Ar=b('<p class="text-xs text-danger" role="alert"> </p>'),Dr=b('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),wr=b('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Lr=b('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Er=b('<p class="text-sm text-subtle" role="status"> </p>'),Gr=b('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ir=b('<p class="text-sm text-danger" role="alert"> </p>'),Ur=b('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function zr(c,a){const O=Gt();if(new.target)return lt({component:zr,...c});pt(a,!0);const G=()=>Ae(De,"$storedInstance$",l),W=()=>Ae(st,"$deviceGrantSupported$",l),m=()=>Ae(Be,"$instanceSetupSupported$",l),I=()=>Ae(M,"$isAuthenticating$",l),f=()=>Ae(we,"$isCancelling$",l),ae=()=>Ae(Qe,"$deviceFlow$",l),Q=()=>Ae(Oe,"$cancelOutcome$",l),he=()=>Ae(at,"$error$",l),[l,V]=Lt();let $=_(a,"compact",7,!1),B=_(a,"onCancel",7);const ie=`${O}-host`,ne=`${O}-host-help`,te=`${O}-host-error`,xe=`${O}-token`,De=$t(),M=Kt(),we=tr(),Oe=rr(),Qe=Pt(),st=sr(),at=ar(),Be=ir();let Le=tt(It($t.select(Pe.state))),Ve=tt(!1),_e=tt(""),Me=tt(!1);const K=y(()=>Xt(t(Le))),je=y(()=>t(Me)||t(K)===G()&&W()===!1),Je=y(()=>t(K)?Zt(t(K)):null),it=y(()=>m()&&t(K)!==null&&t(_e).trim().length>0);bt(()=>{const u=G();t(Ve)||Ke(Le,u,!0)}),bt(()=>{m()||Ke(_e,"")}),Ut(()=>{const u=()=>{const d=Pe.state;Kt.select(d)&&Pt.select(d)&&Pe.dispatch(kt())};return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)});function Xe(){!m()||!t(K)||t(K)===G()||I()||f()||Pe.dispatch(jt(t(K)))}function r(){Ke(Ve,!0),Ke(_e,"")}function P(){!m()||!t(K)||I()||f()||Pe.dispatch(Yt(t(K)))}function H(){const u=t(_e).trim();!m()||!u||!t(K)||I()||f()||(Pe.dispatch(er(t(K),u)),Ke(_e,""))}function oe(){!m()||f()||(I()&&Pe.dispatch(yt()),Ke(Me,!0))}function j(){Ke(Me,!1)}function X(){f()||Pe.dispatch(yt())}function le(){t(Je)&&Qt(t(Je),{})}function ke(u){u.key==="Enter"&&(u.preventDefault(),Xe(),t(je)?document.getElementById(xe)?.focus():P())}function N(u){u.key==="Enter"&&(u.preventDefault(),H())}const ve=y(()=>$()?"sm":"xl"),re=y(()=>$()?"sm":"default");var z={get compact(){return $()},set compact(u=!1){$(u),v()},get onCancel(){return B()},set onCancel(u){B(u),v()},$set:dt,$on:(u,d)=>ct(a,u,d)},R=Ur();{const u=d=>{U(d,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return f()},onclick:X,children:(p,C)=>{S();var F=A();n(ce=>i(F,ce),[()=>f()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),s(p,F)},$$slots:{default:!0}})};var ye=h(R);{var Ee=d=>{var p=Kr(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),s(d,p)};k(ye,d=>{m()||d(Ee)})}var g=o(ye,2);{var w=d=>{var p=Pr(),C=D(p,!0);n(()=>i(C,G())),s(d,p)};k(g,d=>{(I()||f())&&d(w)})}var q=o(g,2);{var T=d=>{var p=Cr(),C=h(p);{let Ue=y(()=>e.lib_gitlabConnect_openGitlab_label());Jt(C,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(Ue)},get compact(){return $()}})}var F=o(C,2),ce=h(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),Re=D(se,!0),Ie=o(se,2);{let Ue=y(()=>f()||!m());U(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(Ue)},onclick:oe,children:(nt,_t)=>{S();var L=A();n(J=>i(L,J),[()=>e.lib_gitlabConnect_useToken_label()]),s(nt,L)},$$slots:{default:!0}})}var We=o(Ie,2);u(We),x(F),x(p),n(Ue=>i(Re,Ue),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),s(d,p)},de=d=>{var p=Sr(),C=h(p);mt(C,{size:16,class:"shrink-0"});var F=o(C,2),ce=D(F,!0),se=o(F,2);u(se),x(p),n(Re=>i(ce,Re),[()=>e.lib_gitlabConnect_connecting_label()]),s(d,p)},Y=d=>{var p=Lr(),C=qe(p),F=h(C);xt(F,{get for(){return ie},children:(L,J)=>{S();var Z=A();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),s(L,Z)},$$slots:{default:!0}});var ce=o(F,2);{let L=y(()=>!m()),J=y(()=>!t(K)||void 0),Z=y(()=>t(K)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(L)},get"aria-invalid"(){return t(J)},get"aria-describedby"(){return t(Z)},get placeholder(){return Vt},oninput:r,onchange:Xe,onkeydown:ke,get value(){return t(Le)},set value(pe){Ke(Le,pe,!0)}})}var se=o(ce,2),Re=D(se,!0),Ie=o(se,2);{var We=L=>{var J=Ar(),Z=D(J,!0);n(pe=>{ot(J,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),s(L,J)};k(Ie,L=>{t(K)||L(We)})}x(C);var Ue=o(C,2);{var nt=L=>{var J=Dr(),Z=qe(J),pe=h(Z);xt(pe,{get for(){return xe},children:(E,me)=>{S();var Ne=A();n(ee=>i(Ne,ee),[()=>e.lib_gitlabConnect_token_label()]),s(E,Ne)},$$slots:{default:!0}});var Ye=o(pe,2);{let E=y(()=>!m());rt(Ye,{get id(){return xe},type:"password",autocomplete:"off",get disabled(){return t(E)},placeholder:"glpat-...",onkeydown:N,get value(){return t(_e)},set value(me){Ke(_e,me,!0)}})}var Ze=o(Ye,2),be=h(Ze),ze=o(be);{var et=E=>{U(E,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_createToken_label({host:t(K)})]),s(me,ee)},$$slots:{default:!0}})};k(ze,E=>{t(Je)&&t(K)&&E(et)})}x(Ze),x(Z);var ue=o(Z,2),Se=h(ue);{let E=y(()=>!t(it));U(Se,{variant:"primary",get size(){return t(ve)},type:"button",onclick:H,get disabled(){return t(E)},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_connect_label()]),s(me,ee)},$$slots:{default:!0}})}var vt=o(Se,2);{var At=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",onclick:j,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_useDevice_label()]),s(me,ee)},$$slots:{default:!0}})};k(vt,E=>{t(Me)&&!(t(K)===G()&&W()===!1)&&E(At)})}var Dt=o(vt,2);{var wt=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_cancel_label()]),s(me,ee)},$$slots:{default:!0}})};k(Dt,E=>{B()&&E(wt)})}x(ue),n(E=>i(be,`${E??""} `),[()=>e.lib_gitlabConnect_token_description()]),s(L,J)},_t=L=>{var J=wr(),Z=h(J);{let be=y(()=>!t(K)||!m());U(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:P,get disabled(){return t(be)},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_connect_label()]),s(ze,ue)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=y(()=>!m());U(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_useToken_label()]),s(ze,ue)},$$slots:{default:!0}})}var Ye=o(pe,2);{var Ze=be=>{U(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_cancel_label()]),s(ze,ue)},$$slots:{default:!0}})};k(Ye,be=>{B()&&be(Ze)})}x(J),s(L,J)};k(Ue,L=>{t(je)?L(nt):L(_t,-1)})}n(L=>{ot(se,"id",ne),i(Re,L)},[()=>e.lib_gitlabConnect_host_description()]),s(d,p)};k(q,d=>{(I()||f())&&ae()?d(T):I()||f()?d(de,1):d(Y,-1)})}var Ce=o(q,2);{var Ge=d=>{var p=Er(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_cancelled_label()]),s(d,p)},fe=d=>{var p=Gr(),C=h(p),F=D(C,!0),ce=o(C,2);U(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return f()},onclick:()=>Pe.dispatch(kt()),children:(se,Re)=>{S();var Ie=A();n(We=>i(Ie,We),[()=>e.lib_gitlabConnect_checkStatus_label()]),s(se,Ie)},$$slots:{default:!0}}),x(p),n(se=>i(F,se),[()=>Q()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),s(d,p)};k(Ce,d=>{Q()==="cancelled"?d(Ge):(Q()==="already-started"||Q()==="failed")&&d(fe,1)})}var ge=o(Ce,2);{var He=d=>{var p=Ir(),C=D(p,!0);n(()=>i(C,he())),s(d,p)};k(ge,d=>{he()&&d(He)})}x(R)}n(()=>Ot(R,1,Bt($()?"space-y-2":"space-y-4"))),s(c,R);var $e=ut(z);return V(),$e}export{zr as G,or as M,$r as P,pr as a,ps as b,cr as k,cs as s};
|
|
1
|
+
import{t as lt,bo as _,bw as dt,b as ct,bm as e,br as ft,bs as Ae,bq as Lt}from"./DxxarOOi.js";import{bs as pt,ay as qe,be as S,b$ as A,b_ as n,bO as i,W as s,bS as o,bl as D,bn as ut,aA as v,a7 as Et,aD as t,c9 as y,aB as b,a5 as h,bA as x,bf as gt,bo as Gt,bV as tt,br as It,ca as bt,bH as Ke,bk as Ut}from"./3SdAC2_C.js";import{g as zt,i as Tt,I as mt}from"./BUT4El0L.js";import{c as Ft}from"./CruJ4jyB.js";import{s as ot,f as Ot,c as Bt}from"./Ch-D6DCZ.js";import{f as U}from"./D5eCb9SA.js";import"./BfQPFCP7.js";import"./DBI9dTMM.js";import{b as Mt}from"./DeaknxEN.js";import"./Cncxuk-H.js";import"./euI_ACTK.js";import{b as Ht}from"./BHhpe04T.js";import{i as k}from"./DzAQQ1i-.js";import{b as Rt}from"./D3yXvqwY.js";import{F as Nt,ay as qt}from"./B5yEHkSy.js";import"./C600Ggsz.js";import{F as ht,G as Jt}from"./D6KeRVx3.js";import"./BrfF5NLx.js";/* empty css */import{C as Wt}from"./DkkzFfYK.js";import{L as xt}from"./BtLlD_LO.js";import{I as rt}from"./VlOW_lom.js";import"./BzL9Egzq.js";import"./DtVS2Hpo.js";import{h as Qt}from"./BaUyyVaF.js";import{Jq as Pe,fB as kt,J as Vt,eo as yt,r3 as jt,uy as Xt,Jh as Yt,oB as Zt,hQ as er}from"./Zs30783q.js";import{aC as $t,aD as Kt,aE as tr,ax as rr,ay as Pt,az as sr,aA as ar,aI as ir}from"./piMAhJa1.js";var nr=b('<!> <p class="type-body"> </p>',1);function or(c,a){if(new.target)return lt({component:or,...c});pt(a,!0);let O=_(a,"open",15,!1),G=_(a,"static",7,!1),W=_(a,"title",7),m=_(a,"message",7),I=_(a,"buttons",7),f=_(a,"cancelIndex",7,0),ae=_(a,"onSelect",7);function Q(l){O(!1),ae()?.(l)}var he={get open(){return O()},set open(l=!1){O(l),v()},get static(){return G()},set static(l=!1){G(l),v()},get title(){return W()},set title(l){W(l),v()},get message(){return m()},set message(l){m(l),v()},get buttons(){return I()},set buttons(l){I(l),v()},get cancelIndex(){return f()},set cancelIndex(l=0){f(l),v()},get onSelect(){return ae()},set onSelect(l){ae(l),v()},$set:dt,$on:(l,V)=>ct(a,l,V)};return Ht(c,{get static(){return G()},role:"alertdialog",get title(){return W()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(I().length-1),onCancel:()=>Q(f()),get open(){return O()},set open(V){O(V)},footer:V=>{var $=Et(),B=qe($);zt(B,17,I,Tt,(ie,ne,te)=>{{let xe=y(()=>te===f()?"ghost":te===I().length-1?"primary":"outline");U(ie,{get variant(){return t(xe)},onclick:()=>Q(te),children:(De,M)=>{S();var we=A();n(()=>i(we,t(ne))),s(De,we)},$$slots:{default:!0}})}}),s(V,$)},children:(V,$)=>{var B=nr(),ie=qe(B);Ft(ie,()=>Mt,(xe,De)=>{De(xe,{class:"sr-only",children:(M,we)=>{S();var Oe=A();n(()=>i(Oe,m())),s(M,Oe)},$$slots:{default:!0}})});var ne=o(ie,2),te=D(ne,!0);n(()=>i(te,m())),s(V,B)},$$slots:{footer:!0,default:!0}}),ut(he)}const Fe={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},lr="claude setup-token",dr="auggie token print";function cr(c,a){if(a==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenCodex_description():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(c){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function pr(c,a){return a==="apiKey"?e.settings_providerProfileKinds_apiKey_label():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function cs(c,a){return c!=="claude"&&c!=="codex"?cr(c,a):a==="token"?c==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():c==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function ur(c,a){if(a==="token")return c==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Fe.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:c==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:dr,link:{href:Fe.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:lr};switch(c){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Fe.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Fe.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Fe.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Fe.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Fe.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function _r(c,a){return a?c==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function ps(c,a){if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():c==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(c){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var vr=b('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),fr=b('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Ct=b("<li> </li>"),gr=b('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),St=b('<div class="flex items-center gap-2"><!> <!></div>'),br=b('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),mr=b('<span class="type-body text-muted-foreground"> </span> <!>',1),hr=b('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),xr=b('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),kr=b('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),yr=b('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function $r(c,a){if(new.target)return lt({component:$r,...c});pt(a,!0);let O=_(a,"provider",7),G=_(a,"kind",7),W=_(a,"mode",7),m=_(a,"secret",15,""),I=_(a,"secretSaved",7,!1),f=_(a,"replacing",15,!1),ae=_(a,"secretError",7),Q=_(a,"baseUrl",15,""),he=_(a,"baseUrlSaved",7,!1),l=_(a,"baseUrlAction",15,"keep"),V=_(a,"customEndpointOpen",15,!1),$=_(a,"disabled",7,!1),B=_(a,"secretDisabled",23,$),ie=_(a,"keyCheck",7,!0),ne=_(a,"pasteStep",7,!0),te=_(a,"customEndpoint",7,!0);const xe="https://",De=y(()=>O()==="claude"&&G()==="apiKey"),M=y(()=>ur(O(),G())),we=y(()=>_r(G(),ie())),Oe=y(()=>W()==="add"||!I()||f()),Qe=y(()=>pr(O(),G()));function st(){f(!1),m("")}var at={get provider(){return O()},set provider(r){O(r),v()},get kind(){return G()},set kind(r){G(r),v()},get mode(){return W()},set mode(r){W(r),v()},get secret(){return m()},set secret(r=""){m(r),v()},get secretSaved(){return I()},set secretSaved(r=!1){I(r),v()},get replacing(){return f()},set replacing(r=!1){f(r),v()},get secretError(){return ae()},set secretError(r){ae(r),v()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),v()},get baseUrlSaved(){return he()},set baseUrlSaved(r=!1){he(r),v()},get baseUrlAction(){return l()},set baseUrlAction(r="keep"){l(r),v()},get customEndpointOpen(){return V()},set customEndpointOpen(r=!1){V(r),v()},get disabled(){return $()},set disabled(r=!1){$(r),v()},get secretDisabled(){return B()},set secretDisabled(r=$){B(r),v()},get keyCheck(){return ie()},set keyCheck(r=!0){ie(r),v()},get pasteStep(){return ne()},set pasteStep(r=!0){ne(r),v()},get customEndpoint(){return te()},set customEndpoint(r=!0){te(r),v()},$set:dt,$on:(r,P)=>ct(a,r,P)},Be=yr(),Le=h(Be);{var Ve=r=>{var P=vr(),H=D(P,!0);n(()=>i(H,t(M).eligibility)),s(r,P)};k(Le,r=>{t(M).eligibility&&r(Ve)})}var _e=o(Le,2);{var Me=r=>{var P=gr(),H=h(P),oe=D(H,!0),j=o(H,2),X=h(j),le=h(X),ke=o(le);{var N=g=>{var w=fr(),q=h(w),T=D(q,!0),de=o(q,2);Wt(de,{get text(){return t(M).command},size:"sm"}),x(w),n(()=>i(T,t(M).command)),s(g,w)};k(ke,g=>{t(M).command&&g(N)})}x(X);var ve=o(X,2);{var re=g=>{var w=Ct(),q=D(w,!0);n(()=>i(q,t(M).steps[1])),s(g,w)};k(ve,g=>{t(M).steps[1]&&g(re)})}var z=o(ve,2);{var R=g=>{var w=Ct(),q=D(w,!0);n(()=>i(q,t(we))),s(g,w)};k(z,g=>{ne()&&g(R)})}x(j);var ye=o(j,2);{var Ee=g=>{U(g,{variant:"link",size:"sm",get href(){return t(M).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(w,q)=>{S();var T=A();n(()=>i(T,t(M).link.label)),s(w,T)},$$slots:{default:!0}})};k(ye,g=>{t(M).link&&g(Ee)})}x(P),n(g=>{i(oe,g),i(le,`${t(M).steps[0]??""} `)},[()=>G()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),s(r,P)};k(_e,r=>{(W()==="add"||f())&&r(Me)})}var K=o(_e,2);{var je=r=>{ht(r,{get label(){return t(Qe)},get error(){return ae()},control:(H,oe=gt)=>{var j=St(),X=h(j);rt(X,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return B()},"data-testid":"provider-profile-secret-input",get value(){return m()},set value(N){m(N)}}));var le=o(X,2);{var ke=N=>{U(N,{variant:"ghost-light",size:"sm",get disabled(){return B()},onclick:st,children:(ve,re)=>{S();var z=A();n(R=>i(z,R),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(ve,z)},$$slots:{default:!0}})};k(le,N=>{W()==="edit"&&I()&&N(ke)})}x(j),s(H,j)},$$slots:{control:!0}})},Je=r=>{var P=br(),H=h(P),oe=D(H,!0),j=o(H,2),X=h(j),le=D(X,!0),ke=o(X,2);U(ke,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>f(!0),children:(N,ve)=>{S();var re=A();n(z=>i(re,z),[()=>e.settings_providerProfileKinds_replace_label()]),s(N,re)},$$slots:{default:!0}}),x(j),x(P),n(N=>{i(oe,t(Qe)),i(le,N)},[()=>e.settings_providerProfileKinds_saved_label()]),s(r,P)};k(K,r=>{t(Oe)?r(je):r(Je,-1)})}var it=o(K,2);{var Xe=r=>{var P=kr(),H=h(P),oe=h(H);Nt(oe,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var j=o(oe);x(H);var X=o(H,2),le=h(X),ke=D(le,!0),N=o(le,2);{var ve=z=>{var R=xr(),ye=h(R),Ee=D(ye,!0),g=o(ye,2);{var w=T=>{var de=mr(),Y=qe(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("keep"),children:(fe,ge)=>{S();var He=A();n($e=>i(He,$e),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(fe,He)},$$slots:{default:!0}}),n(fe=>i(Ce,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),s(T,de)},q=T=>{var de=hr(),Y=qe(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>l("replace"),children:(ge,He)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfileKinds_replace_label()]),s(ge,$e)},$$slots:{default:!0}});var fe=o(Ge,2);U(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("remove"),children:(ge,He)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfiles_remove_label()]),s(ge,$e)},$$slots:{default:!0}}),n(ge=>i(Ce,ge),[()=>e.settings_providerProfileKinds_saved_label()]),s(T,de)};k(g,T=>{l()==="remove"?T(w):T(q,-1)})}x(R),n(T=>i(Ee,T),[()=>e.settings_providerProfileKinds_baseUrl_label()]),s(z,R)},re=z=>{{const R=(Ee,g=gt)=>{var w=St(),q=h(w);rt(q,ft(g,{type:"url",placeholder:xe,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(Y){Q(Y)}}));var T=o(q,2);{var de=Y=>{U(Y,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{l("keep"),Q("")},children:(Ce,Ge)=>{S();var fe=A();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(Ce,fe)},$$slots:{default:!0}})};k(T,Y=>{W()==="edit"&&he()&&Y(de)})}x(w),s(Ee,w)};let ye=y(()=>e.settings_providerProfileKinds_baseUrl_label());ht(z,{get label(){return t(ye)},control:R,$$slots:{control:!0}})}};k(N,z=>{W()==="edit"&&he()&&l()!=="replace"?z(ve):z(re,-1)})}x(X),x(P),n((z,R)=>{i(j,` ${z??""}`),i(ke,R)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Rt("open","toggle",P,V,V),s(r,P)};k(it,r=>{t(De)&&te()&&r(Xe)})}return x(Be),n(()=>ot(Be,"data-kind",G())),s(c,Be),ut(at)}var Kr=b('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Pr=b('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Cr=b('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Sr=b('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),Ar=b('<p class="text-xs text-danger" role="alert"> </p>'),Dr=b('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),wr=b('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Lr=b('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Er=b('<p class="text-sm text-subtle" role="status"> </p>'),Gr=b('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ir=b('<p class="text-sm text-danger" role="alert"> </p>'),Ur=b('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function zr(c,a){const O=Gt();if(new.target)return lt({component:zr,...c});pt(a,!0);const G=()=>Ae(De,"$storedInstance$",l),W=()=>Ae(st,"$deviceGrantSupported$",l),m=()=>Ae(Be,"$instanceSetupSupported$",l),I=()=>Ae(M,"$isAuthenticating$",l),f=()=>Ae(we,"$isCancelling$",l),ae=()=>Ae(Qe,"$deviceFlow$",l),Q=()=>Ae(Oe,"$cancelOutcome$",l),he=()=>Ae(at,"$error$",l),[l,V]=Lt();let $=_(a,"compact",7,!1),B=_(a,"onCancel",7);const ie=`${O}-host`,ne=`${O}-host-help`,te=`${O}-host-error`,xe=`${O}-token`,De=$t(),M=Kt(),we=tr(),Oe=rr(),Qe=Pt(),st=sr(),at=ar(),Be=ir();let Le=tt(It($t.select(Pe.state))),Ve=tt(!1),_e=tt(""),Me=tt(!1);const K=y(()=>Xt(t(Le))),je=y(()=>t(Me)||t(K)===G()&&W()===!1),Je=y(()=>t(K)?Zt(t(K)):null),it=y(()=>m()&&t(K)!==null&&t(_e).trim().length>0);bt(()=>{const u=G();t(Ve)||Ke(Le,u,!0)}),bt(()=>{m()||Ke(_e,"")}),Ut(()=>{const u=()=>{const d=Pe.state;Kt.select(d)&&Pt.select(d)&&Pe.dispatch(kt())};return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)});function Xe(){!m()||!t(K)||t(K)===G()||I()||f()||Pe.dispatch(jt(t(K)))}function r(){Ke(Ve,!0),Ke(_e,"")}function P(){!m()||!t(K)||I()||f()||Pe.dispatch(Yt(t(K)))}function H(){const u=t(_e).trim();!m()||!u||!t(K)||I()||f()||(Pe.dispatch(er(t(K),u)),Ke(_e,""))}function oe(){!m()||f()||(I()&&Pe.dispatch(yt()),Ke(Me,!0))}function j(){Ke(Me,!1)}function X(){f()||Pe.dispatch(yt())}function le(){t(Je)&&Qt(t(Je),{})}function ke(u){u.key==="Enter"&&(u.preventDefault(),Xe(),t(je)?document.getElementById(xe)?.focus():P())}function N(u){u.key==="Enter"&&(u.preventDefault(),H())}const ve=y(()=>$()?"sm":"xl"),re=y(()=>$()?"sm":"default");var z={get compact(){return $()},set compact(u=!1){$(u),v()},get onCancel(){return B()},set onCancel(u){B(u),v()},$set:dt,$on:(u,d)=>ct(a,u,d)},R=Ur();{const u=d=>{U(d,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return f()},onclick:X,children:(p,C)=>{S();var F=A();n(ce=>i(F,ce),[()=>f()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),s(p,F)},$$slots:{default:!0}})};var ye=h(R);{var Ee=d=>{var p=Kr(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),s(d,p)};k(ye,d=>{m()||d(Ee)})}var g=o(ye,2);{var w=d=>{var p=Pr(),C=D(p,!0);n(()=>i(C,G())),s(d,p)};k(g,d=>{(I()||f())&&d(w)})}var q=o(g,2);{var T=d=>{var p=Cr(),C=h(p);{let Ue=y(()=>e.lib_gitlabConnect_openGitlab_label());Jt(C,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(Ue)},get compact(){return $()}})}var F=o(C,2),ce=h(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),Re=D(se,!0),Ie=o(se,2);{let Ue=y(()=>f()||!m());U(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(Ue)},onclick:oe,children:(nt,_t)=>{S();var L=A();n(J=>i(L,J),[()=>e.lib_gitlabConnect_useToken_label()]),s(nt,L)},$$slots:{default:!0}})}var We=o(Ie,2);u(We),x(F),x(p),n(Ue=>i(Re,Ue),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),s(d,p)},de=d=>{var p=Sr(),C=h(p);mt(C,{size:16,class:"shrink-0"});var F=o(C,2),ce=D(F,!0),se=o(F,2);u(se),x(p),n(Re=>i(ce,Re),[()=>e.lib_gitlabConnect_connecting_label()]),s(d,p)},Y=d=>{var p=Lr(),C=qe(p),F=h(C);xt(F,{get for(){return ie},children:(L,J)=>{S();var Z=A();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),s(L,Z)},$$slots:{default:!0}});var ce=o(F,2);{let L=y(()=>!m()),J=y(()=>!t(K)||void 0),Z=y(()=>t(K)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(L)},get"aria-invalid"(){return t(J)},get"aria-describedby"(){return t(Z)},get placeholder(){return Vt},oninput:r,onchange:Xe,onkeydown:ke,get value(){return t(Le)},set value(pe){Ke(Le,pe,!0)}})}var se=o(ce,2),Re=D(se,!0),Ie=o(se,2);{var We=L=>{var J=Ar(),Z=D(J,!0);n(pe=>{ot(J,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),s(L,J)};k(Ie,L=>{t(K)||L(We)})}x(C);var Ue=o(C,2);{var nt=L=>{var J=Dr(),Z=qe(J),pe=h(Z);xt(pe,{get for(){return xe},children:(E,me)=>{S();var Ne=A();n(ee=>i(Ne,ee),[()=>e.lib_gitlabConnect_token_label()]),s(E,Ne)},$$slots:{default:!0}});var Ye=o(pe,2);{let E=y(()=>!m());rt(Ye,{get id(){return xe},type:"password",autocomplete:"off",get disabled(){return t(E)},placeholder:"glpat-...",onkeydown:N,get value(){return t(_e)},set value(me){Ke(_e,me,!0)}})}var Ze=o(Ye,2),be=h(Ze),ze=o(be);{var et=E=>{U(E,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_createToken_label({host:t(K)})]),s(me,ee)},$$slots:{default:!0}})};k(ze,E=>{t(Je)&&t(K)&&E(et)})}x(Ze),x(Z);var ue=o(Z,2),Se=h(ue);{let E=y(()=>!t(it));U(Se,{variant:"primary",get size(){return t(ve)},type:"button",onclick:H,get disabled(){return t(E)},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_connect_label()]),s(me,ee)},$$slots:{default:!0}})}var vt=o(Se,2);{var At=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",onclick:j,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_useDevice_label()]),s(me,ee)},$$slots:{default:!0}})};k(vt,E=>{t(Me)&&!(t(K)===G()&&W()===!1)&&E(At)})}var Dt=o(vt,2);{var wt=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_cancel_label()]),s(me,ee)},$$slots:{default:!0}})};k(Dt,E=>{B()&&E(wt)})}x(ue),n(E=>i(be,`${E??""} `),[()=>e.lib_gitlabConnect_token_description()]),s(L,J)},_t=L=>{var J=wr(),Z=h(J);{let be=y(()=>!t(K)||!m());U(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:P,get disabled(){return t(be)},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_connect_label()]),s(ze,ue)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=y(()=>!m());U(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_useToken_label()]),s(ze,ue)},$$slots:{default:!0}})}var Ye=o(pe,2);{var Ze=be=>{U(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_cancel_label()]),s(ze,ue)},$$slots:{default:!0}})};k(Ye,be=>{B()&&be(Ze)})}x(J),s(L,J)};k(Ue,L=>{t(je)?L(nt):L(_t,-1)})}n(L=>{ot(se,"id",ne),i(Re,L)},[()=>e.lib_gitlabConnect_host_description()]),s(d,p)};k(q,d=>{(I()||f())&&ae()?d(T):I()||f()?d(de,1):d(Y,-1)})}var Ce=o(q,2);{var Ge=d=>{var p=Er(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_cancelled_label()]),s(d,p)},fe=d=>{var p=Gr(),C=h(p),F=D(C,!0),ce=o(C,2);U(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return f()},onclick:()=>Pe.dispatch(kt()),children:(se,Re)=>{S();var Ie=A();n(We=>i(Ie,We),[()=>e.lib_gitlabConnect_checkStatus_label()]),s(se,Ie)},$$slots:{default:!0}}),x(p),n(se=>i(F,se),[()=>Q()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),s(d,p)};k(Ce,d=>{Q()==="cancelled"?d(Ge):(Q()==="already-started"||Q()==="failed")&&d(fe,1)})}var ge=o(Ce,2);{var He=d=>{var p=Ir(),C=D(p,!0);n(()=>i(C,he())),s(d,p)};k(ge,d=>{he()&&d(He)})}x(R)}n(()=>Ot(R,1,Bt($()?"space-y-2":"space-y-4"))),s(c,R);var $e=ut(z);return V(),$e}export{zr as G,or as M,$r as P,pr as a,ps as b,cr as k,cs as s};
|