db-studio 1.2.20 → 1.2.22
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/core-dist/assets/{_baseUniq-CeqT3N-D.js → _baseUniq-BnS4oWxG.js} +1 -1
- package/dist/core-dist/assets/_pathlessLayout-J4rDhSFV.js +2 -0
- package/dist/core-dist/assets/_queryId-BGnLBhn8.js +1 -0
- package/dist/core-dist/assets/_table-C_4RREBi.js +1 -0
- package/dist/core-dist/assets/{arc-Dnc_3KxD.js → arc-BzayzQuy.js} +1 -1
- package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-CDKgWmU1.js +36 -0
- package/dist/core-dist/assets/{blockDiagram-VD42YOAC-jp3IzhcG.js → blockDiagram-VD42YOAC-DajA7Gs0.js} +1 -1
- package/dist/core-dist/assets/{c4Diagram-YG6GDRKO-CahI2eve.js → c4Diagram-YG6GDRKO-DFgrz0k6.js} +1 -1
- package/dist/core-dist/assets/{cdoe-editor-BswlKXRb.js → cdoe-editor-Bv60qmc3.js} +2 -2
- package/dist/core-dist/assets/channel-D7_kpMKZ.js +1 -0
- package/dist/core-dist/assets/{chunk-4BX2VUAB-DNTUv4GR.js → chunk-4BX2VUAB-B3yeq0dh.js} +1 -1
- package/dist/core-dist/assets/{chunk-55IACEB6-Xrs620gj.js → chunk-55IACEB6-DFZ6X9qg.js} +1 -1
- package/dist/core-dist/assets/{chunk-B4BG7PRW-COpTaouf.js → chunk-B4BG7PRW-BmPKklye.js} +1 -1
- package/dist/core-dist/assets/{chunk-DI55MBZ5-3wt5pOdw.js → chunk-DI55MBZ5-BA4d2Wbt.js} +1 -1
- package/dist/core-dist/assets/{chunk-FMBD7UC4-BQmP0qBN.js → chunk-FMBD7UC4-XJsNmwVW.js} +1 -1
- package/dist/core-dist/assets/{chunk-QN33PNHL-f1y0j0u4.js → chunk-QN33PNHL-CujeLF1b.js} +1 -1
- package/dist/core-dist/assets/{chunk-QZHKN3VN-C6jBpr-H.js → chunk-QZHKN3VN-BGMtvFJQ.js} +1 -1
- package/dist/core-dist/assets/{chunk-TZMSLE5B-31ka2vOU.js → chunk-TZMSLE5B-JJzEtNYD.js} +1 -1
- package/dist/core-dist/assets/classDiagram-2ON5EDUG-CeZr_QVj.js +1 -0
- package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-CeZr_QVj.js +1 -0
- package/dist/core-dist/assets/clone-Bq17CDff.js +1 -0
- package/dist/core-dist/assets/{code-block-IT6T5CEO-B2LU0jbX.js → code-block-IT6T5CEO-mzJGOnKv.js} +1 -1
- package/dist/core-dist/assets/cose-bilkent-S5V4N54A-CG3x36O6.js +1 -0
- package/dist/core-dist/assets/dagre-6UL2VRFP-CUAYXvH9.js +4 -0
- package/dist/core-dist/assets/diagram-PSM6KHXK-CjdajvGI.js +24 -0
- package/dist/core-dist/assets/diagram-QEK2KX5R-BwP9Rm7l.js +43 -0
- package/dist/core-dist/assets/diagram-S2PKOQOG-RojbbeSs.js +24 -0
- package/dist/core-dist/assets/{erDiagram-Q2GNP2WA-s3KzkqPg.js → erDiagram-Q2GNP2WA-D9N7nS0_.js} +1 -1
- package/dist/core-dist/assets/{flowDiagram-NV44I4VS-DFMBdQkp.js → flowDiagram-NV44I4VS-BD4JG33X.js} +1 -1
- package/dist/core-dist/assets/ganttDiagram-JELNMOA3-D4z9L9nY.js +267 -0
- package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-B2yHGcIC.js +65 -0
- package/dist/core-dist/assets/{graph-CoUoQfuh.js → graph-CNujjUl6.js} +1 -1
- package/dist/core-dist/assets/icons-cLYU3CQS.js +1 -0
- package/dist/core-dist/assets/index-B4CH9odE.js +1 -0
- package/dist/core-dist/assets/index-CiWmRiWr.js +1 -0
- package/dist/core-dist/assets/index-DEXHOoGJ.css +1 -0
- package/dist/core-dist/assets/index-DWavbP67.js +1 -0
- package/dist/core-dist/assets/index-Dq7-70tK.js +58 -0
- package/dist/core-dist/assets/index-pzKFI-Vs.js +1 -0
- package/dist/core-dist/assets/{indexes-COZEEebq.js → indexes-Bk_QNhz3.js} +1 -1
- package/dist/core-dist/assets/infoDiagram-WHAUD3N6-BvkFeyEE.js +2 -0
- package/dist/core-dist/assets/{journeyDiagram-XKPGCS4Q-CiAw1nw_.js → journeyDiagram-XKPGCS4Q-CkG5moWM.js} +1 -1
- package/dist/core-dist/assets/{kanban-definition-3W4ZIXB7-Yuc0Z8QR.js → kanban-definition-3W4ZIXB7-CfaZK5R9.js} +1 -1
- package/dist/core-dist/assets/{layout-Cw4LVk42.js → layout-CrsquEuM.js} +1 -1
- package/dist/core-dist/assets/{linear-CU5DgYOG.js → linear-bD-svMHh.js} +1 -1
- package/dist/core-dist/assets/logs-BCDaqHa5.js +1 -0
- package/dist/core-dist/assets/{mermaid-VLURNSYL-_Y2XU6_c.js → mermaid-VLURNSYL-BZBKtjwf.js} +5 -5
- package/dist/core-dist/assets/{mermaid.core-ds122QIK.js → mermaid.core-DmainLbW.js} +5 -5
- package/dist/core-dist/assets/{min-DFudLmkE.js → min-Cs3I0vDk.js} +1 -1
- package/dist/core-dist/assets/{mindmap-definition-VGOIOE7T-D7KNYm2E.js → mindmap-definition-VGOIOE7T-COrHba51.js} +1 -1
- package/dist/core-dist/assets/{pieDiagram-ADFJNKIX-D6Z1CJPE.js → pieDiagram-ADFJNKIX-C_wSihFn.js} +1 -1
- package/dist/core-dist/assets/{quadrantDiagram-AYHSOK5B-CxzHU3WJ.js → quadrantDiagram-AYHSOK5B-6QBSTaSf.js} +1 -1
- package/dist/core-dist/assets/{queries.store-Bxxvcbg7.js → queries.store-BqdJNevl.js} +1 -1
- package/dist/core-dist/assets/{radix-ui-Cy3m1w7k.js → radix-ui-d5EbBw33.js} +2 -2
- package/dist/core-dist/assets/{react-dom-DJoE1oD9.js → react-dom-BWKcCUTe.js} +1 -1
- package/dist/core-dist/assets/{requirementDiagram-UZGBJVZJ-CJGHr0pf.js → requirementDiagram-UZGBJVZJ-BmH--ndW.js} +1 -1
- package/dist/core-dist/assets/runner-tab-FdI7lq06.js +3 -0
- package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-BgePY74D.js +10 -0
- package/dist/core-dist/assets/{schema-ChEV6sF4.js → schema-D_xYQwIF.js} +1 -1
- package/dist/core-dist/assets/{scroll-area-BrIAuvEe.js → scroll-area-NHyDhTA5.js} +1 -1
- package/dist/core-dist/assets/{sequenceDiagram-WL72ISMW-w51z8BRE.js → sequenceDiagram-WL72ISMW-DyKFIest.js} +1 -1
- package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-CoTNg4O5.js +1 -0
- package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-VLFCTZ_U.js +1 -0
- package/dist/core-dist/assets/{tanstack-qLXitSFb.js → tanstack-D5ysZnPZ.js} +5 -5
- package/dist/core-dist/assets/{timeline-definition-IT6M3QCI-C5ksKXI5.js → timeline-definition-IT6M3QCI-BvUQ9Pv-.js} +1 -1
- package/dist/core-dist/assets/{treemap-KMMF4GRG-DPEcHwuf.js → treemap-KMMF4GRG-DLmWUMp8.js} +1 -1
- package/dist/core-dist/assets/{visualizer-CEMTmyw2.js → visualizer-BBc6FRkR.js} +1 -1
- package/dist/core-dist/assets/{xychartDiagram-PRI3JC2R-CNj0xyV4.js → xychartDiagram-PRI3JC2R-3ZAFpM_j.js} +1 -1
- package/dist/core-dist/index.html +6 -6
- package/dist/index.js +136 -122
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
- package/dist/core-dist/assets/_pathlessLayout-DjLhpgxd.js +0 -2
- package/dist/core-dist/assets/_queryId-D0l8wnr_.js +0 -1
- package/dist/core-dist/assets/_table-D_on85wJ.js +0 -1
- package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-D-naFXsN.js +0 -36
- package/dist/core-dist/assets/channel-C4imq4Zh.js +0 -1
- package/dist/core-dist/assets/classDiagram-2ON5EDUG-Q5JJrM4i.js +0 -1
- package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-Q5JJrM4i.js +0 -1
- package/dist/core-dist/assets/clone-DVHLGOmt.js +0 -1
- package/dist/core-dist/assets/cose-bilkent-S5V4N54A-DsJKuZ9Q.js +0 -1
- package/dist/core-dist/assets/dagre-6UL2VRFP-BnjHWLsZ.js +0 -4
- package/dist/core-dist/assets/diagram-PSM6KHXK-CnF6MjR2.js +0 -24
- package/dist/core-dist/assets/diagram-QEK2KX5R-DxVrT1PJ.js +0 -43
- package/dist/core-dist/assets/diagram-S2PKOQOG-BZ5b9Hv-.js +0 -24
- package/dist/core-dist/assets/ganttDiagram-JELNMOA3-OzgA9GJ4.js +0 -267
- package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-LfOuHeDw.js +0 -65
- package/dist/core-dist/assets/icons-DJrV7d9i.js +0 -1
- package/dist/core-dist/assets/index-C4atBwjx.js +0 -1
- package/dist/core-dist/assets/index-CS7mbTnV.js +0 -1
- package/dist/core-dist/assets/index-Ch8XtMo1.css +0 -1
- package/dist/core-dist/assets/index-DOupmzl0.js +0 -1
- package/dist/core-dist/assets/index-ERxh7PXo.js +0 -53
- package/dist/core-dist/assets/infoDiagram-WHAUD3N6-D4mcM6pw.js +0 -2
- package/dist/core-dist/assets/logs-BL7j4vCh.js +0 -1
- package/dist/core-dist/assets/runner-tab-C3nQeksP.js +0 -3
- package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-CUlo_r1v.js +0 -10
- package/dist/core-dist/assets/spinner-BESLBiEc.js +0 -1
- package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-WlBCMI5F.js +0 -1
- package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-CBo6ZLu7.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cdoe-editor-Bv60qmc3.js","assets/radix-ui-d5EbBw33.js","assets/icons-cLYU3CQS.js","assets/react-dom-BWKcCUTe.js","assets/monaco-editor-BMj4E99D.js","assets/monaco-editor-Ck3IbhyB.css","assets/index-Dq7-70tK.js","assets/tanstack-D5ysZnPZ.js","assets/index-DEXHOoGJ.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Qa}from"./monaco-editor-BMj4E99D.js";import{j as r,y as Ma,z as Aa}from"./radix-ui-d5EbBw33.js";import{d as Fa,e as Ia,f as ne,g as Ka,h as Ua,b as Pa}from"./tanstack-D5ysZnPZ.js";import{r as y,o as Oa,p as qa,q as Ha,s as Wa,H as ie,t as Za,B as Ya}from"./icons-cLYU3CQS.js";import{x as Ga,C as pe,J as Xa,a as ye,B as P,E as er,K as ar,t as O}from"./index-Dq7-70tK.js";import{u as me,T as oe,a as de,b as ue}from"./index-pzKFI-Vs.js";import{f as rr}from"./format-cell-value-Cn3RA9a1.js";import{u as tr}from"./queries.store-BqdJNevl.js";function i(){return i=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)({}).hasOwnProperty.call(t,s)&&(a[s]=t[s])}return a},i.apply(null,arguments)}function x(a,e){if(a==null)return{};var t={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(e.indexOf(s)!==-1)continue;t[s]=a[s]}return t}var fe={},he=y.createContext(fe),sr=(a,e)=>i({},a,e),lr=()=>y.useContext(he),Z=y.createContext(()=>{});Z.displayName="JVR.DispatchShowTools";function nr(){return y.useReducer(sr,fe)}function xe(){return y.useContext(Z)}var ge=a=>{var{initial:e,dispatch:t,children:s}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(Z.Provider,{value:t,children:s})})};ge.displayName="JVR.ShowTools";var je={},Ne=y.createContext(je),ir=(a,e)=>i({},a,e),q=()=>y.useContext(Ne),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchExpands";function or(){return y.useReducer(ir,je)}function dr(){return y.useContext(Y)}var be=a=>{var{initial:e,dispatch:t,children:s}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:s})})};be.displayName="JVR.Expands";var Ce={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},we=y.createContext(Ce),ur=(a,e)=>i({},a,e),N=()=>y.useContext(we),G=y.createContext(()=>{});G.displayName="JVR.DispatchTypes";function cr(){return y.useReducer(ur,Ce)}function vr(){return y.useContext(G)}function ke(a){var{initial:e,dispatch:t,children:s}=a;return r.jsx(we.Provider,{value:e,children:r.jsx(G.Provider,{value:t,children:s})})}ke.displayName="JVR.Types";var pr=["style"];function Re(a){var{style:e}=a,t=x(a,pr),s=i({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",i({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Re.displayName="JVR.TriangleArrow";var Ve={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Re,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Se=y.createContext(Ve),yr=(a,e)=>i({},a,e),L=()=>y.useContext(Se),X=y.createContext(()=>{});X.displayName="JVR.DispatchSymbols";function mr(){return y.useReducer(yr,Ve)}function fr(){return y.useContext(X)}var Te=a=>{var{initial:e,dispatch:t,children:s}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:s})})};Te.displayName="JVR.Symbols";var Le={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Ee=y.createContext(Le),hr=(a,e)=>i({},a,e),B=()=>y.useContext(Ee),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchSection";function xr(){return y.useReducer(hr,Le)}function gr(){return y.useContext(ee)}var Je=a=>{var{initial:e,dispatch:t,children:s}=a;return r.jsx(Ee.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:s})})};Je.displayName="JVR.Section";var Be={objectSortKeys:!1,indentWidth:15},ae=y.createContext(Be);ae.displayName="JVR.Context";var ze=y.createContext(()=>{});ze.displayName="JVR.DispatchContext";function jr(a,e){return i({},a,e)}var M=()=>y.useContext(ae),De=a=>{var{children:e,initialState:t,initialTypes:s}=a,[l,d]=y.useReducer(jr,Object.assign({},Be,t)),[c,o]=nr(),[n,u]=or(),[v,p]=cr(),[m,f]=mr(),[g,h]=xr();return y.useEffect(()=>d(i({},t)),[t]),r.jsx(ae.Provider,{value:l,children:r.jsx(ze.Provider,{value:d,children:r.jsx(ge,{initial:c,dispatch:o,children:r.jsx(be,{initial:n,dispatch:u,children:r.jsx(ke,{initial:i({},v,s),dispatch:p,children:r.jsx(Te,{initial:m,dispatch:f,children:r.jsx(Je,{initial:g,dispatch:h,children:e})})})})})})})};De.displayName="JVR.Provider";function Nr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var br=["isNumber","value","parentValue","keyName","keys"],Cr=["as","render"],wr=["as","render"],kr=["as","render"],Rr=["as","style","render"],Vr=["as","render"],Sr=["as","render"],Tr=["as","render"],Lr=["as","render"],H=a=>{var{Quote:e={}}=L(),{isNumber:t,value:s,parentValue:l,keyName:d,keys:c}=a,o=x(a,br);if(t)return null;var{as:n,render:u}=e,v=x(e,Cr),p=n||"span",m=i({},o,v),f={value:s,parentValue:l,keyName:d,keys:c||(d?[d]:[])},g=u&&typeof u=="function"&&u(m,f);return g||r.jsx(p,i({},m))};H.displayName="JVR.Quote";var K=a=>{var{ValueQuote:e={}}=L(),t=i({},(Nr(a),a)),{as:s,render:l}=e,d=x(e,wr),c=s||"span",o=i({},t,d),n=l&&typeof l=="function"&&l(o,{});return n||r.jsx(c,i({},o))};K.displayName="JVR.ValueQuote";var $e=a=>{var{value:e,parentValue:t,keyName:s,keys:l}=a,{Colon:d={}}=L(),{as:c,render:o}=d,n=x(d,kr),u=c||"span",v=o&&typeof o=="function"&&o(n,{value:e,parentValue:t,keyName:s,keys:l||(s?[s]:[])});return v||r.jsx(u,i({},n))};$e.displayName="JVR.Colon";var _e=a=>{var{Arrow:e={}}=L(),t=q(),{expandKey:s,style:l,value:d,parentValue:c,keyName:o,keys:n}=a,u=!!t[s],{as:v,style:p,render:m}=e,f=x(e,Rr),g=v||"span",h=m&&typeof m=="function",b=i({},f,{"data-expanded":u,style:i({},p,l)}),C={value:d,parentValue:c,keyName:o,keys:n||(o?[o]:[])},w=h&&m(b,C);return w||r.jsx(g,i({},f,{style:i({},p,l)}))};_e.displayName="JVR.Arrow";var Qe=a=>{var{isBrackets:e,value:t,parentValue:s,keyName:l,keys:d}=a,{BracketsLeft:c={},BraceLeft:o={}}=L(),n={value:t,parentValue:s,keyName:l,keys:d||(l?[l]:[])};if(e){var{as:u,render:v}=c,p=x(c,Vr),m=u||"span",f=v&&typeof v=="function"&&v(p,n);return f||r.jsx(m,i({},p))}var{as:g,render:h}=o,b=x(o,Sr),C=g||"span",w=h&&typeof h=="function"&&h(b,n);return w||r.jsx(C,i({},b))};Qe.displayName="JVR.BracketsOpen";var re=a=>{var{isBrackets:e,isVisiable:t,value:s,parentValue:l,keyName:d,keys:c}=a,o={value:s,parentValue:l,keyName:d,keys:c||(d?[d]:[])};if(!t)return null;var{BracketsRight:n={},BraceRight:u={}}=L();if(e){var{as:v,render:p}=n,m=x(n,Tr),f=v||"span",g=p&&typeof p=="function"&&p(m,o);return g||r.jsx(f,i({},m))}var{as:h,render:b}=u,C=x(u,Lr),w=h||"span",k=b&&typeof b=="function"&&b(C,o);return k||r.jsx(w,i({},C))};re.displayName="JVR.BracketsClose";var Me=a=>{var e,{keyName:t,value:s,expandKey:l,parentValue:d,level:c,keys:o=[]}=a,n=q(),{collapsed:u,shouldExpandNodeInitially:v}=M(),p=typeof u=="boolean"?u:typeof u=="number"?c>u:!1,m=(e=n[l])!=null?e:v?!1:p,f=v&&v(!m,{value:s,keys:o,level:c,keyName:t,parentValue:d});if(v&&u===!1){if(n[l]===void 0&&!f)return null}else if(n[l]===void 0&&f)return null;var g=Object.keys(s).length;if(m||g===0)return null;var h={paddingLeft:4},b={keyName:t,value:s,keys:o,parentValue:d},C=Array.isArray(s),w=s instanceof Set;return r.jsx("div",{style:h,children:r.jsx(re,i({isBrackets:C||w},b,{isVisiable:!0}))})};Me.displayName="JVR.NestedClose";var Er=["as","render"],Jr=["as","render"],Br=["as","render"],zr=["as","render"],Dr=["as","render"],$r=["as","render"],_r=["as","render"],Qr=["as","render"],Mr=["as","render"],Ar=["as","render"],Fr=["as","render"],Ir=["as","render"],Kr=["as","render"],W=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ae=a=>{var{value:e,keyName:t}=a,{Set:s={},displayDataTypes:l}=N(),d=e instanceof Set;if(!d||!l)return null;var{as:c,render:o}=s,n=x(s,Er),u=o&&typeof o=="function",v=u&&o(n,{type:"type",value:e,keyName:t});if(v)return v;var p=c||"span";return r.jsx(p,i({},n))};Ae.displayName="JVR.SetComp";var Fe=a=>{var{value:e,keyName:t}=a,{Map:s={},displayDataTypes:l}=N(),d=e instanceof Map;if(!d||!l)return null;var{as:c,render:o}=s,n=x(s,Jr),u=o&&typeof o=="function",v=u&&o(n,{type:"type",value:e,keyName:t});if(v)return v;var p=c||"span";return r.jsx(p,i({},n))};Fe.displayName="JVR.MapComp";var z={opacity:.75,paddingRight:4},Ie=a=>{var{children:e="",keyName:t,keys:s}=a,{Str:l={},displayDataTypes:d}=N(),{shortenTextAfterLength:c=30,stringEllipsis:o="..."}=M(),{as:n,render:u}=l,v=x(l,Br),p=e,[m,f]=y.useState(c&&p.length>c);y.useEffect(()=>f(c&&p.length>c),[c]);var g=n||"span",h=i({},z,l.style||{});c>0&&(v.style=i({},v.style,{cursor:p.length<=c?"initial":"pointer"}),p.length>c&&(v.onClick=()=>{f(!m)}));var b=m?""+p.slice(0,c)+o:p,C=u&&typeof u=="function",w=C&&u(i({},v,{style:h}),{type:"type",value:e,keyName:t,keys:s}),k=m?"w-rjv-value w-rjv-value-short":"w-rjv-value",V=C&&u(i({},v,{children:b,className:k}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(w||r.jsx(g,i({},v,{style:h}))),V||r.jsxs(y.Fragment,{children:[r.jsx(K,{}),r.jsx(g,i({},v,{className:k,children:b})),r.jsx(K,{})]})]})};Ie.displayName="JVR.TypeString";var Ke=a=>{var{children:e,keyName:t,keys:s}=a,{True:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,zr),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsx(u,i({},n,{className:"w-rjv-value",children:e?.toString()}))]})};Ke.displayName="JVR.TypeTrue";var Ue=a=>{var{children:e,keyName:t,keys:s}=a,{False:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Dr),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsx(u,i({},n,{className:"w-rjv-value",children:e?.toString()}))]})};Ue.displayName="JVR.TypeFalse";var Pe=a=>{var{children:e,keyName:t,keys:s}=a,{Float:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,$r),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsx(u,i({},n,{className:"w-rjv-value",children:e?.toString()}))]})};Pe.displayName="JVR.TypeFloat";var Oe=a=>{var{children:e,keyName:t,keys:s}=a,{Int:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,_r),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsx(u,i({},n,{className:"w-rjv-value",children:e?.toString()}))]})};Oe.displayName="JVR.TypeInt";var qe=a=>{var{children:e,keyName:t,keys:s}=a,{Bigint:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Qr),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsx(u,i({},n,{className:"w-rjv-value",children:W(e?.toString())}))]})};qe.displayName="JVR.TypeFloat";var He=a=>{var{children:e,keyName:t,keys:s}=a,{Url:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Mr),u=c||"span",v=i({},z,l.style),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e?.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f||r.jsxs("a",i({href:e?.href,target:"_blank"},n,{className:"w-rjv-value",children:[r.jsx(K,{}),e?.href,r.jsx(K,{})]}))]})};He.displayName="JVR.TypeUrl";var We=a=>{var{children:e,keyName:t,keys:s}=a,{Date:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Ar),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=e instanceof Date?e.toLocaleString():e,g=p&&o(i({},n,{children:f,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),g||r.jsx(u,i({},n,{className:"w-rjv-value",children:f}))]})};We.displayName="JVR.TypeDate";var Ze=a=>{var{children:e,keyName:t,keys:s}=a,{Undefined:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Fr),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f]})};Ze.displayName="JVR.TypeUndefined";var Ye=a=>{var{children:e,keyName:t,keys:s}=a,{Null:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Ir),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f]})};Ye.displayName="JVR.TypeNull";var Ge=a=>{var{children:e,keyName:t,keys:s}=a,{Nan:l={},displayDataTypes:d}=N(),{as:c,render:o}=l,n=x(l,Kr),u=c||"span",v=i({},z,l.style||{}),p=o&&typeof o=="function",m=p&&o(i({},n,{style:v}),{type:"type",value:e,keyName:t,keys:s}),f=p&&o(i({},n,{children:e?.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t,keys:s});return r.jsxs(y.Fragment,{children:[d&&(m||r.jsx(u,i({},n,{style:v}))),f]})};Ge.displayName="JVR.TypeNan";var Ur=a=>Number(a)===a&&a%1!==0||isNaN(a),Xe=a=>{var{value:e,keyName:t,keys:s}=a,l={keyName:t,keys:s};return e instanceof URL?r.jsx(He,i({},l,{children:e})):typeof e=="string"?r.jsx(Ie,i({},l,{children:e})):e===!0?r.jsx(Ke,i({},l,{children:e})):e===!1?r.jsx(Ue,i({},l,{children:e})):e===null?r.jsx(Ye,i({},l,{children:e})):e===void 0?r.jsx(Ze,i({},l,{children:e})):e instanceof Date?r.jsx(We,i({},l,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(Ge,i({},l,{children:e})):typeof e=="number"&&Ur(e)?r.jsx(Pe,i({},l,{children:e})):typeof e=="bigint"?r.jsx(qe,i({},l,{children:e})):typeof e=="number"?r.jsx(Oe,i({},l,{children:e})):null};Xe.displayName="JVR.Value";function _(a,e,t){var s=fr(),l=[a.className,e.className].filter(Boolean).join(" "),d=i({},a,e,{className:l,style:i({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>s({[t]:d}),[e])}function E(a,e,t){var s=vr(),l=[a.className,e.className].filter(Boolean).join(" "),d=i({},a,e,{className:l,style:i({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>s({[t]:d}),[e])}function A(a,e,t){var s=gr(),l=[a.className,e.className].filter(Boolean).join(" "),d=i({},a,e,{className:l,style:i({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>s({[t]:d}),[e])}var Pr=["as","render"],ea=a=>{var{KeyName:e={}}=B();return A(e,a,"KeyName"),null};ea.displayName="JVR.KeyName";var aa=a=>{var{children:e,value:t,parentValue:s,keyName:l,keys:d}=a,c=typeof e=="number",o={color:c?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:n={}}=B(),{as:u,render:v}=n,p=x(n,Pr);p.style=i({},p.style,o);var m=u||"span",f=v&&typeof v=="function"&&v(i({},p,{children:e}),{value:t,parentValue:s,keyName:l,keys:d||(l?[l]:[])});return f||r.jsx(m,i({},p,{children:e}))};aa.displayName="JVR.KeyNameComp";var Or=["children","value","parentValue","keyName","keys"],qr=["as","render","children"],ra=a=>{var{Row:e={}}=B();return A(e,a,"Row"),null};ra.displayName="JVR.Row";var ta=a=>{var{children:e,value:t,parentValue:s,keyName:l,keys:d}=a,c=x(a,Or),{Row:o={}}=B(),{as:n,render:u}=o,v=x(o,qr),p=n||"div",m=u&&typeof u=="function"&&u(i({},c,v,{children:e}),{value:t,keyName:l,parentValue:s,keys:d});return m||r.jsx(p,i({},c,v,{children:e}))};ta.displayName="JVR.RowComp";function Hr(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function Wr(a){var{value:e,highlightUpdates:t,highlightContainer:s}=a,l=Hr(e),d=y.useMemo(()=>{if(!t||l===void 0)return!1;if(typeof e!=typeof l)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(l)?!1:e!==l;if(Array.isArray(e)!==Array.isArray(l))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==l)return!0},[t,e]);y.useEffect(()=>{s&&s.current&&d&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[d,e,s])}var Zr=["keyName","value","parentValue","expandKey","keys","beforeCopy"],Yr=["as","render"],te=a=>{var{keyName:e,value:t,parentValue:s,expandKey:l,keys:d,beforeCopy:c}=a,o=x(a,Zr),{onCopied:n,enableClipboard:u,beforeCopy:v}=M(),p=lr(),m=p[l],[f,g]=y.useState(!1),{Copied:h={}}=B(),b=h?.beforeCopy;if(u===!1||!m)return null;var C=D=>{D.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=W(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(F,I)=>typeof I=="bigint"?W(I):I,2);var $=c||b||v;$&&typeof $=="function"&&(J=$(J,e,t,s,l,d)),n&&n(J,t),g(!0);var U=navigator.clipboard||{writeText(F){return new Promise((I,_a)=>{var Q=document.createElement("textarea");Q.style.position="absolute",Q.style.opacity="0",Q.style.left="-99999999px",Q.value=F,document.body.appendChild(Q),Q.select(),document.execCommand("copy")?I():_a(),Q.remove()})}};U.writeText(J).then(()=>{var F=setTimeout(()=>{g(!1),clearTimeout(F)},3e3)}).catch(F=>{})},w={style:{display:"inline-flex"},fill:f?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:C},{render:k}=h,V=x(h,Yr),R=i({},V,o,w,{style:i({},V.style,o.style,w.style)}),S=k&&typeof k=="function",T=S&&k(i({},R,{"data-copied":f}),{value:t,keyName:e,keys:d,parentValue:s});return T||(f?r.jsx("svg",i({viewBox:"0 0 32 36"},R,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",i({viewBox:"0 0 32 36"},R,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};te.displayName="JVR.Copied";function sa(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var la=a=>{var e,{keyName:t,value:s,expandKey:l="",level:d,keys:c=[],parentValue:o}=a,n=q(),{objectSortKeys:u,indentWidth:v,collapsed:p,shouldExpandNodeInitially:m}=M(),f=typeof p=="boolean"?p:typeof p=="number"?d>p:!1,g=(e=n[l])!=null?e:m?!1:f,h=m&&m(!g,{value:s,keys:c,level:d,keyName:t,parentValue:o});if(m&&p===!1){if(n[l]===void 0&&!h)return null}else if(n[l]===void 0&&h)return null;if(g)return null;var b=Array.isArray(s),C=b?Object.entries(s).map(k=>[Number(k[0]),k[1]]):Object.entries(s);u&&(C=u===!0?C.sort((k,V)=>{var[R]=k,[S]=V;return typeof R=="string"&&typeof S=="string"?R.localeCompare(S):0}):C.sort((k,V)=>{var[R,S]=k,[T,D]=V;return typeof R=="string"&&typeof T=="string"?u(R,T,S,D):0}));var w={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:v,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:w,children:C.map((k,V)=>{var[R,S]=k;return r.jsx(na,{parentValue:s,keyName:R,keys:[...c,R],value:S,level:d},V)})})};la.displayName="JVR.KeyValues";var se=a=>{var{keyName:e,parentValue:t,keys:s,value:l}=a,{highlightUpdates:d}=M(),c=typeof e=="number",o=y.useRef(null);Wr({value:l,highlightUpdates:d,highlightContainer:o});var n={keyName:e,value:l,keys:s,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:o,children:[r.jsx(H,i({isNumber:c,"data-placement":"left"},n)),r.jsx(aa,i({},n,{children:e})),r.jsx(H,i({isNumber:c,"data-placement":"right"},n))]}),r.jsx($e,i({},n))]})};se.displayName="JVR.KayName";var na=a=>{var{keyName:e,value:t,parentValue:s,level:l=0,keys:d=[]}=a,c=xe(),o=sa(),n=Array.isArray(t),u=t instanceof Set,v=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!n&&!u&&!v&&!p&&!m,g=f||n||u||v;if(g){var h=u?Array.from(t):v?Object.fromEntries(t):t;return r.jsx(le,{keyName:e,value:h,parentValue:s,initialValue:t,keys:d,level:l+1})}var b={onMouseEnter:()=>c({[o]:!0}),onMouseLeave:()=>c({[o]:!1})};return r.jsxs(ta,i({className:"w-rjv-line",value:t,keyName:e,keys:d,parentValue:s},b,{children:[r.jsx(se,{keyName:e,value:t,keys:d,parentValue:s}),r.jsx(Xe,{keyName:e,value:t,keys:d}),r.jsx(te,{keyName:e,value:t,keys:d,parentValue:s,expandKey:o})]}))};na.displayName="JVR.KeyValuesItem";var Gr=["value","keyName"],Xr=["as","render"],ia=a=>{var{CountInfoExtra:e={}}=B();return A(e,a,"CountInfoExtra"),null};ia.displayName="JVR.CountInfoExtra";var oa=a=>{var{value:e={},keyName:t}=a,s=x(a,Gr),{CountInfoExtra:l={}}=B(),{as:d,render:c}=l,o=x(l,Xr);if(!c&&!o.children)return null;var n=d||"span",u=c&&typeof c=="function",v=i({},o,s),p=u&&c(v,{value:e,keyName:t});return p||r.jsx(n,i({},v))};oa.displayName="JVR.CountInfoExtraComps";var et=["value","keyName"],at=["as","render"],da=a=>{var{CountInfo:e={}}=B();return A(e,a,"CountInfo"),null};da.displayName="JVR.CountInfo";var ua=a=>{var{value:e={},keyName:t}=a,s=x(a,et),{displayObjectSize:l}=M(),{CountInfo:d={}}=B();if(!l)return null;var{as:c,render:o}=d,n=x(d,at),u=c||"span";n.style=i({},n.style,a.style);var v=Object.keys(e).length;n.children||(n.children=v+" item"+(v===1?"":"s"));var p=i({},n,s),m=o&&typeof o=="function",f=m&&o(i({},p,{"data-length":v}),{value:e,keyName:t});return f||r.jsx(u,i({},p))};ua.displayName="JVR.CountInfoComp";var rt=["as","render"],ca=a=>{var{Ellipsis:e={}}=B();return A(e,a,"Ellipsis"),null};ca.displayName="JVR.Ellipsis";var va=a=>{var{isExpanded:e,value:t,keyName:s}=a,{Ellipsis:l={}}=B(),{as:d,render:c}=l,o=x(l,rt),n=d||"span",u=c&&typeof c=="function"&&c(i({},o,{"data-expanded":e}),{value:t,keyName:s});return u||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(n,i({},o)))};va.displayName="JVR.EllipsisComp";var pa=a=>{var e,{keyName:t,expandKey:s,keys:l=[],initialValue:d,value:c,parentValue:o,level:n}=a,u=q(),v=dr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=M(),g=typeof m=="boolean"?m:typeof m=="number"?n>m:!1,h=(e=u[s])!=null?e:f?!1:g,b=f&&f(!h,{value:c,keys:l,level:n,keyName:t,parentValue:o});u[s]===void 0&&f&&(h=!b);var C=()=>{var U={expand:!h,value:c,keyid:s,keyName:t};p&&p(U),v({[s]:U.expand})},w={display:"inline-flex",alignItems:"center"},k={transform:"rotate("+(h?"-90":"0")+"deg)",transition:"all 0.3s"},V=Object.keys(c).length,R=typeof c=="object",S=Array.isArray(c),T=c instanceof Set,D=V!==0&&(S||T||R),J={style:w};D&&(J.onClick=C);var $={keyName:t,value:c,keys:l,parentValue:o};return r.jsxs("span",i({},J,{children:[D&&r.jsx(_e,i({style:k,expandKey:s},$)),(t||typeof t=="number")&&r.jsx(se,i({},$)),r.jsx(Ae,{value:d,keyName:t}),r.jsx(Fe,{value:d,keyName:t}),r.jsx(Qe,i({isBrackets:S||T},$)),r.jsx(va,{keyName:t,value:c,isExpanded:h}),r.jsx(re,i({isVisiable:h||!D,isBrackets:S||T},$)),r.jsx(ua,{value:c,keyName:t}),r.jsx(oa,{value:c,keyName:t}),r.jsx(te,{keyName:t,value:c,expandKey:s,parentValue:o,keys:l})]}))};pa.displayName="JVR.NestedOpen";var tt=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],le=y.forwardRef((a,e)=>{var{className:t="",parentValue:s,level:l=1,value:d,initialValue:c,keys:o,keyName:n}=a,u=x(a,tt),v=xe(),p=sa(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>v({[p]:!0}),onMouseLeave:()=>v({[p]:!1})};return r.jsxs("div",i({className:m,ref:e},u,f,{children:[r.jsx(pa,{expandKey:p,value:d,level:l,keys:o,parentValue:s,keyName:n,initialValue:c}),r.jsx(la,{expandKey:p,value:d,level:l,keys:o,parentValue:s,keyName:n}),r.jsx(Me,{expandKey:p,value:d,level:l,keys:o,parentValue:s,keyName:n})]}))});le.displayName="JVR.Container";var ya=a=>{var{BraceLeft:e={}}=L();return _(e,a,"BraceLeft"),null};ya.displayName="JVR.BraceLeft";var ma=a=>{var{BraceRight:e={}}=L();return _(e,a,"BraceRight"),null};ma.displayName="JVR.BraceRight";var fa=a=>{var{BracketsLeft:e={}}=L();return _(e,a,"BracketsLeft"),null};fa.displayName="JVR.BracketsLeft";var ha=a=>{var{BracketsRight:e={}}=L();return _(e,a,"BracketsRight"),null};ha.displayName="JVR.BracketsRight";var xa=a=>{var{Arrow:e={}}=L();return _(e,a,"Arrow"),null};xa.displayName="JVR.Arrow";var ga=a=>{var{Colon:e={}}=L();return _(e,a,"Colon"),null};ga.displayName="JVR.Colon";var ja=a=>{var{Quote:e={}}=L();return _(e,a,"Quote"),null};ja.displayName="JVR.Quote";var Na=a=>{var{ValueQuote:e={}}=L();return _(e,a,"ValueQuote"),null};Na.displayName="JVR.ValueQuote";var ba=a=>{var{Bigint:e={}}=N();return E(e,a,"Bigint"),null};ba.displayName="JVR.Bigint";var Ca=a=>{var{Date:e={}}=N();return E(e,a,"Date"),null};Ca.displayName="JVR.Date";var wa=a=>{var{False:e={}}=N();return E(e,a,"False"),null};wa.displayName="JVR.False";var ka=a=>{var{Float:e={}}=N();return E(e,a,"Float"),null};ka.displayName="JVR.Float";var Ra=a=>{var{Int:e={}}=N();return E(e,a,"Int"),null};Ra.displayName="JVR.Int";var Va=a=>{var{Map:e={}}=N();return E(e,a,"Map"),null};Va.displayName="JVR.Map";var Sa=a=>{var{Nan:e={}}=N();return E(e,a,"Nan"),null};Sa.displayName="JVR.Nan";var Ta=a=>{var{Null:e={}}=N();return E(e,a,"Null"),null};Ta.displayName="JVR.Null";var La=a=>{var{Set:e={}}=N();return E(e,a,"Set"),null};La.displayName="JVR.Set";var Ea=a=>{var{Str:e={}}=N();return E(e,a,"Str"),null};Ea.displayName="JVR.StringText";var Ja=a=>{var{True:e={}}=N();return E(e,a,"True"),null};Ja.displayName="JVR.True";var Ba=a=>{var{Undefined:e={}}=N();return E(e,a,"Undefined"),null};Ba.displayName="JVR.Undefined";var za=a=>{var{Url:e={}}=N();return E(e,a,"Url"),null};za.displayName="JVR.Url";var Da=a=>{var{Copied:e={}}=B();return A(e,a,"Copied"),null};Da.displayName="JVR.Copied";var st=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],j=y.forwardRef((a,e)=>{var{className:t="",style:s,value:l,children:d,collapsed:c=!1,shouldExpandNodeInitially:o,indentWidth:n=15,displayObjectSize:u=!0,shortenTextAfterLength:v=30,stringEllipsis:p,highlightUpdates:m=!0,enableClipboard:f=!0,displayDataTypes:g=!0,objectSortKeys:h=!1,onExpand:b,onCopied:C,beforeCopy:w}=a,k=x(a,st),V=i({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),R=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(De,{initialState:{value:l,objectSortKeys:h,indentWidth:n,shouldExpandNodeInitially:c===!1?o:void 0,displayObjectSize:u,collapsed:c,enableClipboard:f,shortenTextAfterLength:v,stringEllipsis:p,highlightUpdates:m,onCopied:C,onExpand:b,beforeCopy:w},initialTypes:{displayDataTypes:g},children:[r.jsx(le,i({value:l},k,{ref:e,className:R,style:V})),d]})});j.Bigint=ba;j.Date=Ca;j.False=wa;j.Float=ka;j.Int=Ra;j.Map=Va;j.Nan=Sa;j.Null=Ta;j.Set=La;j.String=Ea;j.True=Ja;j.Undefined=Ba;j.Url=za;j.ValueQuote=Na;j.Arrow=xa;j.Colon=ga;j.Quote=ja;j.Ellipsis=ca;j.BraceLeft=ya;j.BraceRight=ma;j.BracketsLeft=fa;j.BracketsRight=ha;j.Copied=Da;j.CountInfo=da;j.CountInfoExtra=ia;j.KeyName=ea;j.Row=ra;j.displayName="JVR.JsonView";var lt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#9cdcfe","--w-rjv-background-color":"#1e1e1e","--w-rjv-line-color":"#36334280","--w-rjv-arrow-color":"#838383","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#9cdcfe","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#d4d4d4","--w-rjv-colon-color":"#d4d4d4","--w-rjv-brackets-color":"#d4d4d4","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#ce9178","--w-rjv-type-int-color":"#b5cea8","--w-rjv-type-float-color":"#b5cea8","--w-rjv-type-bigint-color":"#b5cea8","--w-rjv-type-boolean-color":"#569cd6","--w-rjv-type-date-color":"#b5cea8","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#569cd6","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#569cd6"};const nt=({results:a})=>{const e=y.useMemo(()=>a?.columns?a.columns.map(n=>({id:n,accessorKey:n,header:n,cell:({row:u})=>r.jsx("div",{className:"font-medium truncate text-gray-200",children:rr(u.getValue(n))})})):[],[a?.columns]),t=Fa({columns:e,data:a?.rows??[],getCoreRowModel:Ka(),columnResizeMode:"onChange",enableColumnResizing:!0}),{rows:s}=t.getRowModel(),l=y.useRef(null),d=Ia({count:s.length,getScrollElement:()=>l.current,estimateSize:()=>35,overscan:10}),c=d.getVirtualItems(),o=t.getAllColumns().reduce((n,u)=>n+u.getSize(),0);return r.jsxs("div",{ref:l,className:"relative h-full overflow-auto w-full",children:[r.jsx("div",{className:"sticky top-0 z-20 bg-black border-b border-zinc-800",style:{width:`${o}px`,minWidth:"100%"},children:t.getHeaderGroups().map(n=>r.jsx("div",{className:"flex text-xs",children:n.headers.map(u=>r.jsxs("div",{className:"shrink-0 px-2 py-2 font-semibold text-gray-300 border-r border-zinc-800 relative",style:{width:`${u.getSize()}px`},children:[u.isPlaceholder?null:ne(u.column.columnDef.header,u.getContext()),r.jsx("div",{onMouseDown:u.getResizeHandler(),onTouchStart:u.getResizeHandler(),className:`absolute top-0 right-0 h-full w-1 cursor-col-resize select-none touch-none hover:bg-blue-500 ${u.column.getIsResizing()?"bg-blue-500":""}`})]},u.id))},n.id))}),r.jsx("div",{style:{height:`${d.getTotalSize()}px`,width:`${o}px`,minWidth:"100%",position:"relative"},children:c.map(n=>{const u=s[n.index];return r.jsx("div",{style:{position:"absolute",top:0,left:0,width:`${o}px`,minWidth:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`},className:"flex text-xs border-b border-zinc-800 hover:bg-zinc-800/50",children:u.getVisibleCells().map(v=>r.jsx("div",{className:"shrink-0 px-2 py-2 border-r border-zinc-800",style:{width:`${v.column.getSize()}px`},children:ne(v.column.columnDef.cell,v.getContext())},v.id))},u.id)})}),s.length===0&&r.jsx("div",{className:"flex items-center justify-center h-24 text-gray-400",children:"No results."})]})},it=({results:a,isLoading:e,error:t})=>{const[s]=me(pe.RUNNER_STATE_KEYS.SHOW_AS),l=y.useMemo(()=>t?r.jsx("div",{className:"flex h-full p-2",children:r.jsxs("div",{className:"text-sm",children:["Error: ",t.message]})}):a?.message?r.jsx("div",{className:"flex h-full p-2",children:r.jsx("p",{children:a.message})}):!a||a.rows.length===0?r.jsx("div",{className:"flex h-full p-2",children:r.jsx("p",{children:"Run the query to see the results"})}):s==="json"?r.jsx("div",{className:"p-2",children:r.jsx(j,{value:a?.rows??[],objectSortKeys:!0,displayObjectSize:!1,displayDataTypes:!1,indentWidth:14,collapsed:2,shortenTextAfterLength:100,highlightUpdates:!1,style:lt,enableClipboard:!1,className:"size-full"})}):r.jsx(nt,{results:a}),[s,a,t]);return r.jsx("div",{className:"absolute bottom-0 left-0 right-0 border-t-2 border-zinc-80 flex flex-col bg-[#1E1E1E] w-full",style:{height:"calc(100vh - 400px)"},children:r.jsx("div",{className:"flex-1 overflow-auto w-full",children:e?r.jsx("div",{className:"flex items-center justify-center h-full overflow-auto",children:r.jsx(Ga,{size:"size-8",color:"bg-[#d4d4d4]"})}):l})})},ot=Xa("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-zinc-900 gap-1 rounded-md text-xs font-medium transition-all [&_svg:not([class*='size-'])]:size-3.5 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",ghost:"bg-transparent hover:bg-muted",outline:"border-input hover:bg-muted border bg-transparent"},size:{default:"h-7 min-w-7 px-2",sm:"h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-1.5 text-[0.625rem] [&_svg:not([class*='size-'])]:size-3",lg:"h-8 min-w-8 px-2"}},defaultVariants:{variant:"default",size:"default"}}),$a=y.createContext({size:"default",variant:"default",spacing:0,orientation:"horizontal"});function dt({className:a,variant:e,size:t,spacing:s=0,orientation:l="horizontal",children:d,...c}){return r.jsx(Ma,{"data-slot":"toggle-group","data-variant":e,"data-size":t,"data-spacing":s,"data-orientation":l,style:{"--gap":s},className:ye("rounded-md data-[size=sm]:rounded-[min(var(--radius-md),8px)] group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",a),...c,children:r.jsx($a.Provider,{value:{variant:e,size:t,spacing:s,orientation:l},children:d})})}function ce({className:a,children:e,variant:t="default",size:s="default",...l}){const d=y.useContext($a);return r.jsx(Aa,{"data-slot":"toggle-group-item","data-variant":d.variant||t,"data-size":d.size||s,"data-spacing":d.spacing,className:ye("group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",ot({variant:d.variant||t,size:d.size||s}),a),...l,children:e})}const ut=({isExecutingQuery:a,handleButtonClick:e,handleFormatQuery:t,handleSaveQuery:s,handleFavorite:l,isFavorite:d,queryId:c,hasUnsavedChanges:o,queryResult:n})=>{const[u,v]=me(pe.RUNNER_STATE_KEYS.SHOW_AS);return r.jsxs("header",{className:"max-h-8 overflow-hidden border-b border-zinc-800 w-full flex items-center justify-between bg-black sticky top-0 left-0 right-0 z-0",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsxs(P,{type:"button",variant:"default",className:"h-8! border-l-0 border-y-0 border-r border-black rounded-none bg-green-700/60 text-white hover:bg-green-800/60 gap-1 disabled:opacity-50",onClick:e,disabled:a,"aria-label":"Run the query",children:["Run",r.jsx(Oa,{className:"size-3"}),r.jsx(qa,{className:"size-3"})]}),r.jsxs(P,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Format the query",onClick:t,children:["Format ",r.jsx(Ha,{className:"size-3"})]}),r.jsxs(P,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Save the query",onClick:s,children:["Save ",r.jsx(Wa,{className:"size-3"})]}),r.jsx(P,{type:"button",variant:"ghost",className:"h-8! border-l-0 border-y-0 border-r border-zinc-800 rounded-none","aria-label":"Favorite the query",onClick:l,children:d?r.jsx(ie,{className:"size-3 fill-current"}):r.jsx(ie,{className:"size-3"})}),c&&o&&r.jsx("span",{className:"text-xs px-2 text-muted-foreground",children:"Unsaved changes"})]}),r.jsxs("div",{className:"flex items-center",children:[n&&r.jsxs("div",{className:"flex items-center gap-1 px-2",children:[r.jsxs("span",{className:"text-xs text-gray-500",children:[n.data?.duration?.toFixed(2),"ms"]}),r.jsx("span",{className:"text-xs text-gray-500",children:"•"}),r.jsxs("span",{className:"text-xs text-gray-500",children:[n.data?.rowCount??0," rows"]})]}),r.jsxs(dt,{type:"single",variant:"ghost",onValueChange:p=>{p!==u&&v(p)},value:u??void 0,className:"h-8! rounded-none! border-l!",children:[r.jsxs(oe,{children:[r.jsx(de,{asChild:!0,children:r.jsx(ce,{value:"table","aria-label":"Toggle table",className:"rounded-none! h-8! aspect-square!","data-selected":u==="table",children:r.jsx(Za,{})})}),r.jsx(ue,{children:r.jsx("p",{children:"View as a table"})})]}),r.jsxs(oe,{children:[r.jsx(de,{asChild:!0,children:r.jsx(ce,{value:"json","aria-label":"Toggle JSON",className:"rounded-none! h-8! aspect-square!","data-selected":u==="json",children:r.jsx(Ya,{})})}),r.jsx(ue,{children:r.jsx("p",{children:"View as a JSON"})})]})]})]})]})},ct=()=>{const{selectedDatabase:a}=er(),{mutateAsync:e,isPending:t,error:s}=Ua({mutationFn:async({query:l})=>{const d=new URLSearchParams({db:a??""});return(await ar.post("/query",{query:l},{params:d})).data.data}});return{executeQuery:e,isExecutingQuery:t,executeQueryError:s}},ve=`-- Your query here...
|
|
3
|
+
`,vt=y.lazy(()=>Qa(()=>import("./cdoe-editor-Bv60qmc3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(a=>({default:a.CodeEditor}))),Nt=({queryId:a})=>{const e=Pa(),[t,s]=y.useState(void 0),{getQuery:l,updateQuery:d,toggleFavorite:c,addQuery:o}=tr(),n=a?l(a):null,u=n?.isFavorite??!1,{executeQuery:v,isExecutingQuery:p,executeQueryError:m}=ct(),[f,g]=y.useState(!1),[h,b]=y.useState(""),C=y.useCallback(()=>n?n?.query??ve:ve,[n]),w=y.useCallback(async T=>{if(!T.trim()){O.error("Query is empty!");return}v({query:T}).then(D=>{s({data:D,queryId:a??""})})},[v,a]),k=y.useCallback(()=>{if(!h.trim()){O.error("Query is empty!");return}w(h)},[w,h]),V=y.useCallback(()=>{a&&(c(a),O.success(u?"Query unfavorited":"Query favorited"))},[c,a,u]),R=y.useCallback(()=>{},[]),S=y.useCallback(()=>{if(h){if(a)d(a,{query:h});else{const T=o();d(T,{query:h}),e({to:"/runner/$queryId",params:{queryId:T}})}g(!1),O.success("Query saved")}},[h,a,d,o,e]);return r.jsxs("div",{className:"flex-1 relative w-full flex flex-col",children:[r.jsx(ut,{isExecutingQuery:p,handleButtonClick:k,handleFormatQuery:R,handleSaveQuery:S,handleFavorite:V,isFavorite:u,queryId:a??"",hasUnsavedChanges:f,queryResult:t??null}),r.jsx(y.Suspense,{fallback:r.jsx("div",{className:"flex-1 bg-[#1E1E1E] size-full"}),children:r.jsx(vt,{initialQuery:C(),queryId:a,savedQuery:n?.query??"",onQueryChange:b,onUnsavedChanges:g,onExecuteQuery:w,onFormatQuery:R,onSaveQuery:S})}),r.jsx(it,{results:t?.data??null,isLoading:p,error:m})]})};export{Nt as R};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{_ as p,q as mt,t as kt,s as _t,g as xt,b as vt,a as bt,c as ot,A as wt,d as G,ac as St,z as Lt,k as Et}from"./mermaid.core-DmainLbW.js";import{o as At}from"./ordinal-BENe2yWM.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";import"./init-Gi6I4Gst.js";function Tt(t){for(var n=t.length/6|0,i=new Array(n),a=0;a<n;)i[a]="#"+t.slice(a*6,++a*6);return i}const Mt=Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let i;if(n===void 0)for(const a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(i<h||i===void 0&&h>=h)&&(i=h)}return i}function dt(t,n){let i;if(n===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function J(t,n){let i=0;if(n===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+n(h,++a,t))&&(i+=h)}return i}function Nt(t){return t.target.depth}function It(t){return t.depth}function Pt(t,n){return n-1-t.height}function pt(t,n){return t.sourceLinks.length?t.depth:n-1}function Ct(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,Nt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return q(t.source,n.source)||t.index-n.index}function ct(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function tt(t){return t.value}function Ot(t){return t.index}function zt(t){return t.nodes}function Dt(t){return t.links}function ut(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function ht({nodes:t}){for(const n of t){let i=n.y0,a=i;for(const h of n.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of n.targetLinks)h.y1=a+h.width/2,a+=h.width}}function $t(){let t=0,n=0,i=1,a=1,h=24,b=8,g,k=Ot,r=pt,o,l,_=zt,x=Dt,y=6;function v(){const e={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return M(e),T(e),N(e),C(e),S(e),ht(e),e}v.update=function(e){return ht(e),e},v.nodeId=function(e){return arguments.length?(k=typeof e=="function"?e:Y(e),v):k},v.nodeAlign=function(e){return arguments.length?(r=typeof e=="function"?e:Y(e),v):r},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(h=+e,v):h},v.nodePadding=function(e){return arguments.length?(b=g=+e,v):b},v.nodes=function(e){return arguments.length?(_=typeof e=="function"?e:Y(e),v):_},v.links=function(e){return arguments.length?(x=typeof e=="function"?e:Y(e),v):x},v.linkSort=function(e){return arguments.length?(l=e,v):l},v.size=function(e){return arguments.length?(t=n=0,i=+e[0],a=+e[1],v):[i-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[i,a]]},v.iterations=function(e){return arguments.length?(y=+e,v):y};function M({nodes:e,links:f}){for(const[c,s]of e.entries())s.index=c,s.sourceLinks=[],s.targetLinks=[];const u=new Map(e.map((c,s)=>[k(c,s,e),c]));for(const[c,s]of f.entries()){s.index=c;let{source:m,target:w}=s;typeof m!="object"&&(m=s.source=ut(u,m)),typeof w!="object"&&(w=s.target=ut(u,w)),m.sourceLinks.push(s),w.targetLinks.push(s)}if(l!=null)for(const{sourceLinks:c,targetLinks:s}of e)c.sort(l),s.sort(l)}function T({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(J(f.sourceLinks,tt),J(f.targetLinks,tt)):f.fixedValue}function N({nodes:e}){const f=e.length;let u=new Set(e),c=new Set,s=0;for(;u.size;){for(const m of u){m.depth=s;for(const{target:w}of m.sourceLinks)c.add(w)}if(++s>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:e}){const f=e.length;let u=new Set(e),c=new Set,s=0;for(;u.size;){for(const m of u){m.height=s;for(const{source:w}of m.targetLinks)c.add(w)}if(++s>f)throw new Error("circular link");u=c,c=new Set}}function D({nodes:e}){const f=at(e,s=>s.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const s of e){const m=Math.max(0,Math.min(f-1,Math.floor(r.call(null,s,f))));s.layer=m,s.x0=t+m*u,s.x1=s.x0+h,c[m]?c[m].push(s):c[m]=[s]}if(o)for(const s of c)s.sort(o);return c}function B(e){const f=dt(e,u=>(a-n-(u.length-1)*g)/J(u,tt));for(const u of e){let c=n;for(const s of u){s.y0=c,s.y1=c+s.value*f,c=s.y1+g;for(const m of s.sourceLinks)m.width=m.value*f}c=(a-c+g)/(u.length+1);for(let s=0;s<u.length;++s){const m=u[s];m.y0+=c*(s+1),m.y1+=c*(s+1)}A(u)}}function S(e){const f=D(e);g=Math.min(b,(a-n)/(at(f,u=>u.length)-1)),B(f);for(let u=0;u<y;++u){const c=Math.pow(.99,u),s=Math.max(1-c,(u+1)/y);j(f,c,s),P(f,c,s)}}function P(e,f,u){for(let c=1,s=e.length;c<s;++c){const m=e[c];for(const w of m){let L=0,R=0;for(const{source:U,value:Z}of w.targetLinks){let W=Z*(w.layer-U.layer);L+=$(U,w)*W,R+=W}if(!(R>0))continue;let V=(L/R-w.y0)*f;w.y0+=V,w.y1+=V,E(w)}o===void 0&&m.sort(q),O(m,u)}}function j(e,f,u){for(let c=e.length,s=c-2;s>=0;--s){const m=e[s];for(const w of m){let L=0,R=0;for(const{target:U,value:Z}of w.sourceLinks){let W=Z*(U.layer-w.layer);L+=I(w,U)*W,R+=W}if(!(R>0))continue;let V=(L/R-w.y0)*f;w.y0+=V,w.y1+=V,E(w)}o===void 0&&m.sort(q),O(m,u)}}function O(e,f){const u=e.length>>1,c=e[u];d(e,c.y0-g,u-1,f),z(e,c.y1+g,u+1,f),d(e,a,e.length-1,f),z(e,n,0,f)}function z(e,f,u,c){for(;u<e.length;++u){const s=e[u],m=(f-s.y0)*c;m>1e-6&&(s.y0+=m,s.y1+=m),f=s.y1+g}}function d(e,f,u,c){for(;u>=0;--u){const s=e[u],m=(s.y1-f)*c;m>1e-6&&(s.y0-=m,s.y1-=m),f=s.y0-g}}function E({sourceLinks:e,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ct);for(const{target:{targetLinks:u}}of e)u.sort(lt)}}function A(e){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of e)f.sort(ct),u.sort(lt)}function $(e,f){let u=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:c,width:s}of e.sourceLinks){if(c===f)break;u+=s+g}for(const{source:c,width:s}of f.targetLinks){if(c===e)break;u-=s}return u}function I(e,f){let u=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:c,width:s}of f.targetLinks){if(c===e)break;u+=s+g}for(const{target:c,width:s}of e.sourceLinks){if(c===f)break;u-=s}return u}return v}var et=Math.PI,nt=2*et,F=1e-6,jt=nt-F;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new it}it.prototype=gt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,n,i,a,h,b){this._+="C"+ +t+","+ +n+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+b)},arcTo:function(t,n,i,a,h){t=+t,n=+n,i=+i,a=+a,h=+h;var b=this._x1,g=this._y1,k=i-t,r=a-n,o=b-t,l=g-n,_=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(_>F)if(!(Math.abs(l*k-r*o)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=i-b,y=a-g,v=k*k+r*r,M=x*x+y*y,T=Math.sqrt(v),N=Math.sqrt(_),C=h*Math.tan((et-Math.acos((v+_-M)/(2*T*N)))/2),D=C/N,B=C/T;Math.abs(D-1)>F&&(this._+="L"+(t+D*o)+","+(n+D*l)),this._+="A"+h+","+h+",0,0,"+ +(l*x>o*y)+","+(this._x1=t+B*k)+","+(this._y1=n+B*r)}},arc:function(t,n,i,a,h,b){t=+t,n=+n,i=+i,b=!!b;var g=i*Math.cos(a),k=i*Math.sin(a),r=t+g,o=n+k,l=1^b,_=b?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+r+","+o:(Math.abs(this._x1-r)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+r+","+o),i&&(_<0&&(_=_%nt+nt),_>jt?this._+="A"+i+","+i+",0,1,"+l+","+(t-g)+","+(n-k)+"A"+i+","+i+",0,1,"+l+","+(this._x1=r)+","+(this._y1=o):_>F&&(this._+="A"+i+","+i+",0,"+ +(_>=et)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=n+i*Math.sin(h))))},rect:function(t,n,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Bt(t){return t[0]}function Rt(t){return t[1]}var Ft=Array.prototype.slice;function Vt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Vt,i=Ut,a=Bt,h=Rt,b=null;function g(){var k,r=Ft.call(arguments),o=n.apply(this,r),l=i.apply(this,r);if(b||(b=k=gt()),t(b,+a.apply(this,(r[0]=o,r)),+h.apply(this,r),+a.apply(this,(r[0]=l,r)),+h.apply(this,r)),k)return b=null,k+""||null}return g.source=function(k){return arguments.length?(n=k,g):n},g.target=function(k){return arguments.length?(i=k,g):i},g.x=function(k){return arguments.length?(a=typeof k=="function"?k:ft(+k),g):a},g.y=function(k){return arguments.length?(h=typeof k=="function"?k:ft(+k),g):h},g.context=function(k){return arguments.length?(b=k??null,g):b},g}function Gt(t,n,i,a,h){t.moveTo(n,i),t.bezierCurveTo(n=(n+a)/2,i,n,h,a,h)}function Yt(){return Wt(Gt)}function qt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Yt().source(qt).target(Ht)}var rt=(function(){var t=p(function(k,r,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=r);return o},"o"),n=[1,9],i=[1,10],a=[1,5,10,12],h={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(r,o,l,_,x,y,v){var M=y.length-1;switch(x){case 7:const T=_.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=_.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());_.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(r,o){if(o.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=o,l}},"parseError"),parse:p(function(r){var o=this,l=[0],_=[],x=[null],y=[],v=this.table,M="",T=0,N=0,C=2,D=1,B=y.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(P.yy[j]=this.yy[j]);S.setInput(r,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var O=S.yylloc;y.push(O);var z=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(L){l.length=l.length-2*L,x.length=x.length-L,y.length=y.length-L}p(d,"popStack");function E(){var L;return L=_.pop()||S.lex()||D,typeof L!="number"&&(L instanceof Array&&(_=L,L=_.pop()),L=o.symbols_[L]||L),L}p(E,"lex");for(var A,$,I,e,f={},u,c,s,m;;){if($=l[l.length-1],this.defaultActions[$]?I=this.defaultActions[$]:((A===null||typeof A>"u")&&(A=E()),I=v[$]&&v[$][A]),typeof I>"u"||!I.length||!I[0]){var w="";m=[];for(u in v[$])this.terminals_[u]&&u>C&&m.push("'"+this.terminals_[u]+"'");S.showPosition?w="Parse error on line "+(T+1)+`:
|
|
2
|
+
`+S.showPosition()+`
|
|
3
|
+
Expecting `+m.join(", ")+", got '"+(this.terminals_[A]||A)+"'":w="Parse error on line "+(T+1)+": Unexpected "+(A==D?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(w,{text:S.match,token:this.terminals_[A]||A,line:S.yylineno,loc:O,expected:m})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+A);switch(I[0]){case 1:l.push(A),x.push(S.yytext),y.push(S.yylloc),l.push(I[1]),A=null,N=S.yyleng,M=S.yytext,T=S.yylineno,O=S.yylloc;break;case 2:if(c=this.productions_[I[1]][1],f.$=x[x.length-c],f._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},z&&(f._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),e=this.performAction.apply(f,[M,N,T,P.yy,I[1],x,y].concat(B)),typeof e<"u")return e;c&&(l=l.slice(0,-1*c*2),x=x.slice(0,-1*c),y=y.slice(0,-1*c)),l.push(this.productions_[I[1]][0]),x.push(f.$),y.push(f._$),s=v[l[l.length-2]][l[l.length-1]],l.push(s);break;case 3:return!0}}return!0},"parse")},b=(function(){var k={EOF:1,parseError:p(function(o,l){if(this.yy.parser)this.yy.parser.parseError(o,l);else throw new Error(o)},"parseError"),setInput:p(function(r,o){return this.yy=o||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var o=r.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:p(function(r){var o=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===_.length?this.yylloc.first_column:0)+_[_.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(r){this.unput(this.match.slice(r))},"less"),pastInput:p(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var r=this.pastInput(),o=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+o+"^"},"showPosition"),test_match:p(function(r,o){var l,_,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),_=r[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var y in x)this[y]=x[y];return!1}return!1},"test_match"),next:p(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,o,l,_;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),y=0;y<x.length;y++)if(l=this._input.match(this.rules[x[y]]),l&&(!o||l[0].length>o[0].length)){if(o=l,_=y,this.options.backtrack_lexer){if(r=this.test_match(l,x[y]),r!==!1)return r;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(r=this.test_match(o,x[_]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:p(function(){var o=this.next();return o||this.lex()},"lex"),begin:p(function(o){this.conditionStack.push(o)},"begin"),popState:p(function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:p(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:p(function(o){this.begin(o)},"pushState"),stateStackSize:p(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:p(function(o,l,_,x){switch(_){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k})();h.lexer=b;function g(){this.yy={}}return p(g,"Parser"),g.prototype=h,h.Parser=g,new g})();rt.parser=rt;var H=rt,Q=[],K=[],X=new Map,Qt=p(()=>{Q=[],K=[],X=new Map,Lt()},"clear"),Kt=class{constructor(t,n,i=0){this.source=t,this.target=n,this.value=i}static{p(this,"SankeyLink")}},Zt=p((t,n,i)=>{Q.push(new Kt(t,n,i))},"addLink"),Jt=class{constructor(t){this.ID=t}static{p(this,"SankeyNode")}},te=p(t=>{t=Et.sanitizeText(t,ot());let n=X.get(t);return n===void 0&&(n=new Jt(t),X.set(t,n),K.push(n)),n},"findOrCreateNode"),ee=p(()=>K,"getNodes"),ne=p(()=>Q,"getLinks"),ie=p(()=>({nodes:K.map(t=>({id:t.ID})),links:Q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),re={nodesMap:X,getConfig:p(()=>ot().sankey,"getConfig"),getNodes:ee,getLinks:ne,getGraph:ie,addLink:Zt,findOrCreateNode:te,getAccTitle:bt,setAccTitle:vt,getAccDescription:xt,setAccDescription:_t,getDiagramTitle:kt,setDiagramTitle:mt,clear:Qt},yt=class st{static{p(this,"Uid")}static{this.count=0}static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}},se={left:It,right:Pt,center:Ct,justify:pt},oe=p(function(t,n,i,a){const{securityLevel:h,sankey:b}=ot(),g=wt.sankey;let k;h==="sandbox"&&(k=G("#i"+n));const r=h==="sandbox"?G(k.nodes()[0].contentDocument.body):G("body"),o=h==="sandbox"?r.select(`[id="${n}"]`):G(`[id="${n}"]`),l=b?.width??g.width,_=b?.height??g.width,x=b?.useMaxWidth??g.useMaxWidth,y=b?.nodeAlignment??g.nodeAlignment,v=b?.prefix??g.prefix,M=b?.suffix??g.suffix,T=b?.showValues??g.showValues,N=a.db.getGraph(),C=se[y];$t().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(T?15:0)).nodeAlign(C).extent([[0,0],[l,_]])(N);const S=At(Mt);o.append("g").attr("class","nodes").selectAll(".node").data(N.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=yt.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const P=p(({id:d,value:E})=>T?`${d}
|
|
7
|
+
${v}${Math.round(E*100)/100}${M}`:d,"getText");o.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(N.nodes).join("text").attr("x",d=>d.x0<l/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${T?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<l/2?"start":"end").text(P);const j=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(N.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),O=b?.linkColor??"gradient";if(O==="gradient"){const d=j.append("linearGradient").attr("id",E=>(E.uid=yt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",E=>E.source.x1).attr("x2",E=>E.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",E=>S(E.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",E=>S(E.target.id))}let z;switch(O){case"gradient":z=p(d=>d.uid,"coloring");break;case"source":z=p(d=>S(d.source.id),"coloring");break;case"target":z=p(d=>S(d.target.id),"coloring");break;default:z=O}j.append("path").attr("d",Xt()).attr("stroke",z).attr("stroke-width",d=>Math.max(1,d.width)),St(void 0,o,0,x)},"draw"),ae={draw:oe},le=p(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),ce=p(t=>`.label {
|
|
9
|
+
font-family: ${t.fontFamily};
|
|
10
|
+
}`,"getStyles"),ue=ce,he=H.parse.bind(H);H.parse=t=>he(le(t));var Ee={styles:ue,parser:H,db:re,renderer:ae};export{Ee as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./radix-ui-
|
|
1
|
+
import{j as e}from"./radix-ui-d5EbBw33.js";import"./icons-cLYU3CQS.js";import"./react-dom-BWKcCUTe.js";function i(){return e.jsx("main",{className:"flex-1 flex items-center justify-center",children:"Schema will be available soon!"})}export{i as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r,b as V,c as W,d as T,e as X,D as B,f as I,O as G,g as Q,h as U,i as Y,k as Z,l as J,m as ee,n as te,o as ae,p as oe,V as re,q as ne,S as se,r as le}from"./radix-ui-Cy3m1w7k.js";import{a as c,B as A}from"./index-ERxh7PXo.js";import{X as ie,r as g}from"./icons-DJrV7d9i.js";function Ke({...e}){return r.jsx(V,{"data-slot":"dialog",...e})}function de({...e}){return r.jsx(I,{"data-slot":"dialog-portal",...e})}function ce({className:e,...t}){return r.jsx(G,{"data-slot":"dialog-overlay",className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",e),...t})}function Oe({className:e,children:t,showCloseButton:a=!0,...l}){return r.jsxs(de,{children:[r.jsx(ce,{}),r.jsxs(W,{"data-slot":"dialog-content",className:c("bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2",e),...l,children:[t,a&&r.jsx(T,{"data-slot":"dialog-close",asChild:!0,children:r.jsxs(A,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[r.jsx(ie,{}),r.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Re({className:e,...t}){return r.jsx("div",{"data-slot":"dialog-header",className:c("gap-1 flex flex-col",e),...t})}function Te({className:e,showCloseButton:t=!1,children:a,...l}){return r.jsxs("div",{"data-slot":"dialog-footer",className:c("gap-2 flex flex-col-reverse sm:flex-row sm:justify-end",e),...l,children:[a,t&&r.jsx(T,{asChild:!0,children:r.jsx(A,{variant:"outline",children:"Close"})})]})}function Pe({className:e,...t}){return r.jsx(X,{"data-slot":"dialog-title",className:c("text-sm font-medium",e),...t})}function qe({className:e,...t}){return r.jsx(B,{"data-slot":"dialog-description",className:c("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",e),...t})}function _e({...e}){return r.jsx(Q,{"data-slot":"alert-dialog",...e})}function ue({...e}){return r.jsx(te,{"data-slot":"alert-dialog-portal",...e})}function fe({className:e,...t}){return r.jsx(ae,{"data-slot":"alert-dialog-overlay",className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",e),...t})}function He({className:e,size:t="default",...a}){return r.jsxs(ue,{children:[r.jsx(fe,{}),r.jsx(U,{"data-slot":"alert-dialog-content","data-size":t,className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",e),...a})]})}function $e({className:e,...t}){return r.jsx("div",{"data-slot":"alert-dialog-header",className:c("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function Fe({className:e,...t}){return r.jsx("div",{"data-slot":"alert-dialog-footer",className:c("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function Me({className:e,...t}){return r.jsx(Y,{"data-slot":"alert-dialog-title",className:c("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function Ve({className:e,...t}){return r.jsx(Z,{"data-slot":"alert-dialog-description",className:c("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",e),...t})}function We({className:e,variant:t="default",size:a="default",...l}){return r.jsx(A,{variant:t,size:a,asChild:!0,children:r.jsx(ee,{"data-slot":"alert-dialog-action",className:c(e),...l})})}function Xe({className:e,variant:t="outline",size:a="default",...l}){return r.jsx(A,{variant:t,size:a,asChild:!0,children:r.jsx(J,{"data-slot":"alert-dialog-cancel",className:c(e),...l})})}function Be({className:e,...t}){return r.jsx("kbd",{"data-slot":"kbd",className:c("bg-muted text-muted-foreground border [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",e),...t})}const P=["shift","alt","meta","mod","ctrl","control"],me={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function j(e){return(me[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function q(e){return P.includes(e)}function N(e,t=","){return e.toLowerCase().split(t)}function S(e,t="+",a=">",l=!1,i,f){let s=[],p=!1;e=e.trim(),e.includes(a)?(p=!0,s=e.toLocaleLowerCase().split(a).map(m=>j(m))):s=e.toLocaleLowerCase().split(t).map(m=>j(m));const d={alt:s.includes("alt"),ctrl:s.includes("ctrl")||s.includes("control"),shift:s.includes("shift"),meta:s.includes("meta"),mod:s.includes("mod"),useKey:l},C=s.filter(m=>!P.includes(m));return{...d,keys:C,description:i,isSequence:p,hotkey:e,metadata:f}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&_([j(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&H([j(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{w.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{w.clear()},0)}));const w=new Set;function E(e){return Array.isArray(e)}function ge(e,t=","){return(E(e)?e:e.split(t)).every(a=>w.has(a.trim().toLowerCase()))}function _(e){const t=Array.isArray(e)?e:[e];w.has("meta")&&w.forEach(a=>{q(a)||w.delete(a.toLowerCase())}),t.forEach(a=>{w.add(a.toLowerCase())})}function H(e){const t=Array.isArray(e)?e:[e];e==="meta"?w.clear():t.forEach(a=>{w.delete(a.toLowerCase())})}function pe(e,t,a){(typeof a=="function"&&a(e,t)||a===!0)&&e.preventDefault()}function xe(e,t,a){return typeof a=="function"?a(e,t):a===!0||a===void 0}const he=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function ye(e){return $(e,he)}function $(e,t=!1){const{target:a,composed:l}=e;let i,f;return be(a)&&l?(i=e.composedPath()[0]&&e.composedPath()[0].tagName,f=e.composedPath()[0]&&e.composedPath()[0].role):(i=a&&a.tagName,f=a&&a.role),E(t)?!!(i&&t&&t.some(s=>s.toLowerCase()===i.toLowerCase()||s===f)):!!(i&&t&&t)}function be(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ve(e,t){return e.length===0&&t?!1:t?e.some(a=>t.includes(a))||e.includes("*"):!0}const we=(e,t,a=!1)=>{const{alt:l,meta:i,mod:f,shift:s,ctrl:p,keys:d,useKey:C}=t,{code:m,key:o,ctrlKey:k,metaKey:b,shiftKey:x,altKey:h}=e,u=j(m);if(C){if(d?.length===1&&d.includes(o.toLowerCase())){if(!a){if(l!==h||s!==x)return!1;if(f){if(!b&&!k)return!1}else if(i!==b||p!==k)return!1}return!0}return!1}if(!d?.includes(u)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(u))return!1;if(!a){if(l!==h&&u!=="alt"||s!==x&&u!=="shift")return!1;if(f){if(!b&&!k)return!1}else if(i!==b&&u!=="meta"&&u!=="os"||p!==k&&u!=="ctrl"&&u!=="control")return!1}return d&&d.length===1&&d.includes(u)?!0:d&&d.length>0?d.includes(u)?ge(d):!1:!d||d.length===0},je=g.createContext(void 0),ke=()=>g.useContext(je);function F(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((a,l)=>a&&F(e[l],t[l]),!0):e===t}const Ce=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Le=()=>g.useContext(Ce);function Ae(e){const t=g.useRef(void 0);return F(t.current,e)||(t.current=e),t.current}const R=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},De=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ie(e,t,a,l){const i=g.useRef(null),f=g.useRef(!1),s=Array.isArray(a)?Array.isArray(l)?void 0:l:a,p=E(e)?e.join(s?.delimiter):e,d=Array.isArray(a)?a:Array.isArray(l)?l:void 0,C=g.useCallback(t,d??[]),m=g.useRef(C);d?m.current=C:m.current=t;const o=Ae(s),{activeScopes:k}=Le(),b=ke();return De(()=>{if(o?.enabled===!1||!ve(k,o?.scopes))return;let x=[],h;const u=(n,O=!1)=>{if(!(ye(n)&&!$(n,o?.enableOnFormTags))){if(i.current!==null){const v=i.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==i.current&&!i.current.contains(v.activeElement)){R(n);return}}n.target?.isContentEditable&&!o?.enableOnContentEditable||N(p,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const y=S(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata);if(y.isSequence){h=setTimeout(()=>{x=[]},o?.sequenceTimeoutMs??1e3);const D=y.useKey?n.key:j(n.code);if(q(D.toLowerCase()))return;x.push(D);const M=y.keys?.[x.length-1];if(D!==M){x=[],h&&clearTimeout(h);return}x.length===y.keys?.length&&(m.current(n,y),h&&clearTimeout(h),x=[])}else if(we(n,y,o?.ignoreModifiers)||y.keys?.includes("*")){if(o?.ignoreEventWhen?.(n)||O&&f.current)return;if(pe(n,y,o?.preventDefault),!xe(n,y,o?.enabled)){R(n);return}m.current(n,y),O||(f.current=!0)}})}},z=n=>{n.code!==void 0&&(_(j(n.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&u(n))},K=n=>{n.code!==void 0&&(H(j(n.code)),f.current=!1,o?.keyup&&u(n,!0))},L=i.current||s?.document||document;return L.addEventListener("keyup",K,s?.eventListenerOptions),L.addEventListener("keydown",z,s?.eventListenerOptions),b&&N(p,o?.delimiter).forEach(n=>{b.addHotkey(S(n,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata))}),()=>{L.removeEventListener("keyup",K,s?.eventListenerOptions),L.removeEventListener("keydown",z,s?.eventListenerOptions),b&&N(p,o?.delimiter).forEach(n=>{b.removeHotkey(S(n,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata))}),x=[],h&&clearTimeout(h)}},[p,o,k]),i}function Ge({className:e,children:t,...a}){return r.jsxs(oe,{"data-slot":"scroll-area",className:c("relative",e),...a,children:[r.jsx(re,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),r.jsx(Ne,{}),r.jsx(ne,{})]})}function Ne({className:e,orientation:t="vertical",...a}){return r.jsx(se,{"data-slot":"scroll-area-scrollbar",orientation:t,className:c("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:r.jsx(le,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}export{_e as A,Ke as D,Be as K,Ge as S,Oe as a,Re as b,Pe as c,qe as d,Te as e,He as f,$e as g,Me as h,Ve as i,Fe as j,Xe as k,We as l,Ie as m,Ne as n};
|
|
1
|
+
import{j as r,b as V,c as W,d as T,e as X,D as B,f as I,O as G,g as Q,h as U,i as Y,k as Z,l as J,m as ee,n as te,o as ae,p as oe,V as re,q as ne,S as se,r as le}from"./radix-ui-d5EbBw33.js";import{a as c,B as A}from"./index-Dq7-70tK.js";import{X as ie,r as g}from"./icons-cLYU3CQS.js";function Ke({...e}){return r.jsx(V,{"data-slot":"dialog",...e})}function de({...e}){return r.jsx(I,{"data-slot":"dialog-portal",...e})}function ce({className:e,...t}){return r.jsx(G,{"data-slot":"dialog-overlay",className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",e),...t})}function Oe({className:e,children:t,showCloseButton:a=!0,...l}){return r.jsxs(de,{children:[r.jsx(ce,{}),r.jsxs(W,{"data-slot":"dialog-content",className:c("bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2",e),...l,children:[t,a&&r.jsx(T,{"data-slot":"dialog-close",asChild:!0,children:r.jsxs(A,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[r.jsx(ie,{}),r.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Re({className:e,...t}){return r.jsx("div",{"data-slot":"dialog-header",className:c("gap-1 flex flex-col",e),...t})}function Te({className:e,showCloseButton:t=!1,children:a,...l}){return r.jsxs("div",{"data-slot":"dialog-footer",className:c("gap-2 flex flex-col-reverse sm:flex-row sm:justify-end",e),...l,children:[a,t&&r.jsx(T,{asChild:!0,children:r.jsx(A,{variant:"outline",children:"Close"})})]})}function Pe({className:e,...t}){return r.jsx(X,{"data-slot":"dialog-title",className:c("text-sm font-medium",e),...t})}function qe({className:e,...t}){return r.jsx(B,{"data-slot":"dialog-description",className:c("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed *:[a]:underline *:[a]:underline-offset-3",e),...t})}function _e({...e}){return r.jsx(Q,{"data-slot":"alert-dialog",...e})}function ue({...e}){return r.jsx(te,{"data-slot":"alert-dialog-portal",...e})}function fe({className:e,...t}){return r.jsx(ae,{"data-slot":"alert-dialog-overlay",className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",e),...t})}function He({className:e,size:t="default",...a}){return r.jsxs(ue,{children:[r.jsx(fe,{}),r.jsx(U,{"data-slot":"alert-dialog-content","data-size":t,className:c("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-3 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",e),...a})]})}function $e({className:e,...t}){return r.jsx("div",{"data-slot":"alert-dialog-header",className:c("grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function Fe({className:e,...t}){return r.jsx("div",{"data-slot":"alert-dialog-footer",className:c("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function Me({className:e,...t}){return r.jsx(Y,{"data-slot":"alert-dialog-title",className:c("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function Ve({className:e,...t}){return r.jsx(Z,{"data-slot":"alert-dialog-description",className:c("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",e),...t})}function We({className:e,variant:t="default",size:a="default",...l}){return r.jsx(A,{variant:t,size:a,asChild:!0,children:r.jsx(ee,{"data-slot":"alert-dialog-action",className:c(e),...l})})}function Xe({className:e,variant:t="outline",size:a="default",...l}){return r.jsx(A,{variant:t,size:a,asChild:!0,children:r.jsx(J,{"data-slot":"alert-dialog-cancel",className:c(e),...l})})}function Be({className:e,...t}){return r.jsx("kbd",{"data-slot":"kbd",className:c("bg-muted text-muted-foreground border [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none",e),...t})}const P=["shift","alt","meta","mod","ctrl","control"],me={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function j(e){return(me[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function q(e){return P.includes(e)}function N(e,t=","){return e.toLowerCase().split(t)}function S(e,t="+",a=">",l=!1,i,f){let s=[],p=!1;e=e.trim(),e.includes(a)?(p=!0,s=e.toLocaleLowerCase().split(a).map(m=>j(m))):s=e.toLocaleLowerCase().split(t).map(m=>j(m));const d={alt:s.includes("alt"),ctrl:s.includes("ctrl")||s.includes("control"),shift:s.includes("shift"),meta:s.includes("meta"),mod:s.includes("mod"),useKey:l},C=s.filter(m=>!P.includes(m));return{...d,keys:C,description:i,isSequence:p,hotkey:e,metadata:f}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&_([j(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&H([j(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{w.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{w.clear()},0)}));const w=new Set;function E(e){return Array.isArray(e)}function ge(e,t=","){return(E(e)?e:e.split(t)).every(a=>w.has(a.trim().toLowerCase()))}function _(e){const t=Array.isArray(e)?e:[e];w.has("meta")&&w.forEach(a=>{q(a)||w.delete(a.toLowerCase())}),t.forEach(a=>{w.add(a.toLowerCase())})}function H(e){const t=Array.isArray(e)?e:[e];e==="meta"?w.clear():t.forEach(a=>{w.delete(a.toLowerCase())})}function pe(e,t,a){(typeof a=="function"&&a(e,t)||a===!0)&&e.preventDefault()}function xe(e,t,a){return typeof a=="function"?a(e,t):a===!0||a===void 0}const he=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function ye(e){return $(e,he)}function $(e,t=!1){const{target:a,composed:l}=e;let i,f;return be(a)&&l?(i=e.composedPath()[0]&&e.composedPath()[0].tagName,f=e.composedPath()[0]&&e.composedPath()[0].role):(i=a&&a.tagName,f=a&&a.role),E(t)?!!(i&&t&&t.some(s=>s.toLowerCase()===i.toLowerCase()||s===f)):!!(i&&t&&t)}function be(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ve(e,t){return e.length===0&&t?!1:t?e.some(a=>t.includes(a))||e.includes("*"):!0}const we=(e,t,a=!1)=>{const{alt:l,meta:i,mod:f,shift:s,ctrl:p,keys:d,useKey:C}=t,{code:m,key:o,ctrlKey:k,metaKey:b,shiftKey:x,altKey:h}=e,u=j(m);if(C){if(d?.length===1&&d.includes(o.toLowerCase())){if(!a){if(l!==h||s!==x)return!1;if(f){if(!b&&!k)return!1}else if(i!==b||p!==k)return!1}return!0}return!1}if(!d?.includes(u)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(u))return!1;if(!a){if(l!==h&&u!=="alt"||s!==x&&u!=="shift")return!1;if(f){if(!b&&!k)return!1}else if(i!==b&&u!=="meta"&&u!=="os"||p!==k&&u!=="ctrl"&&u!=="control")return!1}return d&&d.length===1&&d.includes(u)?!0:d&&d.length>0?d.includes(u)?ge(d):!1:!d||d.length===0},je=g.createContext(void 0),ke=()=>g.useContext(je);function F(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((a,l)=>a&&F(e[l],t[l]),!0):e===t}const Ce=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Le=()=>g.useContext(Ce);function Ae(e){const t=g.useRef(void 0);return F(t.current,e)||(t.current=e),t.current}const R=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},De=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ie(e,t,a,l){const i=g.useRef(null),f=g.useRef(!1),s=Array.isArray(a)?Array.isArray(l)?void 0:l:a,p=E(e)?e.join(s?.delimiter):e,d=Array.isArray(a)?a:Array.isArray(l)?l:void 0,C=g.useCallback(t,d??[]),m=g.useRef(C);d?m.current=C:m.current=t;const o=Ae(s),{activeScopes:k}=Le(),b=ke();return De(()=>{if(o?.enabled===!1||!ve(k,o?.scopes))return;let x=[],h;const u=(n,O=!1)=>{if(!(ye(n)&&!$(n,o?.enableOnFormTags))){if(i.current!==null){const v=i.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==i.current&&!i.current.contains(v.activeElement)){R(n);return}}n.target?.isContentEditable&&!o?.enableOnContentEditable||N(p,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const y=S(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata);if(y.isSequence){h=setTimeout(()=>{x=[]},o?.sequenceTimeoutMs??1e3);const D=y.useKey?n.key:j(n.code);if(q(D.toLowerCase()))return;x.push(D);const M=y.keys?.[x.length-1];if(D!==M){x=[],h&&clearTimeout(h);return}x.length===y.keys?.length&&(m.current(n,y),h&&clearTimeout(h),x=[])}else if(we(n,y,o?.ignoreModifiers)||y.keys?.includes("*")){if(o?.ignoreEventWhen?.(n)||O&&f.current)return;if(pe(n,y,o?.preventDefault),!xe(n,y,o?.enabled)){R(n);return}m.current(n,y),O||(f.current=!0)}})}},z=n=>{n.code!==void 0&&(_(j(n.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&u(n))},K=n=>{n.code!==void 0&&(H(j(n.code)),f.current=!1,o?.keyup&&u(n,!0))},L=i.current||s?.document||document;return L.addEventListener("keyup",K,s?.eventListenerOptions),L.addEventListener("keydown",z,s?.eventListenerOptions),b&&N(p,o?.delimiter).forEach(n=>{b.addHotkey(S(n,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata))}),()=>{L.removeEventListener("keyup",K,s?.eventListenerOptions),L.removeEventListener("keydown",z,s?.eventListenerOptions),b&&N(p,o?.delimiter).forEach(n=>{b.removeHotkey(S(n,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description,o?.metadata))}),x=[],h&&clearTimeout(h)}},[p,o,k]),i}function Ge({className:e,children:t,...a}){return r.jsxs(oe,{"data-slot":"scroll-area",className:c("relative",e),...a,children:[r.jsx(re,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),r.jsx(Ne,{}),r.jsx(ne,{})]})}function Ne({className:e,orientation:t="vertical",...a}){return r.jsx(se,{"data-slot":"scroll-area-scrollbar",orientation:t,className:c("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...a,children:r.jsx(le,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}export{_e as A,Ke as D,Be as K,Ge as S,Oe as a,Re as b,Pe as c,qe as d,Te as e,He as f,$e as g,Me as h,Ve as i,Fe as j,Xe as k,We as l,Ie as m,Ne as n};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as me,b as Kt,g as ct,d as we,c as Xt,e as Jt}from"./chunk-TZMSLE5B-31ka2vOU.js";import{_ as f,o as ve,c as st,d as Nt,l as Q,j as ae,e as Ie,f as Le,k as I,b as ee,s as _e,q as Ae,a as ke,g as Pe,t as Ne,v as Se,J as Me,z as Re,i as St,u as W,a2 as z,a3 as Lt,a4 as re,a5 as De,a6 as Ce,a7 as ie,G as zt}from"./mermaid.core-ds122QIK.js";import{I as Oe}from"./chunk-QZHKN3VN-C6jBpr-H.js";import"./monaco-editor-BMj4E99D.js";import"./icons-DJrV7d9i.js";import"./mermaid-VLURNSYL-_Y2XU6_c.js";import"./radix-ui-Cy3m1w7k.js";import"./react-dom-DJoE1oD9.js";import"./tanstack-qLXitSFb.js";import"./index-ERxh7PXo.js";import"./scroll-area-BrIAuvEe.js";import"./spinner-BESLBiEc.js";import"./_pathlessLayout-DjLhpgxd.js";import"./queries.store-Bxxvcbg7.js";var Ht=(function(){var e=f(function(pt,v,A,L){for(A=A||{},L=pt.length;L--;A[pt[L]]=v);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],x=[1,24],y=[1,25],m=[1,26],w=[1,27],k=[1,28],N=[1,29],S=[1,30],O=[1,31],B=[1,32],q=[1,33],H=[1,34],Z=[1,35],at=[1,36],U=[1,37],G=[1,38],F=[1,39],D=[1,41],$=[1,42],K=[1,43],j=[1,44],rt=[1,45],R=[1,46],E=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],_=[2,71],X=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Bt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Qt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ot=[69,70,71],lt=[1,127],Vt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:f(function(v,A,L,b,C,d,vt){var u=d.length-1;switch(C){case 3:return b.apply(d[u]),d[u];case 4:case 9:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:this.$=d[u];break;case 8:case 13:this.$=[];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1].actor};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 54:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 55:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 59:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 62:this.$=[d[u-2],d[u]];break;case 63:this.$=d[u];break;case 64:this.$=b.PLACEMENT.LEFTOF;break;case 65:this.$=b.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor}];break;case 67:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4].actor}];break;case 68:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 69:this.$={type:"addParticipant",actor:d[u-1],config:d[u]};break;case 70:this.$=d[u-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[u]};break;case 72:this.$=b.LINETYPE.SOLID_OPEN;break;case 73:this.$=b.LINETYPE.DOTTED_OPEN;break;case 74:this.$=b.LINETYPE.SOLID;break;case 75:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=b.LINETYPE.DOTTED;break;case 77:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=b.LINETYPE.SOLID_CROSS;break;case 79:this.$=b.LINETYPE.DOTTED_CROSS;break;case 80:this.$=b.LINETYPE.SOLID_POINT;break;case 81:this.$=b.LINETYPE.DOTTED_POINT;break;case 82:this.$=b.parseMessage(d[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,7]),e(E,[2,8]),e(E,[2,14]),{12:48,50:U,52:G,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:R},{22:55,71:R},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(E,[2,29]),e(E,[2,30]),{32:[1,61]},{34:[1,62]},e(E,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:R},{22:75,71:R},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:R},{22:92,71:R},{22:93,71:R},{22:94,71:R},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],_),e(E,[2,6]),e(E,[2,15]),e(X,[2,9],{10:95}),e(E,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(E,[2,21]),{5:[1,99]},{5:[1,100]},e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,27]),e(E,[2,28]),e(E,[2,31]),e(E,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(M,r,{40:104,7:105}),e(Bt,r,{42:106,7:107}),e(Bt,r,{7:107,42:108}),e(Qt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],_,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:R},e(ot,[2,72]),e(ot,[2,73]),e(ot,[2,74]),e(ot,[2,75]),e(ot,[2,76]),e(ot,[2,77]),e(ot,[2,78]),e(ot,[2,79]),e(ot,[2,80]),e(ot,[2,81]),{22:123,71:R},{22:125,59:124,71:R},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:U,52:G,53:F},{5:[1,136]},e(E,[2,19]),e(E,[2,20]),e(E,[2,22]),e(E,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,49:[1,141],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,48:[1,143],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,47:[1,146],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{15:[1,148]},e(E,[2,49]),e(E,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(E,[2,51]),e(E,[2,52]),{22:151,71:R},{22:152,71:R},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(E,[2,16]),e(X,[2,10]),{12:157,50:U,52:G,53:F},e(X,[2,12]),e(X,[2,13]),e(E,[2,18]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(E,[2,37]),{15:[1,158]},e(E,[2,38]),{15:[1,159]},e(E,[2,39]),e(E,[2,40]),{15:[1,160]},e(E,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:R},e(X,[2,11]),e(M,r,{7:105,40:167}),e(Bt,r,{7:107,42:168}),e(Qt,r,{7:110,45:169}),e(E,[2,48]),{5:[2,70]},e(E,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:f(function(v,A){if(A.recoverable)this.trace(v);else{var L=new Error(v);throw L.hash=A,L}},"parseError"),parse:f(function(v){var A=this,L=[0],b=[],C=[null],d=[],vt=this.table,u="",At=0,Zt=0,ye=2,$t=1,Te=d.slice.call(arguments,1),Y=Object.create(this.lexer),ft={yy:{}};for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yt)&&(ft.yy[Yt]=this.yy[Yt]);Y.setInput(v,ft.yy),ft.yy.lexer=Y,ft.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Wt=Y.yylloc;d.push(Wt);var Ee=Y.options&&Y.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(et){L.length=L.length-2*et,C.length=C.length-et,d.length=d.length-et}f(be,"popStack");function jt(){var et;return et=b.pop()||Y.lex()||$t,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=A.symbols_[et]||et),et}f(jt,"lex");for(var J,yt,it,Ft,bt={},kt,ht,te,Pt;;){if(yt=L[L.length-1],this.defaultActions[yt]?it=this.defaultActions[yt]:((J===null||typeof J>"u")&&(J=jt()),it=vt[yt]&&vt[yt][J]),typeof it>"u"||!it.length||!it[0]){var qt="";Pt=[];for(kt in vt[yt])this.terminals_[kt]&&kt>ye&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?qt="Parse error on line "+(At+1)+`:
|
|
1
|
+
import{a as me,b as Kt,g as ct,d as we,c as Xt,e as Jt}from"./chunk-TZMSLE5B-JJzEtNYD.js";import{_ as f,o as ve,c as st,d as Nt,l as Q,j as ae,e as Ie,f as Le,k as I,b as ee,s as _e,q as Ae,a as ke,g as Pe,t as Ne,v as Se,J as Me,z as Re,i as St,u as W,a2 as z,a3 as Lt,a4 as re,a5 as De,a6 as Ce,a7 as ie,G as zt}from"./mermaid.core-DmainLbW.js";import{I as Oe}from"./chunk-QZHKN3VN-BGMtvFJQ.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";var Ht=(function(){var e=f(function(pt,v,A,L){for(A=A||{},L=pt.length;L--;A[pt[L]]=v);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],x=[1,24],y=[1,25],m=[1,26],w=[1,27],k=[1,28],N=[1,29],S=[1,30],O=[1,31],B=[1,32],q=[1,33],H=[1,34],Z=[1,35],at=[1,36],U=[1,37],G=[1,38],F=[1,39],D=[1,41],$=[1,42],K=[1,43],j=[1,44],rt=[1,45],R=[1,46],E=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],_=[2,71],X=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Bt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Qt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],ot=[69,70,71],lt=[1,127],Vt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:f(function(v,A,L,b,C,d,vt){var u=d.length-1;switch(C){case 3:return b.apply(d[u]),d[u];case 4:case 9:this.$=[];break;case 5:case 10:d[u-1].push(d[u]),this.$=d[u-1];break;case 6:case 7:case 11:case 12:this.$=d[u];break;case 8:case 13:this.$=[];break;case 15:d[u].type="createParticipant",this.$=d[u];break;case 16:d[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(d[u-2])}),d[u-1].push({type:"boxEnd",boxText:d[u-2]}),this.$=d[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-2]),sequenceIndexStep:Number(d[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-1].actor};break;case 29:b.setDiagramTitle(d[u].substring(6)),this.$=d[u].substring(6);break;case 30:b.setDiagramTitle(d[u].substring(7)),this.$=d[u].substring(7);break;case 31:this.$=d[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=d[u].trim(),b.setAccDescription(this.$);break;case 34:d[u-1].unshift({type:"loopStart",loopText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.LOOP_START}),d[u-1].push({type:"loopEnd",loopText:d[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=d[u-1];break;case 35:d[u-1].unshift({type:"rectStart",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_START}),d[u-1].push({type:"rectEnd",color:b.parseMessage(d[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=d[u-1];break;case 36:d[u-1].unshift({type:"optStart",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_START}),d[u-1].push({type:"optEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=d[u-1];break;case 37:d[u-1].unshift({type:"altStart",altText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.ALT_START}),d[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=d[u-1];break;case 38:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 39:d[u-1].unshift({type:"parStart",parText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),d[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=d[u-1];break;case 40:d[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.CRITICAL_START}),d[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=d[u-1];break;case 41:d[u-1].unshift({type:"breakStart",breakText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_START}),d[u-1].push({type:"breakEnd",optText:b.parseMessage(d[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=d[u-1];break;case 43:this.$=d[u-3].concat([{type:"option",optionText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},d[u]]);break;case 45:this.$=d[u-3].concat([{type:"and",parText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.PAR_AND},d[u]]);break;case 47:this.$=d[u-3].concat([{type:"else",altText:b.parseMessage(d[u-1]),signalType:b.LINETYPE.ALT_ELSE},d[u]]);break;case 48:d[u-3].draw="participant",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 49:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 50:d[u-3].draw="actor",d[u-3].type="addParticipant",d[u-3].description=b.parseMessage(d[u-1]),this.$=d[u-3];break;case 51:d[u-1].draw="actor",d[u-1].type="addParticipant",this.$=d[u-1];break;case 52:d[u-1].type="destroyParticipant",this.$=d[u-1];break;case 53:d[u-1].draw="participant",d[u-1].type="addParticipant",this.$=d[u-1];break;case 54:this.$=[d[u-1],{type:"addNote",placement:d[u-2],actor:d[u-1].actor,text:d[u]}];break;case 55:d[u-2]=[].concat(d[u-1],d[u-1]).slice(0,2),d[u-2][0]=d[u-2][0].actor,d[u-2][1]=d[u-2][1].actor,this.$=[d[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:d[u-2].slice(0,2),text:d[u]}];break;case 56:this.$=[d[u-1],{type:"addLinks",actor:d[u-1].actor,text:d[u]}];break;case 57:this.$=[d[u-1],{type:"addALink",actor:d[u-1].actor,text:d[u]}];break;case 58:this.$=[d[u-1],{type:"addProperties",actor:d[u-1].actor,text:d[u]}];break;case 59:this.$=[d[u-1],{type:"addDetails",actor:d[u-1].actor,text:d[u]}];break;case 62:this.$=[d[u-2],d[u]];break;case 63:this.$=d[u];break;case 64:this.$=b.PLACEMENT.LEFTOF;break;case 65:this.$=b.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:d[u-1].actor}];break;case 67:this.$=[d[u-4],d[u-1],{type:"addMessage",from:d[u-4].actor,to:d[u-1].actor,signalType:d[u-3],msg:d[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:d[u-4].actor}];break;case 68:this.$=[d[u-3],d[u-1],{type:"addMessage",from:d[u-3].actor,to:d[u-1].actor,signalType:d[u-2],msg:d[u]}];break;case 69:this.$={type:"addParticipant",actor:d[u-1],config:d[u]};break;case 70:this.$=d[u-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[u]};break;case 72:this.$=b.LINETYPE.SOLID_OPEN;break;case 73:this.$=b.LINETYPE.DOTTED_OPEN;break;case 74:this.$=b.LINETYPE.SOLID;break;case 75:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=b.LINETYPE.DOTTED;break;case 77:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=b.LINETYPE.SOLID_CROSS;break;case 79:this.$=b.LINETYPE.DOTTED_CROSS;break;case 80:this.$=b.LINETYPE.SOLID_POINT;break;case 81:this.$=b.LINETYPE.DOTTED_POINT;break;case 82:this.$=b.parseMessage(d[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},e(E,[2,7]),e(E,[2,8]),e(E,[2,14]),{12:48,50:U,52:G,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:R},{22:55,71:R},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(E,[2,29]),e(E,[2,30]),{32:[1,61]},{34:[1,62]},e(E,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:R},{22:75,71:R},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:R},{22:92,71:R},{22:93,71:R},{22:94,71:R},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],_),e(E,[2,6]),e(E,[2,15]),e(X,[2,9],{10:95}),e(E,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(E,[2,21]),{5:[1,99]},{5:[1,100]},e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,27]),e(E,[2,28]),e(E,[2,31]),e(E,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(M,r,{40:104,7:105}),e(Bt,r,{42:106,7:107}),e(Bt,r,{7:107,42:108}),e(Qt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],_,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:R},e(ot,[2,72]),e(ot,[2,73]),e(ot,[2,74]),e(ot,[2,75]),e(ot,[2,76]),e(ot,[2,77]),e(ot,[2,78]),e(ot,[2,79]),e(ot,[2,80]),e(ot,[2,81]),{22:123,71:R},{22:125,59:124,71:R},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:U,52:G,53:F},{5:[1,136]},e(E,[2,19]),e(E,[2,20]),e(E,[2,22]),e(E,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,49:[1,141],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,48:[1,143],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,47:[1,146],50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:x,30:y,31:m,33:w,35:k,36:N,37:S,38:O,39:B,41:q,43:H,44:Z,46:at,50:U,52:G,53:F,55:D,60:$,61:K,62:j,63:rt,71:R},{15:[1,148]},e(E,[2,49]),e(E,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(E,[2,51]),e(E,[2,52]),{22:151,71:R},{22:152,71:R},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(E,[2,16]),e(X,[2,10]),{12:157,50:U,52:G,53:F},e(X,[2,12]),e(X,[2,13]),e(E,[2,18]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(E,[2,37]),{15:[1,158]},e(E,[2,38]),{15:[1,159]},e(E,[2,39]),e(E,[2,40]),{15:[1,160]},e(E,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:R},e(X,[2,11]),e(M,r,{7:105,40:167}),e(Bt,r,{7:107,42:168}),e(Qt,r,{7:110,45:169}),e(E,[2,48]),{5:[2,70]},e(E,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:f(function(v,A){if(A.recoverable)this.trace(v);else{var L=new Error(v);throw L.hash=A,L}},"parseError"),parse:f(function(v){var A=this,L=[0],b=[],C=[null],d=[],vt=this.table,u="",At=0,Zt=0,ye=2,$t=1,Te=d.slice.call(arguments,1),Y=Object.create(this.lexer),ft={yy:{}};for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yt)&&(ft.yy[Yt]=this.yy[Yt]);Y.setInput(v,ft.yy),ft.yy.lexer=Y,ft.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Wt=Y.yylloc;d.push(Wt);var Ee=Y.options&&Y.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(et){L.length=L.length-2*et,C.length=C.length-et,d.length=d.length-et}f(be,"popStack");function jt(){var et;return et=b.pop()||Y.lex()||$t,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=A.symbols_[et]||et),et}f(jt,"lex");for(var J,yt,it,Ft,bt={},kt,ht,te,Pt;;){if(yt=L[L.length-1],this.defaultActions[yt]?it=this.defaultActions[yt]:((J===null||typeof J>"u")&&(J=jt()),it=vt[yt]&&vt[yt][J]),typeof it>"u"||!it.length||!it[0]){var qt="";Pt=[];for(kt in vt[yt])this.terminals_[kt]&&kt>ye&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?qt="Parse error on line "+(At+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[J]||J)+"'":qt="Parse error on line "+(At+1)+": Unexpected "+(J==$t?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(qt,{text:Y.match,token:this.terminals_[J]||J,line:Y.yylineno,loc:Wt,expected:Pt})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+J);switch(it[0]){case 1:L.push(J),C.push(Y.yytext),d.push(Y.yylloc),L.push(it[1]),J=null,Zt=Y.yyleng,u=Y.yytext,At=Y.yylineno,Wt=Y.yylloc;break;case 2:if(ht=this.productions_[it[1]][1],bt.$=C[C.length-ht],bt._$={first_line:d[d.length-(ht||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(ht||1)].first_column,last_column:d[d.length-1].last_column},Ee&&(bt._$.range=[d[d.length-(ht||1)].range[0],d[d.length-1].range[1]]),Ft=this.performAction.apply(bt,[u,Zt,At,ft.yy,it[1],C,d].concat(Te)),typeof Ft<"u")return Ft;ht&&(L=L.slice(0,-1*ht*2),C=C.slice(0,-1*ht),d=d.slice(0,-1*ht)),L.push(this.productions_[it[1]][0]),C.push(bt.$),d.push(bt._$),te=vt[L[L.length-2]][L[L.length-1]],L.push(te);break;case 3:return!0}}return!0},"parse")},fe=(function(){var pt={EOF:1,parseError:f(function(A,L){if(this.yy.parser)this.yy.parser.parseError(A,L);else throw new Error(A)},"parseError"),setInput:f(function(v,A){return this.yy=A||this.yy||{},this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var A=v.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),v},"input"),unput:f(function(v){var A=v.length,L=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(v){this.unput(this.match.slice(v))},"less"),pastInput:f(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var v=this.match;return v.length<20&&(v+=this._input.substr(0,20-v.length)),(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var v=this.pastInput(),A=new Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as R,a as W,S as N}from"./chunk-DI55MBZ5-BA4d2Wbt.js";import{_ as f,c as t,d as H,l as S,e as P,k as z,a9 as _,aa as U,a6 as C,u as F}from"./mermaid.core-DmainLbW.js";import{G as O}from"./graph-CNujjUl6.js";import{l as J}from"./layout-CrsquEuM.js";import"./chunk-55IACEB6-DFZ6X9qg.js";import"./chunk-QN33PNHL-CujeLF1b.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";import"./_baseUniq-BnS4oWxG.js";import"./min-Cs3I0vDk.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Y=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(g,B,w){const E=g.append("tspan").attr("x",2*t().state.padding).text(B);w||E.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(g){a||(d(x,g,s),s=!1),a=!1});const m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),h=x.node().getBBox(),o=Math.max(h.width,n.width);return m.attr("x2",o+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o+2*t().state.padding).attr("height",h.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),x=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),h=s.node().getBBox().width+n;let o=Math.max(h,x);o===x&&(o=o+n);let g;const B=e.node().getBBox();i.doc,g=a-c,h>x&&(g=(x-o)/2+c),Math.abs(a-B.x)<c&&h>x&&(g=a-(h-x)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",w).attr("class",d?"alt-composit":"composit").attr("width",o).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",g+c),h<=x&&s.attr("x",a+(o-n)/2-h/2+c),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",o).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),Z=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),j=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const m of a){const h=m.trim();if(h.length>0){const o=l.append("tspan");if(o.text(h),s===0){const g=o.node().getBBox();s+=g.height}n+=s,o.attr("x",i+t().state.noteMargin),o.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),K=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=j(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&q(n),(i.type==="fork"||i.type==="join")&&Z(n,i),i.type==="note"&&K(i.note.text,n),i.type==="divider"&&D(n),i.type==="default"&&i.descriptions.length===0&&Y(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),A=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=_().x(function(s){return s.x}).y(function(s){return s.y}).curve(U),x=e.append("path").attr("d",l(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=C(!0)),x.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:m,y:h}=F.calcLabelPosition(i.points),o=z.getRows(d.title);let g=0;const B=[];let w=0,E=0;for(let u=0;u<=o.length;u++){const p=s.append("text").attr("text-anchor","middle").text(o[u]).attr("x",m).attr("y",h+g),y=p.node().getBBox();w=Math.max(w,y.width),E=Math.min(E,y.x),S.info(y.x,m,h+g),g===0&&(g=p.node().getBBox().height,S.info("Title height",g,h)),B.push(p)}let k=g*o.length;if(o.length>1){const u=(o.length-1)*g*.5;B.forEach((p,y)=>p.attr("y",h+y*g-u)),k=g*o.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",m-w/2-t().state.padding/2).attr("y",h-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},V=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){b=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const x=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);tt(s);const m=c.db.getRootDoc();G(m,s,void 0,!1,x,a,c);const h=b.padding,o=s.node().getBBox(),g=o.width+h*2,B=o.height+h*2,w=g*1.75;P(s,B,w,b.useMaxWidth),s.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+g+" "+B)},"draw"),at=f(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),G=f((e,i,d,c,n,l,x)=>{const a=new O({compound:!0,multigraph:!0});let s,m=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){m=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:b.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=x.db.getStates(),o=x.db.getRelations(),g=Object.keys(h);for(const r of g){const u=h[r];d&&(u.parentId=d);let p;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");p=G(u.doc,y,u.id,!c,n,l,x);{y=$(y,u,c);let v=y.node().getBBox();p.width=v.width,p.height=v.height+b.padding/2,T[u.id]={y:b.compositTitleSize}}}else p=L(i,u,a);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},v=L(i,y,a);u.note.position==="left of"?(a.setNode(p.id+"-note",v),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",v)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}S.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),J(a),S.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+w.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+w.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+w.id+" #"+r+" .divider").forEach(p=>{const y=p.parentElement;let v=0,M=0;y&&(y.parentElement&&(v=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),p.setAttribute("x1",0-M+8),p.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let E=w.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),E=w.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=E.width+2*b.padding,k.height=E.height+2*b.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},vt={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{vt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r,b as e,a,S as i}from"./chunk-DI55MBZ5-BA4d2Wbt.js";import{_ as o}from"./mermaid.core-DmainLbW.js";import"./chunk-55IACEB6-DFZ6X9qg.js";import"./chunk-QN33PNHL-CujeLF1b.js";import"./monaco-editor-BMj4E99D.js";import"./icons-cLYU3CQS.js";import"./mermaid-VLURNSYL-BZBKtjwf.js";import"./radix-ui-d5EbBw33.js";import"./react-dom-BWKcCUTe.js";import"./tanstack-D5ysZnPZ.js";import"./index-Dq7-70tK.js";import"./scroll-area-NHyDhTA5.js";import"./index-pzKFI-Vs.js";import"./_pathlessLayout-J4rDhSFV.js";import"./queries.store-BqdJNevl.js";var A={parser:a,get db(){return new i(2)},renderer:e,styles:r,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{A as diagram};
|