@marimo-team/frontend 0.13.16-dev67 → 0.13.16-dev69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-DO1X5t3_.js → ConnectedDataExplorerComponent-DRBR54Od.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-BRHsIFdl.js → ImageComparisonComponent-DSOodUYh.js} +1 -1
- package/dist/assets/{VegaLite-CTDBvdM2.js → VegaLite-Bwm5rsCl.js} +1 -1
- package/dist/assets/{_baseEach-BVFB920C.js → _baseEach-DMClerTq.js} +1 -1
- package/dist/assets/_baseMap-CD9hnB3A.js +1 -0
- package/dist/assets/{_baseUniq-BqLOmozF.js → _baseUniq-D3VxhdrA.js} +1 -1
- package/dist/assets/{_createAggregator-EVnMhDXv.js → _createAggregator-Chjh3Q_B.js} +1 -1
- package/dist/assets/{any-language-editor-6cmKD7qY.js → any-language-editor-B5YpYwHL.js} +2 -2
- package/dist/assets/{architectureDiagram-IEHRJDOE-zGzI8CmL.js → architectureDiagram-IEHRJDOE-DUO1IVyn.js} +1 -1
- package/dist/assets/{blockDiagram-JOT3LUYC-Cr6phlxU.js → blockDiagram-JOT3LUYC-BDha9Wes.js} +1 -1
- package/dist/assets/{c4Diagram-VJAJSXHY-BI-mJU-E.js → c4Diagram-VJAJSXHY-CzzillVi.js} +1 -1
- package/dist/assets/channel-D-Qw4Rvo.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-tctP1gpO.js → chunk-4BMEZGHF-Bd4h9Ve1.js} +1 -1
- package/dist/assets/{chunk-A2AXSNBT-Bf3bdgRc.js → chunk-A2AXSNBT-C9dYNlCp.js} +1 -1
- package/dist/assets/{chunk-AEK57VVT-BcgLyeS3.js → chunk-AEK57VVT-ex6RRDX-.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN-Dbiqmk9b.js → chunk-D6G4REZN-BZj0iHgv.js} +1 -1
- package/dist/assets/{chunk-RZ5BOZE2-D9r8J2lR.js → chunk-RZ5BOZE2-Nztj68nn.js} +1 -1
- package/dist/assets/{chunk-XZIHB7SX-DFzhomWc.js → chunk-XZIHB7SX-DmtX4Foe.js} +1 -1
- package/dist/assets/{circle-play-BueOSRvA.js → circle-play-p8Sj7AdH.js} +1 -1
- package/dist/assets/classDiagram-GIVACNV2-BLhpZLAI.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-BLhpZLAI.js +1 -0
- package/dist/assets/clone-CjChZECf.js +1 -0
- package/dist/assets/{compile-BKKk1JJ1.js → compile-Cy--pw_w.js} +1 -1
- package/dist/assets/{dagre-OKDRZEBW-4xuzeIwA.js → dagre-OKDRZEBW-C5g3Ibk1.js} +1 -1
- package/dist/assets/{data-editor-lWMiyofT.js → data-editor-CqJ6Gyd8.js} +1 -1
- package/dist/assets/{diagram-SSKATNLV-Dt_tH0-0.js → diagram-SSKATNLV-BUhH-mdF.js} +1 -1
- package/dist/assets/{diagram-VNBRO52H-BgC9h1DB.js → diagram-VNBRO52H-D_3Wxl4t.js} +1 -1
- package/dist/assets/{edit-page-CpSDHxPZ.js → edit-page-IF5Nbx5y.js} +3 -3
- package/dist/assets/{erDiagram-Q7BY3M3F-oBnZtiop.js → erDiagram-Q7BY3M3F-BTIsVAg4.js} +1 -1
- package/dist/assets/{flowDiagram-4HSFHLVR-C-0FT1a4.js → flowDiagram-4HSFHLVR-BzxvBNyx.js} +1 -1
- package/dist/assets/{ganttDiagram-APWFNJXF-BfA9NXYc.js → ganttDiagram-APWFNJXF-C1oSDNmR.js} +1 -1
- package/dist/assets/{gitGraphDiagram-7IBYFJ6S-D6ux_YkC.js → gitGraphDiagram-7IBYFJ6S-vn7ob0pJ.js} +1 -1
- package/dist/assets/{graph-D4xQPS7C.js → graph-uTLBHozV.js} +1 -1
- package/dist/assets/{home-page-DIY13QYF.js → home-page-WDzb-8-d.js} +2 -2
- package/dist/assets/{index-CL--UF-b.js → index-BAf07p45.js} +1 -1
- package/dist/assets/{index-BFXhm8PD.js → index-BEVBc6Xg.js} +1 -1
- package/dist/assets/{index-DlF0C0Q6.js → index-BQG1kyOa.js} +1 -1
- package/dist/assets/{index-BZ_INonm.js → index-Bto6WZu4.js} +1 -1
- package/dist/assets/{index-B5f4ymFd.js → index-C5z9w9IC.js} +1 -1
- package/dist/assets/{index-DUy9jgvk.js → index-CAMg0OHB.js} +1 -1
- package/dist/assets/{index-DoKLXy0k.js → index-CDZpqLcS.js} +1 -1
- package/dist/assets/{index-C8t4MIbp.js → index-CNf099oP.js} +213 -212
- package/dist/assets/{index-DvroVzok.js → index-COVmIxVW.js} +1 -1
- package/dist/assets/index-CgF_B7vt.js +1 -0
- package/dist/assets/{index-uDomeUkX.js → index-D1SXFm6O.js} +1 -1
- package/dist/assets/{index-D89vnocT.js → index-D2pgOx78.js} +1 -1
- package/dist/assets/{index-D9_Lthsv.js → index-D4lX6WOv.js} +1 -1
- package/dist/assets/{index-Cj-7a49z.js → index-DAwRoOnr.js} +1 -1
- package/dist/assets/{index-liBV1mSa.js → index-DR7SMDML.js} +1 -1
- package/dist/assets/{index-BnTpR30W.js → index-DXk_ND4z.js} +1 -1
- package/dist/assets/{index-FDQjjJkM.js → index-DjRR0PIf.js} +1 -1
- package/dist/assets/{index-BIkeuZud.js → index-QCjeiAOJ.js} +1 -1
- package/dist/assets/{index-BE4kLpSd.js → index-YXkxUEQg.js} +1 -1
- package/dist/assets/infoDiagram-PH2N3AL5-Bj0Zs9-M.js +2 -0
- package/dist/assets/{journeyDiagram-U35MCT3I-Cl6JSN-v.js → journeyDiagram-U35MCT3I-DsM9d_To.js} +1 -1
- package/dist/assets/{kanban-definition-NDS4AKOZ-COuADwHh.js → kanban-definition-NDS4AKOZ-odt1CP6v.js} +1 -1
- package/dist/assets/{layout-eoHpCARJ.js → layout-D8ZgQVhR.js} +1 -1
- package/dist/assets/{linear-Cl3X6A1r.js → linear-C3K_catQ.js} +1 -1
- package/dist/assets/{mermaid-CFEC0Mqo.js → mermaid-C_X-At-F.js} +4 -4
- package/dist/assets/{min-ogz7IAZ2.js → min-CH5ifDe0.js} +1 -1
- package/dist/assets/{mindmap-definition-ALO5MXBD-BtYle1QQ.js → mindmap-definition-ALO5MXBD-BgX3xjF9.js} +1 -1
- package/dist/assets/{panels-DB-VkiLn.js → panels-CZwW1Bfb.js} +3 -3
- package/dist/assets/{pieDiagram-IB7DONF6-C2rPH5pG.js → pieDiagram-IB7DONF6-DfWM7U-d.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-7MFt64Vg.js → quadrantDiagram-7GDLP6J5-y2t2FYO7.js} +1 -1
- package/dist/assets/{radar-MK3ICKWK-C4wSDma6.js → radar-MK3ICKWK-DJQCLSI4.js} +1 -1
- package/dist/assets/{react-plotly-Bx0wbWWf.js → react-plotly-V2SyWtzI.js} +1 -1
- package/dist/assets/{requirementDiagram-KVF5MWMF-Df2vMpIG.js → requirementDiagram-KVF5MWMF-Bm99LLLS.js} +1 -1
- package/dist/assets/{run-page-DpdUdMHC.js → run-page-CU9QDjtU.js} +1 -1
- package/dist/assets/{sankeyDiagram-QLVOVGJD-CXoXWkyb.js → sankeyDiagram-QLVOVGJD-IXoqsOAr.js} +1 -1
- package/dist/assets/{sequenceDiagram-X6HHIX6F-CNnoJiBp.js → sequenceDiagram-X6HHIX6F-Dyv8Vefc.js} +1 -1
- package/dist/assets/{slides-component-BNKp10nR.js → slides-component-Bva6SRT1.js} +1 -1
- package/dist/assets/{sortBy-B5XStDG7.js → sortBy-DPKLLWQt.js} +1 -1
- package/dist/assets/{stateDiagram-DGXRK772-Ch0aesyU.js → stateDiagram-DGXRK772-DWnDtoyM.js} +1 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-CSEDwWkR.js +1 -0
- package/dist/assets/{terminal-DxX8pl7V.js → terminal-DDRrFKFT.js} +1 -1
- package/dist/assets/{time-BednD4nz.js → time-SdDHpgFE.js} +1 -1
- package/dist/assets/{timeline-definition-BDJGKUSR-C8bKNv2S.js → timeline-definition-BDJGKUSR-Cpcz0qZ7.js} +1 -1
- package/dist/assets/{tracing-c5ycTiSU.js → tracing-fC96q6kX.js} +2 -2
- package/dist/assets/{tree-DDkiCSOz.js → tree-agTB8sa3.js} +2 -2
- package/dist/assets/{vega-component-CZ5d79tE.js → vega-component-D7Uk-3Bo.js} +1 -1
- package/dist/assets/{xychartDiagram-VJFVF3MP-DuAJbXov.js → xychartDiagram-VJFVF3MP-CQT-fJDG.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -7
- package/dist/assets/_baseMap-v-baff1g.js +0 -1
- package/dist/assets/channel-BTkMiZey.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-BOJFgEFg.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-BOJFgEFg.js +0 -1
- package/dist/assets/clone-CGX7ghhc.js +0 -1
- package/dist/assets/index-DrTm6PYl.js +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-BTR3q0ih.js +0 -2
- package/dist/assets/stateDiagram-v2-YXO3MK2T-CgLlVBPr.js +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as k}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as k}from"./chunk-4BMEZGHF-Bd4h9Ve1.js";import{_ as l,s as O,g as S,q as I,p as E,a as F,b as z,I as P,y as R,E as v,F as w,G as D,l as G,L as B}from"./mermaid-C_X-At-F.js";import{p as _}from"./radar-MK3ICKWK-DJQCLSI4.js";import"./index-CNf099oP.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";import"./_baseEach-DMClerTq.js";import"./_baseUniq-D3VxhdrA.js";import"./min-CH5ifDe0.js";import"./_baseMap-CD9hnB3A.js";import"./clone-CjChZECf.js";import"./_createAggregator-Chjh3Q_B.js";var u={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b={axes:[],curves:[],options:u},m=structuredClone(b),j=D.radar,V=l(()=>v({...j,...w().radar}),"getConfig"),C=l(()=>m.axes,"getAxes"),W=l(()=>m.curves,"getCurves"),q=l(()=>m.options,"getOptions"),H=l(e=>{m.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=l(e=>{m.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=l(e=>{if(e[0].axis==null)return e.map(a=>a.value);const t=C();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(a=>{const r=e.find(n=>{var s;return((s=n.axis)==null?void 0:s.$refText)===a.name});if(r===void 0)throw new Error("Missing entry for axis "+a.label);return r.value})},"computeCurveEntries"),$={getAxes:C,getCurves:W,getOptions:q,setAxes:H,setCurves:Z,setOptions:l(e=>{var a,r,n,s,o;const t=e.reduce((i,c)=>(i[c.name]=c,i),{});m.options={showLegend:((a=t.showLegend)==null?void 0:a.value)??u.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??u.ticks,max:((n=t.max)==null?void 0:n.value)??u.max,min:((s=t.min)==null?void 0:s.value)??u.min,graticule:((o=t.graticule)==null?void 0:o.value)??u.graticule}},"setOptions"),getConfig:V,clear:l(()=>{R(),m=structuredClone(b)},"clear"),setAccTitle:z,getAccTitle:F,setDiagramTitle:E,getDiagramTitle:I,getAccDescription:S,setAccDescription:O},K=l(e=>{k(e,$);const{axes:t,curves:a,options:r}=e;$.setAxes(t),$.setCurves(a),$.setOptions(r)},"populate"),N={parse:l(async e=>{const t=await _("radar",e);G.debug(t),K(t)},"parse")},Q=l((e,t,a,r)=>{const n=r.db,s=n.getAxes(),o=n.getCurves(),i=n.getOptions(),c=n.getConfig(),g=n.getDiagramTitle(),p=P(t),d=U(p,c),h=i.max??Math.max(...o.map(f=>Math.max(...f.entries))),y=i.min,x=Math.min(c.width,c.height)/2;X(d,s,x,i.ticks,i.graticule),Y(d,s,x,c),M(d,s,o,y,h,i.graticule,c),A(d,o,i.showLegend,c),d.append("text").attr("class","radarTitle").text(g).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),U=l((e,t)=>{const a=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n=t.marginLeft+t.width/2,s=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${a} ${r}`).attr("width",a).attr("height",r),e.append("g").attr("transform",`translate(${n}, ${s})`)},"drawFrame"),X=l((e,t,a,r,n)=>{if(n==="circle")for(let s=0;s<r;s++){const o=a*(s+1)/r;e.append("circle").attr("r",o).attr("class","radarGraticule")}else if(n==="polygon"){const s=t.length;for(let o=0;o<r;o++){const i=a*(o+1)/r,c=t.map((g,p)=>{const d=2*p*Math.PI/s-Math.PI/2;return`${i*Math.cos(d)},${i*Math.sin(d)}`}).join(" ");e.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),Y=l((e,t,a,r)=>{const n=t.length;for(let s=0;s<n;s++){const o=t[s].label,i=2*s*Math.PI/n-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",a*r.axisScaleFactor*Math.cos(i)).attr("y2",a*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),e.append("text").text(o).attr("x",a*r.axisLabelFactor*Math.cos(i)).attr("y",a*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function M(e,t,a,r,n,s,o){const i=t.length,c=Math.min(o.width,o.height)/2;a.forEach((g,p)=>{if(g.entries.length!==i)return;const d=g.entries.map((h,y)=>{const x=2*Math.PI*y/i-Math.PI/2,f=L(h,r,n,c);return{x:f*Math.cos(x),y:f*Math.sin(x)}});s==="circle"?e.append("path").attr("d",T(d,o.curveTension)).attr("class",`radarCurve-${p}`):s==="polygon"&&e.append("polygon").attr("points",d.map(h=>`${h.x},${h.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}function L(e,t,a,r){return r*(Math.min(Math.max(e,t),a)-t)/(a-t)}function T(e,t){const a=e.length;let r=`M${e[0].x},${e[0].y}`;for(let n=0;n<a;n++){const s=e[(n-1+a)%a],o=e[n],i=e[(n+1)%a],c=e[(n+2)%a],g={x:o.x+(i.x-s.x)*t,y:o.y+(i.y-s.y)*t},p={x:i.x-(c.x-o.x)*t,y:i.y-(c.y-o.y)*t};r+=` C${g.x},${g.y} ${p.x},${p.y} ${i.x},${i.y}`}return`${r} Z`}function A(e,t,a,r){if(!a)return;const n=3*(r.width/2+r.marginRight)/4,s=3*-(r.height/2+r.marginTop)/4;t.forEach((o,i)=>{const c=e.append("g").attr("transform",`translate(${n}, ${s+20*i})`);c.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${i}`),c.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}l(M,"drawCurves"),l(L,"relativeRadius"),l(T,"closedRoundCurve"),l(A,"drawLegend");var tt={draw:Q},at=l((e,t)=>{let a="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const n=e[`cScale${r}`];a+=`
|
2
2
|
.radarCurve-${r} {
|
3
3
|
color: ${n};
|
4
4
|
fill: ${n};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as B}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as B}from"./chunk-4BMEZGHF-Bd4h9Ve1.js";import{_ as l,s as F,g as P,q as W,p as S,a as z,b as T,E as x,I as v,d as D,y as E,F as A,G as R,l as $}from"./mermaid-C_X-At-F.js";import{p as Y}from"./radar-MK3ICKWK-DJQCLSI4.js";import"./index-CNf099oP.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";import"./_baseEach-DMClerTq.js";import"./_baseUniq-D3VxhdrA.js";import"./min-CH5ifDe0.js";import"./_baseMap-CD9hnB3A.js";import"./clone-CjChZECf.js";import"./_createAggregator-Chjh3Q_B.js";var w={packet:[]},u=structuredClone(w),H=R.packet,I=l(()=>{const t=x({...H,...A().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),L=l(()=>u.packet,"getPacket"),m={pushWord:l(t=>{t.length>0&&u.packet.push(t)},"pushWord"),getPacket:L,getConfig:I,clear:l(()=>{E(),u=structuredClone(w)},"clear"),setAccTitle:T,getAccTitle:z,setDiagramTitle:S,getDiagramTitle:W,getAccDescription:P,setAccDescription:F},j=l(t=>{B(t,m);let e=-1,o=[],i=1;const{bitsPerRow:s}=m.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r<a)throw new Error(`Packet block ${a} - ${r} is invalid. End must be greater than start.`);if(a!==e+1)throw new Error(`Packet block ${a} - ${r??a} is not contiguous. It should start from ${e+1}.`);for(e=r??a,$.debug(`Packet block ${a} - ${e} with label ${p}`);o.length<=s+1&&m.getPacket().length<1e4;){const[h,c]=q({start:a,end:r,label:p},i,s);if(o.push(h),h.end+1===i*s&&(m.pushWord(o),o=[],i++),!c)break;({start:a,end:r,label:p}=c)}}m.pushWord(o)},"populate"),q=l((t,e,o)=>{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),G={parse:l(async t=>{const e=await Y("packet",t);$.debug(e),j(e)},"parse")},M=l((t,e,o,i)=>{const s=i.db,a=s.getConfig(),{rowHeight:r,paddingY:p,bitWidth:h,bitsPerRow:c}=a,f=s.getPacket(),n=s.getDiagramTitle(),k=r+p,d=k*(f.length+1)-(n?0:r),b=h*c+2,g=v(e);g.attr("viewbox",`0 0 ${b} ${d}`),D(g,d,b,a.useMaxWidth);for(const[y,C]of f.entries())N(g,C,y,a);g.append("text").text(n).attr("x",b/2).attr("y",d-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),N=l((t,e,o,{rowHeight:i,paddingX:s,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:h})=>{const c=t.append("g"),f=o*(i+a)+a;for(const n of e){const k=n.start%p*r+1,d=(n.end-n.start+1)*r-s;if(c.append("rect").attr("x",k).attr("y",f).attr("width",d).attr("height",i).attr("class","packetBlock"),c.append("text").attr("x",k+d/2).attr("y",f+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!h)continue;const b=n.end===n.start,g=f-2;c.append("text").attr("x",k+(b?d/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",b?"middle":"start").text(n.start),b||c.append("text").attr("x",k+d).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),X={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},_={parser:G,db:m,renderer:{draw:M},styles:l(({packet:t}={})=>{const e=x(X,t);return`
|
2
2
|
.packetByte {
|
3
3
|
font-size: ${e.byteFontSize};
|
4
4
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-
|
2
|
-
var CF=Object.defineProperty;var y3=zt=>{throw TypeError(zt)};var NF=(zt,It,pn)=>It in zt?CF(zt,It,{enumerable:!0,configurable:!0,writable:!0,value:pn}):zt[It]=pn;var ee=(zt,It,pn)=>NF(zt,typeof It!="symbol"?It+"":It,pn),jF=(zt,It,pn)=>It.has(zt)||y3("Cannot "+pn);var x3=(zt,It,pn)=>(jF(zt,It,"read from private field"),pn?pn.call(zt):It.get(zt)),w3=(zt,It,pn)=>It.has(zt)?y3("Cannot add the same private member more than once"):It instanceof WeakSet?It.add(zt):It.set(zt,pn);import{u as Fe,Q as A,i9 as EF,ia as IF,ib as v3,ic as AF,id as TF,ie as MF,R as K,ig as OF,ih as Or,ii as DF,ij as Zf,ik as k3,il as RF,im as PF,io as S3,ip as rc,d as X,as as Un,iq as Qf,j as h,du as em,dv as C3,dw as LF,dy as tm,dA as nm,f8 as sc,ir as om,ds as rm,dt as sm,dx as im,is as FF,it as N3,ei as j3,bp as et,a8 as Ft,iu as zF,dW as fo,iv as E3,iw as I3,ix as am,iy as A3,iz as BF,L as Zt,_ as Qt,aF as T3,cE as lm,W as Pe,iA as UF,ej as dt,iB as M3,en as ic,iC as VF,ao as lt,iD as ac,Z as We,a_ as Vn,a0 as en,iE as lc,iF as Ms,e6 as Os,iG as $F,iH as Zi,iI as HF,eg as WF,iJ as O3,iK as D3,dO as qF,a7 as cm,iL as lr,iM as Dr,aJ as cc,aL as cr,iN as GF,iO as dc,iP as R3,a5 as Qi,eF as P3,a6 as uc,iQ as YF,an as yn,iR as dm,iS as Rr,aj as dr,ak as Ds,al as ur,bg as Pr,U as Fo,e7 as Rs,gn as L3,fP as Ps,gq as JF,b2 as fn,iT as KF,iU as XF,fN as um,aI as hc,iV as hm,iW as ZF,iX as F3,iY as fm,iZ as QF,i_ as ez,i$ as mo,j0 as z3,fT as mm,j1 as ea,j2 as fc,e1 as tz,ae as Zn,am as Ls,be as hr,j3 as ta,bt as $n,ap as Fs,a4 as Le,f5 as po,b7 as B3,eq as xt,j4 as nz,eS as oz,dB as mc,j5 as pc,aN as pm,j6 as rz,ep as gm,ed as zs,j7 as sz,j8 as _m,bj as jn,j9 as iz,dU as Ae,ja as Je,jb as bm,jc as Ct,jd as U3,je as az,fu as ym,aE as En,aT as Hn,ga as V3,gb as $3,gc as lz,gg as cz,gd as H3,V as Oe,dN as dz,aG as gc,aR as _c,aH as bc,aO as sn,eh as zo,jf as uz,ge as W3,jg as hz,g5 as q3,g7 as G3,jh as Bs,ji as Y3,jj as fz,jk as mz,ai as pz,ah as gz,ec as na,af as xm,jl as oa,jm as yc,jn as _z,jo as bz,jp as J3,jq as mn,fS as K3,dP as xc,ba as yz,jr as xz,ar as wm,aK as wz,js as vz,gr as X3,b6 as wc,jt as vm,aq as ra,e2 as Z3,ju as kz,ag as Sz,jv as Q3,jw as Cz,jx as Nz,jy as jz,jz as Ez,jA as Iz,jB as Az,dq as Bo,jC as vc,jD as Us,o as Uo,n as st,fx as Qn,jE as In,jF as ut,jG as Vs,jH as Vt,fO as Gt,jI as km,dT as go,jJ as Tz,jK as Mz,b4 as e4,b5 as t4,jL as n4,jM as Oz,gu as $s,jN as kc,b1 as Sc,gt as Lr,jO as o4,jP as sa,ek as Sm,jQ as Dz,jR as Rz,jS as Pz,jT as Lz,jU as r4,jV as Fz,jW as s4,jX as i4,jY as zz,jZ as a4,j_ as l4,el as Cc,j$ as Bz,bq as Uz,k0 as Vz,fw as Wn,k1 as $z,k2 as Hz,k3 as Hs,k4 as Nc,k5 as Ws,fH as Vo,k6 as Cm,k7 as ia,k8 as aa,k9 as la,ka as Wz,fn as jc,kb as Nm,kc as c4,kd as Ec,eR as qz,fo as Gz,r as Yz,ke as Jz,kf as Kz,kg as d4,t as D,kh as Xz,ki as Zz,kj as jm,f_ as ca,kk as u4,fA as Qz,fs as h4,co as f4,kl as m4,km as eB,kn as tB,ko as nB,kp as oB,kq as rB,kr as sB,ks as iB,kt as aB,ku as lB,kv as cB,kw as dB,kx as uB,ky as hB,kz as fB,kA as mB,kB as pB,kC as gB,kD as _B,kE as bB,kF as yB,kG as da,kH as xB,kI as wB,kJ as vB,kK as kB,kL as SB,kM as CB,kN as p4,kO as NB,kP as jB,kQ as EB,kR as g4,kS as IB,kT as AB,kU as _4,kV as TB,kW as qs,kX as qn,kY as MB,kZ as OB,k_ as DB,k$ as RB,l0 as PB,l1 as LB,l2 as FB,l3 as zB,l4 as BB,l5 as UB,l6 as fr,l7 as VB,l8 as $B,l9 as HB,la as WB,er as qB,lb as GB,lc as b4,ev as YB,ld as Ic,le as JB,lf as KB,lg as XB,lh as ZB,X as Fr,li as Ac,eu as QB,lj as Em,lk as Tc,ll as ua,lm as ha,ln as Mc,lo as mr,lp as y4,lq as $o,lr as Gs,ls as Im,lt as fa,lu as Ys,lv as Am,lw as Tm,lx as x4,ly as Oc,lz as eU,S as ma,lA as pa,lB as tU,eQ as Dc,lC as nU,lD as Mm,lE as oU,lF as rU,lG as Rc,lH as sU,lI as iU,lJ as w4,lK as Om,gs as Js,lL as aU,lM as lU,lN as cU,lO as dU,fF as uU,bd as hU,gv as Et,lP as ga,lQ as Ks,lR as fU,lS as mU,lT as Dm,lU as pU,cn as Rm,lV as gU,b3 as v4,lW as _U,lX as bU,lY as Pc,lZ as k4,eK as Pm,bf as S4,$ as Lm,l_ as C4,l$ as yU,m0 as xU,m1 as Fm,m2 as zm,m3 as wU,m4 as N4,m5 as j4,m6 as _a,fr as vU,ab as E4,e4 as kU,m7 as I4,m8 as SU,m9 as CU,ma as A4,mb as NU,mc as jU,md as T4,me as M4,mf as EU,bh as O4,mg as IU,mh as Bm,eb as AU,mi as Ho,dL as D4,mj as R4,ef as P4,fh as Um,mk as Vm,ml as L4,bv as $m,dM as Lc,mm as F4,mn as TU,mo as MU,mp as OU,bc as Fc,mq as z4,fa as Hm,g6 as DU,g8 as RU,gf as Wm,gi as PU,mr as LU,ms as qm,mt as FU,mu as zU,mv as BU,mw as UU,mx as VU,my as $U,mz as HU,mA as WU,a9 as qU,mB as zc,aa as GU,mC as B4,mD as YU,f6 as JU,mE as U4,a$ as eo,fl as KU,dD as XU,mF as ZU,mG as V4,mH as QU,eP as eV,mI as tV,mJ as nV,e5 as oV,mK as rV,mL as sV,a2 as Bc,mM as iV,a3 as pr,dG as $4,mN as Gm,mO as aV,eo as H4,mP as lV,mQ as W4,mR as cV,mS as dV,mT as uV,mU as hV,mV as fV,mW as mV,mX as q4,g1 as Ym,f$ as Jm,fW as Xs,g0 as zr,mY as G4,g2 as Km,fX as Br,dX as pV,mZ as Xm,m_ as gV,a1 as _V,m$ as bV,fG as Y4,E as Zs,n0 as yV,n1 as xV,n2 as wV,n3 as vV,n4 as ba,n5 as kV,n6 as SV,n7 as CV,n8 as NV,n9 as jV,na as J4,nb as EV,fv as IV,nc as AV,nd as TV,ne as MV,nf as OV,gh as DV,ng as RV,nh as K4,ni as PV,nj as LV,nk as X4,nl as Z4,nm as Q4,f4 as eS,nn as FV,no as zV,np as tS,nq as nS,nr as Uc,ns as oS,nt as BV,nu as rS,nv as UV,nw as VV,nx as sS,ny as $V,nz as HV,nA as WV,C as iS,nB as qV,nC as GV,nD as YV,nE as gr,nF as aS,dV as JV,fY as KV,nG as lS,fZ as cS,nH as XV,nI as Qs,nJ as ZV,nK as Vc,nL as QV,nM as e$,y as dS,nN as t$,dj as n$,nO as o$,nP as r$,nQ as s$,nR as i$,nS as a$,eX as l$,b0 as c$,aZ as d$,at as $c,nT as uS,nU as hS,av as fS,au as u$,e9 as h$,__tla as f$}from"./index-C8t4MIbp.js";import{G as m$,L as mS,g as p$,b as ya,A as g$,s as _$,k as b$,B as pS,a as y$,M as x$,Y as w$,c as xn,u as xa,C as v$,S as k$,K as S$,d as C$,i as N$,e as gS,f as j$,h as E$,j as I$,l as wa,P as Zm,m as _S,n as A$,o as T$,p as Qm,T as M$}from"./tree-DDkiCSOz.js";import{d as bS,e as yS,L as xS,f as ei,I as ep,g as O$,h as wS,N as vS,V as kS,S as SS,F as CS,i as NS,M as D$,l as jS,j as R$,E as ES,k as P$,m as tp,n as L$,o as F$,p as z$,q as B$,s as U$,t as V$,v as $$,w as H$,x as W$,a as q$,C as G$,R as IS,b as Y$,A as J$,y as K$,z as X$,O as Z$,T as Q$,B as eH,D as tH,c as nH,P as oH,__tla as rH}from"./panels-DB-VkiLn.js";import{c as sH}from"./_createAggregator-EVnMhDXv.js";import{s as to,i as _r,T as np,a as op}from"./transform-Cyp0GDF-.js";import{g as AS}from"./timer-DFzT7np-.js";import{i as iH}from"./zoom-COrs4lFh.js";import{s as va}from"./sortBy-B5XStDG7.js";let rp,Hc,An,Wc,TS,ka,sp,aH=Promise.all([(()=>{try{return f$}catch{}})(),(()=>{try{return rH}catch{}})()]).then(async()=>{var tc,b3;var zt=sH(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let It,pn,ip,qc,ti,ni,ap,lp,cp,dp,Sa,Gc,up,Ca,hp,Yc,fp,mp,Jc,pp,gp,_p,Na,bp,Kc,yp,xp,wp,vp,kp,Sp,Xc,Cp,Zc,Np,jp,Ep,Ip,Ap,ja,Tp,Mp,Qc,Op,Dp,Rp,ed,Pp,Lp,Fp,Ea,td,nd,zp,Bp,Up,Vp,$p,Hp,Wp,qp,Gp,od,rd,Yp,Jp,Kp,Ia,br,yr;It=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),pn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),ip=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),qc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ti=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ni=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),ap=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),lp=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Wc=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),cp=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),dp=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Sa=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Gc=Fe("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),up=Fe("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),Ca=Fe("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),hp=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Yc=Fe("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),fp=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),mp=Fe("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Jc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),pp=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),gp=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),_p=Fe("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Na=Fe("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),bp=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Kc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),yp=Fe("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),xp=Fe("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),wp=Fe("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),vp=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),kp=Fe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),Sp=Fe("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),Xc=Fe("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),Cp=Fe("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Zc=Fe("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),Np=Fe("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),jp=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Ep=Fe("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),Ip=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ap=Fe("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),ja=Fe("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Tp=Fe("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),Mp=Fe("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Qc=Fe("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Op=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Dp=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),Rp=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),ed=Fe("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Pp=Fe("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Lp=Fe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Fp=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),Ea=Fe("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),td=Fe("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),nd=Fe("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),zp=Fe("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Bp=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Up=Fe("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),Vp=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),$p=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Hp=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Wp=Fe("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),qp=Fe("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),Gp=Fe("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),od=Fe("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),rd=Fe("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),Yp=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Jp=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),Kp=Fe("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Ia=Fe("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),br=Fe("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),yr=Fe("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);const MS=A.createContext({}),OS=A.forwardRef(function(t,e){[t,e]=TF(t,e,MS);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);EF(()=>{var p;u(!(!i.current||!(!((p=i.current.parentElement)===null||p===void 0)&&p.closest('[role="toolbar"]'))))});const{direction:f}=IF(),m=f==="rtl"&&c==="horizontal";let _=AF(i);const g=A.useRef(null);return{toolbarProps:{...v3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:p=>{if(p.currentTarget.contains(p.target)){if(c==="horizontal"&&p.key==="ArrowRight"||c==="vertical"&&p.key==="ArrowDown")m?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&p.key==="ArrowLeft"||c==="vertical"&&p.key==="ArrowUp"))return p.key==="Tab"?(p.stopPropagation(),g.current=document.activeElement,void(p.shiftKey?_.focusFirst():_.focusLast())):void 0;m?_.focusNext():_.focusPrevious()}p.stopPropagation(),p.preventDefault()}},onFocusCapture:d?void 0:p=>{var b,x;g.current&&!p.currentTarget.contains(p.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(p.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:p=>{p.currentTarget.contains(p.relatedTarget)||g.current||(g.current=p.target)}}}}(t,e),o=MF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=v3(t);return delete r.id,K.createElement("div",{...OF(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Aa(t,e){const n=+Or(t)-+Or(e);return n<0?-1:n>0?1:n}function DS(t,e){const n=Or(t,e==null?void 0:e.in);return+function(o,r){const s=Or(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Or(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function RS(t,e,n){const[o,r,s]=Zf(n==null?void 0:n.in,t,t,e),i=Aa(r,s),a=Math.abs(function(d,u,f){const[m,_]=Zf(f==null?void 0:f.in,d,u);return 12*(m.getFullYear()-_.getFullYear())+(m.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Aa(r,s)===-i;DS(o)&&a===1&&Aa(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function PS(t,e,n){const o=function(r,s){return+Or(r)-+Or(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function LS(t,e){return function(n,o,r){const s=RF(),i=(r==null?void 0:r.locale)??s.locale??PF,a=Aa(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Zf(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=PS(d,c),f=(k3(d)-k3(c))/1e3,m=Math.round((u-f)/60);let _;if(m<2)return m===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",m,l);if(m<45)return i.formatDistance("xMinutes",m,l);if(m<90)return i.formatDistance("aboutXHours",1,l);if(m<S3){const g=Math.round(m/60);return i.formatDistance("aboutXHours",g,l)}if(m<2520)return i.formatDistance("xDays",1,l);if(m<rc){const g=Math.round(m/S3);return i.formatDistance("xDays",g,l)}if(m<2*rc)return _=Math.round(m/rc),i.formatDistance("aboutXMonths",_,l);if(_=RS(d,c),_<12){const g=Math.round(m/rc);return i.formatDistance("xMonths",g,l)}{const g=_%12,p=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",p,l):g<9?i.formatDistance("overXYears",p,l):i.formatDistance("almostXYears",p+1,l)}}(t,function(n){return DF(n,Date.now())}(t),e)}const FS=()=>{const t=X.c(7),{selectedLayout:e}=bS(),{setLayoutView:n}=yS();if(Un()&&!Qf("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(rm,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(sm,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(em,{children:h.jsxs(C3,{children:[h.jsx(LF,{children:"View as"}),xS.map(BS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(im,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function zS(t){const e=Xp(t);return h.jsx(e,{className:"h-4 w-4"})}function Xp(t){switch(t){case"vertical":return Np;case"grid":return m$;case"slides":return ed;default:return sc(t),om}}function Zp(t){return nm(t)}function BS(t){return h.jsx(tm,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[zS(t),h.jsx("span",{children:Zp(t)})]})},t)}function US(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new FF(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,m]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{m(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let p;return l[8]!==g||l[9]!==f?(p=[f,g],l[8]=g,l[9]=f,l[10]=p):p=l[10],p}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function Qp(t){return t.dropdown!==void 0}function Ta(t,e=""){return t.flatMap(n=>n.label?Qp(n)?Ta(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const oi=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function sd(t){const e=X.c(3),n=id();let o;return e[0]!==t||e[1]!==n?(o=()=>{t!==void 0&&n([t])},e[0]=t,e[1]=n,e[2]=o):o=e[2],et(o)}function eg(){const t=X.c(2),e=id();let n;return t[0]!==e?(n=()=>e(E3(fo())),t[0]=e,t[1]=n):n=t[1],et(n)}function id(){const t=X.c(2),{prepareForRun:e}=Ft();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=fo(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(I3(d)!=="markdown"&&am(d),u=A3(d)):u=s[l].code,i.push(u),e({cellId:l})}await BF({cellIds:o,codes:i}).catch(VS)},t[0]=e,t[1]=n):n=t[1],et(n)}function VS(t){Zt.error(t)}const Ma=Qt(null),$S=Qt(!1),ad=T3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),HS=Qt(t=>{const e=t(ad);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(ad,o=>({...o,activeChatId:n}))}),ld=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],lm(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(UF,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function cd(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(dt.get(M3))return;const{cellId:s}=r,i=dt.get(ic),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),VF({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=lt({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(ld,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function tg(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=ac(r.cellId);if(!s)return;const i=A3(s);e(r);const{dismiss:a}=lt({title:"Cell split",action:h.jsx(ld,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function dd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Ft(),u=tg(),f=sd(n==null?void 0:n.cellId),m=!We(M3),_=cd(),{openModal:g}=Vn(),p=en(Ma),b=We(lc),x=We(Ms),y=We(Os),v=We($F);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:E,name:j,hasOutput:I,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Rr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==E||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Rr({configs:{[S]:N}}),r({cellId:S,config:N});const H=E();H&&(N.hide_code?H.contentDOM.blur():H.focus())},e[5]=S,e[6]=k.hide_code,e[7]=E,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,P,C,$;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Gp,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(dr,{children:[h.jsx(Ds,{children:h.jsx(ur,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Pr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(vS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(P=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=P):P=e[18],e[19]!==j||e[20]!==P?(C=h.jsx(vS,{placeholder:"cell name",value:j,onChange:P}),e[19]=j,e[20]=P,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==m||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==E||e[34]!==T||e[35]!==I||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==p||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?($=[[{icon:F,label:"Name",disableClick:!0,handle:YS,handleHeadless:V,rightElement:C},{icon:h.jsx(ei,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(Zi,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{p(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(td,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(ep,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!I,handle:()=>function(N){const H=document.getElementById(N3.create(N));H&&(H.classList.add("printing-output"),j3(H,"result.png").finally(()=>{H.classList.remove("printing-output")}))}(S)},{icon:h.jsx(WF,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=E();N&&HF({[S]:N})}},{icon:k.hide_code?h.jsx(O3,{size:13,strokeWidth:1.5}):h.jsx(D3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(br,{size:13,strokeWidth:1.5}):h.jsx(yr,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(qF,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(cm,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(I||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(cc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=E();N&&(lr(x,o),Dr(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(cr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=E();N&&(lr(x,o),Dr(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(dc,{}),label:"Toggle as Python",handle:()=>{const N=E();N&&(lr(x,o),GF(N,"python",{force:!0}))}}],[{icon:h.jsxs(oi,{children:[h.jsx(Sa,{size:13,strokeWidth:1.5}),h.jsx(R3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(oi,{children:[h.jsx(Sa,{size:13,strokeWidth:1.5}),h.jsx(Qi,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(R3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(Qi,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(P3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(uc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(lp,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(ap,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx(YF,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(mS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!wS(j),tooltip:wS(j)?void 0:"Only named cells can be linked to",handle:async()=>{await yn(O$(j)),lt({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!m,variant:"danger",icon:h.jsx(dm,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(qS).filter(WS),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=m,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=E,e[34]=T,e[35]=I,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=p,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=$):$=e[48],$}function WS(t){return t.length>0}function qS(t){return t.filter(GS)}function GS(t){return!t.hidden}function YS(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function JS(t){return!t.hidden}const ud=Qt(!1),ng=()=>{const t=X.c(37),[e,n]=fn(ud),o=KF(),r=We(XF),s=We(um);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=dd(i).flat();a=Ta(a);const l=function(){const P=X.c(45),{theme:C}=Fo(),[$,N]=Rs(),[H,Y]=L3();let Z;P[0]!==N?(Z=async ce=>{await Ps({config:ce}).then(()=>{N(ce)})},P[0]=N,P[1]=Z):Z=P[1];const q=Z;let re;P[2]!==Y?(re=async ce=>{await JF({config:ce}).then(()=>{Y(ce)})},P[2]=Y,P[3]=re):re=P[3];const ne=re;let oe;if(P[4]!==H||P[5]!==$||P[6]!==ne||P[7]!==q||P[8]!==C){let ce,me,de;P[10]!==H?(ce=Ke=>Ke!==H.width,P[10]=H,P[11]=ce):ce=P[11],P[12]!==H||P[13]!==ne?(me=Ke=>({label:`App config > Set width=${Ke}`,handle:()=>{ne({...H,width:Ke})}}),P[12]=H,P[13]=ne,P[14]=me):me=P[14],P[15]!==$||P[16]!==q||P[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...$,display:{...$.display,theme:C==="dark"?"light":"dark"}})}},P[15]=$,P[16]=q,P[17]=C,P[18]=de):de=P[18];const ge=$.keymap.preset==="vim";let ie,xe;P[19]!==$||P[20]!==q?(ie=()=>{q({...$,keymap:{...$.keymap,preset:"vim"}})},P[19]=$,P[20]=q,P[21]=ie):ie=P[21],P[22]!==ge||P[23]!==ie?(xe={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},P[22]=ge,P[23]=ie,P[24]=xe):xe=P[24];const we=$.keymap.preset==="default";let ae,Se,pe;P[25]!==$||P[26]!==q?(ae=()=>{q({...$,keymap:{...$.keymap,preset:"default"}})},P[25]=$,P[26]=q,P[27]=ae):ae=P[27],P[28]!==ae||P[29]!==we?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:we,handle:ae},P[28]=ae,P[29]=we,P[30]=Se):Se=P[30],P[31]!==$||P[32]!==q?(pe=()=>{q({...$,completion:{...$.completion,copilot:!1}})},P[31]=$,P[32]=q,P[33]=pe):pe=P[33];const Te=$.completion.copilot!=="github";let Re,He;P[34]!==pe||P[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:pe,hidden:Te},P[34]=pe,P[35]=Te,P[36]=Re):Re=P[36],P[37]!==$||P[38]!==q?(He=()=>{q({...$,completion:{...$.completion,copilot:"github"}})},P[37]=$,P[38]=q,P[39]=He):He=P[39];const ze=$.completion.copilot==="github";let Ne;P[40]!==He||P[41]!==ze?(Ne={label:"Config > Enable GitHub Copilot",handle:He,hidden:ze},P[40]=He,P[41]=ze,P[42]=Ne):Ne=P[42],oe=[...p$().filter(ce).map(me),de,xe,Se,Re,Ne],P[4]=H,P[5]=$,P[6]=ne,P[7]=q,P[8]=C,P[9]=oe}else oe=P[9];const G=oe;let Q;return P[43]!==G?(Q=G.filter(JS),P[43]=G,P[44]=Q):Q=P[44],Q}();let c=Tg();c=[...Ta(c),...Ta(l)];const d=c.filter(KS),u=hc.keyBy(d,XS),{recentCommands:f,addRecentCommand:m}=US();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let p,b;t[4]!==s||t[5]!==n?(p=P=>{ez(s.getHotkey("global.commandPalette").key)(P)&&(P.preventDefault(),n(ZS))},t[4]=s,t[5]=n,t[6]=p):p=t[6],lm(document,"keydown",p),t[7]!==m||t[8]!==s||t[9]!==o||t[10]!==n?(b=(P,C)=>{const $=o[P];if(!$)return null;const N=s.getHotkey(P);return h.jsxs(mo,{disabled:C.disabled,onSelect:()=>{m(P),n(!1),requestAnimationFrame(()=>{$()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(z3,{children:h.jsx(mm,{shortcut:N.key})})]},P)},t[7]=m,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==m||t[13]!==s||t[14]!==n?(y=(P,C,$,N)=>{const H=$===void 0?{}:$;return h.jsxs(mo,{disabled:H.disabled,onSelect:()=>{m(P),n(!1),requestAnimationFrame(()=>{C()})},value:P,children:[h.jsxs("span",{children:[P,H.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",H.tooltip,")"]})]}),N&&h.jsx(z3,{children:h.jsx(mm,{shortcut:s.getHotkey(N).key})})]},P)},t[12]=m,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=QF;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ea,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const E=fm;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(fc,{children:"No results found."}),t[17]=j):j=t[17];const I=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(hm,{heading:"Recently Used",children:f.map(P=>{const C=u[P];return ZF(P)?x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!Qp(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(F3,{})]}),T=hm,M=s.iterate().map(P=>{if(g.has(P))return null;const C=u[P];return x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(P=>g.has(P.label)?null:v(P.label,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}));let B;t[18]!==g||t[19]!==v?(B=P=>g.has(P.label)?null:v(`Cell > ${P.label}`,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==E||t[27]!==z||t[28]!==j||t[29]!==I?(F=h.jsxs(E,{children:[j,I,z]}),t[26]=E,t[27]=z,t[28]=j,t[29]=I,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function KS(t){return!t.hotkey}function XS(t){return t.label}function ZS(t){return!t}const Oa="https://static.marimo.app",QS=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Oa}/static/${i}`;let l,c,d,u,f,m,_,g,p,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await tz({download:!1,includeCode:!0,files:kS.INSTANCE.filenames()}),S=lt({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Oa}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),lt({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:Zn.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),lt({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(ur,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Ds,{children:[c,h.jsxs(Ls,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",h.jsx("a",{href:Oa,target:"_blank",children:Oa}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(hr,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(m=h.jsxs("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(eC,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=m):m=e[9],e[10]!==f||e[11]!==m?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,m]}),e[10]=f,e[11]=m,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(p=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await yn(a)},children:"Create"}),e[15]=a,e[16]=p):p=e[16],e[17]!==p||e[18]!==g?(b=h.jsxs(ta,{children:[g,p]}),e[17]=p,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(dr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},eC=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=$n.stopPropagation(async c=>{c.preventDefault(),await yn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(Fs,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function og(){const t=X.c(3),{openConfirm:e}=Vn(),n=en(po);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(B3,{onClick:async()=>{n({state:xt.CLOSING}),await nz(),oz()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const hd=[{type:"files",Icon:yp,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:mc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:cr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:ja,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:ya,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:nd,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:pc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:od,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:pm,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:g$,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:Up,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:Sp,tooltip:"Secrets",hidden:Un(),position:"sidebar"},{type:"scratchpad",Icon:rz,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:cm,tooltip:"View errors",position:"footer"}];function rg(){const t=X.c(2),e=en(gm);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=zs.parse(i.parentNode.id);break}}e(i=>({mode:sz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(zs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function xr(){return Ae.string().optional().describe(Je.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function sg(){return Ae.string().optional().describe(Je.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function Da(){return Ae.string().optional().describe(Je.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function ig(){return Ae.string().optional().describe(Je.of({label:"URI",optionRegex:".*uri.*"}))}function wr(){return Ae.string().nonempty().describe(Je.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Je.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function vr(){return Ae.string().nonempty().describe(Je.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function kr(t){const e=Ae.coerce.string().describe(Je.of({label:"Port",inputType:"number",placeholder:t==null?void 0:t.toString()})).transform(Number).refine(n=>n>=0&&n<=65535,{message:"Port must be between 0 and 65535"});return t!==void 0?e.default(t.toString()):e}function ag(){return Ae.boolean().default(!1).describe(Je.of({label:"Read Only"}))}const lg=Ae.object({type:Ae.literal("postgres"),host:wr(),port:kr(5432).optional(),database:_o(),username:vr(),password:xr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),cg=Ae.object({type:Ae.literal("mysql"),host:wr(),port:kr(3306),database:_o(),username:vr(),password:xr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),dg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Je.of({label:"Database Path"}))}).describe(Je.of({direction:"two-columns"})),ug=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:ag()}).describe(Je.of({direction:"two-columns"})),hg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Je.of({label:"Database Name"})),token:sg()}).describe(Je.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Je.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Je.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Je.of({label:"Schema",optionRegex:".*snowflake.*"})),username:vr(),password:xr(),role:Ae.string().optional().describe(Je.of({label:"Role"}))}).describe(Je.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Je.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Je.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Je.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Je.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("clickhouse_connect"),host:wr(),port:kr(8123).optional(),username:vr(),password:xr(),secure:Ae.boolean().default(!1).describe(Je.of({label:"Use HTTPs"}))}).describe(Je.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("timeplus"),host:wr().default("localhost"),port:kr(8123).optional(),username:vr().default("default"),password:xr().default("")}).describe(Je.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:ag()}).describe(Je.of({direction:"two-columns"})),bg=Ae.object({type:Ae.literal("trino"),host:wr(),port:kr(8080),database:_o(),schema:Ae.string().describe(Je.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:vr(),password:xr(),async_support:Ae.boolean().default(!1).describe(Je.of({label:"Async Support"}))}).describe(Je.of({direction:"two-columns"})),yg=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Je.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:Da(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:sg()}),Ae.object({type:Ae.literal("SQL"),warehouse:Da(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:Da(),uri:ig()}),Ae.object({type:Ae.literal("Glue"),warehouse:Da(),uri:ig()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Je.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Je.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Je.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Je.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Je.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Je.of({special:"tabs"}))}),xg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Je.of({label:"Use Session Context"}))}),wg=Ae.object({type:Ae.literal("pyspark"),host:wr().optional(),port:kr().optional()}),vg=Ae.object({type:Ae.literal("redshift"),host:wr(),port:kr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Je.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Je.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Je.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Je.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:vr(),password:xr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Je.of({direction:"two-columns"})),tC=Ae.discriminatedUnion("type",[lg,cg,dg,ug,hg,fg,mg,pg,gg,_g,bg,yg,xg,wg,vg]),fd="env:";function Ra(t){return typeof t=="string"&&t.startsWith(fd)}function md(t){return`${fd}${t}`}const kg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{constructor(e,n,o){this.connection=void 0,this.orm=void 0,this.secrets=void 0,this.connection=e,this.orm=n,this.secrets=o}get imports(){const e=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":e.add("import sqlalchemy");break;case"sqlmodel":e.add("import sqlmodel");break;case"duckdb":e.add("import duckdb")}return e}}class nC{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Ra(n)){const r=n.replace(fd,""),s=o?`os.environ.get("${r}", "${o}")`:`os.environ.get("${r}")`;return this.secrets[e]=s,e}if(o!=null){const r=`os.environ.get("${n}", "${o}")`;return this.secrets[e]=r,e}return typeof n=="number"||typeof n=="number"?`${n}`:typeof n=="boolean"?Ur(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Ur(n);const r=this.print(e,n,o);return r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):`{${r}}`}printPassword(e,n,o){const r=o?this.printInFString.bind(this):this.print.bind(this);return Ra(e)?r("password",e):r("password",n,e)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([e,n])=>`${e} = ${n}`).join(`
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-fC96q6kX.js","./index-CNf099oP.js","./index-4v1-JkQF.css","./compile-Cy--pw_w.js","./time-SdDHpgFE.js","./timer-DFzT7np-.js","./linear-C3K_catQ.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./panels-CZwW1Bfb.js","./index-CDZpqLcS.js","./index-C5z9w9IC.js","./index-YXkxUEQg.js","./index-D2pgOx78.js","./index-BAf07p45.js","./index-DR7SMDML.js","./index-DAwRoOnr.js","./index-BQG1kyOa.js","./index-COVmIxVW.js","./index-D4lX6WOv.js","./index-CgF_B7vt.js","./index-DjRR0PIf.js","./index-Bto6WZu4.js","./apl-CXdQSnD-.js","./asciiarmor-D5V0T9Cu.js","./asterisk-B46aRdXb.js","./brainfuck-CtZaYBKt.js","./clike-BgBwzOhw.js","./cmake-DXn5xaP-.js","./cobol-stawOqaz.js","./coffeescript-BTDxI-eT.js","./commonlisp-vq6DHwts.js","./crystal-CRzZ78HM.js","./cypher-gJDei3ni.js","./d-BShv7fp-.js","./diff-UJJ5BM9S.js","./dockerfile-knGOOxt4.js","./simple-mode-C3vEBAcb.js","./dtd-DI9Herc-.js","./dylan-CHJ5qNM_.js","./ebnf-B-Df8AvO.js","./ecl-DPFc0Uaf.js","./eiffel-DR5c0IrL.js","./elm-D7xaZ7Da.js","./erlang-BuqgqA5h.js","./factor-CFXhaUWb.js","./fcl-CVaBTCzQ.js","./forth-Dri_5nFc.js","./fortran-DL7KluxX.js","./gas-5kEe4nk0.js","./gherkin-B6X1vGSW.js","./groovy-DnIzCrpZ.js","./haskell-CmdsSjFB.js","./haxe-D25e-2l-.js","./http-BKJkqRj4.js","./idl-pcmmZuaN.js","./jinja2-DhgKlfW7.js","./julia-DjdwvFuI.js","./livescript-HO6ttBFx.js","./lua-8DXOpKDz.js","./mathematica-IIbmv7SK.js","./mbox-z_N2Mo3d.js","./mirc-DkvFAiy5.js","./modelica-DSrSSXCg.js","./mscgen-B2igx18G.js","./mumps-zvxmGV4l.js","./nginx-B4hAVlXN.js","./nsis-BvKfQ9lQ.js","./ntriples-FFvkTduk.js","./octave-C4hdQ5Hf.js","./oz-qQq7irPq.js","./pascal-CafrKXZF.js","./perl-tdMlh9QA.js","./pig-CwGJVRC4.js","./powershell-D1ly3AHC.js","./properties-_nPj978X.js","./protobuf-B4y9do6W.js","./puppet-Bc-yJKzi.js","./q-B0kTJ4cI.js","./r-BA4EbLKE.js","./ruby-CR-u2WLS.js","./sas-Bqaci40L.js","./scheme-qjP0V5Ag.js","./shell-BLav31RL.js","./sieve-r025o_jW.js","./smalltalk-C7J3IyEP.js","./solr-78MBEUkU.js","./sparql-BRLJFz69.js","./spreadsheet-CGlWr0eM.js","./stylus-OdhglgkO.js","./swift-B_XXVlXX.js","./tcl-B2fODqDH.js","./textile-BuVhTOzU.js","./tiddlywiki-BgR6AEZu.js","./tiki-CI-ztowC.js","./toml-BQXy8elZ.js","./troff-Ce85hlLp.js","./ttcn-BxnYHtq8.js","./turtle-BkSuIpt-.js","./vb-BHgjm0DN.js","./vbscript-Dawdd5GZ.js","./velocity-BdD_26Jv.js","./verilog-B4LBqg_1.js","./vhdl-CWWH2SUo.js","./webidl-CGwyPRYs.js","./xquery-CVDBqZPY.js","./yacas-I8QjZlxf.js","./z80-D8p3gKXp.js","./panels-DcAzAz16.css","./tree-agTB8sa3.js","./index-D1SXFm6O.js","./tree-C1rhMrxo.css","./circle-play-p8Sj7AdH.js","./_createAggregator-Chjh3Q_B.js","./_baseEach-DMClerTq.js","./transform-Cyp0GDF-.js","./sortBy-DPKLLWQt.js","./_baseMap-CD9hnB3A.js","./terminal-DDRrFKFT.js","./terminal-WqMRJt5Z.css"])))=>i.map(i=>d[i]);
|
2
|
+
var CF=Object.defineProperty;var y3=zt=>{throw TypeError(zt)};var NF=(zt,It,pn)=>It in zt?CF(zt,It,{enumerable:!0,configurable:!0,writable:!0,value:pn}):zt[It]=pn;var ee=(zt,It,pn)=>NF(zt,typeof It!="symbol"?It+"":It,pn),jF=(zt,It,pn)=>It.has(zt)||y3("Cannot "+pn);var x3=(zt,It,pn)=>(jF(zt,It,"read from private field"),pn?pn.call(zt):It.get(zt)),w3=(zt,It,pn)=>It.has(zt)?y3("Cannot add the same private member more than once"):It instanceof WeakSet?It.add(zt):It.set(zt,pn);import{u as Fe,Q as A,i9 as EF,ia as IF,ib as v3,ic as AF,id as TF,ie as MF,R as K,ig as OF,ih as Or,ii as DF,ij as Zf,ik as k3,il as RF,im as PF,io as S3,ip as rc,c as X,as as Un,iq as Qf,j as h,du as em,dv as C3,dw as LF,dy as tm,dA as nm,f8 as sc,ir as om,ds as rm,dt as sm,dx as im,is as FF,it as N3,ei as j3,bp as et,a8 as Ft,iu as zF,dW as fo,iv as E3,iw as I3,ix as am,iy as A3,iz as BF,L as Zt,_ as Qt,aF as T3,cE as lm,W as Pe,iA as UF,ej as dt,iB as M3,en as ic,iC as VF,ao as lt,iD as ac,Z as We,a_ as Vn,a0 as en,iE as lc,iF as Ms,e6 as Os,iG as $F,iH as Zi,iI as HF,eg as WF,iJ as O3,iK as D3,dO as qF,a7 as cm,iL as lr,iM as Dr,aJ as cc,aL as cr,iN as GF,iO as dc,iP as R3,a5 as Qi,eF as P3,a6 as uc,iQ as YF,an as yn,iR as dm,iS as Rr,aj as dr,ak as Ds,al as ur,bg as Pr,U as Fo,e7 as Rs,gn as L3,fP as Ps,gq as JF,b2 as fn,iT as KF,iU as XF,fN as um,aI as hc,iV as hm,iW as ZF,iX as F3,iY as fm,iZ as QF,i_ as ez,i$ as mo,j0 as z3,fT as mm,j1 as ea,j2 as fc,e1 as tz,ae as Zn,am as Ls,be as hr,j3 as ta,bt as $n,ap as Fs,a4 as Le,f5 as po,b7 as B3,eq as xt,j4 as nz,eS as oz,dB as mc,j5 as pc,aN as pm,j6 as rz,ep as gm,ed as zs,j7 as sz,j8 as _m,bj as jn,j9 as iz,dU as Ae,ja as Je,jb as bm,jc as Ct,jd as U3,je as az,fu as ym,aE as En,aT as Hn,ga as V3,gb as $3,gc as lz,gg as cz,gd as H3,V as Oe,dN as dz,aG as gc,aR as _c,aH as bc,aO as sn,eh as zo,jf as uz,ge as W3,jg as hz,g5 as q3,g7 as G3,jh as Bs,ji as Y3,jj as fz,jk as mz,ai as pz,ah as gz,ec as na,af as xm,jl as oa,jm as yc,jn as _z,jo as bz,jp as J3,jq as mn,fS as K3,dP as xc,ba as yz,jr as xz,ar as wm,aK as wz,js as vz,gr as X3,b6 as wc,jt as vm,aq as ra,e2 as Z3,ju as kz,ag as Sz,jv as Q3,jw as Cz,jx as Nz,jy as jz,jz as Ez,jA as Iz,jB as Az,dq as Bo,jC as vc,jD as Us,o as Uo,n as st,fx as Qn,jE as In,jF as ut,jG as Vs,jH as Vt,fO as Gt,jI as km,dT as go,jJ as Tz,jK as Mz,b4 as e4,b5 as t4,jL as n4,jM as Oz,gu as $s,jN as kc,b1 as Sc,gt as Lr,jO as o4,jP as sa,ek as Sm,jQ as Dz,jR as Rz,jS as Pz,jT as Lz,jU as r4,jV as Fz,jW as s4,jX as i4,jY as zz,jZ as a4,j_ as l4,el as Cc,j$ as Bz,bq as Uz,k0 as Vz,fw as Wn,k1 as $z,k2 as Hz,k3 as Hs,k4 as Nc,k5 as Ws,fH as Vo,k6 as Cm,k7 as ia,k8 as aa,k9 as la,ka as Wz,fn as jc,kb as Nm,kc as c4,kd as Ec,eR as qz,fo as Gz,r as Yz,ke as Jz,kf as Kz,kg as d4,t as D,kh as Xz,ki as Zz,kj as jm,f_ as ca,kk as u4,fA as Qz,fs as h4,co as f4,kl as m4,km as eB,kn as tB,ko as nB,kp as oB,kq as rB,kr as sB,ks as iB,kt as aB,ku as lB,kv as cB,kw as dB,kx as uB,ky as hB,kz as fB,kA as mB,kB as pB,kC as gB,kD as _B,kE as bB,kF as yB,kG as da,kH as xB,kI as wB,kJ as vB,kK as kB,kL as SB,kM as CB,kN as p4,kO as NB,kP as jB,kQ as EB,kR as g4,kS as IB,kT as AB,kU as _4,kV as TB,kW as qs,kX as qn,kY as MB,kZ as OB,k_ as DB,k$ as RB,l0 as PB,l1 as LB,l2 as FB,l3 as zB,l4 as BB,l5 as UB,l6 as fr,l7 as VB,l8 as $B,l9 as HB,la as WB,er as qB,lb as GB,lc as b4,ev as YB,ld as Ic,le as JB,lf as KB,lg as XB,lh as ZB,X as Fr,li as Ac,eu as QB,lj as Em,lk as Tc,ll as ua,lm as ha,ln as Mc,lo as mr,lp as y4,lq as $o,lr as Gs,ls as Im,lt as fa,lu as Ys,lv as Am,lw as Tm,lx as x4,ly as Oc,lz as eU,S as ma,lA as pa,lB as tU,eQ as Dc,lC as nU,lD as Mm,lE as oU,lF as rU,lG as Rc,lH as sU,lI as iU,lJ as w4,lK as Om,gs as Js,lL as aU,lM as lU,lN as cU,lO as dU,fF as uU,bd as hU,gv as Et,lP as ga,lQ as Ks,lR as fU,lS as mU,lT as Dm,lU as pU,cn as Rm,lV as gU,b3 as v4,lW as _U,lX as bU,lY as Pc,lZ as k4,eK as Pm,bf as S4,$ as Lm,l_ as C4,l$ as yU,m0 as xU,m1 as Fm,m2 as zm,m3 as wU,m4 as N4,m5 as j4,m6 as _a,fr as vU,ab as E4,e4 as kU,m7 as I4,m8 as SU,m9 as CU,ma as A4,mb as NU,mc as jU,md as T4,me as M4,mf as EU,bh as O4,mg as IU,mh as Bm,eb as AU,mi as Ho,dL as D4,mj as R4,ef as P4,fh as Um,mk as Vm,ml as L4,bv as $m,dM as Lc,mm as F4,mn as TU,mo as MU,mp as OU,bc as Fc,mq as z4,fa as Hm,g6 as DU,g8 as RU,gf as Wm,gi as PU,mr as LU,ms as qm,mt as FU,mu as zU,mv as BU,mw as UU,mx as VU,my as $U,mz as HU,mA as WU,a9 as qU,mB as zc,aa as GU,mC as B4,mD as YU,f6 as JU,mE as U4,a$ as eo,fl as KU,dD as XU,mF as ZU,mG as V4,mH as QU,eP as eV,mI as tV,mJ as nV,e5 as oV,mK as rV,mL as sV,a2 as Bc,mM as iV,a3 as pr,dG as $4,mN as Gm,mO as aV,eo as H4,mP as lV,mQ as W4,mR as cV,mS as dV,mT as uV,mU as hV,mV as fV,mW as mV,mX as q4,g1 as Ym,f$ as Jm,fW as Xs,g0 as zr,mY as G4,g2 as Km,fX as Br,dX as pV,mZ as Xm,m_ as gV,a1 as _V,m$ as bV,fG as Y4,E as Zs,n0 as yV,n1 as xV,n2 as wV,n3 as vV,n4 as ba,n5 as kV,n6 as SV,n7 as CV,n8 as NV,n9 as jV,na as J4,nb as EV,fv as IV,nc as AV,nd as TV,ne as MV,nf as OV,gh as DV,ng as RV,nh as K4,ni as PV,nj as LV,nk as X4,nl as Z4,nm as Q4,f4 as eS,nn as FV,no as zV,np as tS,nq as nS,nr as Uc,ns as oS,nt as BV,nu as rS,nv as UV,nw as VV,nx as sS,ny as $V,nz as HV,nA as WV,C as iS,nB as qV,nC as GV,nD as YV,nE as gr,nF as aS,dV as JV,fY as KV,nG as lS,fZ as cS,nH as XV,nI as Qs,nJ as ZV,nK as Vc,nL as QV,nM as e$,y as dS,nN as t$,dj as n$,nO as o$,nP as r$,nQ as s$,nR as i$,nS as a$,eX as l$,b0 as c$,aZ as d$,at as $c,nT as uS,nU as hS,av as fS,au as u$,e9 as h$,__tla as f$}from"./index-CNf099oP.js";import{G as m$,L as mS,g as p$,b as ya,A as g$,s as _$,k as b$,B as pS,a as y$,M as x$,Y as w$,c as xn,u as xa,C as v$,S as k$,K as S$,d as C$,i as N$,e as gS,f as j$,h as E$,j as I$,l as wa,P as Zm,m as _S,n as A$,o as T$,p as Qm,T as M$}from"./tree-agTB8sa3.js";import{d as bS,e as yS,L as xS,f as ei,I as ep,g as O$,h as wS,N as vS,V as kS,S as SS,F as CS,i as NS,M as D$,l as jS,j as R$,E as ES,k as P$,m as tp,n as L$,o as F$,p as z$,q as B$,s as U$,t as V$,v as $$,w as H$,x as W$,a as q$,C as G$,R as IS,b as Y$,A as J$,y as K$,z as X$,O as Z$,T as Q$,B as eH,D as tH,c as nH,P as oH,__tla as rH}from"./panels-CZwW1Bfb.js";import{c as sH}from"./_createAggregator-Chjh3Q_B.js";import{s as to,i as _r,T as np,a as op}from"./transform-Cyp0GDF-.js";import{g as AS}from"./timer-DFzT7np-.js";import{i as iH}from"./zoom-COrs4lFh.js";import{s as va}from"./sortBy-DPKLLWQt.js";let rp,Hc,An,Wc,TS,ka,sp,aH=Promise.all([(()=>{try{return f$}catch{}})(),(()=>{try{return rH}catch{}})()]).then(async()=>{var tc,b3;var zt=sH(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let It,pn,ip,qc,ti,ni,ap,lp,cp,dp,Sa,Gc,up,Ca,hp,Yc,fp,mp,Jc,pp,gp,_p,Na,bp,Kc,yp,xp,wp,vp,kp,Sp,Xc,Cp,Zc,Np,jp,Ep,Ip,Ap,ja,Tp,Mp,Qc,Op,Dp,Rp,ed,Pp,Lp,Fp,Ea,td,nd,zp,Bp,Up,Vp,$p,Hp,Wp,qp,Gp,od,rd,Yp,Jp,Kp,Ia,br,yr;It=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),pn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),ip=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),qc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ti=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ni=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),ap=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),lp=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),Wc=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),cp=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),dp=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Sa=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),Gc=Fe("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),up=Fe("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),Ca=Fe("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),hp=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Yc=Fe("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),fp=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),mp=Fe("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Jc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),pp=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),gp=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),_p=Fe("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Na=Fe("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),bp=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Kc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),yp=Fe("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),xp=Fe("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),wp=Fe("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),vp=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),kp=Fe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),Sp=Fe("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),Xc=Fe("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),Cp=Fe("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Zc=Fe("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),Np=Fe("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),jp=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Ep=Fe("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),Ip=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Ap=Fe("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),ja=Fe("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Tp=Fe("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),Mp=Fe("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Qc=Fe("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Op=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Dp=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),Rp=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),ed=Fe("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Pp=Fe("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Lp=Fe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Fp=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),Ea=Fe("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),td=Fe("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),nd=Fe("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),zp=Fe("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Bp=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Up=Fe("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),Vp=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),$p=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Hp=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Wp=Fe("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),qp=Fe("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),Gp=Fe("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),od=Fe("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),rd=Fe("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),Yp=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Jp=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),Kp=Fe("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Ia=Fe("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),br=Fe("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),yr=Fe("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);const MS=A.createContext({}),OS=A.forwardRef(function(t,e){[t,e]=TF(t,e,MS);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);EF(()=>{var p;u(!(!i.current||!(!((p=i.current.parentElement)===null||p===void 0)&&p.closest('[role="toolbar"]'))))});const{direction:f}=IF(),m=f==="rtl"&&c==="horizontal";let _=AF(i);const g=A.useRef(null);return{toolbarProps:{...v3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:p=>{if(p.currentTarget.contains(p.target)){if(c==="horizontal"&&p.key==="ArrowRight"||c==="vertical"&&p.key==="ArrowDown")m?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&p.key==="ArrowLeft"||c==="vertical"&&p.key==="ArrowUp"))return p.key==="Tab"?(p.stopPropagation(),g.current=document.activeElement,void(p.shiftKey?_.focusFirst():_.focusLast())):void 0;m?_.focusNext():_.focusPrevious()}p.stopPropagation(),p.preventDefault()}},onFocusCapture:d?void 0:p=>{var b,x;g.current&&!p.currentTarget.contains(p.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(p.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:p=>{p.currentTarget.contains(p.relatedTarget)||g.current||(g.current=p.target)}}}}(t,e),o=MF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=v3(t);return delete r.id,K.createElement("div",{...OF(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Aa(t,e){const n=+Or(t)-+Or(e);return n<0?-1:n>0?1:n}function DS(t,e){const n=Or(t,e==null?void 0:e.in);return+function(o,r){const s=Or(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Or(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function RS(t,e,n){const[o,r,s]=Zf(n==null?void 0:n.in,t,t,e),i=Aa(r,s),a=Math.abs(function(d,u,f){const[m,_]=Zf(f==null?void 0:f.in,d,u);return 12*(m.getFullYear()-_.getFullYear())+(m.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Aa(r,s)===-i;DS(o)&&a===1&&Aa(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function PS(t,e,n){const o=function(r,s){return+Or(r)-+Or(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function LS(t,e){return function(n,o,r){const s=RF(),i=(r==null?void 0:r.locale)??s.locale??PF,a=Aa(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Zf(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=PS(d,c),f=(k3(d)-k3(c))/1e3,m=Math.round((u-f)/60);let _;if(m<2)return m===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",m,l);if(m<45)return i.formatDistance("xMinutes",m,l);if(m<90)return i.formatDistance("aboutXHours",1,l);if(m<S3){const g=Math.round(m/60);return i.formatDistance("aboutXHours",g,l)}if(m<2520)return i.formatDistance("xDays",1,l);if(m<rc){const g=Math.round(m/S3);return i.formatDistance("xDays",g,l)}if(m<2*rc)return _=Math.round(m/rc),i.formatDistance("aboutXMonths",_,l);if(_=RS(d,c),_<12){const g=Math.round(m/rc);return i.formatDistance("xMonths",g,l)}{const g=_%12,p=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",p,l):g<9?i.formatDistance("overXYears",p,l):i.formatDistance("almostXYears",p+1,l)}}(t,function(n){return DF(n,Date.now())}(t),e)}const FS=()=>{const t=X.c(7),{selectedLayout:e}=bS(),{setLayoutView:n}=yS();if(Un()&&!Qf("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(rm,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(sm,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(em,{children:h.jsxs(C3,{children:[h.jsx(LF,{children:"View as"}),xS.map(BS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(im,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function zS(t){const e=Xp(t);return h.jsx(e,{className:"h-4 w-4"})}function Xp(t){switch(t){case"vertical":return Np;case"grid":return m$;case"slides":return ed;default:return sc(t),om}}function Zp(t){return nm(t)}function BS(t){return h.jsx(tm,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[zS(t),h.jsx("span",{children:Zp(t)})]})},t)}function US(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new FF(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,m]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{m(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let p;return l[8]!==g||l[9]!==f?(p=[f,g],l[8]=g,l[9]=f,l[10]=p):p=l[10],p}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function Qp(t){return t.dropdown!==void 0}function Ta(t,e=""){return t.flatMap(n=>n.label?Qp(n)?Ta(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const oi=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function sd(t){const e=X.c(3),n=id();let o;return e[0]!==t||e[1]!==n?(o=()=>{t!==void 0&&n([t])},e[0]=t,e[1]=n,e[2]=o):o=e[2],et(o)}function eg(){const t=X.c(2),e=id();let n;return t[0]!==e?(n=()=>e(E3(fo())),t[0]=e,t[1]=n):n=t[1],et(n)}function id(){const t=X.c(2),{prepareForRun:e}=Ft();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=fo(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(I3(d)!=="markdown"&&am(d),u=A3(d)):u=s[l].code,i.push(u),e({cellId:l})}await BF({cellIds:o,codes:i}).catch(VS)},t[0]=e,t[1]=n):n=t[1],et(n)}function VS(t){Zt.error(t)}const Ma=Qt(null),$S=Qt(!1),ad=T3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),HS=Qt(t=>{const e=t(ad);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(ad,o=>({...o,activeChatId:n}))}),ld=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],lm(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(UF,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function cd(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(dt.get(M3))return;const{cellId:s}=r,i=dt.get(ic),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),VF({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=lt({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(ld,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function tg(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Ft();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=ac(r.cellId);if(!s)return;const i=A3(s);e(r);const{dismiss:a}=lt({title:"Cell split",action:h.jsx(ld,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function dd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Ft(),u=tg(),f=sd(n==null?void 0:n.cellId),m=!We(M3),_=cd(),{openModal:g}=Vn(),p=en(Ma),b=We(lc),x=We(Ms),y=We(Os),v=We($F);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:E,name:j,hasOutput:I,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Rr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==E||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Rr({configs:{[S]:N}}),r({cellId:S,config:N});const H=E();H&&(N.hide_code?H.contentDOM.blur():H.focus())},e[5]=S,e[6]=k.hide_code,e[7]=E,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,P,C,$;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Gp,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(dr,{children:[h.jsx(Ds,{children:h.jsx(ur,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Pr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(vS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(P=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=P):P=e[18],e[19]!==j||e[20]!==P?(C=h.jsx(vS,{placeholder:"cell name",value:j,onChange:P}),e[19]=j,e[20]=P,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==m||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==E||e[34]!==T||e[35]!==I||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==p||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?($=[[{icon:F,label:"Name",disableClick:!0,handle:YS,handleHeadless:V,rightElement:C},{icon:h.jsx(ei,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(Zi,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{p(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(td,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(ep,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!I,handle:()=>function(N){const H=document.getElementById(N3.create(N));H&&(H.classList.add("printing-output"),j3(H,"result.png").finally(()=>{H.classList.remove("printing-output")}))}(S)},{icon:h.jsx(WF,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=E();N&&HF({[S]:N})}},{icon:k.hide_code?h.jsx(O3,{size:13,strokeWidth:1.5}):h.jsx(D3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(br,{size:13,strokeWidth:1.5}):h.jsx(yr,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(qF,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(cm,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(I||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(cc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=E();N&&(lr(x,o),Dr(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(cr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=E();N&&(lr(x,o),Dr(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(dc,{}),label:"Toggle as Python",handle:()=>{const N=E();N&&(lr(x,o),GF(N,"python",{force:!0}))}}],[{icon:h.jsxs(oi,{children:[h.jsx(Sa,{size:13,strokeWidth:1.5}),h.jsx(R3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(oi,{children:[h.jsx(Sa,{size:13,strokeWidth:1.5}),h.jsx(Qi,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(R3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(Qi,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(P3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(uc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(lp,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(ap,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx(YF,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(mS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!wS(j),tooltip:wS(j)?void 0:"Only named cells can be linked to",handle:async()=>{await yn(O$(j)),lt({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!m,variant:"danger",icon:h.jsx(dm,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(qS).filter(WS),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=m,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=E,e[34]=T,e[35]=I,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=p,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=$):$=e[48],$}function WS(t){return t.length>0}function qS(t){return t.filter(GS)}function GS(t){return!t.hidden}function YS(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function JS(t){return!t.hidden}const ud=Qt(!1),ng=()=>{const t=X.c(37),[e,n]=fn(ud),o=KF(),r=We(XF),s=We(um);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=dd(i).flat();a=Ta(a);const l=function(){const P=X.c(45),{theme:C}=Fo(),[$,N]=Rs(),[H,Y]=L3();let Z;P[0]!==N?(Z=async ce=>{await Ps({config:ce}).then(()=>{N(ce)})},P[0]=N,P[1]=Z):Z=P[1];const q=Z;let re;P[2]!==Y?(re=async ce=>{await JF({config:ce}).then(()=>{Y(ce)})},P[2]=Y,P[3]=re):re=P[3];const ne=re;let oe;if(P[4]!==H||P[5]!==$||P[6]!==ne||P[7]!==q||P[8]!==C){let ce,me,de;P[10]!==H?(ce=Ke=>Ke!==H.width,P[10]=H,P[11]=ce):ce=P[11],P[12]!==H||P[13]!==ne?(me=Ke=>({label:`App config > Set width=${Ke}`,handle:()=>{ne({...H,width:Ke})}}),P[12]=H,P[13]=ne,P[14]=me):me=P[14],P[15]!==$||P[16]!==q||P[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...$,display:{...$.display,theme:C==="dark"?"light":"dark"}})}},P[15]=$,P[16]=q,P[17]=C,P[18]=de):de=P[18];const ge=$.keymap.preset==="vim";let ie,xe;P[19]!==$||P[20]!==q?(ie=()=>{q({...$,keymap:{...$.keymap,preset:"vim"}})},P[19]=$,P[20]=q,P[21]=ie):ie=P[21],P[22]!==ge||P[23]!==ie?(xe={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},P[22]=ge,P[23]=ie,P[24]=xe):xe=P[24];const we=$.keymap.preset==="default";let ae,Se,pe;P[25]!==$||P[26]!==q?(ae=()=>{q({...$,keymap:{...$.keymap,preset:"default"}})},P[25]=$,P[26]=q,P[27]=ae):ae=P[27],P[28]!==ae||P[29]!==we?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:we,handle:ae},P[28]=ae,P[29]=we,P[30]=Se):Se=P[30],P[31]!==$||P[32]!==q?(pe=()=>{q({...$,completion:{...$.completion,copilot:!1}})},P[31]=$,P[32]=q,P[33]=pe):pe=P[33];const Te=$.completion.copilot!=="github";let Re,He;P[34]!==pe||P[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:pe,hidden:Te},P[34]=pe,P[35]=Te,P[36]=Re):Re=P[36],P[37]!==$||P[38]!==q?(He=()=>{q({...$,completion:{...$.completion,copilot:"github"}})},P[37]=$,P[38]=q,P[39]=He):He=P[39];const ze=$.completion.copilot==="github";let Ne;P[40]!==He||P[41]!==ze?(Ne={label:"Config > Enable GitHub Copilot",handle:He,hidden:ze},P[40]=He,P[41]=ze,P[42]=Ne):Ne=P[42],oe=[...p$().filter(ce).map(me),de,xe,Se,Re,Ne],P[4]=H,P[5]=$,P[6]=ne,P[7]=q,P[8]=C,P[9]=oe}else oe=P[9];const G=oe;let Q;return P[43]!==G?(Q=G.filter(JS),P[43]=G,P[44]=Q):Q=P[44],Q}();let c=Tg();c=[...Ta(c),...Ta(l)];const d=c.filter(KS),u=hc.keyBy(d,XS),{recentCommands:f,addRecentCommand:m}=US();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let p,b;t[4]!==s||t[5]!==n?(p=P=>{ez(s.getHotkey("global.commandPalette").key)(P)&&(P.preventDefault(),n(ZS))},t[4]=s,t[5]=n,t[6]=p):p=t[6],lm(document,"keydown",p),t[7]!==m||t[8]!==s||t[9]!==o||t[10]!==n?(b=(P,C)=>{const $=o[P];if(!$)return null;const N=s.getHotkey(P);return h.jsxs(mo,{disabled:C.disabled,onSelect:()=>{m(P),n(!1),requestAnimationFrame(()=>{$()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(z3,{children:h.jsx(mm,{shortcut:N.key})})]},P)},t[7]=m,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==m||t[13]!==s||t[14]!==n?(y=(P,C,$,N)=>{const H=$===void 0?{}:$;return h.jsxs(mo,{disabled:H.disabled,onSelect:()=>{m(P),n(!1),requestAnimationFrame(()=>{C()})},value:P,children:[h.jsxs("span",{children:[P,H.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",H.tooltip,")"]})]}),N&&h.jsx(z3,{children:h.jsx(mm,{shortcut:s.getHotkey(N).key})})]},P)},t[12]=m,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=QF;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ea,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const E=fm;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(fc,{children:"No results found."}),t[17]=j):j=t[17];const I=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(hm,{heading:"Recently Used",children:f.map(P=>{const C=u[P];return ZF(P)?x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!Qp(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(F3,{})]}),T=hm,M=s.iterate().map(P=>{if(g.has(P))return null;const C=u[P];return x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(P=>g.has(P.label)?null:v(P.label,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}));let B;t[18]!==g||t[19]!==v?(B=P=>g.has(P.label)?null:v(`Cell > ${P.label}`,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==E||t[27]!==z||t[28]!==j||t[29]!==I?(F=h.jsxs(E,{children:[j,I,z]}),t[26]=E,t[27]=z,t[28]=j,t[29]=I,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function KS(t){return!t.hotkey}function XS(t){return t.label}function ZS(t){return!t}const Oa="https://static.marimo.app",QS=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Oa}/static/${i}`;let l,c,d,u,f,m,_,g,p,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await tz({download:!1,includeCode:!0,files:kS.INSTANCE.filenames()}),S=lt({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Oa}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),lt({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:Zn.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),lt({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(ur,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Ds,{children:[c,h.jsxs(Ls,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",h.jsx("a",{href:Oa,target:"_blank",children:Oa}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(hr,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(m=h.jsxs("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(eC,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=m):m=e[9],e[10]!==f||e[11]!==m?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,m]}),e[10]=f,e[11]=m,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(p=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await yn(a)},children:"Create"}),e[15]=a,e[16]=p):p=e[16],e[17]!==p||e[18]!==g?(b=h.jsxs(ta,{children:[g,p]}),e[17]=p,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(dr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},eC=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=$n.stopPropagation(async c=>{c.preventDefault(),await yn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(Fs,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function og(){const t=X.c(3),{openConfirm:e}=Vn(),n=en(po);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(B3,{onClick:async()=>{n({state:xt.CLOSING}),await nz(),oz()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const hd=[{type:"files",Icon:yp,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:mc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:cr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:ja,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:ya,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:nd,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:pc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:od,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:pm,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:g$,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:Up,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:Sp,tooltip:"Secrets",hidden:Un(),position:"sidebar"},{type:"scratchpad",Icon:rz,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:cm,tooltip:"View errors",position:"footer"}];function rg(){const t=X.c(2),e=en(gm);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=zs.parse(i.parentNode.id);break}}e(i=>({mode:sz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(zs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function xr(){return Ae.string().optional().describe(Je.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function sg(){return Ae.string().optional().describe(Je.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function Da(){return Ae.string().optional().describe(Je.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function ig(){return Ae.string().optional().describe(Je.of({label:"URI",optionRegex:".*uri.*"}))}function wr(){return Ae.string().nonempty().describe(Je.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Je.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function vr(){return Ae.string().nonempty().describe(Je.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function kr(t){const e=Ae.coerce.string().describe(Je.of({label:"Port",inputType:"number",placeholder:t==null?void 0:t.toString()})).transform(Number).refine(n=>n>=0&&n<=65535,{message:"Port must be between 0 and 65535"});return t!==void 0?e.default(t.toString()):e}function ag(){return Ae.boolean().default(!1).describe(Je.of({label:"Read Only"}))}const lg=Ae.object({type:Ae.literal("postgres"),host:wr(),port:kr(5432).optional(),database:_o(),username:vr(),password:xr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),cg=Ae.object({type:Ae.literal("mysql"),host:wr(),port:kr(3306),database:_o(),username:vr(),password:xr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),dg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Je.of({label:"Database Path"}))}).describe(Je.of({direction:"two-columns"})),ug=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:ag()}).describe(Je.of({direction:"two-columns"})),hg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Je.of({label:"Database Name"})),token:sg()}).describe(Je.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Je.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Je.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Je.of({label:"Schema",optionRegex:".*snowflake.*"})),username:vr(),password:xr(),role:Ae.string().optional().describe(Je.of({label:"Role"}))}).describe(Je.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Je.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Je.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Je.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Je.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("clickhouse_connect"),host:wr(),port:kr(8123).optional(),username:vr(),password:xr(),secure:Ae.boolean().default(!1).describe(Je.of({label:"Use HTTPs"}))}).describe(Je.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("timeplus"),host:wr().default("localhost"),port:kr(8123).optional(),username:vr().default("default"),password:xr().default("")}).describe(Je.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:ag()}).describe(Je.of({direction:"two-columns"})),bg=Ae.object({type:Ae.literal("trino"),host:wr(),port:kr(8080),database:_o(),schema:Ae.string().describe(Je.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:vr(),password:xr(),async_support:Ae.boolean().default(!1).describe(Je.of({label:"Async Support"}))}).describe(Je.of({direction:"two-columns"})),yg=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Je.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:Da(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:sg()}),Ae.object({type:Ae.literal("SQL"),warehouse:Da(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:Da(),uri:ig()}),Ae.object({type:Ae.literal("Glue"),warehouse:Da(),uri:ig()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Je.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Je.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Je.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Je.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Je.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Je.of({special:"tabs"}))}),xg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Je.of({label:"Use Session Context"}))}),wg=Ae.object({type:Ae.literal("pyspark"),host:wr().optional(),port:kr().optional()}),vg=Ae.object({type:Ae.literal("redshift"),host:wr(),port:kr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Je.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Je.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Je.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Je.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:vr(),password:xr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Je.of({direction:"two-columns"})),tC=Ae.discriminatedUnion("type",[lg,cg,dg,ug,hg,fg,mg,pg,gg,_g,bg,yg,xg,wg,vg]),fd="env:";function Ra(t){return typeof t=="string"&&t.startsWith(fd)}function md(t){return`${fd}${t}`}const kg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{constructor(e,n,o){this.connection=void 0,this.orm=void 0,this.secrets=void 0,this.connection=e,this.orm=n,this.secrets=o}get imports(){const e=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":e.add("import sqlalchemy");break;case"sqlmodel":e.add("import sqlmodel");break;case"duckdb":e.add("import duckdb")}return e}}class nC{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Ra(n)){const r=n.replace(fd,""),s=o?`os.environ.get("${r}", "${o}")`:`os.environ.get("${r}")`;return this.secrets[e]=s,e}if(o!=null){const r=`os.environ.get("${n}", "${o}")`;return this.secrets[e]=r,e}return typeof n=="number"||typeof n=="number"?`${n}`:typeof n=="boolean"?Ur(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Ur(n);const r=this.print(e,n,o);return r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):`{${r}}`}printPassword(e,n,o){const r=o?this.printInFString.bind(this):this.print.bind(this);return Ra(e)?r("password",e):r("password",n,e)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([e,n])=>`${e} = ${n}`).join(`
|
3
3
|
`)}}class oC extends an{generateImports(){return[]}generateConnectionCode(){const e=this.connection.ssl?", connect_args={'sslmode': 'require'}":"",n=this.secrets.printPassword(this.connection.password,"POSTGRES_PASSWORD",!0),o=this.secrets.printInFString("username",this.connection.username),r=this.secrets.printInFString("host",this.connection.host),s=this.secrets.printInFString("port",this.connection.port),i=this.secrets.printInFString("database",this.connection.database);return Ct(`
|
4
4
|
DATABASE_URL = f"postgresql://${o}:${n}@${r}:${s}/${i}"
|
5
5
|
engine = ${this.orm}.create_engine(DATABASE_URL${e})
|
@@ -141,4 +141,4 @@ ${t.stack}`:o}function ro(t,e){return t>>>=0,Qr().subarray(t/1,t/1+e)}function K
|
|
141
141
|
subprocess.run("${T}")`}:{language:"python",code:`_${I} = """
|
142
142
|
${T}
|
143
143
|
"""`}:{language:"python",code:T}}(o,l);o==="sql"&&lr(a,s,i),s({code:j.code,before:!1,cellId:i??"__end__"})},e[3]=a,e[4]=s,e[5]=o,e[6]=i,e[7]=l,e[8]=f):f=e[8];const m=f;let _;e[9]!==l?(_=async()=>{await yn(l)},e[9]=l,e[10]=_):_=e[10];const g=_,p=r==="dark"?"dark":"light",b=o&&YL.has(o)?o:void 0;let x,y,v,S,k,E;return e[11]!==p||e[12]!==b||e[13]!==l?(x=h.jsx(ba,{theme:p,language:b,className:"cm border rounded overflow-hidden",extensions:GL,value:l,onChange:c}),e[11]=p,e[12]=b,e[13]=l,e[14]=x):x=e[14],e[15]!==g?(y=h.jsx(KL,{size:"xs",variant:"outline",onClick:g,children:"Copy"}),e[15]=g,e[16]=y):y=e[16],e[17]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(ni,{className:"ml-2 h-4 w-4"}),e[17]=v):v=e[17],e[18]!==m?(S=h.jsxs(Pe,{size:"xs",variant:"outline",onClick:m,children:["Add to Notebook",v]}),e[18]=m,e[19]=S):S=e[19],e[20]!==S||e[21]!==y?(k=h.jsxs("div",{className:"flex justify-end mt-2 space-x-2",children:[y,S]}),e[20]=S,e[21]=y,e[22]=k):k=e[22],e[23]!==k||e[24]!==x?(E=h.jsxs("div",{className:"relative",children:[x,k]}),e[23]=k,e[24]=x,e[25]=E):E=e[25],E},KL=t=>{const e=X.c(12);let n,o;e[0]!==t?({onClick:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);const[r,s]=A.useState(!1);let i,a,l;e[3]!==r?(i=()=>{r&&setTimeout(()=>s(!1),1e3)},a=[r],e[3]=r,e[4]=i,e[5]=a):(i=e[4],a=e[5]),A.useEffect(i,a),e[6]!==n?(l=u=>{n==null||n(u),s(!0)},e[6]=n,e[7]=l):l=e[7];const c=r?"Copied":"Copy";let d;return e[8]!==o||e[9]!==l||e[10]!==c?(d=h.jsx(Pe,{...o,onClick:l,children:c}),e[8]=o,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},XL={code:({children:t,className:e})=>{const n=e==null?void 0:e.replace("language-","");return n&&typeof t=="string"?h.jsxs("div",{children:[h.jsx("div",{className:"text-xs text-muted-foreground pl-1",children:n}),h.jsx(JL,{code:t.trim(),language:n})]}):h.jsx("code",{className:e,children:t})}},m3=A.memo(t=>{const e=X.c(2),{content:n}=t;let o;return e[0]!==n?(o=h.jsx(WL,{components:XL,className:"prose dark:prose-invert max-w-none prose-pre:pl-0",children:n}),e[0]=n,e[1]=o):o=e[1],o},(t,e)=>t.content===e.content);m3.displayName="MemoizedMarkdownBlock";const Gf=A.memo(({content:t})=>{const e=A.useMemo(()=>{return n=t,n$.lexer(n).map(o=>o.raw);var n},[t]);return h.jsx(h.Fragment,{children:e.map((n,o)=>h.jsx(m3,{content:n},`markdown-block-${o}`))})});Gf.displayName="MarkdownRenderer";const Yf=(t,e,n,o,r)=>e?{...t,chats:t.chats.map(s=>s.id===e?{...s,messages:[...s.messages,{role:n,content:o,timestamp:Date.now(),parts:r}],updatedAt:Date.now()}:s)}:(Zt.warn("No active chat"),t),ZL=t=>{const e=X.c(13),{reasoning:n,index:o,isStreaming:r}=t,s=o===void 0?0:o,i=r!==void 0&&r,a=i?"reasoning":void 0;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=h.jsx(pc,{className:"h-3 w-3"}),e[0]=l):l=e[0];const c=i?"Thinking":"View reasoning";let d,u,f,m;return e[1]!==n.length||e[2]!==c?(d=h.jsx(o$,{className:"text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",children:h.jsxs("span",{className:"flex items-center gap-2",children:[l,c," (",n.length," ","chars)"]})}),e[1]=n.length,e[2]=c,e[3]=d):d=e[3],e[4]!==n?(u=h.jsx(r$,{className:"pb-2 px-2",children:h.jsx("div",{className:"bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",children:h.jsx("div",{className:"pr-6",children:h.jsx(Gf,{content:n})})})}),e[4]=n,e[5]=u):u=e[5],e[6]!==d||e[7]!==u?(f=h.jsxs(s$,{value:"reasoning",className:"border-0",children:[d,u]}),e[6]=d,e[7]=u,e[8]=f):f=e[8],e[9]!==s||e[10]!==a||e[11]!==f?(m=h.jsx(i$,{type:"single",collapsible:!0,className:"w-full mb-2",value:a,children:f},s),e[9]=s,e[10]=a,e[11]=f,e[12]=m):m=e[12],m},QL=t=>{var y;const e=X.c(27),{onNewChat:n,activeChatId:o,setActiveChat:r,chats:s}=t,i=We(U4),{handleClick:a}=wa(),l=((y=i==null?void 0:i.open_ai)==null?void 0:y.model)||"gpt-4-turbo";let c,d,u,f,m,_,g,p,b,x;if(e[0]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(Fr,{className:"h-4 w-4"}),e[0]=c):c=e[0],e[1]!==n?(d=h.jsx(Le,{content:"New chat",children:h.jsx(Pe,{variant:"text",size:"icon",onClick:n,children:c})}),e[1]=n,e[2]=d):d=e[2],e[3]!==a?(u=()=>a("ai"),e[3]=a,e[4]=u):u=e[4],e[5]!==l||e[6]!==u?(f=h.jsx(Pe,{variant:"text",size:"xs",className:"hover:bg-foreground/10 py-2",onClick:u,children:l}),e[5]=l,e[6]=u,e[7]=f):f=e[7],e[8]!==d||e[9]!==f?(m=h.jsxs("div",{className:"flex items-center gap-2",children:[d,f]}),e[8]=d,e[9]=f,e[10]=m):m=e[10],e[11]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx(Le,{content:"Previous chats",children:h.jsx(Js,{asChild:!0,children:h.jsx(Pe,{variant:"text",size:"icon",children:h.jsx(c$,{className:"h-4 w-4"})})})}),e[11]=_):_=e[11],e[12]!==s.length?(g=s.length===0&&h.jsx(An,{title:"No chats yet",description:"Start a new chat to get started",icon:h.jsx(pc,{})}),e[12]=s.length,e[13]=g):g=e[13],e[14]!==o||e[15]!==s||e[16]!==r){let v;e[18]!==o||e[19]!==r?(v=S=>h.jsxs("div",{className:Oe("p-3 rounded-md cursor-pointer hover:bg-accent",S.id===o&&"bg-accent"),onClick:()=>{r(S.id)},children:[h.jsx("div",{className:"font-medium",children:S.title}),h.jsx("div",{className:"text-sm text-muted-foreground",children:d$(S.updatedAt)})]},S.id),e[18]=o,e[19]=r,e[20]=v):v=e[20],p=s.map(v),e[14]=o,e[15]=s,e[16]=r,e[17]=p}else p=e[17];return e[21]!==g||e[22]!==p?(b=h.jsxs(Lr,{children:[_,h.jsx($s,{className:"w-[520px] p-0",align:"start",side:"right",children:h.jsx(ek,{className:"h-[500px] p-4",children:h.jsxs("div",{className:"space-y-4",children:[g,p]})})})]}),e[21]=g,e[22]=p,e[23]=b):b=e[23],e[24]!==m||e[25]!==b?(x=h.jsxs("div",{className:"flex border-b px-2 py-1 justify-between flex-shrink-0 items-center",children:[m,b]}),e[24]=m,e[25]=b,e[26]=x):x=e[26],x},p3=A.memo(t=>{var _;const e=X.c(17),{message:n,index:o,theme:r,onEdit:s,setChatState:i,chatState:a,isStreamingReasoning:l,totalMessages:c}=t,d=n.role==="user"?"justify-end":"justify-start";let u,f,m;return e[0]!==d?(u=Oe("flex group relative",d),e[0]=d,e[1]=u):u=e[1],e[2]!==a||e[3]!==o||e[4]!==l||e[5]!==n.content||e[6]!==n.id||e[7]!==n.parts||e[8]!==n.role||e[9]!==s||e[10]!==i||e[11]!==r||e[12]!==c?(f=n.role==="user"?h.jsx("div",{className:"w-[95%] bg-background border p-1 rounded-sm",children:h.jsx(Pc,{value:n.content,theme:r,placeholder:"Type your message...",onChange:nF,onSubmit:(g,p)=>{p.trim()&&(s(o,p),a.activeChatId&&i(b=>Yf(b,a.activeChatId,"user",p)))},onClose:oF},n.id)}):h.jsxs("div",{className:"w-[95%]",children:[h.jsx("div",{className:"absolute right-1 top-1 opacity-0 group-hover:opacity-100 transition-opacity",children:h.jsx(iS,{className:"h-3 w-3",value:n.content})}),(_=n.parts)==null?void 0:_.map((g,p)=>{switch(g.type){case"text":return h.jsx(Gf,{content:g.text});case"reasoning":return h.jsx(ZL,{reasoning:g.reasoning,index:p,isStreaming:o===c-1&&l});default:return null}})]}),e[2]=a,e[3]=o,e[4]=l,e[5]=n.content,e[6]=n.id,e[7]=n.parts,e[8]=n.role,e[9]=s,e[10]=i,e[11]=r,e[12]=c,e[13]=f):f=e[13],e[14]!==u||e[15]!==f?(m=h.jsx("div",{className:u,children:f}),e[14]=u,e[15]=f,e[16]=m):m=e[16],m});p3.displayName="ChatMessage";const g3=A.memo(t=>{var c,d;const e=X.c(8),{input:n,setInput:o,onSubmit:r,theme:s,inputRef:i}=t;let a,l;return e[0]!==((c=i.current)==null?void 0:c.editor)?(a=()=>{var u,f;return(f=(u=i.current)==null?void 0:u.editor)==null?void 0:f.blur()},e[0]=(d=i.current)==null?void 0:d.editor,e[1]=a):a=e[1],e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==a||e[6]!==s?(l=h.jsx("div",{className:"px-2 py-3 border-t relative flex-shrink-0 min-h-[80px]",children:h.jsx(Pc,{value:n,onChange:o,onSubmit:r,onClose:a,theme:s,placeholder:"Type your message..."})}),e[2]=n,e[3]=r,e[4]=o,e[5]=a,e[6]=s,e[7]=l):l=e[7],l});g3.displayName="ChatInput";const eF=()=>{const t=X.c(6),e=We(lc),{handleClick:n}=wa();if(!e){let r,s,i;return t[0]!==n?(r=h.jsx(Pe,{variant:"outline",size:"sm",onClick:()=>n("ai"),children:"Edit AI settings"}),t[0]=n,t[1]=r):r=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(pc,{}),t[2]=s):s=t[2],t[3]!==r?(i=h.jsx(An,{title:"Chat with AI",description:"AI is currently disabled. Add your API key to enable.",action:r,icon:s}),t[3]=r,t[4]=i):i=t[4],i}let o;return t[5]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(tF,{}),t[5]=o):o=t[5],o},tF=()=>{const t=X.c(86),[e,n]=fn(ad),[o,r]=fn(HS),[s,i]=A.useState(""),a=A.useRef(null),l=A.useRef(null),c=A.useRef(null),d=A.useRef(null),{theme:u}=Fo(),f=Rm(),m=o==null?void 0:o.id;let _,g,p,b,x,y;t[0]!==o?(g=o?o.messages.map(rF):[],t[0]=o,t[1]=g):g=t[1],_=g,t[2]!==f?(p=f.getAiURL("chat").toString(),t[2]=f,t[3]=p):p=t[3],t[4]!==f?(b=f.headers(),t[4]=f,t[5]=b):b=t[5],t[6]!==n?(x=ze=>{n(Ne=>Yf(Ne,Ne.activeChatId,"assistant",ze.content,ze.parts))},t[6]=n,t[7]=x):x=t[7],t[8]!==m||t[9]!==_||t[10]!==p||t[11]!==b||t[12]!==x?(y={id:m,initialMessages:_,keepLastMessageOnError:!0,experimental_throttle:100,api:p,headers:b,experimental_prepareRequestBody:iF,onFinish:x,onError:aF,onResponse:lF},t[8]=m,t[9]=_,t[10]=p,t[11]=b,t[12]=x,t[13]=y):y=t[13];const{messages:v,input:S,setInput:k,setMessages:E,append:j,handleSubmit:I,error:T,status:M,reload:L,stop:B}=a$(y),O=M==="submitted"||M==="streaming",z=cF,F=O&&v.length>0&&z(v);let V,P,C;t[14]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{requestAnimationFrame(()=>{if(c.current){const ze=c.current;ze.scrollTop=ze.scrollHeight}})},t[14]=V):V=t[14],t[15]!==e.activeChatId?(P=[e.activeChatId],t[15]=e.activeChatId,t[16]=P):P=t[16],A.useEffect(V,P),t[17]!==j||t[18]!==n||t[19]!==k?(C=ze=>{const Ne={id:l$(),title:`${ze.slice(0,30)}...`,messages:[{role:"user",content:ze,timestamp:Date.now()}],createdAt:Date.now(),updatedAt:Date.now()};n(Ke=>({chats:[...Ke.chats,Ne],activeChatId:Ne.id})),k(""),j({role:"user",content:ze})},t[17]=j,t[18]=n,t[19]=k,t[20]=C):C=t[20];const $=C;let N;t[21]!==r||t[22]!==k?(N=()=>{r(null),k(""),i("")},t[21]=r,t[22]=k,t[23]=N):N=t[23];const H=N;let Y;t[24]!==j||t[25]!==E?(Y=(ze,Ne)=>{E(Ke=>Ke.slice(0,ze)),j({role:"user",content:Ne})},t[24]=j,t[25]=E,t[26]=Y):Y=t[26];const Z=Y;let q;t[27]!==e.activeChatId||t[28]!==I||t[29]!==n?(q=(ze,Ne)=>{Ne.trim()&&(I(ze),e.activeChatId&&n(Ke=>Yf(Ke,e.activeChatId,"user",Ne)))},t[27]=e.activeChatId,t[28]=I,t[29]=n,t[30]=q):q=t[30];const re=q;let ne;t[31]!==L?(ne=()=>{L()},t[31]=L,t[32]=ne):ne=t[32];const oe=ne;let G;t[33]!==$||t[34]!==s?(G=()=>{s.trim()&&$(s.trim())},t[33]=$,t[34]=s,t[35]=G):G=t[35];const Q=G;let ce;t[36]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{var ze,Ne;return(Ne=(ze=a.current)==null?void 0:ze.editor)==null?void 0:Ne.blur()},t[36]=ce):ce=t[36];const me=ce,de=o==null?void 0:o.id;let ge,ie,xe,we,ae,Se,pe,Te,Re,He;if(t[37]!==e.chats||t[38]!==H||t[39]!==r||t[40]!==de?(ge=h.jsx(Vm,{children:h.jsx(QL,{onNewChat:H,activeChatId:de,setActiveChat:r,chats:e.chats})}),t[37]=e.chats,t[38]=H,t[39]=r,t[40]=de,t[41]=ge):ge=t[41],t[42]!==Q||t[43]!==v||t[44]!==s||t[45]!==u?(ie=(!v||v.length===0)&&h.jsx("div",{className:"flex rounded-md border px-1 bg-background",children:h.jsx(Pc,{value:s,placeholder:"Ask anything, @ to include context about tables or dataframes",theme:u,onClose:me,onChange:i,onSubmit:Q},"new-thread-input")}),t[42]=Q,t[43]=v,t[44]=s,t[45]=u,t[46]=ie):ie=t[46],t[47]!==e||t[48]!==Z||t[49]!==F||t[50]!==v||t[51]!==n||t[52]!==u){let ze;t[54]!==e||t[55]!==Z||t[56]!==F||t[57]!==v.length||t[58]!==n||t[59]!==u?(ze=(Ne,Ke)=>h.jsx(p3,{message:Ne,index:Ke,theme:u,onEdit:Z,setChatState:n,chatState:e,isStreamingReasoning:F,totalMessages:v.length},Ke),t[54]=e,t[55]=Z,t[56]=F,t[57]=v.length,t[58]=n,t[59]=u,t[60]=ze):ze=t[60],xe=v.map(ze),t[47]=e,t[48]=Z,t[49]=F,t[50]=v,t[51]=n,t[52]=u,t[53]=xe}else xe=t[53];return t[61]!==O?(we=O&&h.jsx("div",{className:"flex justify-center py-4",children:h.jsx(Pm,{className:"h-4 w-4 animate-spin"})}),t[61]=O,t[62]=we):we=t[62],t[63]!==T||t[64]!==oe?(ae=T&&h.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[h.jsx(Zs,{error:T}),h.jsx(Pe,{variant:"outline",size:"sm",onClick:oe,children:"Retry"})]}),t[63]=T,t[64]=oe,t[65]=ae):ae=t[65],t[66]===Symbol.for("react.memo_cache_sentinel")?(Se=h.jsx("div",{ref:d}),t[66]=Se):Se=t[66],t[67]!==ie||t[68]!==xe||t[69]!==we||t[70]!==ae?(pe=h.jsxs("div",{className:"flex-1 px-3 bg-[var(--slate-1)] gap-4 py-3 flex flex-col overflow-y-auto",ref:c,children:[ie,xe,we,ae,Se]}),t[67]=ie,t[68]=xe,t[69]=we,t[70]=ae,t[71]=pe):pe=t[71],t[72]!==O||t[73]!==B?(Te=O&&h.jsx("div",{className:"w-full flex justify-center items-center z-20 border-t",children:h.jsx(Pe,{variant:"linkDestructive",size:"sm",onClick:B,children:"Stop"})}),t[72]=O,t[73]=B,t[74]=Te):Te=t[74],t[75]!==re||t[76]!==S||t[77]!==v||t[78]!==k||t[79]!==u?(Re=v&&v.length>0&&h.jsx(g3,{input:S,setInput:k,onSubmit:re,theme:u,inputRef:l}),t[75]=re,t[76]=S,t[77]=v,t[78]=k,t[79]=u,t[80]=Re):Re=t[80],t[81]!==ge||t[82]!==pe||t[83]!==Te||t[84]!==Re?(He=h.jsxs("div",{className:"flex flex-col h-[calc(100%-53px)]",children:[ge,pe,Te,Re]}),t[81]=ge,t[82]=pe,t[83]=Te,t[84]=Re,t[85]=He):He=t[85],He};function nF(){}function oF(){}function rF(t){const{role:e,content:n,timestamp:o,parts:r}=t;return{role:e,content:n,id:o.toString(),parts:r}}function sF(t){return t.content}function iF(t){return{...t,...k4({input:t.messages.map(sF).join(`
|
144
|
-
`)}),includeOtherCode:jc("")}}function aF(t){Zt.error("An error occurred:",t)}function lF(t){Zt.debug("Received HTTP response from server:",t)}function cF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const dF=K.lazy(()=>Lm(()=>import("./tracing-c5ycTiSU.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),uF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(hF,{}),children:h.jsx(dF,{})}),t[0]=e):e=t[0],e},hF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(eo,{})}),t[0]=e):e=t[0],e},fF=()=>{const t=X.c(25),{openModal:e,closeModal:n}=Vn();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,loading:s,error:i,reload:a}=Hn(pF,o);let l;t[1]!==r?(l=r===void 0?[]:r,t[1]=r,t[2]=l):l=t[2];const c=l;let d;t[3]!==c?(d=c.filter(gF).map(_F),t[3]=c,t[4]=d):d=t[4];const u=d;if(s&&c.length===0){let y;return t[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(eo,{size:"medium",centered:!0}),t[5]=y):y=t[5],y}if(i){let y;return t[6]!==i?(y=h.jsx(Zs,{error:i}),t[6]=i,t[7]=y):y=t[7],y}if(c.length===0){let y;return t[8]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(An,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Xc,{})}),t[8]=y):y=t[8],y}let f,m,_,g,p,b,x;return t[9]!==n||t[10]!==e||t[11]!==u||t[12]!==a?(f=()=>e(h.jsx(Cg,{providerNames:u,onSuccess:()=>{a(),n()},onClose:n})),t[9]=n,t[10]=e,t[11]=u,t[12]=a,t[13]=f):f=t[13],t[14]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx(Fr,{className:"h-4 w-4"}),t[14]=m):m=t[14],t[15]!==f?(_=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:f,children:m})}),t[15]=f,t[16]=_):_=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx(Jm,{children:h.jsxs(Xs,{children:[h.jsx(zr,{children:"Environment Variable"}),h.jsx(zr,{children:"Source"}),h.jsx(zr,{})]})}),t[17]=g):g=t[17],t[18]!==c?(p=c.map(bF),t[18]=c,t[19]=p):p=t[19],t[20]!==p?(b=h.jsxs(Ym,{className:"overflow-auto flex-1 mb-16",children:[g,h.jsx(Km,{children:p})]}),t[20]=p,t[21]=b):b=t[21],t[22]!==_||t[23]!==b?(x=h.jsxs("div",{className:"flex flex-col h-full",children:[_,b]}),t[22]=_,t[23]=b,t[24]=x):x=t[24],x},mF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(xc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(Fs,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function pF(){return Sg((await SS.request({})).secrets)}function gF(t){return t.provider!=="env"}function _F(t){return t.name}function bF(t){return t.keys.map(e=>h.jsxs(Xs,{className:"group",children:[h.jsx(Br,{children:e}),h.jsx(Br,{children:t.provider!=="env"&&h.jsx($4,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(Br,{children:h.jsx(mF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await yn(`os.environ["${e}"]`),lt({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const yF=K.lazy(()=>Lm(()=>import("./terminal-DxX8pl7V.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),xF=t=>{const e=X.c(120),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=yc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=oa(),l=K.useRef(null),c=K.useRef(null);let d,u,f,m,_;e[0]!==o?(d=()=>{if(!l.current)return;const ue=l.current.isCollapsed();o&&ue&&l.current.expand(),o||ue||l.current.collapse(),requestAnimationFrame(vF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ue=c.current.isCollapsed();r&&ue&&c.current.expand(),r||ue||c.current.collapse(),requestAnimationFrame(SF)},m=[r],e[3]=r,e[4]=f,e[5]=m):(f=e[4],m=e[5]),A.useEffect(f,m),e[6]!==n?(_=h.jsx($c,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,p=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==p?(b=Oe("border-border no-print z-10",p,"vertical"),e[8]=p,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(uS,{onDragging:hS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(uS,{onDragging:hS,className:S}),e[14]=S,e[15]=k):k=e[15];const E=k;let j,I,T,M,L,B,O,z,F,V,P,C,$,N,H,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(I=()=>i(!1),e[18]=i,e[19]=I):I=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(go,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==I?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:I,children:T}),e[21]=I,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(lR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Ox,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(N2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(RD,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(RR,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(P=s==="outline"&&h.jsx(lO,{}),e[36]=s,e[37]=P):P=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(ER,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?($=s==="documentation"&&h.jsx(BD,{}),e[40]=s,e[41]=$):$=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(fR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?(H=s==="scratchpad"&&h.jsx(DR,{}),e[44]=s,e[45]=H):H=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(eF,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(j2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(uF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(fF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==P||e[60]!==C||e[61]!==$||e[62]!==N||e[63]!==H||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(zc,{children:[B,O,z,F,V,P,C,$,N,H,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=P,e[60]=C,e[61]=$,e[62]=N,e[63]=H,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(Sc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,me,de,ge,ie,xe;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(me=(ue,je)=>{var ve;je===0&&ue===10&&((ve=l.current)==null||ve.resize(30))},e[74]=me):me=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(xe=h.jsx($c,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=xe):xe=e[85];const we=xe,ae=r&&"border-[var(--slate-7)]";let Se,pe,Te,Re,He,ze,Ne,Ke;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(pe=(ue,je)=>{var ve;je===0&&ue===10&&((ve=c.current)==null||ve.resize(30))},e[88]=pe):pe=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]!==a?(He=()=>a(!1),e[92]=a,e[93]=He):He=e[93],e[94]!==r||e[95]!==He?(ze=h.jsx(yF,{visible:r,onClose:He}),e[94]=r,e[95]=He,e[96]=ze):ze=e[96],e[97]!==r||e[98]!==ze?(Ne=h.jsx(IR,{isOpen:r,children:ze}),e[97]=r,e[98]=ze,e[99]=Ne):Ne=e[99],e[100]!==Se||e[101]!==Te||e[102]!==Re||e[103]!==Ne||e[104]!==E?(Ke=h.jsxs($c,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:Te,onExpand:Re,children:[E,Ne]},"terminal"),e[100]=Se,e[101]=Te,e[102]=Re,e[103]=Ne,e[104]=E,e[105]=Ke):Ke=e[105];const nt=Ke;let it,te,Ce,Me,Be,J,fe,_e;return e[106]===Symbol.for("react.memo_cache_sentinel")?(it=nH(),e[106]=it):it=e[106],e[107]===Symbol.for("react.memo_cache_sentinel")?(te=h.jsx(zc,{children:h.jsx(nO,{})}),e[107]=te):te=e[107],e[108]!==nt?(Ce=h.jsx(Ax,{capability:"terminal",children:nt}),e[108]=nt,e[109]=Ce):Ce=e[109],e[110]!==g||e[111]!==Ce?(Me=h.jsx($c,{children:h.jsxs(fS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ce]})}),e[110]=g,e[111]=Ce,e[112]=Me):Me=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx(u$,{}),e[113]=Be):Be=e[113],e[114]!==we||e[115]!==Me?(J=h.jsxs(fS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:it,children:[te,we,Me,Be]}),e[114]=we,e[115]=Me,e[116]=J):J=e[116],e[117]===Symbol.for("react.memo_cache_sentinel")?(fe=h.jsx(Sc,{children:h.jsx(zc,{children:h.jsx(XM,{})})}),e[117]=fe):fe=e[117],e[118]!==J?(_e=h.jsxs(oH,{children:[J,fe]}),e[118]=J,e[119]=_e):_e=e[119],_e};function wF(){window.dispatchEvent(new Event("resize"))}function vF(){requestAnimationFrame(wF)}function kF(){window.dispatchEvent(new Event("resize"))}function SF(){requestAnimationFrame(kF)}let _3;_3=new URL(window.location.href).searchParams.get(h$.showChrome)==="false",TS=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(_3){let s,i,a;return e[0]!==t?(s=h.jsx(Ix,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(ng,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(Ix,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(ng,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(xF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{rp as C,Hc as E,An as P,aH as __tla,Wc as a,TS as e,ka as f,sp as u};
|
144
|
+
`)}),includeOtherCode:jc("")}}function aF(t){Zt.error("An error occurred:",t)}function lF(t){Zt.debug("Received HTTP response from server:",t)}function cF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const dF=K.lazy(()=>Lm(()=>import("./tracing-fC96q6kX.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),uF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(hF,{}),children:h.jsx(dF,{})}),t[0]=e):e=t[0],e},hF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(eo,{})}),t[0]=e):e=t[0],e},fF=()=>{const t=X.c(25),{openModal:e,closeModal:n}=Vn();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,loading:s,error:i,reload:a}=Hn(pF,o);let l;t[1]!==r?(l=r===void 0?[]:r,t[1]=r,t[2]=l):l=t[2];const c=l;let d;t[3]!==c?(d=c.filter(gF).map(_F),t[3]=c,t[4]=d):d=t[4];const u=d;if(s&&c.length===0){let y;return t[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(eo,{size:"medium",centered:!0}),t[5]=y):y=t[5],y}if(i){let y;return t[6]!==i?(y=h.jsx(Zs,{error:i}),t[6]=i,t[7]=y):y=t[7],y}if(c.length===0){let y;return t[8]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(An,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Xc,{})}),t[8]=y):y=t[8],y}let f,m,_,g,p,b,x;return t[9]!==n||t[10]!==e||t[11]!==u||t[12]!==a?(f=()=>e(h.jsx(Cg,{providerNames:u,onSuccess:()=>{a(),n()},onClose:n})),t[9]=n,t[10]=e,t[11]=u,t[12]=a,t[13]=f):f=t[13],t[14]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx(Fr,{className:"h-4 w-4"}),t[14]=m):m=t[14],t[15]!==f?(_=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:f,children:m})}),t[15]=f,t[16]=_):_=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx(Jm,{children:h.jsxs(Xs,{children:[h.jsx(zr,{children:"Environment Variable"}),h.jsx(zr,{children:"Source"}),h.jsx(zr,{})]})}),t[17]=g):g=t[17],t[18]!==c?(p=c.map(bF),t[18]=c,t[19]=p):p=t[19],t[20]!==p?(b=h.jsxs(Ym,{className:"overflow-auto flex-1 mb-16",children:[g,h.jsx(Km,{children:p})]}),t[20]=p,t[21]=b):b=t[21],t[22]!==_||t[23]!==b?(x=h.jsxs("div",{className:"flex flex-col h-full",children:[_,b]}),t[22]=_,t[23]=b,t[24]=x):x=t[24],x},mF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(xc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(Fs,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function pF(){return Sg((await SS.request({})).secrets)}function gF(t){return t.provider!=="env"}function _F(t){return t.name}function bF(t){return t.keys.map(e=>h.jsxs(Xs,{className:"group",children:[h.jsx(Br,{children:e}),h.jsx(Br,{children:t.provider!=="env"&&h.jsx($4,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(Br,{children:h.jsx(mF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await yn(`os.environ["${e}"]`),lt({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const yF=K.lazy(()=>Lm(()=>import("./terminal-DDRrFKFT.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),xF=t=>{const e=X.c(120),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=yc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=oa(),l=K.useRef(null),c=K.useRef(null);let d,u,f,m,_;e[0]!==o?(d=()=>{if(!l.current)return;const ue=l.current.isCollapsed();o&&ue&&l.current.expand(),o||ue||l.current.collapse(),requestAnimationFrame(vF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ue=c.current.isCollapsed();r&&ue&&c.current.expand(),r||ue||c.current.collapse(),requestAnimationFrame(SF)},m=[r],e[3]=r,e[4]=f,e[5]=m):(f=e[4],m=e[5]),A.useEffect(f,m),e[6]!==n?(_=h.jsx($c,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,p=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==p?(b=Oe("border-border no-print z-10",p,"vertical"),e[8]=p,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(uS,{onDragging:hS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(uS,{onDragging:hS,className:S}),e[14]=S,e[15]=k):k=e[15];const E=k;let j,I,T,M,L,B,O,z,F,V,P,C,$,N,H,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(I=()=>i(!1),e[18]=i,e[19]=I):I=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(go,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==I?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:I,children:T}),e[21]=I,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(lR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Ox,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(N2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(RD,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(RR,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(P=s==="outline"&&h.jsx(lO,{}),e[36]=s,e[37]=P):P=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(ER,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?($=s==="documentation"&&h.jsx(BD,{}),e[40]=s,e[41]=$):$=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(fR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?(H=s==="scratchpad"&&h.jsx(DR,{}),e[44]=s,e[45]=H):H=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(eF,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(j2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(uF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(fF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==P||e[60]!==C||e[61]!==$||e[62]!==N||e[63]!==H||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(zc,{children:[B,O,z,F,V,P,C,$,N,H,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=P,e[60]=C,e[61]=$,e[62]=N,e[63]=H,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(Sc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,me,de,ge,ie,xe;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(me=(ue,je)=>{var ve;je===0&&ue===10&&((ve=l.current)==null||ve.resize(30))},e[74]=me):me=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(xe=h.jsx($c,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=xe):xe=e[85];const we=xe,ae=r&&"border-[var(--slate-7)]";let Se,pe,Te,Re,He,ze,Ne,Ke;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(pe=(ue,je)=>{var ve;je===0&&ue===10&&((ve=c.current)==null||ve.resize(30))},e[88]=pe):pe=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]!==a?(He=()=>a(!1),e[92]=a,e[93]=He):He=e[93],e[94]!==r||e[95]!==He?(ze=h.jsx(yF,{visible:r,onClose:He}),e[94]=r,e[95]=He,e[96]=ze):ze=e[96],e[97]!==r||e[98]!==ze?(Ne=h.jsx(IR,{isOpen:r,children:ze}),e[97]=r,e[98]=ze,e[99]=Ne):Ne=e[99],e[100]!==Se||e[101]!==Te||e[102]!==Re||e[103]!==Ne||e[104]!==E?(Ke=h.jsxs($c,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:Te,onExpand:Re,children:[E,Ne]},"terminal"),e[100]=Se,e[101]=Te,e[102]=Re,e[103]=Ne,e[104]=E,e[105]=Ke):Ke=e[105];const nt=Ke;let it,te,Ce,Me,Be,J,fe,_e;return e[106]===Symbol.for("react.memo_cache_sentinel")?(it=nH(),e[106]=it):it=e[106],e[107]===Symbol.for("react.memo_cache_sentinel")?(te=h.jsx(zc,{children:h.jsx(nO,{})}),e[107]=te):te=e[107],e[108]!==nt?(Ce=h.jsx(Ax,{capability:"terminal",children:nt}),e[108]=nt,e[109]=Ce):Ce=e[109],e[110]!==g||e[111]!==Ce?(Me=h.jsx($c,{children:h.jsxs(fS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ce]})}),e[110]=g,e[111]=Ce,e[112]=Me):Me=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx(u$,{}),e[113]=Be):Be=e[113],e[114]!==we||e[115]!==Me?(J=h.jsxs(fS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:it,children:[te,we,Me,Be]}),e[114]=we,e[115]=Me,e[116]=J):J=e[116],e[117]===Symbol.for("react.memo_cache_sentinel")?(fe=h.jsx(Sc,{children:h.jsx(zc,{children:h.jsx(XM,{})})}),e[117]=fe):fe=e[117],e[118]!==J?(_e=h.jsxs(oH,{children:[J,fe]}),e[118]=J,e[119]=_e):_e=e[119],_e};function wF(){window.dispatchEvent(new Event("resize"))}function vF(){requestAnimationFrame(wF)}function kF(){window.dispatchEvent(new Event("resize"))}function SF(){requestAnimationFrame(kF)}let _3;_3=new URL(window.location.href).searchParams.get(h$.showChrome)==="false",TS=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(_3){let s,i,a;return e[0]!==t?(s=h.jsx(Ix,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(ng,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(Ix,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(ng,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(xF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{rp as C,Hc as E,An as P,aH as __tla,Wc as a,TS as e,ka as f,sp as u};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-
|
1
|
+
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-Nztj68nn.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,p as wt,q as Lt,c as V,l as x,y as Mt,x as Bt,A as Ft,B as Yt,o as Pt,r as zt,u as Gt}from"./mermaid-C_X-At-F.js";import{s as Kt}from"./transform-Cyp0GDF-.js";import{c as Zt}from"./channel-D-Qw4Rvo.js";import"./index-CNf099oP.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var lt=function(){var s=h(function(a,u,o,n){for(o=o||{},n=a.length;n--;o[a[n]]=u);return o},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],y=[1,11],c=[1,12],r=[1,13],_=[1,20],g=[1,21],E=[1,22],$=[1,23],v=[1,24],N=[1,19],w=[1,25],Z=[1,26],L=[1,18],tt=[1,33],et=[1,34],st=[1,35],it=[1,36],nt=[1,37],ht=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],T=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],S=[1,58],P=[1,62],z=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ut=[1,81],dt=[1,80],pt=[1,78],_t=[1,79],gt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],G=[19,56],mt=[1,98],ft=[1,97],at=[19,56,58,60],rt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(a,u,o,n,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=t[e];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 44:case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:case 67:this.$=t[e].replace(/"/g,"");break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:st,66:it,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ht,[2,54]),s(ht,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:T},{16:44,40:O,41:T},{16:45,40:O,41:T},s(i,[2,4]),{11:46,40:N,50:L},{16:47,40:O,41:T},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:N,50:L},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:S,45:59,46:60,48:P,49:z},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:T,42:S},{13:F,38:66,41:Y,42:S,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:S,63:tt,64:et,65:st,66:it,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:st,66:it,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ut,10:dt,39:77,42:pt,47:_t},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(I,[2,45]),s(I,[2,50]),s(I,[2,51]),s(I,[2,52]),s(I,[2,53]),s(i,[2,41],{42:S}),{6:ut,10:dt,39:85,42:pt,47:_t},{14:86,40:j,50:W,70:Q},{16:90,40:O,41:T},{11:91,40:N,50:L},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:mt,60:ft}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(I,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:ft}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:T},s(gt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:j,50:W,70:Q},{16:112,40:O,41:T},{14:113,40:j,50:W,70:Q},s(i,[2,13]),s(G,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:S}),s(i,[2,11]),{13:[1,117],42:S},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:j,50:W,70:Q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(a,u){if(!u.recoverable){var o=new Error(a);throw o.hash=u,o}this.trace(a)},"parseError"),parse:h(function(a){var u=this,o=[0],n=[],d=[null],t=[],K=this.table,e="",q=0,bt=0,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),R={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(R.yy[ct]=this.yy[ct]);p.setInput(a,R.yy),R.yy.lexer=p,R.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var At=p.options&&p.options.ranges;function Et(){var b;return typeof(b=n.pop()||p.lex()||1)!="number"&&(b instanceof Array&&(b=(n=b).pop()),b=u.symbols_[b]||b),b}typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(b){o.length=o.length-2*b,d.length=d.length-b,t.length=t.length-b},"popStack"),h(Et,"lex");for(var m,A,f,kt,H,k,Ot,J,C={};;){if(A=o[o.length-1],this.defaultActions[A]?f=this.defaultActions[A]:(m==null&&(m=Et()),f=K[A]&&K[A][m]),f===void 0||!f.length||!f[0]){var Tt="";for(H in J=[],K[A])this.terminals_[H]&&H>2&&J.push("'"+this.terminals_[H]+"'");Tt=p.showPosition?"Parse error on line "+(q+1)+`:
|
2
2
|
`+p.showPosition()+`
|
3
3
|
Expecting `+J.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(q+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Tt,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:ot,expected:J})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+m);switch(f[0]){case 1:o.push(m),d.push(p.yytext),t.push(p.yylloc),o.push(f[1]),m=null,bt=p.yyleng,e=p.yytext,q=p.yylineno,ot=p.yylloc;break;case 2:if(k=this.productions_[f[1]][1],C.$=d[d.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},At&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),(kt=this.performAction.apply(C,[e,bt,q,R.yy,f[1],d,t].concat(Rt)))!==void 0)return kt;k&&(o=o.slice(0,-1*k*2),d=d.slice(0,-1*k),t=t.slice(0,-1*k)),o.push(this.productions_[f[1]][0]),d.push(C.$),t.push(C._$),Ot=K[o[o.length-2]][o[o.length-1]],o.push(Ot);break;case 3:return!0}}return!0},"parse")},Nt=function(){return{EOF:1,parseError:h(function(a,u){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,u)},"parseError"),setInput:h(function(a,u){return this.yy=u||this.yy||{},this._input=a,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:h(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:h(function(a){var u=a.length,o=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:h(function(a){this.unput(this.match.slice(a))},"less"),pastInput:h(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var a=this.pastInput(),u=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|