local-operator-ui 0.41.1 → 0.41.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/out/main/index.js +390 -26
- package/out/preload/index.js +19 -0
- package/out/renderer/assets/{_basePickBy-BP7Q8i4W.js → _basePickBy-BgapP5T6.js} +1 -1
- package/out/renderer/assets/{_baseUniq-D36dAcoY.js → _baseUniq-B9rnfho3.js} +1 -1
- package/out/renderer/assets/{agent-details-page-D3ljlPdf.js → agent-details-page-CKRUVtjJ.js} +1 -1
- package/out/renderer/assets/{agent-hub-page-BMyIHnNM.js → agent-hub-page-5qLVOZEV.js} +1 -1
- package/out/renderer/assets/{agents-page-mMqgQd2V.js → agents-page-tQooOOKH.js} +3 -3
- package/out/renderer/assets/{arc-GVvow4so.js → arc-Feq-cl9G.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-IEHRJDOE-BjGwXAtH.js → architectureDiagram-IEHRJDOE-BmZeJuzA.js} +1 -1
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-BTuigKlt.js → blockDiagram-JOT3LUYC-DEqkKuOE.js} +1 -1
- package/out/renderer/assets/{browser-page-B3mjDx8k.js → browser-page-CB-_usY1.js} +1 -1
- package/out/renderer/assets/{browser-webauthn-prompt-CzYoJfO4.js → browser-webauthn-prompt-CKUBOIHd.js} +1 -1
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-DK7eaKE8.js → c4Diagram-VJAJSXHY-EbhUbSdf.js} +1 -1
- package/out/renderer/assets/channel-CPGK3lub.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-DkQrsDhM.js → chunk-4BMEZGHF-DIk7XDrx.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-guh0INPR.js → chunk-A2AXSNBT-D_MflthZ.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-DvgIx6-r.js → chunk-AEK57VVT-C0iLgwbv.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-FNdvnFYo.js → chunk-D6G4REZN-BbFuFCzc.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-CgCQC9Mn.js → chunk-RZ5BOZE2-BxQo8VeZ.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-D1VRTTc4.js → chunk-XZIHB7SX-DnNtYGsR.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-hDc6ku-l.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-hDc6ku-l.js +1 -0
- package/out/renderer/assets/clone--PuuOIog.js +1 -0
- package/out/renderer/assets/{console-mirror-DRkz3vUY.js → console-mirror-Bxl6t4e9.js} +1 -1
- package/out/renderer/assets/{consoleCapture-BJfSUatx.js → consoleCapture-BzSftKjg.js} +1 -1
- package/out/renderer/assets/{conversation-input-sync-CJU5GIzR.js → conversation-input-sync-MZPvyAzc.js} +239 -239
- package/out/renderer/assets/{dagre-OKDRZEBW-DeeYQh6O.js → dagre-OKDRZEBW-qejdp-TF.js} +1 -1
- package/out/renderer/assets/{diagram-SSKATNLV-DD-xNxKH.js → diagram-SSKATNLV-qHrLhzXc.js} +1 -1
- package/out/renderer/assets/{diagram-VNBRO52H-YAoPlXaR.js → diagram-VNBRO52H-q0teJTmh.js} +1 -1
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-OKzGXyMI.js → erDiagram-Q7BY3M3F-DI6rp9FR.js} +1 -1
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-BG-3pPqS.js → flowDiagram-4HSFHLVR-xVi21DAI.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-CRyD5vsE.js → ganttDiagram-APWFNJXF-BUKGBOB_.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-aly2C__q.js → gitGraphDiagram-7IBYFJ6S-CdE3ZeMn.js} +1 -1
- package/out/renderer/assets/{graph-CCWwMmhg.js → graph-CRaHrZRK.js} +1 -1
- package/out/renderer/assets/{index-BaNzqqGN.js → index-B9E-fwX4.js} +1 -1
- package/out/renderer/assets/{index-CRjnV9wx.js → index-DknTGnAk.js} +208 -208
- package/out/renderer/assets/{index-DaCf2W9T.js → index-FsaxlHdZ.js} +1 -1
- package/out/renderer/assets/{infoDiagram-PH2N3AL5-BY536sF5.js → infoDiagram-PH2N3AL5-pOK9P20l.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-DGvx__t6.js → journeyDiagram-U35MCT3I-D5Sg1JPA.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-CG2Lgkpw.js → kanban-definition-NDS4AKOZ-BfhWqBCl.js} +1 -1
- package/out/renderer/assets/{layout-vpRrwE7T.js → layout-IqsTm240.js} +1 -1
- package/out/renderer/assets/{legacy-agents-page-D6Yma1Gm.js → legacy-agents-page-bdH6oKjE.js} +5 -5
- package/out/renderer/assets/{library-page-B0gC-rRh.js → library-page-DDvrG_aA.js} +3 -3
- package/out/renderer/assets/{mermaid.core-COeGB8I0.js → mermaid.core-D0YPuNli.js} +5 -5
- package/out/renderer/assets/{mesh-page-PabU05tN.js → mesh-page-DYFNof_0.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-ALO5MXBD-B0hkjZLY.js → mindmap-definition-ALO5MXBD-Tx5iMDRU.js} +1 -1
- package/out/renderer/assets/{mini-Df5C4rpd.js → mini-BoZCnSK9.js} +1 -1
- package/out/renderer/assets/{org-access-BacMtLkn.js → org-access-DoZK5gF3.js} +1 -1
- package/out/renderer/assets/{org-surface-gate-tkB025lu.js → org-surface-gate-Dy0B7mtt.js} +1 -1
- package/out/renderer/assets/path-utils-CRYGE4mK.js +58 -0
- package/out/renderer/assets/{pieDiagram-IB7DONF6-DfFtQXU5.js → pieDiagram-IB7DONF6-D0rED3_3.js} +1 -1
- package/out/renderer/assets/{projects-page-CoHTKLZH.js → projects-page-D7j1GOvI.js} +1 -1
- package/out/renderer/assets/{publication-validation-B0Mf3mmP.js → publication-validation-CLbFS0n9.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-C4eDJWaK.js → quadrantDiagram-7GDLP6J5-D8jKSQt5.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-BEv1HS9Q.js → radar-MK3ICKWK-Co2EJbaJ.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-BX5vf982.js → radient-auth-buttons-B11cdRmS.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-B7f3qUcB.js → requirementDiagram-KVF5MWMF-BI13h11j.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-xM7E-74l.js → sankeyDiagram-QLVOVGJD-D4hZ6_ML.js} +1 -1
- package/out/renderer/assets/{schedules-page-5q7pvL1H.js → schedules-page-DFfDDHYC.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-upwR02kU.js → sequenceDiagram-X6HHIX6F-U6CqBtco.js} +1 -1
- package/out/renderer/assets/{settings-page-DcnGr-GP.js → settings-page-CZ7NUDoe.js} +9 -9
- package/out/renderer/assets/{smartart-CYnMNs5u.js → smartart-BVm_cEaq.js} +1 -1
- package/out/renderer/assets/{stateDiagram-DGXRK772-BqTri7Q-.js → stateDiagram-DGXRK772-DBg11bkx.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-jmaink9i.js +1 -0
- package/out/renderer/assets/team-bridge-page-u_OqiZGS.js +16 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-Bi2is17s.js → timeline-definition-BDJGKUSR-WQ6aYia6.js} +1 -1
- package/out/renderer/assets/{use-download-agent-mutation-PHtokPlg.js → use-download-agent-mutation-ZoivWizY.js} +2 -2
- package/out/renderer/assets/{use-session-snapshot-B5sxthdQ.js → use-session-snapshot-CdYiirKJ.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-B0TrjzLJ.js → xychartDiagram-VJFVF3MP-f11BpHer.js} +1 -1
- package/out/renderer/console-capture.html +3 -3
- package/out/renderer/index.html +4 -4
- package/out/renderer/mini.html +4 -4
- package/package.json +4 -3
- package/out/renderer/assets/channel-B05rL6In.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-DpB8-8cT.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-DpB8-8cT.js +0 -1
- package/out/renderer/assets/clone-BHHjv3HP.js +0 -1
- package/out/renderer/assets/path-utils-Ct0VTUZS.js +0 -58
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-D8Sl1QhX.js +0 -1
- package/out/renderer/assets/team-bridge-page-vnNJdCi3.js +0 -16
package/out/renderer/assets/{blockDiagram-JOT3LUYC-BTuigKlt.js → blockDiagram-JOT3LUYC-DEqkKuOE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as d,G as rt,d as O,e as oe,l as L,z as he,B as de,c as R,a3 as ge,a4 as j,a5 as Wt,a6 as ue,u as $,k as pe,a7 as fe,a8 as xt,a9 as xe,i as Tt}from"./mermaid.core-
|
|
1
|
+
import{_ as d,G as rt,d as O,e as oe,l as L,z as he,B as de,c as R,a3 as ge,a4 as j,a5 as Wt,a6 as ue,u as $,k as pe,a7 as fe,a8 as xt,a9 as xe,i as Tt}from"./mermaid.core-D0YPuNli.js";import{c as ye}from"./clone--PuuOIog.js";import{G as be}from"./graph-CRaHrZRK.js";import{c as we}from"./channel-CPGK3lub.js";import{n as me,o as Le}from"./conversation-input-sync-MZPvyAzc.js";import"./index-BDzV3bGH.js";import"./_baseUniq-B9rnfho3.js";import"./path-utils-CRYGE4mK.js";import"./error-boundary-ZYkSCpZC.js";var yt=function(){var e=d(function(D,y,g,f){for(g=g||{},f=D.length;f--;g[D[f]]=y);return g},"o"),t=[1,7],s=[1,13],n=[1,14],i=[1,15],r=[1,19],a=[1,16],l=[1,17],c=[1,18],u=[8,30],h=[8,21,28,29,30,31,32,40,44,47],x=[1,23],w=[1,24],b=[8,15,16,21,28,29,30,31,32,40,44,47],S=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],k={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(y,g,f,m,v,o,W){var p=o.length-1;switch(v){case 4:m.getLogger().debug("Rule: separator (NL) ");break;case 5:m.getLogger().debug("Rule: separator (Space) ");break;case 6:m.getLogger().debug("Rule: separator (EOF) ");break;case 7:m.getLogger().debug("Rule: hierarchy: ",o[p-1]),m.setHierarchy(o[p-1]);break;case 8:m.getLogger().debug("Stop NL ");break;case 9:m.getLogger().debug("Stop EOF ");break;case 10:m.getLogger().debug("Stop NL2 ");break;case 11:m.getLogger().debug("Stop EOF2 ");break;case 12:m.getLogger().debug("Rule: statement: ",o[p]),typeof o[p].length=="number"?this.$=o[p]:this.$=[o[p]];break;case 13:m.getLogger().debug("Rule: statement #2: ",o[p-1]),this.$=[o[p-1]].concat(o[p]);break;case 14:m.getLogger().debug("Rule: link: ",o[p],y),this.$={edgeTypeStr:o[p],label:""};break;case 15:m.getLogger().debug("Rule: LABEL link: ",o[p-3],o[p-1],o[p]),this.$={edgeTypeStr:o[p],label:o[p-1]};break;case 18:const I=parseInt(o[p]),Z=m.generateId();this.$={id:Z,type:"space",label:"",width:I,children:[]};break;case 23:m.getLogger().debug("Rule: (nodeStatement link node) ",o[p-2],o[p-1],o[p]," typestr: ",o[p-1].edgeTypeStr);const V=m.edgeStrToEdgeData(o[p-1].edgeTypeStr);this.$=[{id:o[p-2].id,label:o[p-2].label,type:o[p-2].type,directions:o[p-2].directions},{id:o[p-2].id+"-"+o[p].id,start:o[p-2].id,end:o[p].id,label:o[p-1].label,type:"edge",directions:o[p].directions,arrowTypeEnd:V,arrowTypeStart:"arrow_open"},{id:o[p].id,label:o[p].label,type:m.typeStr2Type(o[p].typeStr),directions:o[p].directions}];break;case 24:m.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[p-1],o[p]),this.$={id:o[p-1].id,label:o[p-1].label,type:m.typeStr2Type(o[p-1].typeStr),directions:o[p-1].directions,widthInColumns:parseInt(o[p],10)};break;case 25:m.getLogger().debug("Rule: nodeStatement (node) ",o[p]),this.$={id:o[p].id,label:o[p].label,type:m.typeStr2Type(o[p].typeStr),directions:o[p].directions,widthInColumns:1};break;case 26:m.getLogger().debug("APA123",this?this:"na"),m.getLogger().debug("COLUMNS: ",o[p]),this.$={type:"column-setting",columns:o[p]==="auto"?-1:parseInt(o[p])};break;case 27:m.getLogger().debug("Rule: id-block statement : ",o[p-2],o[p-1]),m.generateId(),this.$={...o[p-2],type:"composite",children:o[p-1]};break;case 28:m.getLogger().debug("Rule: blockStatement : ",o[p-2],o[p-1],o[p]);const at=m.generateId();this.$={id:at,type:"composite",label:"",children:o[p-1]};break;case 29:m.getLogger().debug("Rule: node (NODE_ID separator): ",o[p]),this.$={id:o[p]};break;case 30:m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[p-1],o[p]),this.$={id:o[p-1],label:o[p].label,typeStr:o[p].typeStr,directions:o[p].directions};break;case 31:m.getLogger().debug("Rule: dirList: ",o[p]),this.$=[o[p]];break;case 32:m.getLogger().debug("Rule: dirList: ",o[p-1],o[p]),this.$=[o[p-1]].concat(o[p]);break;case 33:m.getLogger().debug("Rule: nodeShapeNLabel: ",o[p-2],o[p-1],o[p]),this.$={typeStr:o[p-2]+o[p],label:o[p-1]};break;case 34:m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[p-3],o[p-2]," #3:",o[p-1],o[p]),this.$={typeStr:o[p-3]+o[p],label:o[p-2],directions:o[p-1]};break;case 35:case 36:this.$={type:"classDef",id:o[p-1].trim(),css:o[p].trim()};break;case 37:this.$={type:"applyClass",id:o[p-1].trim(),styleClass:o[p].trim()};break;case 38:this.$={type:"applyStyles",id:o[p-1].trim(),stylesStr:o[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:c},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:s,29:n,31:i,32:r,40:a,44:l,47:c}),e(h,[2,16],{14:22,15:x,16:w}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(b,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:r},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(S,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,32:r},{32:[2,14]},{17:[1,36]},e(b,[2,24]),{11:37,13:4,14:22,15:x,16:w,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(h,[2,27]),e(S,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(S,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(y,g){if(g.recoverable)this.trace(y);else{var f=new Error(y);throw f.hash=g,f}},"parseError"),parse:d(function(y){var g=this,f=[0],m=[],v=[null],o=[],W=this.table,p="",I=0,Z=0,V=2,at=1,ne=o.slice.call(arguments,1),z=Object.create(this.lexer),q={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(q.yy[gt]=this.yy[gt]);z.setInput(y,q.yy),q.yy.lexer=z,q.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var ut=z.yylloc;o.push(ut);var le=z.options&&z.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(P){f.length=f.length-2*P,v.length=v.length-P,o.length=o.length-P}d(ce,"popStack");function Dt(){var P;return P=m.pop()||z.lex()||at,typeof P!="number"&&(P instanceof Array&&(m=P,P=m.pop()),P=g.symbols_[P]||P),P}d(Dt,"lex");for(var F,J,H,pt,Q={},st,G,Nt,it;;){if(J=f[f.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((F===null||typeof F>"u")&&(F=Dt()),H=W[J]&&W[J][F]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in W[J])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");z.showPosition?ft="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+z.showPosition()+`
|
|
3
3
|
Expecting `+it.join(", ")+", got '"+(this.terminals_[F]||F)+"'":ft="Parse error on line "+(I+1)+": Unexpected "+(F==at?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(ft,{text:z.match,token:this.terminals_[F]||F,line:z.yylineno,loc:ut,expected:it})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+F);switch(H[0]){case 1:f.push(F),v.push(z.yytext),o.push(z.yylloc),f.push(H[1]),F=null,Z=z.yyleng,p=z.yytext,I=z.yylineno,ut=z.yylloc;break;case 2:if(G=this.productions_[H[1]][1],Q.$=v[v.length-G],Q._$={first_line:o[o.length-(G||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(G||1)].first_column,last_column:o[o.length-1].last_column},le&&(Q._$.range=[o[o.length-(G||1)].range[0],o[o.length-1].range[1]]),pt=this.performAction.apply(Q,[p,Z,I,q.yy,H[1],v,o].concat(ne)),typeof pt<"u")return pt;G&&(f=f.slice(0,-1*G*2),v=v.slice(0,-1*G),o=o.slice(0,-1*G)),f.push(this.productions_[H[1]][0]),v.push(Q.$),o.push(Q._$),Nt=W[f[f.length-2]][f[f.length-1]],f.push(Nt);break;case 3:return!0}}return!0},"parse")},B=function(){var D={EOF:1,parseError:d(function(g,f){if(this.yy.parser)this.yy.parser.parseError(g,f);else throw new Error(g)},"parseError"),setInput:d(function(y,g){return this.yy=g||this.yy||{},this._input=y,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 y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var g=y.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:d(function(y){var g=y.length,f=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=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),f.length-1&&(this.yylineno-=f.length-1);var v=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:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-g]),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(y){this.unput(this.match.slice(y))},"less"),pastInput:d(function(){var y=this.matched.substr(0,this.matched.length-this.match.length);return(y.length>20?"...":"")+y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var y=this.match;return y.length<20&&(y+=this._input.substr(0,20-y.length)),(y.substr(0,20)+(y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var y=this.pastInput(),g=new Array(y.length+1).join("-");return y+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./index-BDzV3bGH.js";import{B as o}from"./index-
|
|
1
|
+
import{j as r}from"./index-BDzV3bGH.js";import{B as o}from"./index-DknTGnAk.js";import"./path-utils-CRYGE4mK.js";import"./conversation-input-sync-MZPvyAzc.js";import"./error-boundary-ZYkSCpZC.js";import"./console-mirror-Bxl6t4e9.js";const m=()=>r.jsx(o,{tabScope:"all",requestScope:"all",hostSessionId:null,isRoutePage:!0,surfaceTag:"browser-route",dockSurfaceTag:"browser-approvals-dock"});export{m as BrowserPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as n,r as l,j as r,c as k}from"./index-BDzV3bGH.js";import{f as E,g as v,r as W,n as I,w as R,i as T,j as y,k as B}from"./index-
|
|
1
|
+
import{t as n,r as l,j as r,c as k}from"./index-BDzV3bGH.js";import{f as E,g as v,r as W,n as I,w as R,i as T,j as y,k as B}from"./index-DknTGnAk.js";import"./path-utils-CRYGE4mK.js";import{u as N,B as q}from"./error-boundary-ZYkSCpZC.js";import{S as F,T as L}from"./conversation-input-sync-MZPvyAzc.js";import"./console-mirror-Bxl6t4e9.js";function j(e,t){const o=e?.displayName?.trim()??"";if(o)return o;const m=e?.name?.trim()??"";return m||n("ui.browser.webauthn_chooser.passkey_fallback",{number:t+1})}function D(e){return(e?.displayName?.trim()??"")!==""?"human":(e?.name?.trim()??"")!==""?"login":"ordinal"}const S=()=>n("ui.browser.webauthn_chooser.the_site_stored_no_name_for_this");function A(e,t){const o=j(e,t),b=[e?.displayName?.trim(),e?.name?.trim()].find(a=>a&&a!==o)??"";return b||(!(e?.displayName?.trim()??"")&&!(e?.name?.trim()??"")?S():null)}function P(e){return e.every(t=>!(t.displayName?.trim()??"")&&!(t.name?.trim()??""))}function M(e){const t=e.relyingPartyId||n("ui.browser.webauthn_chooser.a_site"),o=e.accounts.length;return o===1?n("ui.browser.webauthn_chooser.passkey_single",{site:t}):P(e.accounts)?n("ui.browser.webauthn_chooser.passkey_anonymous_many",{site:t,count:o}):n("ui.browser.webauthn_chooser.passkey_named_many",{site:t})}function z(e){return e.pageTitle?n("ui.browser.webauthn_chooser.requesting_page",{title:e.pageTitle}):null}function H(e){return e<=0?null:n("ui.browser.webauthn_chooser.passkeys_waiting",{count:e})}function O(e){switch(e){case"expired":return{title:n("ui.browser.webauthn_chooser.this_passkey_request_expired"),body:n("ui.browser.webauthn_chooser.nobody_chose_a_passkey_within_a_minute")};case"host-stopped":return{title:n("ui.browser.webauthn_chooser.this_passkey_request_was_cancelled"),body:n("ui.browser.webauthn_chooser.the_browser_tab_that_asked_went_away")};case"credential-not-offered":return{title:n("ui.browser.webauthn_chooser.that_passkey_was_not_offered"),body:n("ui.browser.webauthn_chooser.the_choice_did_not_name_a_passkey")};default:return null}}function Q(e){const t=e.requests[0];return t?{kind:"request",request:t,waitingBehind:Math.max(0,e.requests.length-1),answering:e.answering}:e.ending?{kind:"ending",title:e.ending.title,body:e.ending.body}:{kind:"none"}}function V(e,t){const o=O(t);return o?{requestId:e,title:o.title,body:o.body}:null}const G=({open:e,panel:t,onChoose:o,onCancelRequest:m,onDismissEnding:b,onCloseAutoFocus:d})=>{N();const a=l.useId(),u=t.kind==="request"?t.request:null,w=t.kind==="request"?t.answering:!1,f=u?M(u):"",_=u?z(u):null,x=H(t.kind==="request"?t.waitingBehind:0),s=t.kind==="ending"?b:()=>m();return r.jsx(F,{open:e,onClose:s,title:t.kind==="ending"?t.title:n("ui.browser.browser_webauthn_dialog.choose_a_passkey"),dataTourTag:"browser-webauthn-dialog",fullWidth:!0,maxWidth:"xs",dialogProps:{"aria-describedby":a,onCloseAutoFocus:d},actions:r.jsxs("div",{className:"flex w-full flex-col gap-3",children:[t.kind==="request"&&r.jsx("p",{className:"text-meta text-ink-dim",children:n("ui.browser.browser_webauthn_dialog.your_mac_will_ask_for_touch_id")}),r.jsxs("div",{className:"flex items-center justify-end gap-3",children:[t.kind==="request"&&w&&r.jsx("p",{className:"text-meta text-ink-muted",children:n("ui.browser.browser_webauthn_dialog.answering")}),r.jsx(q,{variant:"ghost",size:"sm",onClick:s,children:t.kind==="ending"?n("ui.browser.browser_webauthn_dialog.close"):n("ui.browser.browser_webauthn_dialog.cancel")})]})]}),children:r.jsx("div",{className:"flex flex-col gap-3",children:t.kind==="ending"?r.jsx("p",{className:"text-body text-ink-muted",id:a,children:t.body}):r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-body text-ink-muted",id:a,children:f}),_&&r.jsx("p",{className:"text-meta text-ink-dim",children:_}),r.jsx("div",{className:"flex flex-col gap-1.5",children:u?.accounts.map((i,h)=>{const g=A(i,h),c=D(i);return r.jsxs(q,{variant:"outline",size:"sm",disabled:w,className:k("h-auto w-full flex-col items-start gap-0.5 py-2 text-left whitespace-normal disabled:[&>span]:text-ink-disabled"),onClick:()=>o(i.credentialId),"data-tour-tag":"browser-webauthn-account",children:[r.jsx("span",{className:k("w-full text-left break-words",c==="login"?"font-mono text-mono-sm text-ink-dim":"text-body text-ink"),children:j(i,h)}),g&&r.jsx("span",{className:k("w-full min-w-0 truncate font-mono text-mono-sm text-ink-dim"),title:g,children:g})]},i.credentialId)})}),x&&r.jsx("p",{className:"text-meta text-ink-dim",children:x})]})})})},ee=()=>{N();const e=E(),[t,o]=l.useState(!1),m=v(),b=l.useRef(null),d=Q({requests:e,ending:m,answering:t}),a=d.kind!=="none";l.useEffect(()=>{const s=window.api?.browser;if(!s)return;let i=!1;s.pendingWebauthnRequests?.().then(c=>{i||(c.length>0&&u(document.activeElement),W(c))}).catch(()=>{});const h=s.onWebauthnRequest?.(c=>{u(document.activeElement),I(c)}),g=s.onWebauthnSettled?.(c=>{const p=R().some(C=>C.requestId===c.requestId)?V(c.requestId,c.outcome):null;p&&T(p),y(c.requestId)});return()=>{i=!0,h?.(),g?.()}},[]);const u=l.useCallback(s=>{s instanceof HTMLElement&&s!==document.body&&!s.closest("[role=dialog]")&&(b.current=s)},[]);l.useEffect(()=>{a||u(document.activeElement)}),l.useEffect(()=>{if(a)return;const s=i=>u(i.target);return document.addEventListener("focusin",s),()=>document.removeEventListener("focusin",s)},[a,u]);const w=l.useCallback((s,i)=>{o(!0),y(s),(async()=>{try{await window.api?.browser?.respondToWebauthn?.(s,i)}catch(h){L(n("ui.browser.browser_webauthn_prompt.answer_failed",{error:h instanceof Error?h.message:String(h)}))}finally{o(!1)}})()},[]),f=l.useCallback(()=>{const s=b.current;s instanceof HTMLElement&&s.isConnected&&s.focus()},[]),_=l.useCallback(()=>{setTimeout(()=>setTimeout(f,0),0)},[f]),x=l.useCallback(s=>{s.preventDefault(),f()},[f]);return r.jsx(G,{open:a,panel:d,onChoose:s=>{d.kind==="request"&&w(d.request.requestId,s)},onCancelRequest:()=>{d.kind==="request"&&(e.length<=1&&_(),w(d.request.requestId,null))},onDismissEnding:()=>{_(),B()},onCloseAutoFocus:x})};export{ee as BrowserWebauthnPrompt};
|
package/out/renderer/assets/{c4Diagram-VJAJSXHY-DK7eaKE8.js → c4Diagram-VJAJSXHY-EbhUbSdf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Oe,d as Re}from"./chunk-D6G4REZN-FNdvnFYo.js";import{_ as g,s as Se,g as De,a as Pe,b as Be,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-COeGB8I0.js";import"./conversation-input-sync-CJU5GIzR.js";import"./index-BDzV3bGH.js";import"./path-utils-Ct0VTUZS.js";import"./error-boundary-ZYkSCpZC.js";var jt=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],re=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:g(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:g(function(x,m,v,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(re,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(re,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,se=0,Ae=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(kt.yy[Ht]=this.yy[Ht]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(oe,"lex");for(var I,At,N,Gt,wt={},Mt,W,ce,Lt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[At]&&Rt[At][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[At])this.terminals_[Mt]&&Mt>Ae&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
import{g as Oe,d as Re}from"./chunk-D6G4REZN-BbFuFCzc.js";import{_ as g,s as Se,g as De,a as Pe,b as Be,c as Dt,d as Nt,l as he,e as Ie,f as Me,h as Tt,i as pe,j as Le,w as Ne,k as Jt,m as ue}from"./mermaid.core-D0YPuNli.js";import"./conversation-input-sync-MZPvyAzc.js";import"./index-BDzV3bGH.js";import"./path-utils-CRYGE4mK.js";import"./error-boundary-ZYkSCpZC.js";var jt=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],re=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],Wt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:g(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:g(function(x,m,v,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(re,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(re,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,se=0,Ae=2,le=1,Ce=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(kt.yy[Ht]=this.yy[Ht]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var qt=D.yylloc;h.push(qt);var we=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Te,"popStack");function oe(){var L;return L=b.pop()||D.lex()||le,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(oe,"lex");for(var I,At,N,Gt,wt={},Mt,W,ce,Lt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=oe()),N=Rt[At]&&Rt[At][I]),typeof N>"u"||!N.length||!N[0]){var Kt="";Lt=[];for(Mt in Rt[At])this.terminals_[Mt]&&Mt>Ae&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Kt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Kt="Parse error on line "+(Et+1)+": Unexpected "+(I==le?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Kt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:qt,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,se=D.yyleng,f=D.yytext,Et=D.yylineno,qt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},we&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Gt=this.performAction.apply(wt,[f,se,Et,kt.yy,N[1],R,h].concat(Ce)),typeof Gt<"u")return Gt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ce=Rt[v[v.length-2]][v[v.length-1]],v.push(ce);break;case 3:return!0}}return!0},"parse")},ke=function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,C as n}from"./mermaid.core-D0YPuNli.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i}from"./mermaid.core-
|
|
1
|
+
import{_ as i}from"./mermaid.core-D0YPuNli.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ze,s as $e}from"./chunk-RZ5BOZE2-CgCQC9Mn.js";import{_ as p,l as ve,c as D,p as et,r as tt,u as Ie,d as H,b as st,a as it,s as at,g as nt,q as rt,t as ut,k as x,z as lt,y as ct,i as ot,S as M}from"./mermaid.core-COeGB8I0.js";var Oe=function(){var e=p(function(v,l,c,d){for(c=c||{},d=v.length;d--;c[v[d]]=l);return c},"o"),i=[1,18],r=[1,19],u=[1,20],a=[1,41],o=[1,42],A=[1,26],f=[1,24],T=[1,25],_=[1,32],he=[1,33],de=[1,34],C=[1,45],pe=[1,35],Ae=[1,36],fe=[1,37],ge=[1,38],Ce=[1,27],me=[1,28],be=[1,29],Ee=[1,30],ye=[1,31],m=[1,44],b=[1,46],E=[1,43],k=[1,47],Te=[1,9],h=[1,8,9],J=[1,58],Z=[1,59],$=[1,60],ee=[1,61],te=[1,62],ke=[1,63],De=[1,64],se=[1,8,9,41],we=[1,76],V=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],ie=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],ae=[13,58,84,99,101,102],R=[13,58,71,72,84,99,101,102],Ve=[13,58,66,67,68,69,70,84,99,101,102],Fe=[1,98],G=[1,115],U=[1,107],z=[1,113],K=[1,108],Y=[1,109],Q=[1,110],W=[1,111],j=[1,112],X=[1,114],Pe=[22,58,59,80,84,85,86,87,88,89],Be=[1,8,9,39,41,44],ne=[1,8,9,22],Me=[1,143],Re=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],_e={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:p(function(l,c,d,n,g,t,q){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Te,[2,5],{8:[1,48]}),{8:[1,49]},e(h,[2,18],{22:[1,50]}),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(h,[2,23]),e(h,[2,24]),e(h,[2,25]),e(h,[2,26]),e(h,[2,27]),e(h,[2,28]),e(h,[2,29]),{34:[1,51]},{36:[1,52]},e(h,[2,32]),e(h,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:J,67:Z,68:$,69:ee,70:te,71:ke,72:De}),{39:[1,65]},e(se,[2,39],{39:[1,67],44:[1,66]}),e(h,[2,50]),e(h,[2,51]),{16:68,58:C,84:m,99:b,101:E},{16:39,18:69,19:40,58:C,84:m,99:b,101:E,102:k},{16:39,18:70,19:40,58:C,84:m,99:b,101:E,102:k},{16:39,18:71,19:40,58:C,84:m,99:b,101:E,102:k},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:C,84:m,99:b,101:E,102:k},{13:we,53:75},{56:77,58:[1,78]},e(h,[2,61]),e(h,[2,62]),e(h,[2,63]),e(h,[2,64]),e(V,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:C,84:m,99:b,101:E,102:k}),e(V,[2,14],{20:[1,82]}),{15:83,16:84,58:C,84:m,99:b,101:E},{16:39,18:85,19:40,58:C,84:m,99:b,101:E,102:k},e(ie,[2,118]),e(ie,[2,119]),e(ie,[2,120]),e(ie,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:r,37:u,42:a,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k},e(h,[2,19]),e(h,[2,30]),e(h,[2,31]),{13:[1,89],16:39,18:88,19:40,58:C,84:m,99:b,101:E,102:k},{51:90,64:56,65:57,66:J,67:Z,68:$,69:ee,70:te,71:ke,72:De},e(h,[2,49]),{65:91,71:ke,72:De},e(ae,[2,68],{64:92,66:J,67:Z,68:$,69:ee,70:te}),e(R,[2,69]),e(R,[2,70]),e(R,[2,71]),e(R,[2,72]),e(R,[2,73]),e(Ve,[2,74]),e(Ve,[2,75]),{8:[1,94],24:95,40:93,43:23,46:o},{16:96,58:C,84:m,99:b,101:E},{45:97,49:Fe},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:G,57:104,58:U,80:z,82:105,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},{58:[1,116]},{13:we,53:117},e(h,[2,57]),e(h,[2,123]),{22:G,57:118,58:U,59:[1,119],80:z,82:105,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},e(Pe,[2,59]),{16:39,18:120,19:40,58:C,84:m,99:b,101:E,102:k},e(V,[2,15]),e(V,[2,16]),e(V,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:C,84:m,99:b,101:E},e(Be,[2,43],{11:123,12:[1,124]}),e(Te,[2,7]),{9:[1,125]},e(ne,[2,52]),{16:39,18:126,19:40,58:C,84:m,99:b,101:E,102:k},{13:[1,128],16:39,18:127,19:40,58:C,84:m,99:b,101:E,102:k},e(ae,[2,67],{64:129,66:J,67:Z,68:$,69:ee,70:te}),e(ae,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:o},{8:[1,132],41:[2,36]},e(se,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Fe},{16:39,18:136,19:40,58:C,84:m,99:b,101:E,102:k},e(h,[2,76],{13:[1,137]}),e(h,[2,78],{13:[1,139],75:[1,138]}),e(h,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(h,[2,90],{59:Me}),e(Re,[2,92],{83:144,22:G,58:U,80:z,84:K,85:Y,86:Q,87:W,88:j,89:X}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(h,[2,91]),e(h,[2,56]),e(h,[2,58],{59:Me}),{58:[1,145]},e(V,[2,13]),{15:146,16:84,58:C,84:m,99:b,101:E},{39:[2,11]},e(Be,[2,44]),{13:[1,147]},{1:[2,4]},e(ne,[2,54]),e(ne,[2,53]),{16:39,18:148,19:40,58:C,84:m,99:b,101:E,102:k},e(ae,[2,65]),e(h,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:o},{45:151,49:Fe},e(se,[2,41]),{41:[2,47]},e(h,[2,45]),e(h,[2,77]),e(h,[2,79]),e(h,[2,80],{75:[1,152]}),e(h,[2,83]),e(h,[2,84],{13:[1,153]}),e(h,[2,86],{13:[1,155],75:[1,154]}),{22:G,58:U,80:z,82:156,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},e(N,[2,95]),e(Pe,[2,60]),{39:[2,10]},{14:[1,157]},e(ne,[2,55]),e(h,[2,34]),{41:[2,38]},{41:[1,158]},e(h,[2,81]),e(h,[2,85]),e(h,[2,87]),e(h,[2,88],{75:[1,159]}),e(Re,[2,93],{83:144,22:G,58:U,80:z,84:K,85:Y,86:Q,87:W,88:j,89:X}),e(Be,[2,8]),e(se,[2,42]),e(h,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:p(function(l,c){if(c.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=c,d}},"parseError"),parse:p(function(l){var c=this,d=[0],n=[],g=[null],t=[],q=this.table,s="",ue=0,Ge=0,Xe=2,Ue=1,qe=t.slice.call(arguments,1),y=Object.create(this.lexer),I={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(I.yy[Se]=this.yy[Se]);y.setInput(l,I.yy),I.yy.lexer=y,I.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ne=y.yylloc;t.push(Ne);var He=y.options&&y.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(B){d.length=d.length-2*B,g.length=g.length-B,t.length=t.length-B}p(Je,"popStack");function ze(){var B;return B=n.pop()||y.lex()||Ue,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=c.symbols_[B]||B),B}p(ze,"lex");for(var F,O,S,Le,P={},le,L,Ke,ce;;){if(O=d[d.length-1],this.defaultActions[O]?S=this.defaultActions[O]:((F===null||typeof F>"u")&&(F=ze()),S=q[O]&&q[O][F]),typeof S>"u"||!S.length||!S[0]){var xe="";ce=[];for(le in q[O])this.terminals_[le]&&le>Xe&&ce.push("'"+this.terminals_[le]+"'");y.showPosition?xe="Parse error on line "+(ue+1)+`:
|
|
1
|
+
import{g as Ze,s as $e}from"./chunk-RZ5BOZE2-BxQo8VeZ.js";import{_ as p,l as ve,c as D,p as et,r as tt,u as Ie,d as H,b as st,a as it,s as at,g as nt,q as rt,t as ut,k as x,z as lt,y as ct,i as ot,S as M}from"./mermaid.core-D0YPuNli.js";var Oe=function(){var e=p(function(v,l,c,d){for(c=c||{},d=v.length;d--;c[v[d]]=l);return c},"o"),i=[1,18],r=[1,19],u=[1,20],a=[1,41],o=[1,42],A=[1,26],f=[1,24],T=[1,25],_=[1,32],he=[1,33],de=[1,34],C=[1,45],pe=[1,35],Ae=[1,36],fe=[1,37],ge=[1,38],Ce=[1,27],me=[1,28],be=[1,29],Ee=[1,30],ye=[1,31],m=[1,44],b=[1,46],E=[1,43],k=[1,47],Te=[1,9],h=[1,8,9],J=[1,58],Z=[1,59],$=[1,60],ee=[1,61],te=[1,62],ke=[1,63],De=[1,64],se=[1,8,9,41],we=[1,76],V=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],ie=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],ae=[13,58,84,99,101,102],R=[13,58,71,72,84,99,101,102],Ve=[13,58,66,67,68,69,70,84,99,101,102],Fe=[1,98],G=[1,115],U=[1,107],z=[1,113],K=[1,108],Y=[1,109],Q=[1,110],W=[1,111],j=[1,112],X=[1,114],Pe=[22,58,59,80,84,85,86,87,88,89],Be=[1,8,9,39,41,44],ne=[1,8,9,22],Me=[1,143],Re=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],_e={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:p(function(l,c,d,n,g,t,q){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Te,[2,5],{8:[1,48]}),{8:[1,49]},e(h,[2,18],{22:[1,50]}),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(h,[2,23]),e(h,[2,24]),e(h,[2,25]),e(h,[2,26]),e(h,[2,27]),e(h,[2,28]),e(h,[2,29]),{34:[1,51]},{36:[1,52]},e(h,[2,32]),e(h,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:J,67:Z,68:$,69:ee,70:te,71:ke,72:De}),{39:[1,65]},e(se,[2,39],{39:[1,67],44:[1,66]}),e(h,[2,50]),e(h,[2,51]),{16:68,58:C,84:m,99:b,101:E},{16:39,18:69,19:40,58:C,84:m,99:b,101:E,102:k},{16:39,18:70,19:40,58:C,84:m,99:b,101:E,102:k},{16:39,18:71,19:40,58:C,84:m,99:b,101:E,102:k},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:C,84:m,99:b,101:E,102:k},{13:we,53:75},{56:77,58:[1,78]},e(h,[2,61]),e(h,[2,62]),e(h,[2,63]),e(h,[2,64]),e(V,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:C,84:m,99:b,101:E,102:k}),e(V,[2,14],{20:[1,82]}),{15:83,16:84,58:C,84:m,99:b,101:E},{16:39,18:85,19:40,58:C,84:m,99:b,101:E,102:k},e(ie,[2,118]),e(ie,[2,119]),e(ie,[2,120]),e(ie,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(Te,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:r,37:u,42:a,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:u,38:22,42:a,43:23,46:o,47:A,49:f,50:T,52:_,54:he,55:de,58:C,60:pe,61:Ae,62:fe,63:ge,73:Ce,74:me,76:be,80:Ee,81:ye,84:m,99:b,101:E,102:k},e(h,[2,19]),e(h,[2,30]),e(h,[2,31]),{13:[1,89],16:39,18:88,19:40,58:C,84:m,99:b,101:E,102:k},{51:90,64:56,65:57,66:J,67:Z,68:$,69:ee,70:te,71:ke,72:De},e(h,[2,49]),{65:91,71:ke,72:De},e(ae,[2,68],{64:92,66:J,67:Z,68:$,69:ee,70:te}),e(R,[2,69]),e(R,[2,70]),e(R,[2,71]),e(R,[2,72]),e(R,[2,73]),e(Ve,[2,74]),e(Ve,[2,75]),{8:[1,94],24:95,40:93,43:23,46:o},{16:96,58:C,84:m,99:b,101:E},{45:97,49:Fe},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:G,57:104,58:U,80:z,82:105,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},{58:[1,116]},{13:we,53:117},e(h,[2,57]),e(h,[2,123]),{22:G,57:118,58:U,59:[1,119],80:z,82:105,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},e(Pe,[2,59]),{16:39,18:120,19:40,58:C,84:m,99:b,101:E,102:k},e(V,[2,15]),e(V,[2,16]),e(V,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:C,84:m,99:b,101:E},e(Be,[2,43],{11:123,12:[1,124]}),e(Te,[2,7]),{9:[1,125]},e(ne,[2,52]),{16:39,18:126,19:40,58:C,84:m,99:b,101:E,102:k},{13:[1,128],16:39,18:127,19:40,58:C,84:m,99:b,101:E,102:k},e(ae,[2,67],{64:129,66:J,67:Z,68:$,69:ee,70:te}),e(ae,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:o},{8:[1,132],41:[2,36]},e(se,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Fe},{16:39,18:136,19:40,58:C,84:m,99:b,101:E,102:k},e(h,[2,76],{13:[1,137]}),e(h,[2,78],{13:[1,139],75:[1,138]}),e(h,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(h,[2,90],{59:Me}),e(Re,[2,92],{83:144,22:G,58:U,80:z,84:K,85:Y,86:Q,87:W,88:j,89:X}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(h,[2,91]),e(h,[2,56]),e(h,[2,58],{59:Me}),{58:[1,145]},e(V,[2,13]),{15:146,16:84,58:C,84:m,99:b,101:E},{39:[2,11]},e(Be,[2,44]),{13:[1,147]},{1:[2,4]},e(ne,[2,54]),e(ne,[2,53]),{16:39,18:148,19:40,58:C,84:m,99:b,101:E,102:k},e(ae,[2,65]),e(h,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:o},{45:151,49:Fe},e(se,[2,41]),{41:[2,47]},e(h,[2,45]),e(h,[2,77]),e(h,[2,79]),e(h,[2,80],{75:[1,152]}),e(h,[2,83]),e(h,[2,84],{13:[1,153]}),e(h,[2,86],{13:[1,155],75:[1,154]}),{22:G,58:U,80:z,82:156,83:106,84:K,85:Y,86:Q,87:W,88:j,89:X},e(N,[2,95]),e(Pe,[2,60]),{39:[2,10]},{14:[1,157]},e(ne,[2,55]),e(h,[2,34]),{41:[2,38]},{41:[1,158]},e(h,[2,81]),e(h,[2,85]),e(h,[2,87]),e(h,[2,88],{75:[1,159]}),e(Re,[2,93],{83:144,22:G,58:U,80:z,84:K,85:Y,86:Q,87:W,88:j,89:X}),e(Be,[2,8]),e(se,[2,42]),e(h,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:p(function(l,c){if(c.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=c,d}},"parseError"),parse:p(function(l){var c=this,d=[0],n=[],g=[null],t=[],q=this.table,s="",ue=0,Ge=0,Xe=2,Ue=1,qe=t.slice.call(arguments,1),y=Object.create(this.lexer),I={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(I.yy[Se]=this.yy[Se]);y.setInput(l,I.yy),I.yy.lexer=y,I.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ne=y.yylloc;t.push(Ne);var He=y.options&&y.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Je(B){d.length=d.length-2*B,g.length=g.length-B,t.length=t.length-B}p(Je,"popStack");function ze(){var B;return B=n.pop()||y.lex()||Ue,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=c.symbols_[B]||B),B}p(ze,"lex");for(var F,O,S,Le,P={},le,L,Ke,ce;;){if(O=d[d.length-1],this.defaultActions[O]?S=this.defaultActions[O]:((F===null||typeof F>"u")&&(F=ze()),S=q[O]&&q[O][F]),typeof S>"u"||!S.length||!S[0]){var xe="";ce=[];for(le in q[O])this.terminals_[le]&&le>Xe&&ce.push("'"+this.terminals_[le]+"'");y.showPosition?xe="Parse error on line "+(ue+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[F]||F)+"'":xe="Parse error on line "+(ue+1)+": Unexpected "+(F==Ue?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(xe,{text:y.match,token:this.terminals_[F]||F,line:y.yylineno,loc:Ne,expected:ce})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+F);switch(S[0]){case 1:d.push(F),g.push(y.yytext),t.push(y.yylloc),d.push(S[1]),F=null,Ge=y.yyleng,s=y.yytext,ue=y.yylineno,Ne=y.yylloc;break;case 2:if(L=this.productions_[S[1]][1],P.$=g[g.length-L],P._$={first_line:t[t.length-(L||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(L||1)].first_column,last_column:t[t.length-1].last_column},He&&(P._$.range=[t[t.length-(L||1)].range[0],t[t.length-1].range[1]]),Le=this.performAction.apply(P,[s,Ge,ue,I.yy,S[1],g,t].concat(qe)),typeof Le<"u")return Le;L&&(d=d.slice(0,-1*L*2),g=g.slice(0,-1*L),t=t.slice(0,-1*L)),d.push(this.productions_[S[1]][0]),g.push(P.$),t.push(P._$),Ke=q[d[d.length-2]][d[d.length-1]],d.push(Ke);break;case 3:return!0}}return!0},"parse")},je=function(){var v={EOF:1,parseError:p(function(c,d){if(this.yy.parser)this.yy.parser.parseError(c,d);else throw new Error(c)},"parseError"),setInput:p(function(l,c){return this.yy=c||this.yy||{},this._input=l,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:p(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var c=l.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:p(function(l){var c=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=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:d?(d.length===n.length?this.yylloc.first_column:0)+n[n.length-d.length].length-d[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(l){this.unput(this.match.slice(l))},"less"),pastInput:p(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var l=this.pastInput(),c=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as se,s as ie}from"./chunk-RZ5BOZE2-
|
|
1
|
+
import{g as se,s as ie}from"./chunk-RZ5BOZE2-BxQo8VeZ.js";import{_ as u,l as b,c as C,r as re,u as ae,T as ne,k as V,z as le,a as oe,b as ce,g as he,s as ue,q as de,t as fe}from"./mermaid.core-D0YPuNli.js";var mt=function(){var t=u(function(w,l,c,a){for(c=c||{},a=w.length;a--;c[w[a]]=l);return c},"o"),e=[1,2],o=[1,3],r=[1,4],d=[2,4],i=[1,9],p=[1,11],g=[1,16],n=[1,17],T=[1,18],m=[1,19],R=[1,32],A=[1,20],f=[1,21],x=[1,22],L=[1,23],P=[1,24],B=[1,26],O=[1,27],N=[1,28],q=[1,29],Q=[1,30],Z=[1,31],tt=[1,34],et=[1,35],st=[1,36],it=[1,37],j=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],rt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Ct=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ft={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(l,c,a,y,_,s,z){var h=s.length-1;switch(_){case 3:return y.setRootDoc(s[h]),s[h];case 4:this.$=[];break;case 5:s[h]!="nl"&&(s[h-1].push(s[h]),this.$=s[h-1]);break;case 6:case 7:this.$=s[h];break;case 8:this.$="nl";break;case 12:this.$=s[h];break;case 13:const H=s[h-1];H.description=y.trimColon(s[h]),this.$=H;break;case 14:this.$={stmt:"relation",state1:s[h-2],state2:s[h]};break;case 15:const pt=y.trimColon(s[h]);this.$={stmt:"relation",state1:s[h-3],state2:s[h-1],description:pt};break;case 19:this.$={stmt:"state",id:s[h-3],type:"default",description:"",doc:s[h-1]};break;case 20:var G=s[h],M=s[h-2].trim();if(s[h].match(":")){var nt=s[h].split(":");G=nt[0],M=[M,nt[1]]}this.$={stmt:"state",id:G,type:"default",description:M};break;case 21:this.$={stmt:"state",id:s[h-3],type:"default",description:s[h-5],doc:s[h-1]};break;case 22:this.$={stmt:"state",id:s[h],type:"fork"};break;case 23:this.$={stmt:"state",id:s[h],type:"join"};break;case 24:this.$={stmt:"state",id:s[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:s[h-1].trim(),note:{position:s[h-2].trim(),text:s[h].trim()}};break;case 29:this.$=s[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=s[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:s[h-1].trim(),classes:s[h].trim()};break;case 34:this.$={stmt:"style",id:s[h-1].trim(),styleClass:s[h].trim()};break;case 35:this.$={stmt:"applyClass",id:s[h-1].trim(),styleClass:s[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:s[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:s[h-2].trim(),classes:[s[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:s[h-2].trim(),classes:[s[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:m,24:R,25:A,26:f,27:x,28:L,29:P,32:25,33:B,35:O,37:N,38:q,42:Q,45:Z,48:tt,49:et,50:st,51:it,54:j},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:n,19:T,22:m,24:R,25:A,26:f,27:x,28:L,29:P,32:25,33:B,35:O,37:N,38:q,42:Q,45:Z,48:tt,49:et,50:st,51:it,54:j},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(rt,[2,42],{55:[1,54]}),t(rt,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:R,54:j},t(S,[2,17]),t(Ct,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:i,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,68],22:m,24:R,25:A,26:f,27:x,28:L,29:P,32:25,33:B,35:O,37:N,38:q,42:Q,45:Z,48:tt,49:et,50:st,51:it,54:j},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(rt,[2,44]),t(rt,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Ct,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:i,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:n,19:T,21:[1,73],22:m,24:R,25:A,26:f,27:x,28:L,29:P,32:25,33:B,35:O,37:N,38:q,42:Q,45:Z,48:tt,49:et,50:st,51:it,54:j},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:u(function(l,c){if(c.recoverable)this.trace(l);else{var a=new Error(l);throw a.hash=c,a}},"parseError"),parse:u(function(l){var c=this,a=[0],y=[],_=[null],s=[],z=this.table,h="",G=0,M=0,nt=2,H=1,pt=s.slice.call(arguments,1),E=Object.create(this.lexer),Y={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(Y.yy[St]=this.yy[St]);E.setInput(l,Y.yy),Y.yy.lexer=E,Y.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var yt=E.yylloc;s.push(yt);var te=E.options&&E.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(v){a.length=a.length-2*v,_.length=_.length-v,s.length=s.length-v}u(ee,"popStack");function xt(){var v;return v=y.pop()||E.lex()||H,typeof v!="number"&&(v instanceof Array&&(y=v,v=y.pop()),v=c.symbols_[v]||v),v}u(xt,"lex");for(var D,F,k,gt,U={},lt,I,At,ot;;){if(F=a[a.length-1],this.defaultActions[F]?k=this.defaultActions[F]:((D===null||typeof D>"u")&&(D=xt()),k=z[F]&&z[F][D]),typeof k>"u"||!k.length||!k[0]){var Tt="";ot=[];for(lt in z[F])this.terminals_[lt]&<>nt&&ot.push("'"+this.terminals_[lt]+"'");E.showPosition?Tt="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+ot.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Tt="Parse error on line "+(G+1)+": Unexpected "+(D==H?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Tt,{text:E.match,token:this.terminals_[D]||D,line:E.yylineno,loc:yt,expected:ot})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+D);switch(k[0]){case 1:a.push(D),_.push(E.yytext),s.push(E.yylloc),a.push(k[1]),D=null,M=E.yyleng,h=E.yytext,G=E.yylineno,yt=E.yylloc;break;case 2:if(I=this.productions_[k[1]][1],U.$=_[_.length-I],U._$={first_line:s[s.length-(I||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(I||1)].first_column,last_column:s[s.length-1].last_column},te&&(U._$.range=[s[s.length-(I||1)].range[0],s[s.length-1].range[1]]),gt=this.performAction.apply(U,[h,M,G,Y.yy,k[1],_,s].concat(pt)),typeof gt<"u")return gt;I&&(a=a.slice(0,-1*I*2),_=_.slice(0,-1*I),s=s.slice(0,-1*I)),a.push(this.productions_[k[1]][0]),_.push(U.$),s.push(U._$),At=z[a[a.length-2]][a[a.length-1]],a.push(At);break;case 3:return!0}}return!0},"parse")},Zt=function(){var w={EOF:1,parseError:u(function(c,a){if(this.yy.parser)this.yy.parser.parseError(c,a);else throw new Error(c)},"parseError"),setInput:u(function(l,c){return this.yy=c||this.yy||{},this._input=l,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:u(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var c=l.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:u(function(l){var c=l.length,a=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var _=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:a?(a.length===y.length?this.yylloc.first_column:0)+y[y.length-a.length].length-a[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(l){this.unput(this.match.slice(l))},"less"),pastInput:u(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var l=this.pastInput(),c=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,n as o,j as l}from"./mermaid.core-
|
|
1
|
+
import{_ as n,n as o,j as l}from"./mermaid.core-D0YPuNli.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,d as r,e as d,l as g}from"./mermaid.core-
|
|
1
|
+
import{_ as n,d as r,e as d,l as g}from"./mermaid.core-D0YPuNli.js";var u=n((e,t)=>{let o;return t==="sandbox"&&(o=r("#i"+e)),(t==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${e}"]`)},"getDiagramElement"),b=n((e,t,o,a)=>{e.attr("class",o);const{width:i,height:s,x:h,y:x}=l(e,t);d(e,s,i,a);const c=w(h,x,i,s,t);e.attr("viewBox",c),g.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),l=n((e,t)=>{const o=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+t*2,height:o.height+t*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((e,t,o,a,i)=>`${e-i} ${t-i} ${o} ${a}`,"createViewBox");export{u as g,b as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i}from"./mermaid.core-
|
|
1
|
+
import{_ as i}from"./mermaid.core-D0YPuNli.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-D_MflthZ.js";import{_ as i}from"./mermaid.core-D0YPuNli.js";import"./chunk-RZ5BOZE2-BxQo8VeZ.js";import"./conversation-input-sync-MZPvyAzc.js";import"./index-BDzV3bGH.js";import"./path-utils-CRYGE4mK.js";import"./error-boundary-ZYkSCpZC.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-D_MflthZ.js";import{_ as i}from"./mermaid.core-D0YPuNli.js";import"./chunk-RZ5BOZE2-BxQo8VeZ.js";import"./conversation-input-sync-MZPvyAzc.js";import"./index-BDzV3bGH.js";import"./path-utils-CRYGE4mK.js";import"./error-boundary-ZYkSCpZC.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./_baseUniq-B9rnfho3.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as F,s as Qn,d as eo,t as It,e as to,j as io,c as so}from"./index-BDzV3bGH.js";import{q as Zt,L as ro,w as Ms,M as Jr,O as no,Q as oo,z as ao,T as lo,a as ho,c as co,V as uo,W as _o}from"./path-utils-Ct0VTUZS.js";const Ks=/^Error invoking remote method '[^']+':\s*/,fo=/^browser_unavailable:\s+/;function po(e){let i=(e instanceof Error?e.message:String(e)).trim();for(;Ks.test(i);)i=i.replace(Ks,"").trim();return i.replace(fo,"").trim()}function ci(){return window.api?.browser??null}function Ic(){return ci()!==null}const Ni={state:null,readError:null};let ct=Ni;const Kt=new Set;let Qt=null,Hi=!1,ei=0,ti=0;function Dt(e){ct=e;for(const t of Kt)t()}function Us(){return ct}function Nc(){ct.readError!==null&&Dt({state:ct.state,readError:null})}function Hc(e){ti=ei,Dt({state:e,readError:null})}async function mi(){const e=ci();if(!e)return null;const t=++ei;try{const i=await e.state();return!i||!Array.isArray(i.tabs)?null:(t>ti&&(ti=t,Dt({state:i,readError:null})),i)}catch(i){return t===ei&&Dt({state:ct.state,readError:po(i)}),null}}function go(e){return Kt.add(e),vo(),()=>{Kt.delete(e),Kt.size===0&&mo()}}function vo(){const e=ci();if(e){if(!Qt){const t=e.onStateChanged(()=>void mi()),i=e.onConsentChanged(()=>void mi());Qt=()=>{t(),i()}}Hi||(Hi=!0,mi())}}function mo(){Qt?.(),Qt=null,Hi=!1,ct!==Ni&&Dt(Ni),ti=ei}function Wc(){return F.useSyncExternalStore(go,Us,Us)}const Zr="all",Wi="session:";function Fc(e){return e==="all"?Zr:`${Wi}${e.sessionId}`}function zc(e){return e===Zr?"all":{sessionId:e.startsWith(Wi)?e.slice(Wi.length):e}}function $c(e,t){return t==="all"?[...e]:e.filter(i=>i.sessionId===t.sessionId)}function So(e){const t=[],i=new Map,s=[];for(const n of e){const o=n.sessionId??null;if(o===null){s.push(n);continue}const l=i.get(o);l?l.push(n):(i.set(o,[n]),t.push(o))}const r=t.map(n=>({sessionId:n,tabs:i.get(n)}));return s.length&&r.push({sessionId:null,tabs:s}),r}function di(e){return e.some(t=>t.displayOrder!==void 0)?[...e].sort((t,i)=>(t.displayOrder??Number.MAX_SAFE_INTEGER)-(i.displayOrder??Number.MAX_SAFE_INTEGER)):So(e).flatMap(t=>t.tabs)}function wo(e,t,i){const s=di(e);if(!s.length)return null;if(i.startsWith("tab-")){const o=Number(i.slice(4));return s[o===9?s.length-1:o-1]?.tabId??null}if(i!=="next-tab"&&i!=="prev-tab")return null;const r=s.findIndex(o=>o.tabId===t),n=r<0?i==="next-tab"?0:s.length-1:(r+(i==="next-tab"?1:-1)+s.length)%s.length;return s[n].tabId}function Kc(e,t,i,s){const r={tabCount:0,loadingCount:0,failedCount:0,pendingApprovals:0},n=new Map,o=(h,a)=>{const d=n.get(h)??r;n.set(h,{...d,[a]:d[a]+1})};for(const h of e){const a=h.sessionId??null;a!==null&&(o(a,"tabCount"),h.loading===!0&&o(a,"loadingCount"),h.failed===!0&&o(a,"failedCount"))}for(const h of t){if(i>=h.expiresAt)continue;const a=h.requesterSessionId;a!==null&&o(a,"pendingApprovals")}const l=new Map;for(const[h,a]of n){const d=s?.get(h);l.set(h,d&&bo(d,a)?d:a)}return l}function bo(e,t){return e.tabCount===t.tabCount&&e.loadingCount===t.loadingCount&&e.failedCount===t.failedCount&&e.pendingApprovals===t.pendingApprovals}function Uc(e,t){const i=di(e).map(s=>s.tabId).filter(s=>s!==t);return i.length?{mode:"ids",tabIds:i}:null}function qc(e,t){const i=e.findIndex(r=>r.tabId===t);if(i<0)return null;const s=e.slice(i+1).map(r=>r.tabId);return s.length?{mode:"ids",tabIds:s}:null}function Vc(e){const t=di(e).filter(i=>i.failed===!0).map(i=>i.tabId);return t.length?{mode:"ids",tabIds:t}:null}function Yc(e){return{mode:"conversation",sessionId:e}}function jc(e,t){return t.find(s=>s.session_id===e)?.title?.trim()||e}function Xc(e,t){const i=di(e).map(n=>n.tabId),s=new Set(t);if(s.size!==t.length||t.some(n=>!i.includes(n)))return[...t];let r=0;return i.map(n=>s.has(n)?t[r++]:n)}function yo(e,t){const s=Zt.getState().openSession(t),r=`/chat/${t}`;return e(r),s.then(n=>{if(n||ro()!==r)return;const o=Zt.getState();if(o.activeDraftKey){e("/chat",{replace:!0});return}const l=o.activeSessionId;e(l?`/chat/${l}`:"/chat",{replace:!0})}),s}function Gc(e){return!(e.metaKey||e.ctrlKey)||e.altKey||e.shiftKey||e.repeat||e.defaultPrevented?null:e.key==="["?"back":e.key==="]"?"forward":null}function Jc(e){return e.defaultPrevented?null:e.button===3?"back":e.button===4?"forward":null}function Zc(e,t){const i=e==="back"?"[":"]";return t?`⌘${i}`:`Ctrl+${i}`}const Co=/Mac|iPhone|iPad/;function ko(){return Co.test(navigator.platform)?"mac":"linux"}const xo=/^[1-9]$/,Eo=/^Digit([1-9])$/;function Do(e,t){if(e.alt||e.isComposing)return null;const i=e.key.toLowerCase();let s=null;if(i==="tab"&&e.control&&!e.meta)s=e.shift?"prev-tab":"next-tab";else{if(!(t==="darwin"?e.meta&&!e.control:e.control&&!e.meta))return null;if(i==="+"||i==="=")s="zoom-in";else if(i==="-"&&!e.shift)s="zoom-out";else if(i==="0"&&!e.shift)s="zoom-reset";else if(t==="darwin"&&e.shift&&["[","]","{","}"].includes(i))s=i==="["||i==="{"?"prev-tab":"next-tab";else if(i==="r")s=e.shift?"hard-reload":"reload";else if(i==="t")s=e.shift?"reopen-tab":"new-tab";else if(!e.shift)if(i==="f")s="find-page";else if(i==="l")s="focus-address";else if(i==="w")s="close-tab";else if(i==="[")s="back";else if(i==="]")s="forward";else{const n=xo.test(i)?i:Eo.exec(e.code??"")?.[1];n&&(s=`tab-${n}`)}}return e.isAutoRepeat&&s!=="next-tab"&&s!=="prev-tab"?null:s}const Ro=["browser-load-failure:","browser-start-page:"];function Bo(e){return Ro.some(t=>e.startsWith(t))}function Lo(e){return e?e.split(",").some(t=>t!==""&&!Bo(t)):!1}const Mo=/^#\/browser(?:[/?]|$)/,Fi=new Set;function Po(e){return Fi.add(e),()=>{Fi.delete(e)}}function To(e,t){return Ze(e,t??e.activeElement)!==null}const qs=new WeakMap;function zi(e){return Lo(eo())?[]:[...Fi].filter(t=>{if(t.ownerDocument!==e||!t.isConnected||t.closest('[hidden], [inert], [aria-hidden="true"]'))return!1;for(let i=t;i;i=i.parentElement){const s=e.defaultView?.getComputedStyle(i);if(s?.display==="none"||s?.visibility==="hidden"||s?.visibility==="collapse")return!1}return!0})}function Ze(e,t=e.activeElement){const i=zi(e),s=i.filter(r=>r.contains(t)||r.closest('[data-tour-tag="browser-pane"]')?.contains(t));return s.length?s.length===1?s[0]:null:t===e.body&&i.length===1&&i[0].dataset.tourTag==="browser-route"&&Mo.test(e.defaultView?.location.hash??"")?i[0]:null}function Qc(e,t,i,s){const[r,n]=F.useState(null),o=F.useRef(!1),l=F.useRef({chrome:e,tabs:t,sessionId:i});l.current={chrome:e,tabs:t,sessionId:i};const h=F.useRef(null);h.current=r;const a=F.useCallback(async _=>{const v=l.current;if(!v.tabs.some(y=>y.tabId===_))return{closed:!1,replaced:!1};const k=h.current,R=document.activeElement;k&&R instanceof Element&&k.contains(R)&&R.closest(`[data-tab-id="${_}"]`)&&k.focus({preventScroll:!0});const I=await v.chrome.closeTab(_),T=I&&v.tabs.length===1;return T&&await v.chrome.newTab(v.sessionId),{closed:I,replaced:T}},[]),d=F.useCallback(async _=>(await a(_)).closed,[a]),u=F.useRef(null),g=e.state?.pageControls?.find?.tabId??null;F.useEffect(()=>{g===null&&(u.current=null)},[g]);const f=F.useCallback(async(_="chrome")=>{const v=l.current.chrome,k=v.state?.activeTabId;if(k==null||(v.state?.pageControls?.find?.tabId!==k&&u.current!==k&&(o.current=_==="page",u.current=k),await v.pageControl(k,"open"),l.current.chrome.state?.activeTabId!==k))return;const R=h.current?.querySelector("[data-tour-tag=browser-find-row] input");R?.focus({preventScroll:!0}),R?.select()},[]);return F.useEffect(()=>{if(!r)return;const _=ci();if(!_)return;const v=r.ownerDocument,k=Po(r);let R=!0,I=Promise.resolve(),T=l.current.chrome.state?.activeTabId??null,y=T;const B=(p,M=!1)=>{!M&&qs.get(v)===p||(qs.set(v,p),_.setChordFocus(p).catch(()=>{}))},x=async p=>{for(let M=0;M<1e3;M+=5){if(!l.current.tabs.some(A=>A.tabId===p))return;await new Promise(A=>setTimeout(A,5))}},P=async({intent:p,origin:M})=>{if(!R)return;const A=l.current,K=A.chrome,G=K.state?.activeTabId??null;if(G!==y&&(T=G,y=G),G!==null&&p==="find-page"){await f(M);return}if(G!==null&&p.startsWith("zoom-")){await K.pageControl(G,p==="zoom-in"?"in":p==="zoom-out"?"out":"reset");return}if(p==="focus-address"){s.current?.raise({origin:M});return}if(p==="new-tab"){await K.newTab(A.sessionId),s.current?.close();return}if(p==="reopen-tab"){await K.reopenTab(A.sessionId);return}if(p==="reload"||p==="hard-reload"){await K.reload(p==="hard-reload");return}if(p==="back"||p==="forward"){await K.history(p);return}if(A.tabs.some(Y=>Y.tabId===T)||(T=K.state?.activeTabId??null),p==="close-tab"){const Y=K.state?.activeTabId;if(Y!=null&&A.tabs.some(ie=>ie.tabId===Y)){const{closed:ie,replaced:fe}=await a(Y);ie&&await x(Y),fe&&s.current?.close()}}else{const Y=wo(A.tabs,T,p);Y!==null&&(T=Y,await K.activateTab(Y))}M==="page"&&R&&await _.focusPage()},W=p=>{I=I.then(()=>P(p)).catch(()=>{})},U=p=>{if(p.defaultPrevented||!(p.target instanceof Node)||Ze(v)!==r||Ze(v,p.target)!==r)return;const M=ko()==="mac"?"darwin":"linux",A=Do({key:p.key,code:p.code,meta:p.metaKey,control:p.ctrlKey,alt:p.altKey,shift:p.shiftKey,isAutoRepeat:p.repeat,isComposing:p.isComposing},M);if(!A){if([...p.key].length!==1||p.metaKey||p.ctrlKey||p.altKey||p.repeat||p.isComposing)return;if(p.key===" "){const G=p.target;if(G instanceof Element&&G.closest("button, [role=tab], [role=menuitem], a[href]"))return}const K=p.target;if(K instanceof Element){if(K.closest('input, textarea, [contenteditable="true"], [contenteditable=""], [role=menu], [role=dialog], [role=combobox]'))return}else if(!(K instanceof Node))return;p.preventDefault(),p.stopPropagation(),B(!0,!0),s.current?.raise({origin:"chrome",seed:p.key});return}p.preventDefault(),p.stopPropagation(),B(!0,!0),W({intent:A,origin:"chrome"})},$=(p=!1)=>B(Ze(v)!==null,p),z=()=>$(),b=p=>{const M=p.target,A=M instanceof Node&&Ze(v,M)===r;queueMicrotask(()=>{R&&(A&&M instanceof Node&&!M.isConnected&&zi(v).includes(r)&&v.activeElement===v.body&&Ze(v)===null&&r.focus({preventScroll:!0}),$())})},c=()=>$(),S=()=>$(!0);v.addEventListener("keydown",U),v.addEventListener("focusin",z),v.addEventListener("focusout",b),window.addEventListener("hashchange",c),window.addEventListener("resize",c),window.addEventListener("focus",S);const m=Qn(c),w=new MutationObserver(c);for(let p=r;p;p=p.parentElement)w.observe(p,{attributes:!0,attributeFilter:["hidden","inert","aria-hidden","class","style"]});$();const E=_.onChord(p=>{const M=Ze(v),A=zi(v);p.origin==="page"&&!l.current.tabs.some(K=>K.tabId===l.current.chrome.state?.activeTabId)||(M===r||p.origin==="page"&&M===null&&A.length===1&&A[0]===r)&&W(p)});return()=>{R=!1,k(),$(),E(),m(),w.disconnect(),v.removeEventListener("keydown",U),v.removeEventListener("focusin",z),v.removeEventListener("focusout",b),window.removeEventListener("hashchange",c),window.removeEventListener("resize",c),window.removeEventListener("focus",S)}},[r,s,a,f]),{root:n,closeTab:d,findReturnToPage:o,openFind:f}}function ed(){const e=Zt(i=>Ao(i.activeDraftKey,i.activeDraftKey?i.drafts[i.activeDraftKey]?.sessionId:void 0,i.activeSessionId)),t=Ms(i=>i.rememberConversation);F.useEffect(()=>{e!==null&&t(e)},[e,t])}function Ao(e,t,i){const s=Jr(e,t,i);return s||null}function Oo(e,t,i,s,r){const n=t.indexOf(e.session_id);return{recentRank:n===-1?void 0:n,current:e.session_id===i,archived:no(oo([e],r),s).length===0}}const Io=5,No=180;function Ho(e){const t=new Map(e.sessions.map(r=>[r.session_id,r])),i=e.displayedSessionId??null,s=[];if(i!==null&&i!==""){const r=t.get(i)??null;s.push({sessionId:i,title:Vs(r),row:r})}for(const r of e.recents){if(s.length>=Io)break;if(r===i)continue;const n=t.get(r);n===void 0||Oo(n,e.recents,i,e.archiveEnabled,e.archiveFacts).archived||s.push({sessionId:r,title:Vs(n),row:n})}return s}function Vs(e){const t=e?.title?.trim();return t||null}function Wo(e){return e?0:null}function Ys(e,t,i){return i<=0?null:e===null?t===1?0:i-1:(e+t+i)%i}function Fo(e,t,i){if(t===null)return null;const s=e[t];return s===void 0||s.sessionId===i?null:s.sessionId}function zo(e){return e.isComposing||!e.ctrlKey||e.metaKey||e.altKey?null:e.key==="Tab"?{delta:e.shiftKey?-1:1,repeat:e.repeat}:!e.shiftKey&&(e.key==="`"||e.code==="Backquote")?{delta:-1,repeat:e.repeat}:null}const Si={visible:!1,rows:[],cursor:null};let Ut=!1;function $o(){return Ut}function td(){const e=ao(),t=F.useRef(e);t.current=e;const{pathname:i}=lo(),s=F.useRef(i);s.current=i;const r=ho(),n=co(r.data,"session_archive"),o=F.useRef(n);o.current=n;const[l,h]=F.useState(Si),a=F.useRef(null),d=F.useRef(null),u=F.useCallback(()=>{const v=a.current;h(v===null?Si:{visible:v.visible,rows:v.rows,cursor:v.cursor})},[]),g=F.useCallback(()=>{d.current!==null&&(window.clearTimeout(d.current),d.current=null),a.current=null,Ut=!1,h(Si)},[]),f=F.useCallback(v=>{const k=a.current;if(k===null)return;const R=Fo(k.rows,v,k.currentSessionId);g(),R!==null&&yo(t.current,R)},[g]);F.useEffect(()=>{const v=x=>{const P=Zt.getState(),U=s.current.startsWith("/chat")&&Jr(P.activeDraftKey,P.activeDraftKey?P.drafts[P.activeDraftKey]?.sessionId:void 0,P.activeSessionId)||null,$=Ho({sessions:P.sessions,recents:_o(Ms.getState().conversationRecents),displayedSessionId:U,archiveEnabled:o.current,archiveFacts:P.archiveFacts});return $.length<2?!1:(Ut=!0,a.current={rows:$,cursor:Ys(Wo(U!==null),x,$.length),currentSessionId:U,visible:!1},d.current=window.setTimeout(()=>{d.current=null,a.current!==null&&(a.current.visible=!0,u())},No),u(),!0)},k=x=>{if(a.current!==null&&!x.ctrlKey){x.key==="Tab"&&x.preventDefault(),g();return}if(x.defaultPrevented||To(document,x.target instanceof Node?x.target:null))return;const P=zo(x);if(P===null)return;const W=a.current;if(!(W===null&&uo(x.target))&&(x.preventDefault(),!P.repeat)){if(W===null){v(P.delta);return}W.cursor=Ys(W.cursor,P.delta,W.rows.length),u()}},R=x=>{x.key!=="Escape"||a.current===null||x.metaKey||x.altKey||x.isComposing||(x.preventDefault(),x.stopPropagation(),g())},I=x=>{if(a.current!==null){if(x.key==="Control"){f(a.current.cursor);return}x.ctrlKey||g()}},T=x=>{a.current===null||x.ctrlKey||x.target instanceof Element&&x.target.closest("[data-session-id]")||g()},y=()=>{a.current!==null&&g()},B=()=>{document.visibilityState!=="visible"&&y()};return window.addEventListener("keydown",R,{capture:!0}),document.addEventListener("keydown",k),document.addEventListener("keyup",I),document.addEventListener("pointerdown",T),window.addEventListener("blur",y),document.addEventListener("visibilitychange",B),()=>{window.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("keydown",k),document.removeEventListener("keyup",I),document.removeEventListener("pointerdown",T),window.removeEventListener("blur",y),document.removeEventListener("visibilitychange",B),d.current!==null&&(window.clearTimeout(d.current),d.current=null),a.current=null,Ut=!1}},[g,f,u]);const _=F.useCallback(v=>{const k=a.current;k===null||k.cursor===v||(k.cursor=v,u())},[u]);return{...l,commitAt:f,hoverAt:_}}const js={background:"sunken",foreground:"ink",cursor:"accent",cursorAccent:"surface",selectionBackground:"accent",selectionForeground:"onAccent",black:"inkDim",red:"danger",green:"success",yellow:"warning",blue:"info",magenta:"danger",cyan:"info",white:"ink",brightBlack:"inkMuted",brightRed:"danger",brightGreen:"success",brightYellow:"warning",brightBlue:"info",brightMagenta:"danger",brightCyan:"info",brightWhite:"ink"},Ko=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uo=e=>e==="history"?{...js,foreground:"inkMuted"}:js,Xs=(e=document.documentElement,t="live")=>{const i=getComputedStyle(e),s={},r=Uo(t);for(const n of Object.keys(r)){const o=Yo(i,r[n]);o&&(s[n]=o)}return Object.keys(s).length===0&&Vo(e),s},id=(e,t=document.documentElement)=>{if(e==null)return;t.dataset.theme=e,t.classList.toggle("dark",e.toLowerCase().includes("light")===!1),qo(t,"--color-sunken")||console.warn(`[console] the capture view was fed theme "${e}", which resolves no role variables; the frame will not be this app's colours`)},qo=(e,t)=>typeof getComputedStyle!="function"?"":getComputedStyle(e).getPropertyValue(t).trim(),Gs=new Set,Vo=e=>{const t=e.dataset.theme??"(none)";Gs.has(t)||(Gs.add(t),console.warn(`[console] no terminal role resolved for theme "${t}": the terminal is painting xterm's own defaults, not this app's palette`))},$i=13,Yo=(e,t)=>{const i=Ko(t),s=e.getPropertyValue(`--color-${i}`).trim();if(Js(s))return s;const r=e.getPropertyValue(`--lo-${i}`).trim();return Js(r)?r:""},jo=/^#[0-9a-fA-F]{3,8}$/,Xo=/^(rgb|rgba|hsl|hsla|color)\(/,Js=e=>jo.test(e)||Xo.test(e),Ki=(e=document.documentElement)=>typeof document>"u"||typeof getComputedStyle!="function"?"monospace":getComputedStyle(e).getPropertyValue("--font-mono").trim()||"monospace",Go=(e,t=$i,i=typeof window>"u"?1:window.devicePixelRatio||1)=>{let s=t*.6,r=t*1.2;if(typeof document>"u")return{cellWidth:s,cellHeight:r};const n=e??Ki(),l=document.createElement("canvas").getContext("2d");if(!l)return{cellWidth:s,cellHeight:r};l.font=`${t}px ${n}`;const h=l.measureText("W");Number.isFinite(h.width)&&h.width>0&&(s=h.width);const a=h.fontBoundingBoxAscent+h.fontBoundingBoxDescent;return Number.isFinite(a)&&a>0&&(r=Jo(a,i)),{cellWidth:s,cellHeight:r}},Jo=(e,t)=>Math.ceil(e*t)/t;/**
|
|
1
|
+
import{r as F,s as Qn,d as eo,t as It,e as to,j as io,c as so}from"./index-BDzV3bGH.js";import{q as Zt,L as ro,w as Ms,M as Jr,O as no,Q as oo,z as ao,T as lo,a as ho,c as co,V as uo,W as _o}from"./path-utils-CRYGE4mK.js";const Ks=/^Error invoking remote method '[^']+':\s*/,fo=/^browser_unavailable:\s+/;function po(e){let i=(e instanceof Error?e.message:String(e)).trim();for(;Ks.test(i);)i=i.replace(Ks,"").trim();return i.replace(fo,"").trim()}function ci(){return window.api?.browser??null}function Ic(){return ci()!==null}const Ni={state:null,readError:null};let ct=Ni;const Kt=new Set;let Qt=null,Hi=!1,ei=0,ti=0;function Dt(e){ct=e;for(const t of Kt)t()}function Us(){return ct}function Nc(){ct.readError!==null&&Dt({state:ct.state,readError:null})}function Hc(e){ti=ei,Dt({state:e,readError:null})}async function mi(){const e=ci();if(!e)return null;const t=++ei;try{const i=await e.state();return!i||!Array.isArray(i.tabs)?null:(t>ti&&(ti=t,Dt({state:i,readError:null})),i)}catch(i){return t===ei&&Dt({state:ct.state,readError:po(i)}),null}}function go(e){return Kt.add(e),vo(),()=>{Kt.delete(e),Kt.size===0&&mo()}}function vo(){const e=ci();if(e){if(!Qt){const t=e.onStateChanged(()=>void mi()),i=e.onConsentChanged(()=>void mi());Qt=()=>{t(),i()}}Hi||(Hi=!0,mi())}}function mo(){Qt?.(),Qt=null,Hi=!1,ct!==Ni&&Dt(Ni),ti=ei}function Wc(){return F.useSyncExternalStore(go,Us,Us)}const Zr="all",Wi="session:";function Fc(e){return e==="all"?Zr:`${Wi}${e.sessionId}`}function zc(e){return e===Zr?"all":{sessionId:e.startsWith(Wi)?e.slice(Wi.length):e}}function $c(e,t){return t==="all"?[...e]:e.filter(i=>i.sessionId===t.sessionId)}function So(e){const t=[],i=new Map,s=[];for(const n of e){const o=n.sessionId??null;if(o===null){s.push(n);continue}const l=i.get(o);l?l.push(n):(i.set(o,[n]),t.push(o))}const r=t.map(n=>({sessionId:n,tabs:i.get(n)}));return s.length&&r.push({sessionId:null,tabs:s}),r}function di(e){return e.some(t=>t.displayOrder!==void 0)?[...e].sort((t,i)=>(t.displayOrder??Number.MAX_SAFE_INTEGER)-(i.displayOrder??Number.MAX_SAFE_INTEGER)):So(e).flatMap(t=>t.tabs)}function wo(e,t,i){const s=di(e);if(!s.length)return null;if(i.startsWith("tab-")){const o=Number(i.slice(4));return s[o===9?s.length-1:o-1]?.tabId??null}if(i!=="next-tab"&&i!=="prev-tab")return null;const r=s.findIndex(o=>o.tabId===t),n=r<0?i==="next-tab"?0:s.length-1:(r+(i==="next-tab"?1:-1)+s.length)%s.length;return s[n].tabId}function Kc(e,t,i,s){const r={tabCount:0,loadingCount:0,failedCount:0,pendingApprovals:0},n=new Map,o=(h,a)=>{const d=n.get(h)??r;n.set(h,{...d,[a]:d[a]+1})};for(const h of e){const a=h.sessionId??null;a!==null&&(o(a,"tabCount"),h.loading===!0&&o(a,"loadingCount"),h.failed===!0&&o(a,"failedCount"))}for(const h of t){if(i>=h.expiresAt)continue;const a=h.requesterSessionId;a!==null&&o(a,"pendingApprovals")}const l=new Map;for(const[h,a]of n){const d=s?.get(h);l.set(h,d&&bo(d,a)?d:a)}return l}function bo(e,t){return e.tabCount===t.tabCount&&e.loadingCount===t.loadingCount&&e.failedCount===t.failedCount&&e.pendingApprovals===t.pendingApprovals}function Uc(e,t){const i=di(e).map(s=>s.tabId).filter(s=>s!==t);return i.length?{mode:"ids",tabIds:i}:null}function qc(e,t){const i=e.findIndex(r=>r.tabId===t);if(i<0)return null;const s=e.slice(i+1).map(r=>r.tabId);return s.length?{mode:"ids",tabIds:s}:null}function Vc(e){const t=di(e).filter(i=>i.failed===!0).map(i=>i.tabId);return t.length?{mode:"ids",tabIds:t}:null}function Yc(e){return{mode:"conversation",sessionId:e}}function jc(e,t){return t.find(s=>s.session_id===e)?.title?.trim()||e}function Xc(e,t){const i=di(e).map(n=>n.tabId),s=new Set(t);if(s.size!==t.length||t.some(n=>!i.includes(n)))return[...t];let r=0;return i.map(n=>s.has(n)?t[r++]:n)}function yo(e,t){const s=Zt.getState().openSession(t),r=`/chat/${t}`;return e(r),s.then(n=>{if(n||ro()!==r)return;const o=Zt.getState();if(o.activeDraftKey){e("/chat",{replace:!0});return}const l=o.activeSessionId;e(l?`/chat/${l}`:"/chat",{replace:!0})}),s}function Gc(e){return!(e.metaKey||e.ctrlKey)||e.altKey||e.shiftKey||e.repeat||e.defaultPrevented?null:e.key==="["?"back":e.key==="]"?"forward":null}function Jc(e){return e.defaultPrevented?null:e.button===3?"back":e.button===4?"forward":null}function Zc(e,t){const i=e==="back"?"[":"]";return t?`⌘${i}`:`Ctrl+${i}`}const Co=/Mac|iPhone|iPad/;function ko(){return Co.test(navigator.platform)?"mac":"linux"}const xo=/^[1-9]$/,Eo=/^Digit([1-9])$/;function Do(e,t){if(e.alt||e.isComposing)return null;const i=e.key.toLowerCase();let s=null;if(i==="tab"&&e.control&&!e.meta)s=e.shift?"prev-tab":"next-tab";else{if(!(t==="darwin"?e.meta&&!e.control:e.control&&!e.meta))return null;if(i==="+"||i==="=")s="zoom-in";else if(i==="-"&&!e.shift)s="zoom-out";else if(i==="0"&&!e.shift)s="zoom-reset";else if(t==="darwin"&&e.shift&&["[","]","{","}"].includes(i))s=i==="["||i==="{"?"prev-tab":"next-tab";else if(i==="r")s=e.shift?"hard-reload":"reload";else if(i==="t")s=e.shift?"reopen-tab":"new-tab";else if(!e.shift)if(i==="f")s="find-page";else if(i==="l")s="focus-address";else if(i==="w")s="close-tab";else if(i==="[")s="back";else if(i==="]")s="forward";else{const n=xo.test(i)?i:Eo.exec(e.code??"")?.[1];n&&(s=`tab-${n}`)}}return e.isAutoRepeat&&s!=="next-tab"&&s!=="prev-tab"?null:s}const Ro=["browser-load-failure:","browser-start-page:"];function Bo(e){return Ro.some(t=>e.startsWith(t))}function Lo(e){return e?e.split(",").some(t=>t!==""&&!Bo(t)):!1}const Mo=/^#\/browser(?:[/?]|$)/,Fi=new Set;function Po(e){return Fi.add(e),()=>{Fi.delete(e)}}function To(e,t){return Ze(e,t??e.activeElement)!==null}const qs=new WeakMap;function zi(e){return Lo(eo())?[]:[...Fi].filter(t=>{if(t.ownerDocument!==e||!t.isConnected||t.closest('[hidden], [inert], [aria-hidden="true"]'))return!1;for(let i=t;i;i=i.parentElement){const s=e.defaultView?.getComputedStyle(i);if(s?.display==="none"||s?.visibility==="hidden"||s?.visibility==="collapse")return!1}return!0})}function Ze(e,t=e.activeElement){const i=zi(e),s=i.filter(r=>r.contains(t)||r.closest('[data-tour-tag="browser-pane"]')?.contains(t));return s.length?s.length===1?s[0]:null:t===e.body&&i.length===1&&i[0].dataset.tourTag==="browser-route"&&Mo.test(e.defaultView?.location.hash??"")?i[0]:null}function Qc(e,t,i,s){const[r,n]=F.useState(null),o=F.useRef(!1),l=F.useRef({chrome:e,tabs:t,sessionId:i});l.current={chrome:e,tabs:t,sessionId:i};const h=F.useRef(null);h.current=r;const a=F.useCallback(async _=>{const v=l.current;if(!v.tabs.some(y=>y.tabId===_))return{closed:!1,replaced:!1};const k=h.current,R=document.activeElement;k&&R instanceof Element&&k.contains(R)&&R.closest(`[data-tab-id="${_}"]`)&&k.focus({preventScroll:!0});const I=await v.chrome.closeTab(_),T=I&&v.tabs.length===1;return T&&await v.chrome.newTab(v.sessionId),{closed:I,replaced:T}},[]),d=F.useCallback(async _=>(await a(_)).closed,[a]),u=F.useRef(null),g=e.state?.pageControls?.find?.tabId??null;F.useEffect(()=>{g===null&&(u.current=null)},[g]);const f=F.useCallback(async(_="chrome")=>{const v=l.current.chrome,k=v.state?.activeTabId;if(k==null||(v.state?.pageControls?.find?.tabId!==k&&u.current!==k&&(o.current=_==="page",u.current=k),await v.pageControl(k,"open"),l.current.chrome.state?.activeTabId!==k))return;const R=h.current?.querySelector("[data-tour-tag=browser-find-row] input");R?.focus({preventScroll:!0}),R?.select()},[]);return F.useEffect(()=>{if(!r)return;const _=ci();if(!_)return;const v=r.ownerDocument,k=Po(r);let R=!0,I=Promise.resolve(),T=l.current.chrome.state?.activeTabId??null,y=T;const B=(p,M=!1)=>{!M&&qs.get(v)===p||(qs.set(v,p),_.setChordFocus(p).catch(()=>{}))},x=async p=>{for(let M=0;M<1e3;M+=5){if(!l.current.tabs.some(A=>A.tabId===p))return;await new Promise(A=>setTimeout(A,5))}},P=async({intent:p,origin:M})=>{if(!R)return;const A=l.current,K=A.chrome,G=K.state?.activeTabId??null;if(G!==y&&(T=G,y=G),G!==null&&p==="find-page"){await f(M);return}if(G!==null&&p.startsWith("zoom-")){await K.pageControl(G,p==="zoom-in"?"in":p==="zoom-out"?"out":"reset");return}if(p==="focus-address"){s.current?.raise({origin:M});return}if(p==="new-tab"){await K.newTab(A.sessionId),s.current?.close();return}if(p==="reopen-tab"){await K.reopenTab(A.sessionId);return}if(p==="reload"||p==="hard-reload"){await K.reload(p==="hard-reload");return}if(p==="back"||p==="forward"){await K.history(p);return}if(A.tabs.some(Y=>Y.tabId===T)||(T=K.state?.activeTabId??null),p==="close-tab"){const Y=K.state?.activeTabId;if(Y!=null&&A.tabs.some(ie=>ie.tabId===Y)){const{closed:ie,replaced:fe}=await a(Y);ie&&await x(Y),fe&&s.current?.close()}}else{const Y=wo(A.tabs,T,p);Y!==null&&(T=Y,await K.activateTab(Y))}M==="page"&&R&&await _.focusPage()},W=p=>{I=I.then(()=>P(p)).catch(()=>{})},U=p=>{if(p.defaultPrevented||!(p.target instanceof Node)||Ze(v)!==r||Ze(v,p.target)!==r)return;const M=ko()==="mac"?"darwin":"linux",A=Do({key:p.key,code:p.code,meta:p.metaKey,control:p.ctrlKey,alt:p.altKey,shift:p.shiftKey,isAutoRepeat:p.repeat,isComposing:p.isComposing},M);if(!A){if([...p.key].length!==1||p.metaKey||p.ctrlKey||p.altKey||p.repeat||p.isComposing)return;if(p.key===" "){const G=p.target;if(G instanceof Element&&G.closest("button, [role=tab], [role=menuitem], a[href]"))return}const K=p.target;if(K instanceof Element){if(K.closest('input, textarea, [contenteditable="true"], [contenteditable=""], [role=menu], [role=dialog], [role=combobox]'))return}else if(!(K instanceof Node))return;p.preventDefault(),p.stopPropagation(),B(!0,!0),s.current?.raise({origin:"chrome",seed:p.key});return}p.preventDefault(),p.stopPropagation(),B(!0,!0),W({intent:A,origin:"chrome"})},$=(p=!1)=>B(Ze(v)!==null,p),z=()=>$(),b=p=>{const M=p.target,A=M instanceof Node&&Ze(v,M)===r;queueMicrotask(()=>{R&&(A&&M instanceof Node&&!M.isConnected&&zi(v).includes(r)&&v.activeElement===v.body&&Ze(v)===null&&r.focus({preventScroll:!0}),$())})},c=()=>$(),S=()=>$(!0);v.addEventListener("keydown",U),v.addEventListener("focusin",z),v.addEventListener("focusout",b),window.addEventListener("hashchange",c),window.addEventListener("resize",c),window.addEventListener("focus",S);const m=Qn(c),w=new MutationObserver(c);for(let p=r;p;p=p.parentElement)w.observe(p,{attributes:!0,attributeFilter:["hidden","inert","aria-hidden","class","style"]});$();const E=_.onChord(p=>{const M=Ze(v),A=zi(v);p.origin==="page"&&!l.current.tabs.some(K=>K.tabId===l.current.chrome.state?.activeTabId)||(M===r||p.origin==="page"&&M===null&&A.length===1&&A[0]===r)&&W(p)});return()=>{R=!1,k(),$(),E(),m(),w.disconnect(),v.removeEventListener("keydown",U),v.removeEventListener("focusin",z),v.removeEventListener("focusout",b),window.removeEventListener("hashchange",c),window.removeEventListener("resize",c),window.removeEventListener("focus",S)}},[r,s,a,f]),{root:n,closeTab:d,findReturnToPage:o,openFind:f}}function ed(){const e=Zt(i=>Ao(i.activeDraftKey,i.activeDraftKey?i.drafts[i.activeDraftKey]?.sessionId:void 0,i.activeSessionId)),t=Ms(i=>i.rememberConversation);F.useEffect(()=>{e!==null&&t(e)},[e,t])}function Ao(e,t,i){const s=Jr(e,t,i);return s||null}function Oo(e,t,i,s,r){const n=t.indexOf(e.session_id);return{recentRank:n===-1?void 0:n,current:e.session_id===i,archived:no(oo([e],r),s).length===0}}const Io=5,No=180;function Ho(e){const t=new Map(e.sessions.map(r=>[r.session_id,r])),i=e.displayedSessionId??null,s=[];if(i!==null&&i!==""){const r=t.get(i)??null;s.push({sessionId:i,title:Vs(r),row:r})}for(const r of e.recents){if(s.length>=Io)break;if(r===i)continue;const n=t.get(r);n===void 0||Oo(n,e.recents,i,e.archiveEnabled,e.archiveFacts).archived||s.push({sessionId:r,title:Vs(n),row:n})}return s}function Vs(e){const t=e?.title?.trim();return t||null}function Wo(e){return e?0:null}function Ys(e,t,i){return i<=0?null:e===null?t===1?0:i-1:(e+t+i)%i}function Fo(e,t,i){if(t===null)return null;const s=e[t];return s===void 0||s.sessionId===i?null:s.sessionId}function zo(e){return e.isComposing||!e.ctrlKey||e.metaKey||e.altKey?null:e.key==="Tab"?{delta:e.shiftKey?-1:1,repeat:e.repeat}:!e.shiftKey&&(e.key==="`"||e.code==="Backquote")?{delta:-1,repeat:e.repeat}:null}const Si={visible:!1,rows:[],cursor:null};let Ut=!1;function $o(){return Ut}function td(){const e=ao(),t=F.useRef(e);t.current=e;const{pathname:i}=lo(),s=F.useRef(i);s.current=i;const r=ho(),n=co(r.data,"session_archive"),o=F.useRef(n);o.current=n;const[l,h]=F.useState(Si),a=F.useRef(null),d=F.useRef(null),u=F.useCallback(()=>{const v=a.current;h(v===null?Si:{visible:v.visible,rows:v.rows,cursor:v.cursor})},[]),g=F.useCallback(()=>{d.current!==null&&(window.clearTimeout(d.current),d.current=null),a.current=null,Ut=!1,h(Si)},[]),f=F.useCallback(v=>{const k=a.current;if(k===null)return;const R=Fo(k.rows,v,k.currentSessionId);g(),R!==null&&yo(t.current,R)},[g]);F.useEffect(()=>{const v=x=>{const P=Zt.getState(),U=s.current.startsWith("/chat")&&Jr(P.activeDraftKey,P.activeDraftKey?P.drafts[P.activeDraftKey]?.sessionId:void 0,P.activeSessionId)||null,$=Ho({sessions:P.sessions,recents:_o(Ms.getState().conversationRecents),displayedSessionId:U,archiveEnabled:o.current,archiveFacts:P.archiveFacts});return $.length<2?!1:(Ut=!0,a.current={rows:$,cursor:Ys(Wo(U!==null),x,$.length),currentSessionId:U,visible:!1},d.current=window.setTimeout(()=>{d.current=null,a.current!==null&&(a.current.visible=!0,u())},No),u(),!0)},k=x=>{if(a.current!==null&&!x.ctrlKey){x.key==="Tab"&&x.preventDefault(),g();return}if(x.defaultPrevented||To(document,x.target instanceof Node?x.target:null))return;const P=zo(x);if(P===null)return;const W=a.current;if(!(W===null&&uo(x.target))&&(x.preventDefault(),!P.repeat)){if(W===null){v(P.delta);return}W.cursor=Ys(W.cursor,P.delta,W.rows.length),u()}},R=x=>{x.key!=="Escape"||a.current===null||x.metaKey||x.altKey||x.isComposing||(x.preventDefault(),x.stopPropagation(),g())},I=x=>{if(a.current!==null){if(x.key==="Control"){f(a.current.cursor);return}x.ctrlKey||g()}},T=x=>{a.current===null||x.ctrlKey||x.target instanceof Element&&x.target.closest("[data-session-id]")||g()},y=()=>{a.current!==null&&g()},B=()=>{document.visibilityState!=="visible"&&y()};return window.addEventListener("keydown",R,{capture:!0}),document.addEventListener("keydown",k),document.addEventListener("keyup",I),document.addEventListener("pointerdown",T),window.addEventListener("blur",y),document.addEventListener("visibilitychange",B),()=>{window.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("keydown",k),document.removeEventListener("keyup",I),document.removeEventListener("pointerdown",T),window.removeEventListener("blur",y),document.removeEventListener("visibilitychange",B),d.current!==null&&(window.clearTimeout(d.current),d.current=null),a.current=null,Ut=!1}},[g,f,u]);const _=F.useCallback(v=>{const k=a.current;k===null||k.cursor===v||(k.cursor=v,u())},[u]);return{...l,commitAt:f,hoverAt:_}}const js={background:"sunken",foreground:"ink",cursor:"accent",cursorAccent:"surface",selectionBackground:"accent",selectionForeground:"onAccent",black:"inkDim",red:"danger",green:"success",yellow:"warning",blue:"info",magenta:"danger",cyan:"info",white:"ink",brightBlack:"inkMuted",brightRed:"danger",brightGreen:"success",brightYellow:"warning",brightBlue:"info",brightMagenta:"danger",brightCyan:"info",brightWhite:"ink"},Ko=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uo=e=>e==="history"?{...js,foreground:"inkMuted"}:js,Xs=(e=document.documentElement,t="live")=>{const i=getComputedStyle(e),s={},r=Uo(t);for(const n of Object.keys(r)){const o=Yo(i,r[n]);o&&(s[n]=o)}return Object.keys(s).length===0&&Vo(e),s},id=(e,t=document.documentElement)=>{if(e==null)return;t.dataset.theme=e,t.classList.toggle("dark",e.toLowerCase().includes("light")===!1),qo(t,"--color-sunken")||console.warn(`[console] the capture view was fed theme "${e}", which resolves no role variables; the frame will not be this app's colours`)},qo=(e,t)=>typeof getComputedStyle!="function"?"":getComputedStyle(e).getPropertyValue(t).trim(),Gs=new Set,Vo=e=>{const t=e.dataset.theme??"(none)";Gs.has(t)||(Gs.add(t),console.warn(`[console] no terminal role resolved for theme "${t}": the terminal is painting xterm's own defaults, not this app's palette`))},$i=13,Yo=(e,t)=>{const i=Ko(t),s=e.getPropertyValue(`--color-${i}`).trim();if(Js(s))return s;const r=e.getPropertyValue(`--lo-${i}`).trim();return Js(r)?r:""},jo=/^#[0-9a-fA-F]{3,8}$/,Xo=/^(rgb|rgba|hsl|hsla|color)\(/,Js=e=>jo.test(e)||Xo.test(e),Ki=(e=document.documentElement)=>typeof document>"u"||typeof getComputedStyle!="function"?"monospace":getComputedStyle(e).getPropertyValue("--font-mono").trim()||"monospace",Go=(e,t=$i,i=typeof window>"u"?1:window.devicePixelRatio||1)=>{let s=t*.6,r=t*1.2;if(typeof document>"u")return{cellWidth:s,cellHeight:r};const n=e??Ki(),l=document.createElement("canvas").getContext("2d");if(!l)return{cellWidth:s,cellHeight:r};l.font=`${t}px ${n}`;const h=l.measureText("W");Number.isFinite(h.width)&&h.width>0&&(s=h.width);const a=h.fontBoundingBoxAscent+h.fontBoundingBoxDescent;return Number.isFinite(a)&&a>0&&(r=Jo(a,i)),{cellWidth:s,cellHeight:r}},Jo=(e,t)=>Math.ceil(e*t)/t;/**
|
|
2
2
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
3
3
|
* @license MIT
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as c,a,D as m,R as i,b as f}from"./index-BDzV3bGH.js";import{m as d,T as b,t as l,a as p,C as h}from"./console-mirror-
|
|
1
|
+
import{r as o,j as c,a,D as m,R as i,b as f}from"./index-BDzV3bGH.js";import{m as d,T as b,t as l,a as p,C as h}from"./console-mirror-Bxl6t4e9.js";import"./path-utils-CRYGE4mK.js";const E=t=>{const n=atob(t),r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r},w=()=>{const[t,n]=o.useState(null);return o.useEffect(()=>{const r=window.api?.desktopCapture;if(!r)return;const s=r.onMeasure(()=>{r.measured(d(l(),b))}),u=r.onFeed(e=>{typeof e?.bytes_base64!="string"||typeof e?.cols!="number"||typeof e?.rows!="number"||n({nonce:typeof e.nonce=="number"?e.nonce:0,surface:typeof e.surface=="string"?e.surface:"",cols:e.cols,rows:e.rows,theme:typeof e.theme=="string"?e.theme:null,bytes_base64:e.bytes_base64})});return()=>{s(),u()}},[]),o.useEffect(()=>{p(t?.theme)},[t?.theme]),t?c.jsx(h,{surface:t.surface,visible:!0,cols:t.cols,rows:t.rows,mode:"capture",bytes:E(t.bytes_base64),onSettled:()=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{const r=document.querySelector(".xterm-screen canvas");window.api?.desktopCapture?.settled({renderer:r?"canvas":"dom"})}))}},t.nonce):null};a(m);document.addEventListener("DOMContentLoaded",()=>{i.createRoot(document.getElementById("capture")).render(c.jsx(f.StrictMode,{children:c.jsx(w,{})}))});
|