@marimo-team/frontend 0.25.2-dev33 → 0.25.2-dev35
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/assets/{ConnectedDataExplorerComponent-Bli_Q2Pf.js → ConnectedDataExplorerComponent-CaLz42tn.js} +1 -1
- package/dist/assets/{ErrorBoundary-Dx6lhNls.js → ErrorBoundary-DMhZObiQ.js} +2 -2
- package/dist/assets/{LazyAnyLanguageCodeMirror-CfdjWQov.js → LazyAnyLanguageCodeMirror-CeDa-Cb7.js} +2 -2
- package/dist/assets/{RunButton-5jKnc29t.js → RunButton-CLSn9lEE.js} +9 -9
- package/dist/assets/{abnfDiagram-VCTEODGH-CS9VJ4IQ.js → abnfDiagram-VCTEODGH-D7dyj540.js} +1 -1
- package/dist/assets/{add-cell-with-ai-h_sx2HjG.js → add-cell-with-ai-B4AzRiqg.js} +6 -6
- package/dist/assets/{agent-panel-C3MlqlHQ.js → agent-panel-Jzofbvvo.js} +1 -1
- package/dist/assets/{ai-model-dropdown-D_95EaOb.js → ai-model-dropdown-CMYVVu6H.js} +1 -1
- package/dist/assets/{any-language-editor-DqrxopyM.js → any-language-editor-DDzv7X_M.js} +1 -1
- package/dist/assets/{app-config-button-AOmd3MSM.js → app-config-button-CMPJs1AV.js} +1 -1
- package/dist/assets/{architectureDiagram-5GKGNRK7-Cnq1OhHb.js → architectureDiagram-5GKGNRK7-DKE7POOk.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-Belx_uSy.js → blockDiagram-I7D4REHJ-0SPyUrjJ.js} +1 -1
- package/dist/assets/{cache-panel-ByvhZkRB.js → cache-panel-DVx6Y6Eb.js} +1 -1
- package/dist/assets/{cells-BXPymufT.js → cells-9Zalh8wx.js} +19 -19
- package/dist/assets/{chat-display-Bl_cm4Bv.js → chat-display-CchwEr8b.js} +1 -1
- package/dist/assets/{chat-panel-G5k-O9XI.js → chat-panel--HYfRzqB.js} +1 -1
- package/dist/assets/{chat-ui-B9ojDwqD.js → chat-ui-Co7LBn91.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-DaJnBQov.js → chunk-IMKFNOWR-DrUeS6KP.js} +1 -1
- package/dist/assets/{chunk-SHT3W25Y-ChLuP8JP.js → chunk-SHT3W25Y-D8ropkQT.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-BZxpXOz-.js → chunk-SVP7TREG-NGRbkIVQ.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-WyejxyKe.js → chunk-TICWLB2K-DNJZpRez.js} +1 -1
- package/dist/assets/{classDiagram-ZZMXUADV-D3p0TN4D.js → classDiagram-ZZMXUADV-BR8CXq05.js} +1 -1
- package/dist/assets/{classDiagram-v2-VYDZK3BY-D3p0TN4D.js → classDiagram-v2-VYDZK3BY-BR8CXq05.js} +1 -1
- package/dist/assets/{code-visibility-dpVhqYNL.js → code-visibility-dZhp42QR.js} +1 -1
- package/dist/assets/{command-palette-D6z9kPg7.js → command-palette-C4k35CJe.js} +1 -1
- package/dist/assets/{common-ByaXhTaS.js → common-Cxr6m8gb.js} +1 -1
- package/dist/assets/{components-Bg0jEPXR.js → components-CEHg9Mmd.js} +1 -1
- package/dist/assets/{components-D5oqtiLg.js → components-DGY863MX.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-ADfRyIGN.js → cynefinDiagram-5FMLGOSQ-C5lXlua0.js} +1 -1
- package/dist/assets/{dagre-BNpoWXcL.js → dagre-DqP_C-Uu.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-Diet3S0x.js → dagre-GXQ25YYZ-uWEnVTHN.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-BEM-ieFB.js → data-grid-overlay-editor-ljxiNc7b.js} +1 -1
- package/dist/assets/{dependency-graph-panel-CrensQ9d.js → dependency-graph-panel-BDc_4upi.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-CCX9feKM.js → diagram-S7CK7UJ4-DiGXz3FA.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-DMu2JraT.js → diagram-UQ7AKVKN-CnPMduC3.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-D3OGvedU.js → diagram-VX7I27RA-CqDYw7j-.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-MArsMIcf.js → diagram-Z3DM3KII-D2gDOUBn.js} +1 -1
- package/dist/assets/{dist-yiD-qDpu.js → dist-7dvnzaZy.js} +1 -1
- package/dist/assets/{dist-BYab5Kqm.js → dist-AI8Ml-rS.js} +1 -1
- package/dist/assets/{dist-BWSz9T8E.js → dist-B0Eh5MTr.js} +1 -1
- package/dist/assets/{dist-Cx42VZlZ.js → dist-BnkdOj4_.js} +1 -1
- package/dist/assets/dist-BsquYPpR.js +6 -0
- package/dist/assets/{dist-DvHtpUI7.js → dist-C4OeumtQ.js} +1 -1
- package/dist/assets/{dist-CCiiXOoB.js → dist-CAmPrWiy.js} +1 -1
- package/dist/assets/{dist-BYSOsNiK.js → dist-CDB8sNpz.js} +1 -1
- package/dist/assets/{dist-DuOZdyY2.js → dist-COmr-BNE.js} +1 -1
- package/dist/assets/{dist-Gcu0m5O1.js → dist-CWGd3M82.js} +1 -1
- package/dist/assets/dist-Cny7_yZb.js +14 -0
- package/dist/assets/{dist-Bviq_Dee.js → dist-CpALWntr.js} +1 -1
- package/dist/assets/{dist-DueXZKz9.js → dist-D-DQw4kU.js} +1 -1
- package/dist/assets/dist-DBMV4gqt.js +2 -0
- package/dist/assets/{dist-MRn68vX1.js → dist-DEjL-yyx.js} +1 -1
- package/dist/assets/{dist-CEjBPDxA.js → dist-DIDIbaDz.js} +1 -1
- package/dist/assets/{dist-CI-3E0S2.js → dist-DLJwyGfO.js} +1 -1
- package/dist/assets/{dist-BH-S-j9V.js → dist-DSjefvql.js} +1 -1
- package/dist/assets/{dist-Dz4H5Lpr.js → dist-Ddxbgior.js} +1 -1
- package/dist/assets/{dist-vrBHmefa.js → dist-DkdhO62E.js} +1 -1
- package/dist/assets/{dist-D5LovWSN.js → dist-DpcG8kMl.js} +1 -1
- package/dist/assets/{dist-BN-7G8qZ.js → dist-DuPWeAke.js} +1 -1
- package/dist/assets/{dist-CiUBikfn.js → dist-DwKxgyZ7.js} +1 -1
- package/dist/assets/dist-qhAY4L2r.js +1 -0
- package/dist/assets/{documentation-panel-DDYXbqvp.js → documentation-panel-DJn73pjB.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-vQJPmojo.js → ebnfDiagram-PWID7BFC-CeuUQuuq.js} +1 -1
- package/dist/assets/{edit-page-C7naRe4T.js → edit-page-B61jbuzs.js} +4 -4
- package/dist/assets/{erDiagram-RLTQ6QDP-DbMS_wVH.js → erDiagram-RLTQ6QDP-BZjLkup8.js} +1 -1
- package/dist/assets/{error-entries-FCI5CEqR.js → error-entries-B_LukMrO.js} +1 -1
- package/dist/assets/{error-panel-CgT73q4b.js → error-panel-DrR4vVc_.js} +1 -1
- package/dist/assets/{esm-BErdoAcz.js → esm-QL-JTMXj.js} +1 -1
- package/dist/assets/{feedback-button-B0hzbli5.js → feedback-button-BP_zrVT9.js} +1 -1
- package/dist/assets/{file-explorer-panel-Dl3gX4fl.js → file-explorer-panel-qUchRjG5.js} +1 -1
- package/dist/assets/{file-name-input-CV0fYc67.js → file-name-input-CO0zxoL3.js} +1 -1
- package/dist/assets/{filename-DZ9xkzQn.js → filename-DQ3sa2jY.js} +1 -1
- package/dist/assets/{flowDiagram-HODETNUW-C9M5c8rH.js → flowDiagram-HODETNUW-DIAPslOp.js} +1 -1
- package/dist/assets/{gallery-page-B6WMdce0.js → gallery-page-mwGG6PHS.js} +1 -1
- package/dist/assets/{glide-data-editor-qrXT33Qd.js → glide-data-editor-DO4MYb5e.js} +4 -4
- package/dist/assets/{graphlib-C-6pc4Zd.js → graphlib-Cz5NpYLJ.js} +1 -1
- package/dist/assets/has-E1Xnm1Pa.js +1 -0
- package/dist/assets/{home-page-DsILx4TF.js → home-page-BQztJu_Q.js} +1 -1
- package/dist/assets/index-BaMnzPvQ.js +62 -0
- package/dist/assets/{infoDiagram-27XIBGKW-b4WMhbpt.js → infoDiagram-27XIBGKW-CwLpfg5K.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-DQxtMs4g.js → ishikawaDiagram-5VMMS53U-BszGOxQd.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-rhD_vnwl.js → kanban-definition-UXKFOSKX-BdyiNIjG.js} +1 -1
- package/dist/assets/{logs-panel-ByevEcIA.js → logs-panel-Buhta5sP.js} +1 -1
- package/dist/assets/{mermaid-B2ngFN0c.js → mermaid-Dcil4z1E.js} +4 -4
- package/dist/assets/{mindmap-definition-YA3MSWOX-D5hDBYDC.js → mindmap-definition-YA3MSWOX-Bm5QuDDc.js} +1 -1
- package/dist/assets/nsis-R0OlUE7l.js +1 -0
- package/dist/assets/{number-overlay-editor-BcElw1N2.js → number-overlay-editor-CoeoZ7Db.js} +1 -1
- package/dist/assets/{outline-panel-CHw9TjuQ.js → outline-panel-Ucb4e9S9.js} +1 -1
- package/dist/assets/{packages-panel-CDb2_4Dc.js → packages-panel-zrSZXz4V.js} +1 -1
- package/dist/assets/{panels-rdTyuwHQ.js → panels-bIxJ1RbH.js} +3 -3
- package/dist/assets/{pegDiagram-XKGWAZYB-D8QLsgnM.js → pegDiagram-XKGWAZYB-ywd4HNeP.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-DeJxGsNN.js → pieDiagram-E7YTZNPT-D2cK61Ri.js} +1 -1
- package/dist/assets/{process-output-DqkSNdEt.js → process-output-CKD9usD3.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-Cv1c_MPc.js → railroadDiagram-O6MQD6OU-CsVz7jSJ.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-C5vd9-4j.js → requirementDiagram-BXWQKSXE-ATHSvoMy.js} +1 -1
- package/dist/assets/{reveal-component-Dctnn9_M.js → reveal-component-qIjNSaxB.js} +1 -1
- package/dist/assets/ruby-Yjk-N9AT.js +1 -0
- package/dist/assets/{run-page-BiThhUDc.js → run-page-Bo6aqOJS.js} +1 -1
- package/dist/assets/{scratchpad-panel-C1fSG5vy.js → scratchpad-panel-CqB5jeRI.js} +1 -1
- package/dist/assets/{secrets-panel-7_LH6R8A.js → secrets-panel-YFTNBnqF.js} +1 -1
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-C22eqEIy.js → sequenceDiagram-WJ2MYXX4-D9rmTNJ-.js} +1 -1
- package/dist/assets/{session-panel-DBsTbpC9.js → session-panel-BzUhuRl2.js} +1 -1
- package/dist/assets/{snippets-panel-ChI5aU42.js → snippets-panel-Clis01fl.js} +1 -1
- package/dist/assets/{stateDiagram-D77RDMKH-BRy9VFgk.js → stateDiagram-D77RDMKH-DGDr0wtN.js} +1 -1
- package/dist/assets/{stateDiagram-v2-MP3YSRHH-CxpbMKE8.js → stateDiagram-v2-MP3YSRHH-CDhrQR-B.js} +1 -1
- package/dist/assets/{swimlanes-42K2YHIH-CvQuAAYe.js → swimlanes-42K2YHIH-BsCckGj-.js} +1 -1
- package/dist/assets/{swimlanesDiagram-VR7AAH4N-CANFdBys.js → swimlanesDiagram-VR7AAH4N-QwZkRyhd.js} +1 -1
- package/dist/assets/{swiper-component-CCQgW-CG.js → swiper-component-TAeBrTrS.js} +1 -1
- package/dist/assets/{terminal-Ct69I5Rq.js → terminal-DDY2qkt_.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-CtEY04jV.js → timeline-definition-24CTP7MA-Dbgie_WJ.js} +1 -1
- package/dist/assets/{tracing-B6lz41O5.js → tracing-D0IHfZzS.js} +1 -1
- package/dist/assets/{tracing-panel-Hd5F5hNF.js → tracing-panel-0xNQYgf3.js} +2 -2
- package/dist/assets/{useCellActionButton-OertTn-H.js → useCellActionButton-C_vaP4op.js} +1 -1
- package/dist/assets/{vega-component-C72lP8OY.js → vega-component-4y8QkJWB.js} +1 -1
- package/dist/assets/{vega-embed-container-C0Dphqkx.js → vega-embed-container-XnD5ODpf.js} +1 -1
- package/dist/assets/{vennDiagram-4TSXK5OY-B_OWiVKd.js → vennDiagram-4TSXK5OY-DBNHiL8b.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-CvpCKTJQ.js → wardleyDiagram-VM6X3IG4-Dg8sWRRy.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-CqU92eUd.js → xychartDiagram-S5SC5T6Z-CJKbZoOQ.js} +1 -1
- package/dist/index.html +14 -14
- package/package.json +6 -6
- package/dist/assets/dist-BTskHGpb.js +0 -2
- package/dist/assets/dist-BczecT6V.js +0 -14
- package/dist/assets/dist-Ccyblc8N.js +0 -1
- package/dist/assets/dist-DBqBVprh.js +0 -6
- package/dist/assets/has-DmAIW7kM.js +0 -1
- package/dist/assets/index-DYVlDtsu.js +0 -62
- package/dist/assets/nsis-T1iBtB9C.js +0 -1
- package/dist/assets/ruby-B4BmRxk8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./graphlib-C-6pc4Zd.js";import{A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,I as l,L as u,M as d,N as f,O as p,P as m,R as h,T as g,U as _,V as ee,W as te,b as v,j as y,k as b,l as x,v as S,w as C,z as w}from"./chunk-75Z2AOVW-BGGJQUsr.js";import{u as T}from"./src-BpnPuKEN.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as D}from"./src-Cyu5G-Tr.js";import{a as O,b as k,c as A,rt as ne,s as re,x as ie}from"./chunk-DU6HZSFF-BbUeHz2R.js";import{t as ae}from"./channel-CNw_DjeM.js";import"./chunk-P2QGCYS3-C7JwFzl3.js";import"./chunk-PWAF6VOD-D5iYVIst.js";import"./chunk-GMAD6QVW-De3yHY5A.js";import"./chunk-4HAMMTFA-BskE_kxl.js";import{i as oe,r as se}from"./chunk-GVQU2GXP-CKFdw6Un.js";import{a as ce,c as le,i as ue,s as de}from"./chunk-OSK3NFVY-CawDZVpS.js";import{t as fe}from"./chunk-5VM5RSS4-ZNzvKenW.js";function pe(e){return Array.isArray(e)}function me(e){if(v(e))return e;let t=s(e);if(!he(e))return{};if(pe(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(S(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?_e(r,e):j(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return j(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return ve(n,e),j(n,e),ge(n,e),n}function he(e){switch(s(e)){case r:case g:case C:case i:case a:case p:case b:case t:case f:case y:case d:case m:case o:case l:case u:case h:case w:case n:case _:case te:case ee:case c:return!0;default:return!1}}function j(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function ge(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function _e(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function ve(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var M=(function(){var e=E(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],h=[1,49],g={trace:E(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:E(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:c}),e(u,[2,16],{14:22,15:d,16:f}),e(u,[2,17]),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,22]),e(p,[2,25],{27:[1,25]}),e(u,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(p,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:f,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(p,[2,23]),{18:[1,45]},{30:[1,46]},e(u,[2,28]),e(u,[2,35]),e(u,[2,36]),e(u,[2,37]),e(u,[2,38]),{36:[1,47]},{33:48,34:h},{15:[1,50]},e(u,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:h,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},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(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var ee=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function te(e){n.length-=2*e,i.length-=e,a.length-=e}E(te,`popStack`);function v(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}E(v,`lex`);for(var y,b,x,S,C,w={},T,D,O,k;;){if(x=n[n.length-1],this.defaultActions[x]?S=this.defaultActions[x]:(y??=v(),S=o[x]&&o[x][y]),S===void 0||!S.length||!S[0]){var A=``;for(T in k=[],o[x])this.terminals_[T]&&T>d&&k.push(`'`+this.terminals_[T]+`'`);A=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
1
|
+
import{t as e}from"./graphlib-Cz5NpYLJ.js";import{A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,I as l,L as u,M as d,N as f,O as p,P as m,R as h,T as g,U as _,V as ee,W as te,b as v,j as y,k as b,l as x,v as S,w as C,z as w}from"./chunk-75Z2AOVW-BGGJQUsr.js";import{u as T}from"./src-BpnPuKEN.js";import{n as E}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as D}from"./src-Cyu5G-Tr.js";import{a as O,b as k,c as A,rt as ne,s as re,x as ie}from"./chunk-DU6HZSFF-BbUeHz2R.js";import{t as ae}from"./channel-CNw_DjeM.js";import"./chunk-P2QGCYS3-C7JwFzl3.js";import"./chunk-PWAF6VOD-D5iYVIst.js";import"./chunk-GMAD6QVW-De3yHY5A.js";import"./chunk-4HAMMTFA-BskE_kxl.js";import{i as oe,r as se}from"./chunk-GVQU2GXP-CKFdw6Un.js";import{a as ce,c as le,i as ue,s as de}from"./chunk-OSK3NFVY-CawDZVpS.js";import{t as fe}from"./chunk-5VM5RSS4-ZNzvKenW.js";function pe(e){return Array.isArray(e)}function me(e){if(v(e))return e;let t=s(e);if(!he(e))return{};if(pe(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(S(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?_e(r,e):j(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return j(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return ve(n,e),j(n,e),ge(n,e),n}function he(e){switch(s(e)){case r:case g:case C:case i:case a:case p:case b:case t:case f:case y:case d:case m:case o:case l:case u:case h:case w:case n:case _:case te:case ee:case c:return!0;default:return!1}}function j(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function ge(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function _e(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function ve(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var M=(function(){var e=E(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],f=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],h=[1,49],g={trace:E(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:E(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),c=r.edgeStrToThickness(a[s-1].edgeTypeStr),l=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:c,pattern:l,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let u=r.generateId();this.$={id:u,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:c}),e(u,[2,16],{14:22,15:d,16:f}),e(u,[2,17]),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,22]),e(p,[2,25],{27:[1,25]}),e(u,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(p,[2,24]),{10:t,11:37,13:4,14:22,15:d,16:f,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(p,[2,23]),{18:[1,45]},{30:[1,46]},e(u,[2,28]),e(u,[2,35]),e(u,[2,36]),e(u,[2,37]),e(u,[2,38]),{36:[1,47]},{33:48,34:h},{15:[1,50]},e(u,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:h,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},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(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var ee=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function te(e){n.length-=2*e,i.length-=e,a.length-=e}E(te,`popStack`);function v(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}E(v,`lex`);for(var y,b,x,S,C,w={},T,D,O,k;;){if(x=n[n.length-1],this.defaultActions[x]?S=this.defaultActions[x]:(y??=v(),S=o[x]&&o[x][y]),S===void 0||!S.length||!S[0]){var A=``;for(T in k=[],o[x])this.terminals_[T]&&T>d&&k.push(`'`+this.terminals_[T]+`'`);A=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+k.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(y==f?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(A,{text:m.match,token:this.terminals_[y]||y,line:m.yylineno,loc:_,expected:k})}if(S[0]instanceof Array&&S.length>1)throw Error(`Parse Error: multiple actions possible at state: `+x+`, token: `+y);switch(S[0]){case 1:n.push(y),i.push(m.yytext),a.push(m.yylloc),n.push(S[1]),y=null,b?(y=b,b=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[S[1]][1],w.$=i[i.length-D],w._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},ee&&(w._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),C=this.performAction.apply(w,[s,l,c,h.yy,S[1],i,a].concat(p)),C!==void 0)return C;D&&(n=n.slice(0,-1*D*2),i=i.slice(0,-1*D),a=a.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),i.push(w.$),a.push(w._$),O=o[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0},`parse`)};g.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{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{l as t}from"./useEvent-Dc9HkKI2.js";import{t as n}from"./react-CUdNIagt.js";import{t as r}from"./compiler-runtime-BQ9S8nyo.js";import{t as i}from"./cn-ldLVeaqm.js";import{t as a}from"./jsx-runtime-B74pBk57.js";import{a as o,c as s,i as c,l,n as u,o as d,r as f,s as p,t as m,u as h}from"./alert-dialog-BsB0FYEL.js";import{t as g}from"./button-qFeU84ax.js";import{$ as _}from"./panels-
|
|
1
|
+
import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{l as t}from"./useEvent-Dc9HkKI2.js";import{t as n}from"./react-CUdNIagt.js";import{t as r}from"./compiler-runtime-BQ9S8nyo.js";import{t as i}from"./cn-ldLVeaqm.js";import{t as a}from"./jsx-runtime-B74pBk57.js";import{a as o,c as s,i as c,l,n as u,o as d,r as f,s as p,t as m,u as h}from"./alert-dialog-BsB0FYEL.js";import{t as g}from"./button-qFeU84ax.js";import{$ as _}from"./panels-bIxJ1RbH.js";import{F as v,I as y}from"./RunButton-CLSn9lEE.js";import{t as b}from"./database-zap-CrkOvbyN.js";import{t as x}from"./trash-2-BJG-7Qob.js";import{t as S}from"./use-toast-CC89xOwH.js";import{r as C}from"./requests-yTHMxhVa.js";import{t as w}from"./context-BFOBKCJB.js";import{i as T}from"./numbers-DyJNv6Vk.js";import{n as E}from"./useAsyncData-DucTwMkf.js";import{Qr as D,da as O}from"./index-BaMnzPvQ.js";import{t as k}from"./empty-state-CzxjZqGW.js";var A=r(),j=e(n(),1),M=a(),N=e=>{let t=(0,A.c)(27),{children:n,title:r,description:i,onConfirm:a,confirmText:g,cancelText:_,destructive:v}=e,y=g===void 0?`Continue`:g,b=_===void 0?`Cancel`:_,x=v!==void 0&&v,[S,C]=j.useState(!1),w;t[0]===a?w=t[1]:(w=()=>{a(),C(!1)},t[0]=a,t[1]=w);let T=w,E=x?d:u,D;t[2]===n?D=t[3]:(D=(0,M.jsx)(h,{asChild:!0,children:n}),t[2]=n,t[3]=D);let O;t[4]===r?O=t[5]:(O=(0,M.jsx)(l,{children:r}),t[4]=r,t[5]=O);let k;t[6]===i?k=t[7]:(k=(0,M.jsx)(o,{children:i}),t[6]=i,t[7]=k);let N;t[8]!==O||t[9]!==k?(N=(0,M.jsxs)(s,{children:[O,k]}),t[8]=O,t[9]=k,t[10]=N):N=t[10];let P;t[11]===b?P=t[12]:(P=(0,M.jsx)(f,{children:b}),t[11]=b,t[12]=P);let F;t[13]!==E||t[14]!==y||t[15]!==T?(F=(0,M.jsx)(E,{onClick:T,children:y}),t[13]=E,t[14]=y,t[15]=T,t[16]=F):F=t[16];let I;t[17]!==F||t[18]!==P?(I=(0,M.jsxs)(p,{children:[P,F]}),t[17]=F,t[18]=P,t[19]=I):I=t[19];let L;t[20]!==I||t[21]!==N?(L=(0,M.jsxs)(c,{children:[N,I]}),t[20]=I,t[21]=N,t[22]=L):L=t[22];let R;return t[23]!==S||t[24]!==L||t[25]!==D?(R=(0,M.jsxs)(m,{open:S,onOpenChange:C,children:[D,L]}),t[23]=S,t[24]=L,t[25]=D,t[26]=R):R=t[26],R},P=()=>{let{clearCache:e,getCacheInfo:n}=C(),r=t(_),[a,o]=(0,j.useState)(!1),{locale:s}=w(),{isPending:c,isFetching:l,refetch:u}=E(async()=>{await n(),await new Promise(e=>setTimeout(e,500))},[]),d=async()=>{try{o(!0),await e(),S({title:`Cache purged`,description:`All cached data has been cleared`}),u()}catch(e){S({title:`Error`,description:e instanceof Error?e.message:`Failed to purge cache`,variant:`danger`})}finally{o(!1)}};if(c&&!r)return(0,M.jsx)(D,{size:`medium`,centered:!0});let f=(0,M.jsxs)(g,{variant:`outline`,size:`sm`,onClick:u,disabled:l,children:[l?(0,M.jsx)(D,{size:`small`,className:`w-4 h-4 mr-2`}):(0,M.jsx)(O,{className:`w-4 h-4 mr-2`}),`Refresh`]});if(!r)return(0,M.jsx)(k,{title:`No cache data`,description:`Cache information is not available.`,icon:(0,M.jsx)(b,{}),action:f});let p=r.hits,m=r.misses,h=r.time,A=r.disk_total,P=r.disk_to_free,I=p+m,L=I>0?p/I*100:0;return I===0?(0,M.jsx)(k,{title:`No cache activity`,description:`The cache has not been used yet. Cached functions will appear here once they are executed.`,icon:(0,M.jsx)(b,{}),action:f}):(0,M.jsx)(`div`,{className:`flex flex-col h-full overflow-auto`,children:(0,M.jsxs)(`div`,{className:`flex flex-col gap-4 p-4 h-full`,children:[(0,M.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,M.jsx)(g,{variant:`ghost`,size:`icon`,className:`h-6 w-6`,onClick:u,disabled:l,children:(0,M.jsx)(O,{className:i(`h-4 w-4 text-muted-foreground hover:text-foreground`,l&&`animate-[spin_0.5s]`)})})}),(0,M.jsxs)(`div`,{className:`space-y-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Statistics`}),(0,M.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,M.jsx)(F,{label:`Time saved`,value:y(h,s),description:`Total execution time saved`}),(0,M.jsx)(F,{label:`Hit rate`,value:I>0?`${T(L,s)}%`:`—`,description:`${T(p,s)} hits / ${T(I,s)} total`}),(0,M.jsx)(F,{label:`Cache hits`,value:T(p,s),description:`Successful cache retrievals`}),(0,M.jsx)(F,{label:`Cache misses`,value:T(m,s),description:`Cache not found`})]})]}),A>0&&(0,M.jsxs)(`div`,{className:`space-y-3 pt-2 border-t`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Storage`}),(0,M.jsx)(`div`,{className:`grid grid-cols-1 gap-3`,children:(0,M.jsx)(F,{label:`Disk usage`,value:v(A,s),description:P>0?`${v(P,s)} can be freed`:`Cache storage on disk`})})]}),(0,M.jsx)(`div`,{className:`my-auto`}),(0,M.jsx)(`div`,{className:`pt-2 border-t`,children:(0,M.jsx)(N,{title:`Purge cache?`,description:`This will permanently delete all cached data. This action cannot be undone.`,confirmText:`Purge`,destructive:!0,onConfirm:d,children:(0,M.jsxs)(g,{variant:`outlineDestructive`,size:`xs`,disabled:a,className:`w-full`,children:[a?(0,M.jsx)(D,{size:`small`,className:`w-3 h-3 mr-2`}):(0,M.jsx)(x,{className:`w-3 h-3 mr-2`}),`Purge Cache`]})})})]})})},F=e=>{let t=(0,A.c)(10),{label:n,value:r,description:i}=e,a;t[0]===n?a=t[1]:(a=(0,M.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,M.jsx)(`span`,{className:`text-lg font-semibold`,children:r}),t[2]=r,t[3]=o);let s;t[4]===i?s=t[5]:(s=i&&(0,M.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:i}),t[4]=i,t[5]=s);let c;return t[6]!==a||t[7]!==o||t[8]!==s?(c=(0,M.jsxs)(`div`,{className:`flex flex-col gap-1 p-3 rounded-lg border bg-card`,children:[a,o,s]}),t[6]=a,t[7]=o,t[8]=s,t[9]=c):c=t[9],c};export{P as default};
|