factory-factory 0.5.6 → 0.5.7
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/dist/client/assets/{DotsThree.es-Dx8TXzzQ.js → DotsThree.es-6Y3ru9Fr.js} +1 -1
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-D-WiX0ND.js → abnfDiagram-WEYOIA3C-Bz-2NjrY.js} +1 -1
- package/dist/client/assets/{admin-page-BdYXlEfi.js → admin-page-N8bqsl_U.js} +1 -1
- package/dist/client/assets/{agent-authoring-CzgCC7xn.js → agent-authoring-C33uSQgC.js} +1 -1
- package/dist/client/assets/{agents-CIGVR3Yk.js → agents-BNAsXKbn.js} +1 -1
- package/dist/client/assets/{agents-B6BxITMg.js → agents-MwqMFVNs.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-D-Nk4IRx.js → architectureDiagram-ZHVYKT53-CpoGyKeM.js} +1 -1
- package/dist/client/assets/{chat-BsZewCkt.js → chat-B7u27d-i.js} +5 -5
- package/dist/client/assets/{chunk-2E7WHVMD-DsLW-8KW.js → chunk-2E7WHVMD-Baod-BdE.js} +1 -1
- package/dist/client/assets/{chunk-NQOKRVIF-CMnJ0k4D.js → chunk-NQOKRVIF-LCflra3k.js} +1 -1
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-BRoc4t8Q.js → classDiagram-v2-4MYWR3UA-MRjV_MIA.js} +1 -1
- package/dist/client/assets/client-modules.json +1 -1
- package/dist/client/assets/{codex-accounts-C8imj_4P.js → codex-accounts-DP-Tb-tZ.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-6T3PH0XT.js → cynefinDiagram-WF24UDRP-bzsiqTUL.js} +1 -1
- package/dist/client/assets/{data-import-button-BH9f-Pg6.js → data-import-button-BqRlwClc.js} +1 -1
- package/dist/client/assets/{detail-C4NZBe6t.js → detail-BXmaqHTp.js} +2 -2
- package/dist/client/assets/{diagram-CBK3MWTC-YepopftI.js → diagram-CBK3MWTC-DjtO1Qi7.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-BJli7Wmv.js → diagram-I5XIIV2D-EW0H2MNl.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-CSqmCku9.js → diagram-ODIL2UCW-DSWSmg75.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-Din95BTu.js → diagram-RJA3I4VV-DGCPPXy9.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-DDVwAmk7.js → diagram-TYUNFSNR-BRE0O5UU.js} +1 -1
- package/dist/client/assets/{diff-viewer-DNUPJg_G.js → diff-viewer-B2pMcSUo.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Bt8SCelN.js → ebnfDiagram-V4P3TTPT-LN1BHyLk.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-BDYCjid-.js → erDiagram-KYQIGQAA-BagoNO7h.js} +1 -1
- package/dist/client/assets/{event-agent-workspace-form-CWmktyXd.js → event-agent-workspace-form-D6EZQxOA.js} +1 -1
- package/dist/client/assets/{file-viewer-CbXNMHbC.js → file-viewer-ByqeZE0U.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-CJN9xdYn.js → flowDiagram-IUGLLWBU-D263u80I.js} +1 -1
- package/dist/client/assets/{highlighted-body-JLMTFACH-Dy-R6Y8r.js → highlighted-body-JLMTFACH-CMb21a0T.js} +1 -1
- package/dist/client/assets/{home-pNFIyVOJ.js → home-9nWsYf3c.js} +1 -1
- package/dist/client/assets/index-ClP2IiKy.css +2 -0
- package/dist/client/assets/index-GmSorqXd.js +12 -0
- package/dist/client/assets/{infoDiagram-MVDRKAX5-CZx5KLLZ.js → infoDiagram-MVDRKAX5-DqtZTfKx.js} +1 -1
- package/dist/client/assets/{inline-workspace-form-DvVz3qgr.js → inline-workspace-form-DTOd1_IQ.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-C0ax8nAT.js → ishikawaDiagram-HPEHV2GE-S--AK0b5.js} +1 -1
- package/dist/client/assets/{issue-launch-sheet-Cvig-i15.js → issue-launch-sheet-Cmq9AmXu.js} +1 -1
- package/dist/client/assets/{kanban-CWhDBIAX.js → kanban-DFqdaBrr.js} +1 -1
- package/dist/client/assets/{kanban-card-xzqAUkmg.js → kanban-card-CKNGUrJa.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-FG4uAvnN.js → kanban-definition-FNSA4HC5-BstZV_2x.js} +1 -1
- package/dist/client/assets/{legacy-COQTLf7j.js → legacy-BK7U5o2y.js} +1 -1
- package/dist/client/assets/{legacy-xGT-esX6.js → legacy-D010j6qa.js} +1 -1
- package/dist/client/assets/{list-DhQWjiv0.js → list-C2HYpkqg.js} +1 -1
- package/dist/client/assets/{list-sOGdiDXi.js → list-DG7Grxw5.js} +1 -1
- package/dist/client/assets/{logs-DOOyulI5.js → logs-C5_FYDNK.js} +1 -1
- package/dist/client/assets/mermaid-WFAXDIZX-ClIEnuTo.js +1 -0
- package/dist/client/assets/{mermaid-diagram-DHR-LEin.js → mermaid-diagram-7d3eG33H.js} +4 -4
- package/dist/client/assets/{mindmap-definition-6OY57UG3-B3bdhe56.js → mindmap-definition-6OY57UG3-flOx3ZeG.js} +1 -1
- package/dist/client/assets/{mobile-baseline-C2AnUNW1.js → mobile-baseline-oXH_VGTz.js} +1 -1
- package/dist/client/assets/new-C8WYrcew.js +1 -0
- package/dist/client/assets/{new-BJg9Bigj.js → new-COoW_By1.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-DOYkHKRd.js → pegDiagram-ECIUJNBX-BrDIK58N.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-8JeV6xrB.js → pieDiagram-GNMPY74T-BMzBw5t-.js} +1 -1
- package/dist/client/assets/{pr-inbox-item-BGuMexFr.js → pr-inbox-item-vHdTaoxd.js} +1 -1
- package/dist/client/assets/project-CBrecHcv.js +1 -0
- package/dist/client/assets/project-header-BG9_VlHh.js +1 -0
- package/dist/client/assets/{project-repo-form-8h-x4Jm-.js → project-repo-form-6aODqQni.js} +1 -1
- package/dist/client/assets/{provider-cli-warning-B6YVtj_C.js → provider-cli-warning-Bcg15rKf.js} +1 -1
- package/dist/client/assets/{query-state-DeXwsPfq.js → query-state-BVQj0phN.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-D6nXF23_.js → railroadDiagram-Y72NRBL7-3Eck62Bi.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-CjjGJH_A.js → requirementDiagram-EQYSW5RA-rbuIMTLU.js} +1 -1
- package/dist/client/assets/{reviews-r5Fft2S9.js → reviews-Dbotug95.js} +1 -1
- package/dist/client/assets/{right-panel-BUm-IUuW.js → right-panel-DaLnLjFu.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-X8vRIVgX.js → sequenceDiagram-BLEHNHQU-CvP7tfWl.js} +1 -1
- package/dist/client/assets/{settings-page-layout-Cyc2QcuG.js → settings-page-layout-DWVd1wTJ.js} +1 -1
- package/dist/client/assets/{setup-terminal-modal-CRZrWgCt.js → setup-terminal-modal--e19kzCo.js} +2 -2
- package/dist/client/assets/{startup-script-form-edXnfByI.js → startup-script-form-BX-97uzx.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-Bum1zshG.js → stateDiagram-v2-A6IESKWZ-DPQNuXMb.js} +1 -1
- package/dist/client/assets/{swimlanesDiagram-AYQRV4AK-DBKC7Yfq.js → swimlanesDiagram-AYQRV4AK-DBayrG3m.js} +1 -1
- package/dist/client/assets/{terminal-instance-Y05XGV6V.js → terminal-instance-Bhh6-6sl.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-CLF-s_Xn.js → timeline-definition-JXYKGLGB-C14nrPRo.js} +1 -1
- package/dist/client/assets/{transcript-scroll-fixture-DNVPzw5t.js → transcript-scroll-fixture-CLt6Bmfz.js} +1 -1
- package/dist/client/assets/use-project-header-navigation-D_Gx1LQ9.js +1 -0
- package/dist/client/assets/{use-workspace-creation-draft-Bl2dlNzf.js → use-workspace-creation-draft-BcIClFw-.js} +1 -1
- package/dist/client/assets/{use-workspace-project-navigation-B0LZj578.js → use-workspace-project-navigation-D6kEMUHY.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-CUYfjlrO.js → usecaseDiagram-WPOLBNNX-CC_KUwpc.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-B9Upmplw.js → vennDiagram-Q3Y3IDCW-BKPUQxLZ.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-C9_DfFfF.js → wardleyDiagram-IVAIDKWA-pZxWIAfq.js} +1 -1
- package/dist/client/assets/{websocket-BT8C-OBP.js → websocket-Q9XnceTt.js} +1 -1
- package/dist/client/assets/{workspace-creation-drop-drain-BcuDXdq-.js → workspace-creation-drop-drain-6HaYe14j.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-wRTlHEa4.js → xychartDiagram-4URNHDU4-v1OTdqDZ.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.d.ts +4 -0
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.d.ts.map +1 -1
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.js +7 -0
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.js.map +1 -1
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.test.js +15 -0
- package/dist/src/backend/services/workspace/service/query/workspace-query.service.test.js.map +1 -1
- package/dist/src/backend/testing/npm-publish-workflow.test.js +8 -9
- package/dist/src/backend/testing/npm-publish-workflow.test.js.map +1 -1
- package/dist/src/backend/trpc/index.d.ts +10 -8
- package/dist/src/backend/trpc/index.d.ts.map +1 -1
- package/dist/src/backend/trpc/project.router.test.js +34 -0
- package/dist/src/backend/trpc/project.router.test.js.map +1 -1
- package/dist/src/backend/trpc/project.trpc.d.ts +10 -8
- package/dist/src/backend/trpc/project.trpc.d.ts.map +1 -1
- package/dist/src/backend/trpc/project.trpc.js +19 -1
- package/dist/src/backend/trpc/project.trpc.js.map +1 -1
- package/dist/tsconfig.backend.tsbuildinfo +1 -1
- package/package.json +46 -46
- package/scripts/postinstall.mjs +16 -50
- package/dist/client/assets/index-BHTworEd.js +0 -12
- package/dist/client/assets/index-sK2DBc7b.css +0 -2
- package/dist/client/assets/mermaid-WFAXDIZX-Bb-EeuSh.js +0 -1
- package/dist/client/assets/new-DUJNL_Jv.js +0 -1
- package/dist/client/assets/project-CTLOJEoH.js +0 -1
- package/dist/client/assets/project-header-cDqQN0Dp.js +0 -1
- package/dist/client/assets/use-project-header-navigation-CGIZMabH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,D as i,F as a,G as o,H as s,U as c,_ as l,a as u,b as d,c as f,i as p,k as m,q as h,r as g,s as _,v,y,z as b}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{t as x}from"./dist-CumnGVmJ.js";import{_ as S,m as C}from"./chunk-7S6XSTFO-v9BVbuJB.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-55XCU76K-BdizGL-z.js";import{t as A}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{n as j,r as M}from"./mermaid-diagram-DHR-LEin.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,56],ee=[1,75],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],z=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],B=[1,96],V=[1,97],me=[1,98],H=[1,99],U=[1,100],W=[1,101],he=[1,102],ge=[1,103],_e=[1,104],ve=[1,105],G=[1,106],ye=[2,79],K=[2,78],be=[4,5,17,51,53,54],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Te=[5,52],q=[62,70,71,72,73],Ee=[62,73],J=[1,152],De={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:L,73:F},{23:57,62:L,73:F},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(I,[2,30]),t(I,[2,31]),{33:[1,63]},{35:[1,64]},t(I,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:L,73:ee},{23:76,55:77,62:L,73:ee},{23:78,62:L,73:F},{69:79,72:[1,80],78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:L,73:F},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],ye,{23:112,62:L,73:F}),{23:113,62:L,73:F},{23:114,62:L,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],K),t(I,[2,6]),t(I,[2,16]),t(be,[2,10],{11:115}),t(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(I,[2,22]),{5:[1,119]},t([5,52,66,104],ye),{5:[1,120]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(xe,a,{7:121}),t(xe,a,{7:122}),t(xe,a,{7:123}),t(Se,a,{41:124,7:125}),t(Ce,a,{43:126,7:127}),t(Ce,a,{7:127,43:128}),t(we,a,{46:129,7:130}),t(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(Te,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:L,70:[1,143],71:[1,144],72:[1,145],73:F},{69:147,78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),t(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},t(Ee,[2,68]),t(Ee,[2,69]),{58:151,104:J},{58:153,104:J},{58:154,104:J},{58:155,104:J},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,165]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,167]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,173]},t(I,[2,50]),{16:[1,174]},t(I,[2,55]),t(Te,[2,76]),{76:[1,175]},{16:[1,176]},t(I,[2,52]),{16:[1,177]},t(I,[2,57]),t(I,[2,53]),{23:178,62:L,73:F},{23:179,62:L,73:F},{23:180,62:L,73:F},{58:181,104:J},{23:182,62:L,72:[1,183],73:F},{58:184,104:J},{58:185,104:J},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(be,[2,11]),{13:187,51:D,53:O,54:k},t(be,[2,13]),t(be,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,188]},t(I,[2,39]),{16:[1,189]},t(I,[2,40]),t(I,[2,41]),{16:[1,190]},t(I,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:J},{58:197,104:J},{58:198,104:J},{5:[2,75]},{58:199,104:J},{23:200,62:L,73:F},{5:[2,58]},{5:[2,59]},{23:201,62:L,73:F},t(be,[2,12]),t(Se,a,{7:125,41:202}),t(Ce,a,{7:127,43:203}),t(we,a,{7:130,46:204}),t(I,[2,49]),t(I,[2,54]),t(Te,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,D as i,F as a,G as o,H as s,U as c,_ as l,a as u,b as d,c as f,i as p,k as m,q as h,r as g,s as _,v,y,z as b}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{t as x}from"./dist-CumnGVmJ.js";import{_ as S,m as C}from"./chunk-7S6XSTFO-v9BVbuJB.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-55XCU76K-BdizGL-z.js";import{t as A}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{n as j,r as M}from"./mermaid-diagram-7d3eG33H.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,56],ee=[1,75],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],z=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],B=[1,96],V=[1,97],me=[1,98],H=[1,99],U=[1,100],W=[1,101],he=[1,102],ge=[1,103],_e=[1,104],ve=[1,105],G=[1,106],ye=[2,79],K=[2,78],be=[4,5,17,51,53,54],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Te=[5,52],q=[62,70,71,72,73],Ee=[62,73],J=[1,152],De={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:L,73:F},{23:57,62:L,73:F},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},t(I,[2,30]),t(I,[2,31]),{33:[1,63]},{35:[1,64]},t(I,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:L,73:ee},{23:76,55:77,62:L,73:ee},{23:78,62:L,73:F},{69:79,72:[1,80],78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:L,73:F},t([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],ye,{23:112,62:L,73:F}),{23:113,62:L,73:F},{23:114,62:L,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],K),t(I,[2,6]),t(I,[2,16]),t(be,[2,10],{11:115}),t(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},t(I,[2,22]),{5:[1,119]},t([5,52,66,104],ye),{5:[1,120]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(xe,a,{7:121}),t(xe,a,{7:122}),t(xe,a,{7:123}),t(Se,a,{41:124,7:125}),t(Ce,a,{43:126,7:127}),t(Ce,a,{7:127,43:128}),t(we,a,{46:129,7:130}),t(xe,a,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},t(Te,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:L,70:[1,143],71:[1,144],72:[1,145],73:F},{69:147,78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),t(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},t(Ee,[2,68]),t(Ee,[2,69]),{58:151,104:J},{58:153,104:J},{58:154,104:J},{58:155,104:J},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:D,53:O,54:k},{5:[1,161]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,164],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,165]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,166],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,167]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,168],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,171],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,172],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,173]},t(I,[2,50]),{16:[1,174]},t(I,[2,55]),t(Te,[2,76]),{76:[1,175]},{16:[1,176]},t(I,[2,52]),{16:[1,177]},t(I,[2,57]),t(I,[2,53]),{23:178,62:L,73:F},{23:179,62:L,73:F},{23:180,62:L,73:F},{58:181,104:J},{23:182,62:L,72:[1,183],73:F},{58:184,104:J},{58:185,104:J},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(be,[2,11]),{13:187,51:D,53:O,54:k},t(be,[2,13]),t(be,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,188]},t(I,[2,39]),{16:[1,189]},t(I,[2,40]),t(I,[2,41]),{16:[1,190]},t(I,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:J},{58:197,104:J},{58:198,104:J},{5:[2,75]},{58:199,104:J},{23:200,62:L,73:F},{5:[2,58]},{5:[2,59]},{23:201,62:L,73:F},t(be,[2,12]),t(Se,a,{7:125,41:202}),t(Ce,a,{7:127,43:203}),t(we,a,{7:130,46:204}),t(I,[2,49]),t(I,[2,54]),t(Te,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};De.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
package/dist/client/assets/{settings-page-layout-Cyc2QcuG.js → settings-page-layout-DWVd1wTJ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{n as r}from"./trpc-D9WuCSM1.js";import{r as i}from"./background-task-2TNZSSC3.js";import{r as a}from"./utils-DQeSPVda.js";import{Bt as o,Ut as s,s as c}from"./index-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{n as r}from"./trpc-D9WuCSM1.js";import{r as i}from"./background-task-2TNZSSC3.js";import{r as a}from"./utils-DQeSPVda.js";import{Bt as o,Ut as s,s as c}from"./index-GmSorqXd.js";import{n as l,t as u}from"./use-project-header-navigation-D_Gx1LQ9.js";import{t as d}from"./settings-tabs-list-IVFWYkZv.js";var f=e(t(),1),p=new Map([[`regular`,f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))]]),m=f.forwardRef((e,t)=>f.createElement(a,{ref:t,...e,weights:p}));m.displayName=`DownloadIcon`;function h(){let[e,t]=(0,f.useState)(!1),n=r.useUtils();return{download:(0,f.useCallback)(async()=>{t(!0);try{let e=await n.admin.downloadLogFile.fetch();c({data:e,mimeType:`text/plain`,fileName:`server-${new Date().toISOString().split(`T`)[0]}.log`}),i.success(`Log file downloaded`)}catch(e){i.error(`Couldn't download log file. ${e instanceof Error?e.message:`Unknown error`}`)}finally{t(!1)}},[n]),isDownloading:e}}var g=n();function _(){s({title:``});let{selectedProjectSlug:e,projects:t,projectsError:n,refetchProjects:r,handleProjectMenuOpen:i,handleProjectChange:a,handleCurrentProjectSelect:c}=u();return(0,g.jsx)(o,{children:(0,g.jsxs)(`nav`,{"aria-label":`Breadcrumb`,className:`flex min-w-0 items-center gap-1`,children:[(0,g.jsx)(l,{selectedProjectSlug:e,onMenuOpen:i,onProjectChange:a,onCurrentProjectSelect:e?c:void 0,projects:t,showLeadingSlash:!0,showTrailingSlash:!0,triggerId:`settings-header-project-select`,onRetryProjects:n?()=>{r()}:void 0}),(0,g.jsx)(`span`,{"aria-current":`page`,className:`truncate text-sm font-semibold`,children:`Settings`}),n?(0,g.jsxs)(`span`,{role:`alert`,className:`sr-only`,children:[`Couldn't load projects. `,n.message]}):null]})})}function v({children:e}){return(0,g.jsxs)(`div`,{className:`h-full overflow-y-auto`,children:[(0,g.jsx)(_,{}),(0,g.jsxs)(`div`,{className:`space-y-6 p-3 md:p-6`,children:[(0,g.jsx)(d,{}),(0,g.jsx)(`div`,{className:`space-y-6`,children:e})]})]})}export{h as n,m as r,v as t};
|
package/dist/client/assets/{setup-terminal-modal-CRZrWgCt.js → setup-terminal-modal--e19kzCo.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terminal-instance-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terminal-instance-Bhh6-6sl.js","assets/rolldown-runtime-COiEfhsA.js","assets/jsx-runtime-CldxteV5.js","assets/appearance-DsbwoDTa.js","assets/schemas-cLRPP1ma.js","assets/use-workspace-drawer-D5BHCzpQ.js","assets/use-mobile-Di9JSXG3.js","assets/index-GmSorqXd.js","assets/react-dom-BNtzwOHF.js","assets/hooks-CZYZW9i_.js","assets/components-Be4xRGcU.js","assets/lib-D-JAPasO.js","assets/dist-DxBCWJgX.js","assets/trpc-D9WuCSM1.js","assets/queryClient-DaT6C6i7.js","assets/background-task-2TNZSSC3.js","assets/utils-DQeSPVda.js","assets/bundle-mjs-CdK3cBzO.js","assets/CheckCircle.es-WUl0_Fqk.js","assets/status-indicators-Dvz22Kk_.js","assets/Warning.es-BRY0GI4S.js","assets/es2015-CDGxiYHE.js","assets/button-Dslj7pht.js","assets/dist-B1Zs6lmy.js","assets/dialog-LD_zPUYD.js","assets/dist-y4SI7xsk.js","assets/dist-DmRbNcLV.js","assets/spinner-BxeSV-Bb.js","assets/ArrowClockwise.es-CucFsYLg.js","assets/CaretDown.es-Dad3vS2k.js","assets/pending-request-presentation-BqY92kUN.js","assets/ShieldWarning.es-CuA46yPp.js","assets/WarningCircle.es-D-X961df.js","assets/image-drop-zone-NvcW7wXO.js","assets/attachment-file-conversion-BG03_iix.js","assets/MagnifyingGlass.es-BlNhc0fx.js","assets/formatters-CbVS7bYs.js","assets/loading-SklnwAL1.js","assets/use-persistent-scroll-DMRAfhA7.js","assets/workspace-cache-reconciler-TKQHxUsu.js","assets/appearance-D7nkDMex.js","assets/preload-helper-BLdHbfdN.js","assets/dist-D8Wfxh48.js","assets/input-uo3fNc4V.js","assets/dist-CLSCCiF9.js","assets/Plus.es-wnPcLFe1.js","assets/github-pr-preview-B2sd2tDg.js","assets/date-time-DaFd7tnC.js","assets/use-websocket-channel-BApRAMMz.js","assets/index-ClP2IiKy.css","assets/terminal-instance-BrP-ENHg.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{t as r}from"./button-Dslj7pht.js";import{r as i,v as a,x as o}from"./schemas-cLRPP1ma.js";import{t as s}from"./preload-helper-BLdHbfdN.js";import{i as c,o as l,r as u,s as d,t as f}from"./dialog-LD_zPUYD.js";import{r as p,t as m}from"./use-websocket-channel-BApRAMMz.js";import{n as h,o as g,r as _}from"./rolling-output-jx2QIOol.js";var v=e(t(),1),y=a({type:o(),data:o().optional(),message:o().optional(),provider:i([`CLAUDE`,`CODEX`]).optional()}),b=`\r
|
|
3
3
|
\x1B[33m[Connection lost — starting a new shell]\x1B[0m\r
|
|
4
|
-
`,x={maxChars:h,truncationMarker:_};function S(e){let[t,n]=(0,v.useState)(``),[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=(0,v.useRef)(80),f=(0,v.useRef)(24),h=(0,v.useCallback)(e=>{e.type===`exit`&&e.provider&&l.current===e.provider&&(l.current=null,c(null),o(!0)),e.type===`error`&&(l.current=null,c(null),e.message&&n(t=>g(t,`\r\n${e.message}\r\n`,x))),e.type===`output`&&e.data&&n(t=>g(t,e.data??``,x))},[]),{connected:_,gaveUp:S,send:C,reconnect:w}=m({url:e?p(`/setup-terminal`,{}):null,schema:y,onMessage:h,queuePolicy:`drop`});return(0,v.useEffect)(()=>{e&&_||(l.current=null,c(null),o(!1)),e||(n(``),i(!1),o(!1),u.current=!1)},[e,_]),(0,v.useEffect)(()=>{e&&_&&(u.current&&n(e=>g(e,b,x)),u.current=!0,i(!0),C({type:`create`,cols:d.current,rows:f.current}))},[e,_,C]),(0,v.useEffect)(()=>{e&&_&&a&&(o(!1),C({type:`create`,cols:d.current,rows:f.current}))},[e,_,a,C]),{connected:_,gaveUp:S,reconnect:w,showTerminal:r,output:t,authenticate:(0,v.useCallback)(t=>{e&&_&&!l.current&&(l.current=t,c(t),C({type:`authenticate`,provider:t,cols:d.current,rows:f.current}))},[e,_,C]),authenticatingProvider:s,handleData:(0,v.useCallback)(e=>{C({type:`input`,data:e})},[C]),handleResize:(0,v.useCallback)((e,t)=>{d.current=e,f.current=t,C({type:`resize`,cols:e,rows:t})},[C])}}var C=n(),w=(0,v.lazy)(()=>s(()=>import(`./terminal-instance-
|
|
4
|
+
`,x={maxChars:h,truncationMarker:_};function S(e){let[t,n]=(0,v.useState)(``),[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=(0,v.useRef)(80),f=(0,v.useRef)(24),h=(0,v.useCallback)(e=>{e.type===`exit`&&e.provider&&l.current===e.provider&&(l.current=null,c(null),o(!0)),e.type===`error`&&(l.current=null,c(null),e.message&&n(t=>g(t,`\r\n${e.message}\r\n`,x))),e.type===`output`&&e.data&&n(t=>g(t,e.data??``,x))},[]),{connected:_,gaveUp:S,send:C,reconnect:w}=m({url:e?p(`/setup-terminal`,{}):null,schema:y,onMessage:h,queuePolicy:`drop`});return(0,v.useEffect)(()=>{e&&_||(l.current=null,c(null),o(!1)),e||(n(``),i(!1),o(!1),u.current=!1)},[e,_]),(0,v.useEffect)(()=>{e&&_&&(u.current&&n(e=>g(e,b,x)),u.current=!0,i(!0),C({type:`create`,cols:d.current,rows:f.current}))},[e,_,C]),(0,v.useEffect)(()=>{e&&_&&a&&(o(!1),C({type:`create`,cols:d.current,rows:f.current}))},[e,_,a,C]),{connected:_,gaveUp:S,reconnect:w,showTerminal:r,output:t,authenticate:(0,v.useCallback)(t=>{e&&_&&!l.current&&(l.current=t,c(t),C({type:`authenticate`,provider:t,cols:d.current,rows:f.current}))},[e,_,C]),authenticatingProvider:s,handleData:(0,v.useCallback)(e=>{C({type:`input`,data:e})},[C]),handleResize:(0,v.useCallback)((e,t)=>{d.current=e,f.current=t,C({type:`resize`,cols:e,rows:t})},[C])}}var C=n(),w=(0,v.lazy)(()=>s(()=>import(`./terminal-instance-Bhh6-6sl.js`).then(e=>({default:e.TerminalInstance})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50])));function T({open:e,onClose:t,initialProvider:n}){let{connected:i,gaveUp:a,reconnect:o,showTerminal:s,output:p,authenticate:m,authenticatingProvider:h,handleData:g,handleResize:_}=S(e),y=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{e?i&&n&&!y.current&&(y.current=!0,m(n)):y.current=!1},[e,i,n,m]),(0,C.jsx)(f,{open:e,onOpenChange:e=>!e&&t(),children:(0,C.jsxs)(u,{className:`max-w-3xl h-[500px] flex flex-col`,children:[(0,C.jsxs)(l,{children:[(0,C.jsx)(d,{children:`Terminal`}),(0,C.jsxs)(c,{children:[`Use the sign-in buttons for Claude and Codex. The ff commands below require the ff CLI to be installed.`,(0,C.jsxs)(`span`,{className:`mt-1.5 flex flex-col gap-0.5`,children:[(0,C.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-sm w-fit`,children:`ff claude auth login`}),(0,C.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-sm w-fit`,children:`ff codex login`}),(0,C.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-sm w-fit`,children:`gh auth login`})]})]})]}),(0,C.jsxs)(`div`,{className:`flex gap-2`,children:[(0,C.jsx)(r,{variant:`outline`,size:`sm`,disabled:!i||h!==null,"aria-busy":h===`CLAUDE`,onClick:()=>m(`CLAUDE`),children:`Sign in to Claude`}),(0,C.jsx)(r,{variant:`outline`,size:`sm`,disabled:!i||h!==null,"aria-busy":h===`CODEX`,onClick:()=>m(`CODEX`),children:`Sign in to Codex`})]}),(0,C.jsxs)(`div`,{className:`relative flex-1 min-h-0 rounded-md overflow-hidden border bg-[#18181b]`,children:[s&&(0,C.jsx)(v.Suspense,{fallback:null,children:(0,C.jsx)(w,{onData:g,onResize:_,output:p,isActive:e})}),!i&&(s||a)&&(0,C.jsx)(`output`,{className:`absolute top-2 right-2 flex items-center gap-2 rounded px-2 py-0.5 text-xs ${a?`bg-destructive text-destructive-foreground`:`bg-warning text-warning-foreground`}`,children:a?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{children:s?`Connection lost.`:`Connection failed.`}),(0,C.jsx)(`button`,{type:`button`,className:`underline`,onClick:o,children:`Retry`})]}):`Reconnecting… input is paused`})]})]})})}export{T as t};
|
package/dist/client/assets/{startup-script-form-edXnfByI.js → startup-script-form-BX-97uzx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-CldxteV5.js";import{t}from"./input-uo3fNc4V.js";import{k as n}from"./index-
|
|
1
|
+
import{t as e}from"./jsx-runtime-CldxteV5.js";import{t}from"./input-uo3fNc4V.js";import{k as n}from"./index-GmSorqXd.js";import{n as r,t as i}from"./radio-group-FNSEl1BJ.js";var a=e();function o({scriptType:e,onScriptTypeChange:o,startupScript:s,onStartupScriptChange:c,idPrefix:l=`script`,hideHeader:u=!1}){return(0,a.jsxs)(`div`,{className:`min-w-0 space-y-3`,children:[!u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n,{children:`Startup Script (Optional)`}),(0,a.jsx)(`p`,{className:`text-xs text-muted-foreground break-words`,children:`Command or script to run when initializing new workspaces.`})]}),(0,a.jsxs)(i,{value:e,onValueChange:e=>o(e),className:`min-w-0 grid-cols-1 gap-2 sm:grid-cols-2 sm:gap-4`,children:[(0,a.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,a.jsx)(r,{value:`command`,id:`${l}-command`,className:`mt-0.5 shrink-0`}),(0,a.jsx)(n,{htmlFor:`${l}-command`,className:`cursor-pointer break-words font-normal leading-snug`,children:`Shell Command`})]}),(0,a.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,a.jsx)(r,{value:`path`,id:`${l}-path`,className:`mt-0.5 shrink-0`}),(0,a.jsx)(n,{htmlFor:`${l}-path`,className:`cursor-pointer break-words font-normal leading-snug`,children:`Script Path`})]})]}),(0,a.jsx)(t,{type:`text`,value:s,onChange:e=>c(e.target.value),className:`min-w-0 w-full px-2 sm:px-3 font-mono`,placeholder:e===`command`?`npm install && npm run build`:`./scripts/setup.sh`})]})}export{o as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,et as l,q as u,s as d,v as f}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{_ as p,s as m}from"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import{t as y}from"./chunk-55XCU76K-BdizGL-z.js";import{t as b}from"./chunk-XXDRQBXY-CnbRkih_.js";import{t as x}from"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{a as S,i as C}from"./mermaid-diagram-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,et as l,q as u,s as d,v as f}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{_ as p,s as m}from"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import{a as h,i as g,o as _,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import{t as y}from"./chunk-55XCU76K-BdizGL-z.js";import{t as b}from"./chunk-XXDRQBXY-CnbRkih_.js";import{t as x}from"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{a as S,i as C}from"./mermaid-diagram-7d3eG33H.js";var w=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BWF7jMDv.js";import"./chunk-DSNLSHJZ-CSSZ0uRv.js";import"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import"./chunk-55XCU76K-BdizGL-z.js";import"./chunk-XXDRQBXY-CnbRkih_.js";import"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{r as t,t as n}from"./chunk-NQOKRVIF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BWF7jMDv.js";import"./chunk-DSNLSHJZ-CSSZ0uRv.js";import"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import"./chunk-55XCU76K-BdizGL-z.js";import"./chunk-XXDRQBXY-CnbRkih_.js";import"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{r as t,t as n}from"./chunk-NQOKRVIF-LCflra3k.js";import"./mermaid-diagram-7d3eG33H.js";var r=n({styles:e(e=>`${t(e)}
|
|
2
2
|
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{h as r}from"./appearance-DsbwoDTa.js";import{t as i}from"./use-workspace-drawer-D5BHCzpQ.js";import{dn as a,fn as o,pn as s,sn as c,un as l}from"./index-BHTworEd.js";var u=2,d=1,f=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,f=i-c-t;return{cols:Math.max(u,Math.floor(f/e.css.cell.width)),rows:Math.max(d,Math.floor(l/e.css.cell.height))}}},p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,h=(e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})},g=(e,t,n,r)=>{for(var i=r>1?void 0:r?m(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&p(t,n,i),i},_=(e,t)=>(n,r)=>t(n,r,e),v=`Terminal input`,ee={get:()=>v,set:e=>v=e},te=`Too much output to announce, navigate to rows manually to read`,ne={get:()=>te,set:e=>te=e};function re(e){return e.replace(/\r?\n/g,`\r`)}function ie(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ae(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function oe(e,t,n,r){e.stopPropagation(),e.clipboardData&&se(e.clipboardData.getData(`text/plain`),t,n,r)}function se(e,t,n,r){e=re(e),e=ie(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function y(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function ce(e,t,n,r,i){y(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function b(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function le(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ue=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o)}else i!==65279&&(t[r++]=i)}return r}},de=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128||(c=(i&31)<<6|a&63,c<128)){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},x=``,fe=` `,pe=class e{constructor(){this.fg=0,this.bg=0,this.extended=new me}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},me=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},S=class e extends pe{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new me,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?b(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},he=`di$target`,ge=`di$dependencies`,_e=new Map;function C(e){return e[ge]||[]}function w(e){if(_e.has(e))return _e.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);ve(t,e,r)};return t._id=e,_e.set(e,t),t}function ve(e,t,n){t[he]===t?t[ge].push({id:e,index:n}):(t[ge]=[{id:e,index:n}],t[he]=t)}var T=w(`BufferService`),ye=w(`CoreMouseService`),E=w(`CoreService`),be=w(`CharsetService`),xe=w(`InstantiationService`),Se=w(`LogService`),D=w(`OptionsService`),Ce=w(`OscLinkService`),we=w(`UnicodeService`),Te=w(`DecorationService`),Ee=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new S,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(c!==-1||n.hasContent(t)){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId){if(c===-1){c=t,s=a.extended.urlId;continue}l=a.extended.urlId!==s}else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):De(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};Ee=g([_(0,T),_(1,D),_(2,Ce)],Ee);function De(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{h as r}from"./appearance-DsbwoDTa.js";import{t as i}from"./use-workspace-drawer-D5BHCzpQ.js";import{dn as a,fn as o,pn as s,sn as c,un as l}from"./index-GmSorqXd.js";var u=2,d=1,f=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,f=i-c-t;return{cols:Math.max(u,Math.floor(f/e.css.cell.width)),rows:Math.max(d,Math.floor(l/e.css.cell.height))}}},p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,h=(e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})},g=(e,t,n,r)=>{for(var i=r>1?void 0:r?m(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&p(t,n,i),i},_=(e,t)=>(n,r)=>t(n,r,e),v=`Terminal input`,ee={get:()=>v,set:e=>v=e},te=`Too much output to announce, navigate to rows manually to read`,ne={get:()=>te,set:e=>te=e};function re(e){return e.replace(/\r?\n/g,`\r`)}function ie(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ae(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function oe(e,t,n,r){e.stopPropagation(),e.clipboardData&&se(e.clipboardData.getData(`text/plain`),t,n,r)}function se(e,t,n,r){e=re(e),e=ie(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function y(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function ce(e,t,n,r,i){y(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function b(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function le(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ue=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o)}else i!==65279&&(t[r++]=i)}return r}},de=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128||(c=(i&31)<<6|a&63,c<128)){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},x=``,fe=` `,pe=class e{constructor(){this.fg=0,this.bg=0,this.extended=new me}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},me=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},S=class e extends pe{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new me,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?b(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},he=`di$target`,ge=`di$dependencies`,_e=new Map;function C(e){return e[ge]||[]}function w(e){if(_e.has(e))return _e.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);ve(t,e,r)};return t._id=e,_e.set(e,t),t}function ve(e,t,n){t[he]===t?t[ge].push({id:e,index:n}):(t[ge]=[{id:e,index:n}],t[he]=t)}var T=w(`BufferService`),ye=w(`CoreMouseService`),E=w(`CoreService`),be=w(`CharsetService`),xe=w(`InstantiationService`),Se=w(`LogService`),D=w(`OptionsService`),Ce=w(`OscLinkService`),we=w(`UnicodeService`),Te=w(`DecorationService`),Ee=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new S,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(c!==-1||n.hasContent(t)){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId){if(c===-1){c=t,s=a.extended.urlId;continue}l=a.extended.urlId!==s}else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):De(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};Ee=g([_(0,T),_(1,D),_(2,Ce)],Ee);function De(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
2
2
|
|
|
3
3
|
WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var Oe=w(`CharSizeService`),ke=w(`CoreBrowserService`),Ae=w(`MouseService`),je=w(`RenderService`),Me=w(`SelectionService`),Ne=w(`CharacterJoinerService`),Pe=w(`ThemeService`),Fe=w(`LinkProviderService`),Ie=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?He.isErrorNoTelemetry(e)?new He(e.message+`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-BWF7jMDv.js";import{Y as i,a,b as o,it as s,nt as c,o as l,tt as u,y as d}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{t as f}from"./arc-Y1ARJVZ4.js";import{m as p}from"./chunk-7S6XSTFO-v9BVbuJB.js";import{i as m,n as h}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{o as g}from"./mermaid-diagram-
|
|
1
|
+
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-BWF7jMDv.js";import{Y as i,a,b as o,it as s,nt as c,o as l,tt as u,y as d}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{t as f}from"./arc-Y1ARJVZ4.js";import{m as p}from"./chunk-7S6XSTFO-v9BVbuJB.js";import{i as m,n as h}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{o as g}from"./mermaid-diagram-7d3eG33H.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{n as r}from"./use-persistent-scroll-DMRAfhA7.js";import{i}from"./Plus.es-wnPcLFe1.js";import{C as a,D as o,E as s,H as c,T as l,_ as u,a as d,b as f,g as p,r as m,w as h}from"./chat-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{n as r}from"./use-persistent-scroll-DMRAfhA7.js";import{i}from"./Plus.es-wnPcLFe1.js";import{C as a,D as o,E as s,H as c,T as l,_ as u,a as d,b as f,g as p,r as m,w as h}from"./chat-B7u27d-i.js";import{cn as g,y as _}from"./index-GmSorqXd.js";var v=e(t(),1),y=n();function b(){let e=(0,v.useRef)(999),t=(0,v.useRef)(null),[n,r]=(0,v.useState)(()=>Array.from({length:40},(e,t)=>({key:t,height:80}))),[i,a]=(0,v.useState)(!1),c=l({count:n.length,getScrollElement:()=>t.current,estimateSize:()=>80,getItemKey:e=>n[e]?.key??e,anchorTo:i?`end`:`start`,followOnAppend:i,overscan:5,scrollToFn:(e,n,r)=>{let i=t.current;i&&n.behavior===void 0&&n.adjustments===void 0&&(i.dataset.deferredWrites=String(Number(i.dataset.deferredWrites??0)+1),i.dataset.deferredAllowed=String(h(n))),s(e,n,r)},measureElement:(e,t,n)=>{let r=o(e,t,n);return e.setAttribute(`data-engine-measured-height`,String(r)),r}});return c.shouldAdjustScrollPositionOnItemSizeChange=(e,t,n)=>e.end<=(n.scrollOffset??0)+1,(0,y.jsxs)(`section`,{children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap gap-2 p-2`,children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>{c.cancelScroll();let e=c.getVirtualItemForOffset(t.current?.scrollTop??0);r(t=>t.map((t,n)=>n===(e?.index??1)-1?{...t,height:t.height+200}:t))},children:`Grow preceding engine row`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{let t=e.current++;r(e=>[{key:t,height:1200},...e])},children:`Prepend giant engine row`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>c.scrollToEnd({behavior:`instant`}),children:`End command`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>c.cancelScroll(),children:`Cancel command`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>a(e=>!e),children:`Toggle native follow`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{let t=e.current++;r(e=>[...e,{key:t,height:120}])},children:`Append engine row`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>r(e=>e.map((t,n)=>n===e.length-1?{...t,height:t.height+200}:t)),children:`Grow engine row`})]}),(0,y.jsx)(`div`,{ref:t,"data-testid":`engine-viewport`,style:{height:320,overflow:`auto`,overflowAnchor:`none`},children:(0,y.jsx)(`div`,{style:{height:c.getTotalSize(),position:`relative`},children:c.getVirtualItems().map(e=>(0,y.jsxs)(`div`,{ref:c.measureElement,"data-index":e.index,"data-row-key":e.key,style:{position:`absolute`,width:`100%`,height:n[e.index]?.height,transform:`translateY(${e.start}px)`},children:[`Engine row `,e.key]},e.key))})})]})}function x(e){return{id:`tool-${e}`,source:`agent`,order:e,timestamp:`2026-11-04T00:00:00Z`,message:{type:`stream_event`,event:{type:`content_block_start`,index:0,content_block:{type:`tool_use`,id:`call-${e}`,name:`Read`,input:{file_path:`file-${e}.ts`}}}}}}function S(){let[e,t]=(0,v.useReducer)(p,void 0,()=>u({sessionStatus:{phase:`ready`},messages:[{id:`hidden-thinking`,source:`agent`,order:99,timestamp:`2026-11-04T00:00:00Z`,message:{type:`assistant`,message:{role:`assistant`,content:[{type:`thinking`,thinking:`Earlier reasoning`}]}}},x(100),x(101),...Array.from({length:40},(e,t)=>({id:`message-${t}`,source:`user`,order:t+102,text:`Message ${t}. ${`Transcript output. `.repeat(20)}`,timestamp:`2026-11-04T00:00:00Z`}))]})),n=(0,v.useRef)(null),r=d({sessionId:`history-tools`,enabled:!0,messages:e.messages,history:e.transcriptHistory,dispatch:t,fetchPage:()=>new Promise(e=>{n.current=e})}),i=m(e.messages,{groupBoundaries:e.transcriptPageBoundaries});return(0,y.jsxs)(`main`,{className:`bg-background text-foreground p-2`,children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>n.current?.({messages:Array.from({length:99},(e,t)=>x(t)),hasMore:!1}),children:`Resolve tools page`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>t({type:`SESSION_SNAPSHOT`,payload:{messages:e.messages.filter(e=>e.order>=100),queuedMessages:[],sessionRuntime:e.sessionRuntime}}),children:`Publish live snapshot`}),(0,y.jsx)(`div`,{style:{height:400},children:(0,y.jsx)(a,{messages:i,history:r,running:!1,startingSession:!1,loadingSession:!1,scroll:{identity:`history-tools`,active:!0,ready:!0,initialIntent:`following`,initialPosition:null}})})]})}function C(e){return{id:`m-${e}`,source:`user`,text:`Message ${e}. ${`Transcript output wraps naturally. `.repeat(8)}`,order:e,timestamp:`2026-10-30T00:00:00Z`}}function w(e,t){return{type:`tool_sequence`,id:t,pairedCalls:Array.from({length:e},(e,t)=>({id:`call-${t}`,name:`Read`,input:{file_path:`file-${t}.ts`},status:`success`,result:{content:`File output`,isError:!1}}))}}function T({workspaceId:e}){let t=(0,v.useRef)(0),n=(0,v.useRef)(40),[r,o]=(0,v.useState)(`A`),[s,l]=(0,v.useState)(()=>({A:Array.from({length:40},(e,t)=>C(t)),B:Array.from({length:20},(e,t)=>C(t))})),[u,d]=(0,v.useState)(!1),[p,m]=(0,v.useState)(!0),[h,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(!1),[T,E]=(0,v.useState)(!1),[D,O]=(0,v.useState)(360),[k,A]=(0,v.useState)(!1),[j,M]=(0,v.useState)(24),[N,P]=(0,v.useState)(``),F=new URLSearchParams(location.search).get(`history`)===`1`,[I,L]=(0,v.useState)({A:{status:`idle`,requests:0},B:{status:`idle`,requests:0}}),{status:R,requests:z}=I[r],B=e=>L(t=>({...t,[r]:{...t[r],status:e}})),V=e=>L(t=>({...t,[r]:{...t[r],requests:e(t[r].requests)}})),H=(0,v.useRef)(R);H.current=R;let U=new URLSearchParams(location.search).get(`composer`)===`1`,W=_({workspaceId:e,sessionId:r}),G=e=>l(t=>({...t,[r]:e(t[r])}));return(0,y.jsxs)(`main`,{className:`bg-background text-foreground p-2`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap gap-2 pb-2`,children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>{let e=n.current;n.current+=100,G(t=>[...t,...Array.from({length:100},(t,n)=>C(e+n))])},children:`Append burst`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{let e=`tool-group-${t.current++}`;G(t=>{let n=t.at(-1);return n&&c(n)?[...t.slice(0,-1),w(n.pairedCalls.length+100,n.id)]:[...t,w(2,e)]})},children:`Tool burst`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>G(e=>[...Array.from({length:10},(t,n)=>C(-e.length-n-1)),...e]),children:`Prepend history`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>G(e=>e.slice(-40)),children:`Trim window`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>G(e=>e.slice(0,2)),children:`Rewind`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>d(e=>!e),children:`Hide or show`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>O(e=>e===360?220:360),children:`Resize viewport`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>A(e=>!e),children:`Resize width`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>o(e=>e===`A`?`B`:`A`),children:`Switch session`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>b(e=>!e),children:`Toggle activity`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>E(e=>!e),children:`Toggle tasks`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>m(e=>!e),children:`Toggle hydration`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>M(e=>e===24?240:24),children:`Resize image header`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>S(e=>!e),children:`Change thinking`}),F&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`output`,{children:[`History requests: `,z]}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>{G(e=>[...Array.from({length:100},(e,t)=>C(t-100)),...e]),B(`complete`)},children:`Resolve history page`}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>B(`error`),children:`Fail history page`})]}),(0,y.jsxs)(`output`,{children:[`Session `,r]})]}),(0,y.jsxs)(`div`,{style:{height:D,width:k?`80%`:`100%`,display:u?`none`:`flex`},className:`flex-col`,children:[(0,y.jsx)(`div`,{className:`flex-1 min-h-0`,children:(0,y.jsx)(a,{thinkingInFooter:new URLSearchParams(location.search).get(`footer`)===`1`,messages:s[r],history:F?{status:R,error:`History temporarily unavailable`,loadOlder:()=>{R!==`loading`&&R!==`complete`&&(B(`loading`),V(e=>e+1))}}:void 0,running:h,acpPlan:T?{updatedAt:`2026-10-30T00:00:00Z`,entries:Array.from({length:4},(e,t)=>({content:`Task ${t+1}: Verify the transcript follows measured task-list changes.`,status:`pending`,priority:`medium`}))}:null,latestThinking:x?`Inspecting output and checking the detailed implementation across the entire workspace. `.repeat(8):`Inspecting output`,startingSession:!1,loadingSession:!1,header:(0,y.jsx)(`div`,{role:`img`,style:{height:j},"aria-label":`Measured image header`}),scroll:{identity:`${e}/main/${r}`,active:!u,ready:p&&W.ready,initialIntent:`following`,initialPosition:W.initialPosition,onPositionChange:W.onPositionChange}})}),U&&(0,y.jsx)(g,{children:(0,y.jsx)(i,{children:(0,y.jsx)(f,{onSend:()=>void 0,value:N,onChange:P})})})]})]})}function E(){let[e,t]=(0,v.useState)(`fixture-W1`);return new URLSearchParams(location.search).get(`history-tools`)===`1`?(0,y.jsx)(S,{}):new URLSearchParams(location.search).get(`engine`)===`1`?(0,y.jsx)(b,{}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`button`,{type:`button`,onClick:()=>t(e=>e===`fixture-W1`?`fixture-W2`:`fixture-W1`),children:`Switch workspace`}),(0,y.jsx)(r,{workspaceId:e,children:(0,y.jsx)(T,{workspaceId:e})})]})}export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{l as r,s as i}from"./hooks-CZYZW9i_.js";import{t as a}from"./lib-D-JAPasO.js";import{r as o,t as s}from"./utils-DQeSPVda.js";import{t as c}from"./use-mobile-Di9JSXG3.js";import{$ as l,Ft as u,It as d,Q as f,Z as p,ct as m,dt as h,gt as g,ht as _,it as v,lt as y}from"./index-GmSorqXd.js";var b=e(t(),1),x=new Map([[`regular`,b.createElement(b.Fragment,null,b.createElement(`path`,{d:`M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z`}))]]),S=b.forwardRef((e,t)=>b.createElement(o,{ref:t,...e,weights:x}));S.displayName=`CaretUpDownIcon`;var C=n(),w=`h-7 w-auto max-w-[18rem] border-0 bg-transparent px-0.5 text-sm font-semibold text-foreground shadow-none focus:ring-0 sm:px-1`;function T(e){let t=e.trim().split(/[\s\-_/.]+/).filter(Boolean);return t.length===0?e:t.length===1?t[0]?.slice(0,2).toUpperCase()??e:t.slice(0,3).map(e=>e[0]?.toUpperCase()??``).join(``)}function E({selectedProjectSlug:e,onProjectChange:t,projects:n,triggerClassName:r,projectButtonClassName:o,triggerId:g=`project-select`,onCurrentProjectSelect:_,onRetryProjects:x,onMenuOpen:E,showLeadingSlash:D=!1,showTrailingSlash:O=!1,trailingSeparatorType:k=`chevron`}){let A=c(),[j,M]=(0,b.useState)(!1),N=n?.find(t=>t.slug===e),P=N?.id,F=N?.name??`Select a project`,I=(0,b.useRef)(null),[L,R]=(0,b.useState)(!1);(0,b.useLayoutEffect)(()=>{let e=I.current;if(!(e&&A&&P&&F)){R(!1);return}let t=()=>R(e.scrollWidth>e.clientWidth+1);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[A,P,F]);let{pathname:z,search:B}=i(),V=(e,t)=>{e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),M(!1),t())};return(0,C.jsxs)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:[D?(0,C.jsx)(`span`,{className:`hidden shrink-0 text-muted-foreground md:inline-flex`,"aria-hidden":!0,children:(0,C.jsx)(y,{className:`h-3.5 w-3.5`})}):null,(0,C.jsxs)(p,{open:j,onOpenChange:e=>{M(e),e&&E?.()},children:[(0,C.jsx)(m,{asChild:!0,children:(0,C.jsxs)(`button`,{type:`button`,id:g,"aria-label":`Open project menu: ${F}`,title:F,className:s(`flex min-w-0 items-center gap-1 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,w,o,r),children:[(0,C.jsxs)(`span`,{className:`relative grid min-w-[3em] text-left`,children:[(0,C.jsx)(`span`,{ref:I,className:s(`col-start-1 row-start-1 truncate`,L&&`invisible`),children:F}),L?(0,C.jsx)(`span`,{className:`absolute inset-0 truncate`,children:T(F)}):null]}),(0,C.jsx)(S,{"aria-hidden":!0,className:`h-3 w-3 shrink-0 opacity-70 md:h-3.5 md:w-3.5`})]})}),(0,C.jsxs)(f,{align:`start`,className:`max-w-[calc(100vw-2rem)]`,children:[n?.map(n=>{let r=n.slug===e,i=r&&_;return(0,C.jsx)(l,{asChild:!0,children:(0,C.jsxs)(a,{to:i?u(n.slug,`workspaces`):d(n.slug,z,B),"aria-current":r?`true`:void 0,onClick:e=>V(e,()=>{i?_():t(n.slug)}),className:`flex items-center gap-4`,children:[(0,C.jsx)(`span`,{"data-project-name":!0,className:`min-w-0 flex-1 break-words`,children:n.name}),n.boardCounts?(0,C.jsxs)(`span`,{role:`img`,className:`flex shrink-0 gap-1`,"aria-label":`Working ${n.boardCounts.working} Waiting ${n.boardCounts.waiting}`,children:[(0,C.jsxs)(`span`,{className:`sr-only`,children:[`Working `,n.boardCounts.working,` Waiting `,n.boardCounts.waiting]}),(0,C.jsx)(h,{"aria-hidden":`true`,variant:`secondary`,className:`h-5 min-w-5 px-1.5 text-xs tabular-nums`,children:n.boardCounts.working}),(0,C.jsx)(h,{"aria-hidden":`true`,variant:`warning`,className:`h-5 min-w-5 px-1.5 text-xs tabular-nums`,children:n.boardCounts.waiting})]}):null]})},n.id)}),x?(0,C.jsx)(l,{onSelect:x,className:`text-destructive`,children:`Retry projects`}):null,n?.length||x?(0,C.jsx)(v,{}):null,(0,C.jsx)(l,{asChild:!0,children:(0,C.jsx)(a,{to:`/projects/new`,onClick:e=>V(e,()=>t(`__create__`)),children:`+ Create project`})}),(0,C.jsx)(l,{asChild:!0,children:(0,C.jsx)(a,{to:`/projects`,onClick:e=>V(e,()=>t(`__manage__`)),children:`Manage projects…`})})]})]}),O?(0,C.jsx)(`span`,{className:`-ml-0.5 shrink-0 text-muted-foreground`,"aria-hidden":!0,children:k===`slash`?(0,C.jsx)(`span`,{className:`text-xs`,children:`/`}):(0,C.jsx)(y,{className:`h-3.5 w-3.5`})}):null]})}function D(){let{pathname:e,search:t}=i(),n=r(),{projects:a,projectsError:o,refetchProjects:s,selectedProjectSlug:c,selectProjectSlug:l,serverWorkspaces:f}=g(),p=_(e)??c,m=(0,b.useCallback)(r=>{l(r),n(d(r,e,t))},[n,e,t,l]),h=(0,b.useCallback)(e=>{e===`__manage__`?n(`/projects`):e===`__create__`?n(`/projects/new`):m(e)},[n,m]),v=(0,b.useCallback)(()=>{p&&(l(p),n(u(p,`workspaces`)))},[p,n,l]);return{selectedProjectSlug:p,projects:a?.map(e=>e.slug===c&&f!==void 0?{...e,boardCounts:{working:f.filter(e=>e.kanbanColumn===`WORKING`).length,waiting:f.filter(e=>e.kanbanColumn===`WAITING`).length}}:e),handleProjectMenuOpen:()=>{o||Promise.resolve(s?.({includeBoardCounts:!0})).catch(()=>void 0)},projectsError:o,refetchProjects:s,handleProjectChange:h,handleCurrentProjectSelect:v}}export{E as n,S as r,D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t}from"./jsx-runtime-CldxteV5.js";import{o as n,p as r,r as i,s as a,v as o,x as s}from"./schemas-cLRPP1ma.js";import{Ct as c}from"./index-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t}from"./jsx-runtime-CldxteV5.js";import{o as n,p as r,r as i,s as a,v as o,x as s}from"./schemas-cLRPP1ma.js";import{Ct as c}from"./index-GmSorqXd.js";import{r as l,t as u}from"./websocket-Q9XnceTt.js";var d=e(t(),1),f=class{retained=new Map;lastCleared=null;current=null;nextOrder=0;saved=null;cleared=new WeakSet;edit(e){let t=this.current;this.current=e.revision;let n=this.retained.get(e.revision)??{draft:e,order:++this.nextOrder,pins:0,cleared:!1};return this.retained.set(e.revision,n),this.prune(t),n.order}persisted(e,t){this.saved={revision:e,order:t}}pin(e){let t=this.retained.get(e);if(!t)return()=>void 0;t.pins++;let n=!1;return()=>{n||(n=!0,t.pins--,this.prune(e))}}canClear(e,t,n=this.retained.get(e)?.order){return t===e||n!==void 0&&this.saved?.revision===t&&this.saved.order<=n}clear(e){let t=this.retained.get(e);return this.lastCleared=e,t&&(t.cleared=!0,this.cleared.add(t.draft)),this.current===e&&(this.current=null),this.prune(e),t?.order}deleted(e){this.saved?.revision===e&&(this.saved=null)}isCleared(e){return this.cleared.has(e)||this.lastCleared===e.revision||this.retained.get(e.revision)?.cleared===!0}prune(e){e!==null&&e!==this.current&&!this.retained.get(e)?.pins&&this.retained.delete(e)}},p=o({schemaVersion:r(1),revision:s().min(1),prompt:s(),attachments:n(u),ratchetEnabled:a(),ratchetInitialized:a().default(!0),launchSelection:l.optional(),mode:i([`STANDARD`,`PERIODIC_TASK`]),cadence:i([`EVERY_MINUTE`,`EVERY_FIVE_MINUTES`,`DAILY`,`WEEKLY`,`MONTHLY`]),scheduledTime:s()});function m(){return{schemaVersion:1,revision:crypto.randomUUID(),prompt:``,attachments:[],ratchetEnabled:!1,ratchetInitialized:!1,mode:`STANDARD`,cadence:`DAILY`,scheduledTime:``}}var h=`factory-factory-workspace-drafts`,g=`drafts`,_=new Map;function v(e){let t=_.get(e);return t||(t={projectId:e,snapshot:{hasUnreadableDraft:!1,draft:null,isRestoring:!0,persistenceError:null,generation:0},listeners:new Set,queue:Promise.resolve(),revisions:new f},_.set(e,t)),t}function y(e,t){let n=e.snapshot.generation;e.snapshot={...e.snapshot,...t},e.snapshot.generation!==n&&c(e.projectId),e.listeners.forEach(e=>e())}function b(e){return v(e).snapshot}function x(e,t){let n=v(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}var S;function C(){return S??=new Promise((e,t)=>{let n=!1,r=()=>{n||(n=!0,clearTimeout(i),t(Error(`Draft storage is unavailable`)))},i=setTimeout(r,1500);try{let t=indexedDB.open(h,1);t.onupgradeneeded=()=>t.result.createObjectStore(g),t.onerror=r,t.onblocked=r,t.onsuccess=()=>{if(n){t.result.close();return}n=!0,clearTimeout(i);let r=t.result;r.onversionchange=()=>{r.close(),S=void 0},e(r)}}catch{r()}}).catch(e=>{throw S=void 0,e}),S}async function w(e,t){let n=await C();return new Promise((r,i)=>{let a=n.transaction(g,e),o,s=setTimeout(()=>{a.abort(),i(Error(`Draft storage timed out`))},1500);a.oncomplete=()=>{clearTimeout(s),r(o)},a.onabort=a.onerror=()=>{clearTimeout(s),i(a.error??Error(`Draft storage failed`))};try{t(a.objectStore(g),e=>{o=e})}catch(e){clearTimeout(s),a.abort(),i(e)}})}function T(e,t){let n=e.queue.then(t);return e.queue=n.catch(()=>void 0),n}function E(e){let t=v(e);return t.snapshot.isRestoring?(t.loading??=T(t,async()=>{try{let n=await w(`readonly`,(t,n)=>{let r=t.get(e);r.onsuccess=()=>n(r.result)}),r=p.safeParse(n);if(n!==void 0&&!r.success)throw y(t,{hasUnreadableDraft:!0}),Error(`Invalid saved draft`);let i=r.success?r.data:null;return t.snapshot.isRestoring&&(i&&t.revisions.persisted(i.revision,t.revisions.edit(i)),y(t,{draft:i,isRestoring:!1})),t.snapshot.draft}catch(e){let n=`Your draft and attachments could not be restored. Changes may not survive a refresh.`;throw y(t,{isRestoring:!1,persistenceError:n}),Error(n,{cause:e})}}),t.loading):Promise.resolve(t.snapshot.draft)}function D(e,t){let n=v(e);if(n.revisions.isCleared(t))return Promise.resolve();let r=n.revisions.edit(t);return y(n,{draft:t,isRestoring:!1,hasUnreadableDraft:!1}),T(n,async()=>{try{await w(`readwrite`,n=>{n.put(t,e)}),n.revisions.persisted(t.revision,r),y(n,{persistenceError:null})}catch(e){let t=`Your draft could not be saved. Keep this tab open to retain instructions and attachments.`;throw y(n,{persistenceError:t}),Error(t,{cause:e})}})}function O(e,t){return v(e).revisions.pin(t)}function k(e,t){let n=v(e),r=n.revisions.clear(t),i=n.snapshot.draft?.revision===t;return i&&y(n,{draft:null,isRestoring:!1,generation:n.snapshot.generation+1}),T(n,async()=>{try{let a,o=await w(`readwrite`,(i,o)=>{let s=i.get(e);s.onsuccess=()=>{let c=p.safeParse(s.result),l=c.success&&n.revisions.canClear(t,c.data.revision,r);l&&(i.delete(e),a=c.data.revision),o(l)}});return a&&n.revisions.deleted(a),n.snapshot.draft===null&&y(n,{persistenceError:null}),o||i}catch(e){let t=`Your saved draft could not be cleared. It may return after a refresh.`;throw y(n,{persistenceError:t}),Error(t,{cause:e})}})}function A(e){let t=v(e);if(!t.snapshot.hasUnreadableDraft){let n=t.snapshot.draft?.revision;return n?k(e,n):(y(t,{generation:t.snapshot.generation+1}),Promise.resolve(!1))}let n=t.snapshot;return T(t,async()=>{try{let r=await w(`readwrite`,(t,n)=>{let r=t.get(e);r.onsuccess=()=>{let i=p.safeParse(r.result),a=r.result!==void 0&&!i.success;a&&t.delete(e),n({discarded:a,draft:i.success?i.data:null})}});return t.snapshot.generation===n.generation&&t.snapshot.draft===n.draft&&(r.draft&&t.revisions.persisted(r.draft.revision,t.revisions.edit(r.draft)),y(t,{draft:r.draft,hasUnreadableDraft:!1,persistenceError:null,generation:n.generation+1})),r.discarded}catch(e){let n=`Your saved draft could not be cleared. It may return after a refresh.`;throw y(t,{persistenceError:n}),Error(n,{cause:e})}})}function j(e,t=!0,n=``){let[r]=(0,d.useState)(()=>({...m(),prompt:n})),i=(0,d.useCallback)(n=>t?x(e,n):()=>void 0,[e,t]),a=(0,d.useCallback)(()=>b(e),[e]),o=(0,d.useSyncExternalStore)(i,a);(0,d.useEffect)(()=>{t&&E(e).catch(()=>void 0)},[e,t]);let s=(0,d.useCallback)(n=>{if(!t)return;let i=b(e);if(i.generation!==o.generation)return;if(i.isRestoring){E(e).catch(()=>void 0).then(()=>{s(n)});return}let a=i.draft??r;D(e,{...a,...typeof n==`function`?n(a):n,revision:crypto.randomUUID()}).catch(()=>void 0)},[e,r,o.generation,t]),c=(0,d.useCallback)(()=>({projectId:e,revision:(b(e).draft??r).revision}),[e,r]),l=(0,d.useCallback)(t=>k(e,t),[e]),u=(0,d.useCallback)(()=>A(e),[e]);return{...o,discardDraft:u,draft:o.draft??r,hasDraft:o.draft!==null,updateDraft:s,captureDraft:c,clearSubmittedDraft:l}}export{O as i,k as n,b as r,j as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./use-project-header-navigation-
|
|
1
|
+
import{t as e}from"./use-project-header-navigation-D_Gx1LQ9.js";function t(){let{selectedProjectSlug:t,projects:n,handleProjectChange:r,handleCurrentProjectSelect:i}=e();return{slug:t,projects:n,handleProjectChange:r,handleCurrentProjectSelect:i}}export{t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,f as l,q as u,v as d,y as f,z as p}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{_ as m}from"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import{i as h}from"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import{a as g,i as _,o as ee,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import{t as te}from"./chunk-XXDRQBXY-CnbRkih_.js";import{t as ne}from"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{a as re,i as ie}from"./mermaid-diagram-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-BWF7jMDv.js";import{C as r,H as i,U as a,_ as o,a as s,b as c,f as l,q as u,v as d,y as f,z as p}from"./chunk-DSNLSHJZ-CSSZ0uRv.js";import{_ as m}from"./chunk-7S6XSTFO-v9BVbuJB.js";import"./chunk-YZO67HFG-DrH1RXFI.js";import{i as h}from"./chunk-AQDTSKZB-Bh2e4nVN.js";import"./chunk-UHW7PFBP-FWZD9983.js";import{a as g,i as _,o as ee,r as v}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import"./chunk-HAGFOTED-CTCHAkn7.js";import"./chunk-ZAUX2LTX-slbBeHT4.js";import"./chunk-WQQL4CDK-V1ZC59EX.js";import{t as te}from"./chunk-XXDRQBXY-CnbRkih_.js";import{t as ne}from"./chunk-VQ5W62QI-BxZNPUPp.js";import"./chunk-HNE4Q36P-SXol6mIL.js";import{a as re,i as ie}from"./mermaid-diagram-7d3eG33H.js";function ae(e){console&&console.error&&console.error(`Error: ${e}`)}function y(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function oe(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function se(e){function t(){}t.prototype=e;let n=new t;function r(){return typeof n.bar}return r(),r(),e}function ce(e){return le(e)?e.LABEL:e.name}function le(e){return typeof e.LABEL==`string`&&e.LABEL!==``}var b=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},x=class extends b{constructor(e){super([]),this.idx=1,Object.assign(this,j(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},S=class extends b{constructor(e){super(e.definition),this.orgText=``,Object.assign(this,j(e))}},C=class extends b{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,j(e))}},w=class extends b{constructor(e){super(e.definition),this.idx=1,Object.assign(this,j(e))}},T=class extends b{constructor(e){super(e.definition),this.idx=1,Object.assign(this,j(e))}},E=class extends b{constructor(e){super(e.definition),this.idx=1,Object.assign(this,j(e))}},D=class extends b{constructor(e){super(e.definition),this.idx=1,Object.assign(this,j(e))}},O=class extends b{constructor(e){super(e.definition),this.idx=1,Object.assign(this,j(e))}},k=class extends b{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,j(e))}},A=class{constructor(e){this.idx=1,Object.assign(this,j(e))}accept(e){e.visit(this)}};function ue(e){return e.map(de)}function de(e){function t(e){return e.map(de)}if(e instanceof x){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof C)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof w)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof T)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof E)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:de(new A({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof O)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:de(new A({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof D)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof k)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof A){let t={type:`Terminal`,name:e.terminalType.name,label:ce(e.terminalType),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}if(e instanceof S)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`)}function j(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var fe=class{visit(e){let t=e;switch(t.constructor){case x:return this.visitNonTerminal(t);case C:return this.visitAlternative(t);case w:return this.visitOption(t);case T:return this.visitRepetitionMandatory(t);case E:return this.visitRepetitionMandatoryWithSeparator(t);case O:return this.visitRepetitionWithSeparator(t);case D:return this.visitRepetition(t);case k:return this.visitAlternation(t);case A:return this.visitTerminal(t);case S:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function pe(e){return e instanceof C||e instanceof w||e instanceof D||e instanceof T||e instanceof E||e instanceof O||e instanceof A||e instanceof S}function me(e,t=[]){return e instanceof w||e instanceof D||e instanceof O?!0:e instanceof k?e.definition.some(e=>me(e,t)):e instanceof x&&t.includes(e)?!1:e instanceof b&&(e instanceof x&&t.push(e),e.definition.every(e=>me(e,t)))}function he(e){return e instanceof k}function M(e){if(e instanceof x)return`SUBRULE`;if(e instanceof w)return`OPTION`;if(e instanceof k)return`OR`;if(e instanceof T)return`AT_LEAST_ONE`;if(e instanceof E)return`AT_LEAST_ONE_SEP`;if(e instanceof O)return`MANY_SEP`;if(e instanceof D)return`MANY`;if(e instanceof A)return`CONSUME`;throw Error(`non exhaustive match`)}var ge=class{walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof x)this.walkProdRef(n,i,t);else if(n instanceof A)this.walkTerminal(n,i,t);else if(n instanceof C)this.walkFlat(n,i,t);else if(n instanceof w)this.walkOption(n,i,t);else if(n instanceof T)this.walkAtLeastOne(n,i,t);else if(n instanceof E)this.walkAtLeastOneSep(n,i,t);else if(n instanceof O)this.walkManySep(n,i,t);else if(n instanceof D)this.walkMany(n,i,t);else if(n instanceof k)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new w({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=_e(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new w({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=_e(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new C({definition:[e]});this.walk(t,r)})}};function _e(e,t,n){return[new w({definition:[new A({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function ve(e){if(e instanceof x)return ve(e.referencedRule);if(e instanceof A)return xe(e);if(pe(e))return ye(e);if(he(e))return be(e);throw Error(`non exhaustive match`)}function ye(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=me(a),t=t.concat(ve(a)),r+=1,i=n.length>r;return[...new Set(t)]}function be(e){let t=e.definition.map(e=>ve(e));return[...new Set(t.flat())]}function xe(e){return[e.terminalType]}var Se=`_~IN~_`,Ce=class extends ge{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Te(e.referencedRule,e.idx)+this.topProd.name,i=ve(new C({definition:t.concat(n)}));this.follows[r]=i}};function we(e){let t={};return e.forEach(e=>{let n=new Ce(e).startWalking();Object.assign(t,n)}),t}function Te(e,t){return e.name+t+Se}function N(e){return e.charCodeAt(0)}function Ee(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function De(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function Oe(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function ke(){throw Error(`Internal Error - Should never get here!`)}function Ae(e){return e.type===`Character`}var je=[];for(let e=N(`0`);e<=N(`9`);e++)je.push(e);var Me=[N(`_`)].concat(je);for(let e=N(`a`);e<=N(`z`);e++)Me.push(e);for(let e=N(`A`);e<=N(`Z`);e++)Me.push(e);var Ne=[N(` `),N(`\f`),N(`
|
|
2
2
|
`),N(`\r`),N(` `),N(`\v`),N(` `),N(`\xA0`),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(` `),N(`\u2028`),N(`\u2029`),N(` `),N(` `),N(` `),N(``)],Pe=/[0-9a-fA-F]/,Fe=/[0-9]/,Ie=/[1-9]/,Le=class{constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:De(n,`global`);break;case`i`:De(n,`ignoreCase`);break;case`m`:De(n,`multiLine`);break;case`u`:De(n,`unicode`);break;case`y`:De(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}Oe(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return ke()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;Oe(t)}if((e!==!0||t!==void 0)&&Oe(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Oe(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):ke()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[N(`
|
|
3
3
|
`),N(`\r`),N(`\u2028`),N(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=je;break;case`D`:e=je,t=!0;break;case`s`:e=Ne;break;case`S`:e=Ne,t=!0;break;case`w`:e=Me;break;case`W`:e=Me,t=!0}return Oe(e)?{type:`Set`,value:e,complement:t}:ke()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=N(`\f`);break;case`n`:e=N(`
|
|
4
4
|
`);break;case`r`:e=N(`\r`);break;case`t`:e=N(` `);break;case`v`:e=N(`\v`)}return Oe(e)?{type:`Character`,value:e}:ke()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:N(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:N(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|