@marimo-team/frontend 0.18.5-dev200 → 0.18.5-dev202

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.
Files changed (70) hide show
  1. package/dist/assets/{CellStatus-Bo1x1B6n.js → CellStatus-CJVmn-JU.js} +1 -1
  2. package/dist/assets/{JsonOutput-BCHaEg3R.js → JsonOutput-BLd1jTNA.js} +1 -1
  3. package/dist/assets/{MarimoErrorOutput-BIIhR96K.js → MarimoErrorOutput-Orp0blpZ.js} +2 -2
  4. package/dist/assets/{RenderHTML-BUhX0rkG.js → RenderHTML-BzGWfPTJ.js} +1 -1
  5. package/dist/assets/{add-cell-with-ai-CLrEdPGH.js → add-cell-with-ai-Dx5UA23s.js} +1 -1
  6. package/dist/assets/{add-database-form-DkSxzOXk.js → add-database-form-MNQmbAaT.js} +1 -1
  7. package/dist/assets/{agent-panel-Bz7HLWO3.js → agent-panel-BS2q53WX.js} +2 -2
  8. package/dist/assets/{ai-model-dropdown-ea-cOLAL.js → ai-model-dropdown-DZ7evAGU.js} +1 -1
  9. package/dist/assets/{app-config-button-BFjdAlTt.js → app-config-button-CsABtw-A.js} +1 -1
  10. package/dist/assets/{cell-editor-B-NH54Cv.js → cell-editor-D4tKLHiP.js} +4 -4
  11. package/dist/assets/{cell-link-DNVmmRzI.js → cell-link-BoUpLV2S.js} +1 -1
  12. package/dist/assets/{cells-Dk_j8HX9.js → cells-D_SkyFDn.js} +47 -47
  13. package/dist/assets/{chat-components-BMWBGknq.js → chat-components-6dWNbFjV.js} +1 -1
  14. package/dist/assets/{chat-display-CEYX5MXY.js → chat-display-Cfg38gMM.js} +1 -1
  15. package/dist/assets/{chat-panel-DmUjYxAt.js → chat-panel-CofEklYU.js} +1 -1
  16. package/dist/assets/{client-D08Rbi3p.js → client-BUus2uot.js} +1 -1
  17. package/dist/assets/{column-preview-MV5ZRt10.js → column-preview-9nPwQyJZ.js} +1 -1
  18. package/dist/assets/{command-gUA-HncX.js → command-Qt3ng7cb.js} +1 -1
  19. package/dist/assets/{command-palette-Dt43cGFk.js → command-palette-ptrGtoIl.js} +1 -1
  20. package/dist/assets/{common-BWR26KIv.js → common-DE3UmpZO.js} +1 -1
  21. package/dist/assets/{datasource-i415crE1.js → datasource-CR_zEq5o.js} +1 -1
  22. package/dist/assets/{dependency-graph-panel-BwaKuCE7.js → dependency-graph-panel-Dy8lj02R.js} +1 -1
  23. package/dist/assets/{documentation-panel-C4aTmugE.js → documentation-panel-C0769uWv.js} +1 -1
  24. package/dist/assets/{download-Dsuja3On.js → download-CITws1-y.js} +1 -1
  25. package/dist/assets/{edit-page-DIpr3pNk.js → edit-page-BC3j4y4f.js} +6 -6
  26. package/dist/assets/{error-panel-DCozbyWc.js → error-panel-B-EvbVVc.js} +1 -1
  27. package/dist/assets/{es-DjCjT1hB.js → es-CEEVxHsX.js} +1 -1
  28. package/dist/assets/{file-explorer-panel-BvRpCXWv.js → file-explorer-panel-BqkMxs-d.js} +1 -1
  29. package/dist/assets/{floating-outline-DYdnwTX9.js → floating-outline-p0aHdM2W.js} +1 -1
  30. package/dist/assets/{focus-U1ePwk4d.js → focus-D18AHojc.js} +1 -1
  31. package/dist/assets/{form-D8BW7hlS.js → form-DEraWoX5.js} +1 -1
  32. package/dist/assets/{globals-BBskDqJi.js → globals-D3SeIm1j.js} +1 -1
  33. package/dist/assets/{home-page-c43aYnLs.js → home-page-9rDRaLCP.js} +1 -1
  34. package/dist/assets/{index-MoQWZ3Gl.js → index-BReVmpoy.js} +3 -3
  35. package/dist/assets/{kiosk-mode-lhqhA8En.js → kiosk-mode-DL9UBacr.js} +1 -1
  36. package/dist/assets/{layout-DenYhPfS.js → layout-Bd6wzfjT.js} +1 -1
  37. package/dist/assets/{logs-panel-CmImbuAp.js → logs-panel-C7VsvCHz.js} +1 -1
  38. package/dist/assets/{markdown-renderer-COkLQ1b5.js → markdown-renderer-C_xfLXiO.js} +1 -1
  39. package/dist/assets/{mode-BOijHAOc.js → mode-BFwdGSZ7.js} +1 -1
  40. package/dist/assets/{name-cell-input-Cf2CUXDm.js → name-cell-input-CsDYsdH3.js} +1 -1
  41. package/dist/assets/{outline-panel-CdaUT0TE.js → outline-panel-BlhMaZpZ.js} +1 -1
  42. package/dist/assets/{packages-panel-CghFsvM0.js → packages-panel-YNB3ay32.js} +1 -1
  43. package/dist/assets/{panels-CymS0QU-.js → panels-DfOJ05Sp.js} +1 -1
  44. package/dist/assets/{process-output-BAfpcew-.js → process-output-4w8xDO0j.js} +1 -1
  45. package/dist/assets/{readonly-python-code-B8gfuyX1.js → readonly-python-code-DjP4vjBQ.js} +1 -1
  46. package/dist/assets/{run-page-rr9Ilre7.js → run-page-DRgXZvWr.js} +1 -1
  47. package/dist/assets/{scratchpad-panel-DWsu0wnU.js → scratchpad-panel-BYCWZWFJ.js} +1 -1
  48. package/dist/assets/{session-panel-BJRncUge.js → session-panel-C0b1PCJc.js} +1 -1
  49. package/dist/assets/{snippets-panel-Dv7eGWsB.js → snippets-panel-CpjS6w9M.js} +1 -1
  50. package/dist/assets/{state-DWEWL_KV.js → state-BTRRCWOH.js} +1 -1
  51. package/dist/assets/{state-HUtu_wpA.js → state-kFdt1US2.js} +1 -1
  52. package/dist/assets/{switch-Cd5iA-KH.js → switch-C9iBa4rX.js} +1 -1
  53. package/dist/assets/{textarea-jTWtOsHe.js → textarea-D2hGxqGj.js} +1 -1
  54. package/dist/assets/{tracing-CDJRdFd4.js → tracing-CKdq5KMT.js} +1 -1
  55. package/dist/assets/{tracing-panel-BrBmQCJr.js → tracing-panel-DXjACxb_.js} +2 -2
  56. package/dist/assets/{types-CiMSegk1.js → types-VzFAm7Cv.js} +1 -1
  57. package/dist/assets/{useAddCell-FisWjOQO.js → useAddCell-CVfRv5mq.js} +1 -1
  58. package/dist/assets/{useCellActionButton-DLwn_yx9.js → useCellActionButton-Woqd9LSB.js} +1 -1
  59. package/dist/assets/{useDeleteCell-CFtiNna2.js → useDeleteCell-GHwc6J4l.js} +1 -1
  60. package/dist/assets/{useDependencyPanelTab-DWfKzMhf.js → useDependencyPanelTab-B0ZsFCYF.js} +1 -1
  61. package/dist/assets/{useNotebookActions-B4HR9n-p.js → useNotebookActions-DQW0wwU6.js} +1 -1
  62. package/dist/assets/{useRunCells-DLQFWY1L.js → useRunCells-BZ_OFvV4.js} +1 -1
  63. package/dist/assets/{useSplitCell-DDFoE9WM.js → useSplitCell-BnJiHHep.js} +1 -1
  64. package/dist/assets/{utilities.esm-DlnAwGsz.js → utilities.esm-FYD46c3d.js} +1 -1
  65. package/dist/index.html +31 -31
  66. package/package.json +1 -1
  67. package/src/components/editor/chrome/state.ts +3 -3
  68. package/src/components/editor/chrome/types.ts +5 -3
  69. package/src/components/editor/chrome/wrapper/app-chrome.tsx +11 -4
  70. package/src/components/editor/chrome/wrapper/sidebar.tsx +11 -4
@@ -1 +1 @@
1
- import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-BGmjiNul.js";import{X as F}from"./cells-Dk_j8HX9.js";import{t as O}from"./compiler-runtime-DeeZ7FnK.js";import{d as B}from"./hotkeys-uKX61F1_.js";import{t as L}from"./jsx-runtime-DN_bIXfG.js";import{t as V}from"./createLucideIcon-CW2xpJ57.js";import{c as G,l as A,n as J,t as _}from"./toDate-5JckKRQn.js";import{t as K}from"./ellipsis-DwHM80y-.js";import{t as R}from"./refresh-cw-Din9uFKE.js";import{t as Q}from"./workflow-ZGK5flRg.js";import{t as D}from"./tooltip-CvjcEpZC.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-DhMN8sxe.js";import{t as E}from"./useDateFormatter-CV0QXb5P.js";import{t as H}from"./multi-icon-BOYRpNB_.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=_(n)-+_(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return _(n)-+_(e)}function le(n,e){let t=_(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=_(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=_(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),M=(C(m)-C(b))/1e3,p=Math.round((x-M)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:M,uninstantiated:p}=n;if(!t)return null;let T=x??M,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(D,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(D,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(D,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(D,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),M;return e[2]===x?M=e[3]:(M=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=M),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",M]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
1
+ import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-BGmjiNul.js";import{X as F}from"./cells-D_SkyFDn.js";import{t as O}from"./compiler-runtime-DeeZ7FnK.js";import{d as B}from"./hotkeys-uKX61F1_.js";import{t as L}from"./jsx-runtime-DN_bIXfG.js";import{t as V}from"./createLucideIcon-CW2xpJ57.js";import{c as G,l as A,n as J,t as _}from"./toDate-5JckKRQn.js";import{t as K}from"./ellipsis-DwHM80y-.js";import{t as R}from"./refresh-cw-Din9uFKE.js";import{t as Q}from"./workflow-ZGK5flRg.js";import{t as D}from"./tooltip-CvjcEpZC.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-DhMN8sxe.js";import{t as E}from"./useDateFormatter-CV0QXb5P.js";import{t as H}from"./multi-icon-BOYRpNB_.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=_(n)-+_(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return _(n)-+_(e)}function le(n,e){let t=_(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=_(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=_(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),M=(C(m)-C(b))/1e3,p=Math.round((x-M)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:M,uninstantiated:p}=n;if(!t)return null;let T=x??M,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(D,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(D,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(D,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(D,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),M;return e[2]===x?M=e[3]:(M=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=M),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",M]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-vega-0cNgsYYM.js","./react-vega-ENLQ2Qtg.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./linear-CLezLCLy.js","./timer-BEJidwwG.js","./chunk-LvLJmgfZ.js","./init-BYCsRZEq.js","./time-BARczBNs.js","./defaultLocale-DzliDDTm.js","./range-gMGfxVwZ.js","./vega-loader.browser-C8wT63Va.js","./treemap-F5PoC_M0.js","./path-_EHCEa2c.js","./colors-CWfEs9Oi.js","./ordinal-RiUP-mHf.js","./arc-D0XsJSsf.js","./math-D-qpUWKO.js","./array-D5VxClQs.js","./step-Ca7ZnceH.js","./line-ortW3H6T.js","./jsx-runtime-DN_bIXfG.js","./react-BGmjiNul.js"])))=>i.map(i=>d[i]);
2
- var sy=Object.defineProperty;var cy=(v,Ge,zt)=>Ge in v?sy(v,Ge,{enumerable:!0,configurable:!0,writable:!0,value:zt}):v[Ge]=zt;var An=(v,Ge,zt)=>cy(v,typeof Ge!="symbol"?Ge+"":Ge,zt);import{s as Ar,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as uy,c as dy,f as Vc,g as my,h as py,n as rt,p as jt,s as fy,u as Fa}from"./useEvent-DlWF5OMa.js";import{t as gy}from"./react-BGmjiNul.js";import{$r as hy,Cn as zc,Fr as Dc,Gn as Lc,Mr as yy,Nr as by,Rn as xy,Tn as vy,_t as Ir,ai as Hc,d as wy,jr as Sy,oi as Cy,si as jy,__tla as ky}from"./cells-Dk_j8HX9.js";import{t as K}from"./compiler-runtime-DeeZ7FnK.js";import{i as kt,r as _y}from"./useLifecycle-CmDXEyIC.js";import{t as Ry}from"./capitalize-DQeWKRGx.js";import{a as My,n as Aa,r as Ny,t as Fy}from"./tooltip-CrRUCOBw.js";import{t as Pr}from"./range-sshwVRcP.js";import{a as $r,d as ot,f as Ay}from"./hotkeys-uKX61F1_.js";import{t as at}from"./invariant-C6yE60hi.js";import{r as Iy}from"./utils-CJJIceVn.js";import{M as Bc,d as Py,n as $y}from"./config-babG4OBR.js";import{t as Gc}from"./ErrorBoundary-Drf1manw.js";import{t as Ey}from"./jsx-runtime-DN_bIXfG.js";import{r as pt,t as de}from"./button-DuYGqRtX.js";import{n as In}from"./clsx-D0MtrJOx.js";import{t as O}from"./cn-C1rgT0yh.js";import{at as Ty}from"./dist-CAcX026F.js";import{r as Oy,t as Vy}from"./once-CTiSlR1m.js";import{t as zy}from"./createReducer-DDa-hVe3.js";import{n as Dy}from"./useNonce-EAuSVK-5.js";import{t as Wc}from"./requests-C0HaHO6a.js";import{t as Z}from"./createLucideIcon-CW2xpJ57.js";import{n as Ly,r as Hy,t as Ia}from"./table-BLx7B_us.js";import{t as By}from"./check-CrAQug3q.js";import{_ as Pa,a as Gy,c as qc,h as Kc,i as Er,n as Uc,o as Wy,r as qy,s as Jc,t as Xc}from"./select-D0g5GnIs.js";import{a as Ky,n as Uy,o as Yc,s as Jy}from"./download-Dsuja3On.js";import{t as Xy}from"./chevron-right-CqEd11Di.js";import{a as Yy,d as Zy,f as Zc,l as Qy,p as eb,s as tb,t as nb,u as rb}from"./maps-s2pQkyf5.js";import{a as ob,c as ab,d as lb,f as Tr,i as ib,n as Or,o as sb,t as cb}from"./markdown-renderer-COkLQ1b5.js";import{A as Qc,C as ub,D as db,E as mb,O as pb,S as fb,T as gb,_ as hb,a as Q,b as yb,c as tn,d as Pn,f as $a,g as bb,h as xb,k as vb,m as wb,p as Ea,r as Ta,s as Vr,t as Oa,u as nn,v as Sb,w as Cb,x as jb,y as kb}from"./dropdown-menu-BP4_BZLr.js";import{t as zr}from"./copy-gBVL4NN-.js";import{n as _b,t as eu}from"./spinner-C1czjtp7.js";import{i as Rb,n as Mb,r as Nb,t as Fb}from"./MarimoErrorOutput-BIIhR96K.js";import{lt as Va,o as tu,r as Ab}from"./input-CaEtLL8p.js";import{t as Ib}from"./badge-DAnNhy3O.js";import{t as Pb}from"./preload-helper-BW0IMuFq.js";import{t as Dr}from"./use-toast-Bzf3rpev.js";import{r as za}from"./useTheme-DfP1CWaW.js";import{E as $b,S as Eb,_ as Tb,c as nu,g as Ob,o as Vb,s as zb,u as Db,w as $n}from"./Combination-D1TsGrBC.js";import{t as ze}from"./tooltip-CvjcEpZC.js";import{a as Lb,c as Hb,i as Da,l as Bb,o as Gb,r as ru,s as Wb}from"./menu-items-9PZrU2e0.js";import{a as qb,n as Kb,r as Ub,t as Jb}from"./dates-CdsE1R40.js";import{t as ou}from"./isValid-DhzaK-Y1.js";import{t as Lr}from"./useDateFormatter-CV0QXb5P.js";import{t as ft}from"./context-BAYdLMF_.js";import{t as Xb}from"./useNumberFormatter-D8ks3oPN.js";import{i as La,n as Yb,o as Zb,r as Ha,t as Ba}from"./popover-DtnzNVk-.js";import{i as Ga,n as Qb,r as Pe,t as ex}from"./numbers-C9_R_vlY.js";import{a as tx,n as au,t as nx}from"./error-banner-DU5Qb8a8.js";import{n as rx}from"./vega-loader.browser-C8wT63Va.js";import{t as rn}from"./copy-DRhpWiOq.js";import{t as ox}from"./copy-icon-B69c-352.js";import{t as Wa}from"./RenderHTML-BUhX0rkG.js";import{i as ax,n as lx,r as ix}from"./multi-map-fjX9ImVF.js";import{n as sx,t as cx}from"./emotion-is-prop-valid.esm-lG8j6oqk.js";import{t as ux}from"./extends-B9D0JO9U.js";import{t as dx}from"./kbd-Czc5z_04.js";import{r as mx}from"./cell-link-DNVmmRzI.js";import{t as px}from"./useIframeCapabilities-CU-WWxnz.js";import{i as fx,n as gx,r as hx,t as yx}from"./tabs-Ctk4D03n.js";import{n as bx}from"./useAsyncData-BJJJOr9W.js";import{a as xx,o as lu,r as vx,s as wx,t as Sx}from"./command-gUA-HncX.js";import{t as Cx}from"./formats-B9CrBoaO.js";import{a as jx,i as kx,n as _x,o as qa,r as iu,t as Rx}from"./table--_20dwBZ.js";let En,su,Ka,Ua,Ja,Xa,cu,Hr,uu,Br,du,Ot,Ya,Gr,Za,mu,pu,Qa,el,tl,nl,fu,gu,rl,ol,Tn,al,ll,il,sl,hu,cl,ul,dl,Wr,Vt,yu,bu,ml,pl,qr,fl,gl,xu,hl,yl,_t,vu,on,bl,xl,vl,wl,Sl,wu,Cl,Mx=Promise.all([(()=>{try{return ky}catch{}})()]).then(async()=>{var Et;var v=Ar(gy(),1),Ge=new WeakMap;function zt(e,t){let n=Vc(t),r=jl(n);for(let[o,...a]of e)(!r.has(o)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(o),n.set(o,...a))}let jl,kl,_l,Kr,Rl,Ml,Nl,Fl,Al,Il,Pl,$l,El,Tl,Ol,Vl,zl;jl=e=>{let t=Ge.get(e);return t||(t=new WeakSet,Ge.set(e,t)),t},gl=Z("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),kl=Z("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),_l=Z("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),Kr=Z("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),Rl=Z("chart-column-stacked",[["path",{d:"M11 13H7",key:"t0o9gq"}],["path",{d:"M19 9h-4",key:"rera1j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]),Ml=Z("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),bl=Z("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ul=Z("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),Nl=Z("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Fl=Z("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),Al=Z("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Il=Z("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),En=Z("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Qa=Z("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Pl=Z("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),$l=Z("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),El=Z("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Tl=Z("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),al=Z("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),Ol=Z("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Vl=Z("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),zl=Z("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),ol=Z("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]),Tn=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},du=function(){return at(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files};var Su=!1;function Cu(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ju(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ku=(function(){function e(n){var r=this;this._insertTag=function(o){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Su:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(ju(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Cu(r);try{o.insertRule(n,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ye="-ms-",On="-moz-",z="-webkit-",Dl="comm",Ur="rule",Jr="decl",_u="@import",Ll="@keyframes",Ru="@layer",Mu=Math.abs,Vn=String.fromCharCode,Nu=Object.assign;function Fu(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function Hl(e){return e.trim()}function Au(e,t){return(e=t.exec(e))?e[0]:e}function D(e,t,n){return e.replace(t,n)}function Xr(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function an(e,t,n){return e.slice(t,n)}function We(e){return e.length}function Yr(e){return e.length}function zn(e,t){return t.push(e),e}function Iu(e,t){return e.map(t).join("")}var Dn=1,Dt=1,Bl=0,Ce=0,ie=0,Lt="";function Ln(e,t,n,r,o,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Dn,column:Dt,length:l,return:""}}function ln(e,t){return Nu(Ln("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pu(){return ie}function $u(){return ie=Ce>0?pe(Lt,--Ce):0,Dt--,ie===10&&(Dt=1,Dn--),ie}function ke(){return ie=Ce<Bl?pe(Lt,Ce++):0,Dt++,ie===10&&(Dt=1,Dn++),ie}function qe(){return pe(Lt,Ce)}function Hn(){return Ce}function sn(e,t){return an(Lt,e,t)}function cn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gl(e){return Dn=Dt=1,Bl=We(Lt=e),Ce=0,[]}function Wl(e){return Lt="",e}function Bn(e){return Hl(sn(Ce-1,Zr(e===91?e+2:e===40?e+1:e)))}function Eu(e){for(;(ie=qe())&&ie<33;)ke();return cn(e)>2||cn(ie)>3?"":" "}function Tu(e,t){for(;--t&&ke()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return sn(e,Hn()+(t<6&&qe()==32&&ke()==32))}function Zr(e){for(;ke();)switch(ie){case e:return Ce;case 34:case 39:e!==34&&e!==39&&Zr(ie);break;case 40:e===41&&Zr(e);break;case 92:ke();break}return Ce}function Ou(e,t){for(;ke()&&e+ie!==57&&!(e+ie===84&&qe()===47););return"/*"+sn(t,Ce-1)+"*"+Vn(e===47?e:ke())}function Vu(e){for(;!cn(qe());)ke();return sn(e,Ce)}function zu(e){return Wl(Gn("",null,null,null,[""],e=Gl(e),0,[0],e))}function Gn(e,t,n,r,o,a,l,i,u){for(var c=0,m=0,p=l,d=0,g=0,f=0,h=1,w=1,x=1,S=0,b="",C=o,k=a,j=r,_=b;w;)switch(f=S,S=ke()){case 40:if(f!=108&&pe(_,p-1)==58){Xr(_+=D(Bn(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=Bn(S);break;case 9:case 10:case 13:case 32:_+=Eu(f);break;case 92:_+=Tu(Hn()-1,7);continue;case 47:switch(qe()){case 42:case 47:zn(Du(Ou(ke(),Hn()),t,n),u);break;default:_+="/"}break;case 123*h:i[c++]=We(_)*x;case 125*h:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:x==-1&&(_=D(_,/\f/g,"")),g>0&&We(_)-p&&zn(g>32?Kl(_+";",r,n,p-1):Kl(D(_," ","")+";",r,n,p-2),u);break;case 59:_+=";";default:if(zn(j=ql(_,t,n,c,m,o,i,b,C=[],k=[],p),a),S===123)if(m===0)Gn(_,t,j,j,C,a,p,i,k);else switch(d===99&&pe(_,3)===110?100:d){case 100:case 108:case 109:case 115:Gn(e,j,j,r&&zn(ql(e,j,j,0,0,o,i,b,o,C=[],p),k),o,k,p,i,r?C:k);break;default:Gn(_,j,j,j,[""],k,0,i,k)}}c=m=g=0,h=x=1,b=_="",p=l;break;case 58:p=1+We(_),g=f;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&$u()==125)continue}switch(_+=Vn(S),S*h){case 38:x=m>0?1:(_+="\f",-1);break;case 44:i[c++]=(We(_)-1)*x,x=1;break;case 64:qe()===45&&(_+=Bn(ke())),d=qe(),m=p=We(b=_+=Vu(Hn())),S++;break;case 45:f===45&&We(_)==2&&(h=0)}}return a}function ql(e,t,n,r,o,a,l,i,u,c,m){for(var p=o-1,d=o===0?a:[""],g=Yr(d),f=0,h=0,w=0;f<r;++f)for(var x=0,S=an(e,p+1,p=Mu(h=l[f])),b=e;x<g;++x)(b=Hl(h>0?d[x]+" "+S:D(S,/&\f/g,d[x])))&&(u[w++]=b);return Ln(e,t,n,o===0?Ur:i,u,c,m)}function Du(e,t,n){return Ln(e,t,n,Dl,Vn(Pu()),an(e,2,-2),0)}function Kl(e,t,n,r){return Ln(e,t,n,Jr,an(e,0,r),an(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Yr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Lu(e,t,n,r){switch(e.type){case Ru:if(e.children.length)break;case _u:case Jr:return e.return=e.return||e.value;case Dl:return"";case Ll:return e.return=e.value+"{"+Ht(e.children,r)+"}";case Ur:e.value=e.props.join(",")}return We(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hu(e){var t=Yr(e);return function(n,r,o,a){for(var l="",i=0;i<t;i++)l+=e[i](n,r,o,a)||"";return l}}function Bu(e){return function(t){t.root||(t=t.return)&&e(t)}}var Gu=function(e,t,n){for(var r=0,o=0;r=o,o=qe(),r===38&&o===12&&(t[n]=1),!cn(o);)ke();return sn(e,Ce)},Wu=function(e,t){var n=-1,r=44;do switch(cn(r)){case 0:r===38&&qe()===12&&(t[n]=1),e[n]+=Gu(Ce-1,t,n);break;case 2:e[n]+=Bn(r);break;case 4:if(r===44){e[++n]=qe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vn(r)}while(r=ke());return e},qu=function(e,t){return Wl(Wu(Gl(e),t))},Ul=new WeakMap,Ku=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ul.get(n))&&!r){Ul.set(e,!0);for(var o=[],a=qu(t,o),l=n.props,i=0,u=0;i<a.length;i++)for(var c=0;c<l.length;c++,u++)e.props[u]=o[i]?a[i].replace(/&\f/g,l[c]):l[c]+" "+a[i]}}},Uu=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Jl(e,t){switch(Fu(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+On+e+ye+e+e;case 6828:case 4268:return z+e+ye+e+e;case 6165:return z+e+ye+"flex-"+e+e;case 5187:return z+e+D(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ye+"flex-$1$2")+e;case 5443:return z+e+ye+"flex-item-"+D(e,/flex-|-self/,"")+e;case 4675:return z+e+ye+"flex-line-pack"+D(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ye+D(e,"shrink","negative")+e;case 5292:return z+e+ye+D(e,"basis","preferred-size")+e;case 6060:return z+"box-"+D(e,"-grow","")+z+e+ye+D(e,"grow","positive")+e;case 4554:return z+D(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(We(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+On+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xr(e,"stretch")?Jl(D(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,We(e)-3-(~Xr(e,"!important")&&10))){case 107:return D(e,":",":"+z)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(pe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ye+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ye+e+e}return e}var Ju=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jr:e.return=Jl(e.value,e.length);break;case Ll:return Ht([ln(e,{value:D(e.value,"@","@"+z)})],r);case Ur:if(e.length)return Iu(e.props,function(o){switch(Au(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([ln(e,{props:[D(o,/:(read-\w+)/,":"+On+"$1")]})],r);case"::placeholder":return Ht([ln(e,{props:[D(o,/:(plac\w+)/,":"+z+"input-$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,":"+On+"$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,ye+"input-$1")]})],r)}return""})}}],Qr=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||Ju,o={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),w=1;w<h.length;w++)o[h[w]]=!0;l.push(f)});var i,u=[Ku,Uu],c,m=[Lu,Bu(function(f){c.insert(f)})],p=Hu(u.concat(r,m)),d=function(f){return Ht(zu(f),p)};i=function(f,h,w,x){c=w,d(f?f+"{"+h.styles+"}":h.styles),x&&(g.inserted[h.name]=!0)};var g={key:t,sheet:new ku({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return g.sheet.hydrate(l),g},Xu=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function C(j){if(typeof j=="object"&&j){var _=j.$$typeof;switch(_){case n:switch(j=j.type,j){case c:case m:case o:case l:case a:case d:return j;default:switch(j&&(j=j.$$typeof),j){case u:case p:case h:case f:case i:return j;default:return _}}case r:return _}}}function k(j){return C(j)===m}e.AsyncMode=c,e.ConcurrentMode=m,e.ContextConsumer=u,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=o,e.Lazy=h,e.Memo=f,e.Portal=r,e.Profiler=l,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(j){return k(j)||C(j)===c},e.isConcurrentMode=k,e.isContextConsumer=function(j){return C(j)===u},e.isContextProvider=function(j){return C(j)===i},e.isElement=function(j){return typeof j=="object"&&!!j&&j.$$typeof===n},e.isForwardRef=function(j){return C(j)===p},e.isFragment=function(j){return C(j)===o},e.isLazy=function(j){return C(j)===h},e.isMemo=function(j){return C(j)===f},e.isPortal=function(j){return C(j)===r},e.isProfiler=function(j){return C(j)===l},e.isStrictMode=function(j){return C(j)===a},e.isSuspense=function(j){return C(j)===d},e.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===o||j===m||j===l||j===a||j===d||j===g||typeof j=="object"&&!!j&&(j.$$typeof===h||j.$$typeof===f||j.$$typeof===i||j.$$typeof===u||j.$$typeof===p||j.$$typeof===x||j.$$typeof===S||j.$$typeof===b||j.$$typeof===w)},e.typeOf=C})),Yu=Tt(((e,t)=>{t.exports=Xu()})),Zu=Tt(((e,t)=>{var n=Yu(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=l;function u(w){return n.isMemo(w)?l:i[w.$$typeof]||r}var c=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function h(w,x,S){if(typeof x!="string"){if(f){var b=g(x);b&&b!==f&&h(w,b,S)}var C=m(x);p&&(C=C.concat(p(x)));for(var k=u(w),j=u(x),_=0;_<C.length;++_){var R=C[_];if(!o[R]&&!(S&&S[R])&&!(j&&j[R])&&!(k&&k[R])){var F=d(x,R);try{c(w,R,F)}catch{}}}}return w}t.exports=h})),Qu=!0;function Xl(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]===void 0?o&&(r+=o+" "):t.push(e[o]+";")}),r}var eo=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||Qu===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},to=function(e,t,n){eo(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function ed(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var td={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nd=!1,rd=/[A-Z]|^ms/g,od=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yl=function(e){return e.charCodeAt(1)===45},Zl=function(e){return e!=null&&typeof e!="boolean"},no=sx(function(e){return Yl(e)?e:e.replace(rd,"-$&").toLowerCase()}),Ql=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(od,function(n,r,o){return Ke={name:r,styles:o,next:Ke},r})}return td[e]!==1&&!Yl(e)&&typeof t=="number"&&t!==0?t+"px":t},ad="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function un(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(o.anim===1)return Ke={name:o.name,styles:o.styles,next:Ke},o.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ke={name:l.name,styles:l.styles,next:Ke},l=l.next;return a.styles+";"}return ld(e,t,n);case"function":if(e!==void 0){var i=Ke,u=n(e);return Ke=i,un(e,t,u)}break}var c=n;if(t==null)return c;var m=t[c];return m===void 0?c:m}function ld(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=un(e,t,n[o])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var i=l;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Zl(i)&&(r+=no(a)+":"+Ql(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&nd)throw Error(ad);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Zl(l[u])&&(r+=no(a)+":"+Ql(a,l[u])+";");else{var c=un(e,t,l);switch(a){case"animation":case"animationName":r+=no(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}}}return r}var ei=/label:\s*([^\s;{]+)\s*(;|$)/g,Ke;function Wn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ke=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,o+=un(n,t,a)):o+=a[0];for(var l=1;l<e.length;l++)o+=un(n,t,e[l]),r&&(o+=a[l]);ei.lastIndex=0;for(var i="",u;(u=ei.exec(o))!==null;)i+="-"+u[1];return{name:ed(o)+i,styles:o,next:Ke}}var id=function(e){return e()},ti=v.useInsertionEffect?v.useInsertionEffect:!1,ni=ti||id,ri=ti||v.useLayoutEffect,oi=v.createContext(typeof HTMLElement<"u"?Qr({key:"css"}):null),sd=oi.Provider,ro=function(e){return(0,v.forwardRef)(function(t,n){return e(t,(0,v.useContext)(oi),n)})},dn=v.createContext({}),oo={}.hasOwnProperty,ao="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cd=function(e,t){var n={};for(var r in t)oo.call(t,r)&&(n[r]=t[r]);return n[ao]=e,n},ud=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eo(t,n,r),ni(function(){return to(t,n,r)}),null},dd=ro(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ao],a=[r],l="";typeof e.className=="string"?l=Xl(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var i=Wn(a,void 0,v.useContext(dn));l+=t.key+"-"+i.name;var u={};for(var c in e)oo.call(e,c)&&c!=="css"&&c!==ao&&(u[c]=e[c]);return u.className=l,n&&(u.ref=n),v.createElement(v.Fragment,null,v.createElement(ud,{cache:t,serialized:i,isStringTag:typeof o=="string"}),v.createElement(o,u))});Zu();var md=function(e,t){var n=arguments;if(t==null||!oo.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=Array(r);o[0]=dd,o[1]=cd(e,t);for(var a=2;a<r;a++)o[a]=n[a];return v.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(md||(md={}));var pd=ro(function(e,t){var n=e.styles,r=Wn([n],void 0,v.useContext(dn)),o=v.useRef();return ri(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),u!==null&&(i=!0,u.setAttribute("data-emotion",a),l.hydrate([u])),o.current=[l,i],function(){l.flush()}},[t]),ri(function(){var a=o.current,l=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&to(t,r.next,!0),l.tags.length&&(l.before=l.tags[l.tags.length-1].nextElementSibling,l.flush()),t.insert("",r,l,!1)},[t,r.name]),null}),fd=K(),s=Ar(Ey(),1);yl=e=>{let t=(0,fd.c)(6),{container:n,children:r}=e,o;e:{if(!n){let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=Qr({key:"mo",prepend:!0}),t[0]=u):u=t[0],o=u;break e}let i;if(t[1]!==n){let u=n.querySelector("style");u||(u=document.createElement("style"),n.append(u)),i=Qr({key:"mo",prepend:!0,container:u}),t[1]=n,t[2]=i}else i=t[2];o=i}let a=o,l;return t[3]!==a||t[4]!==r?(l=(0,s.jsx)(sd,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=l):l=t[5],l};var mn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},pn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},gd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function gt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",hd=!1,yd=cx,bd=function(e){return e!=="theme"},ai=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?yd:bd},li=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},xd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eo(t,n,r),ni(function(){return to(t,n,r)}),null},vd=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var i=li(t,n,r),u=i||ai(o),c=!u("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var h=ro(function(w,x,S){var b=c&&w.as||o,C="",k=[],j=w;if(w.theme==null){for(var _ in j={},w)j[_]=w[_];j.theme=v.useContext(dn)}typeof w.className=="string"?C=Xl(x.registered,k,w.className):w.className!=null&&(C=w.className+" ");var R=Wn(p.concat(k),x.registered,j);C+=x.key+"-"+R.name,l!==void 0&&(C+=" "+l);var F=c&&i===void 0?ai(b):u,y={};for(var N in w)c&&N==="as"||F(N)&&(y[N]=w[N]);return y.className=C,S&&(y.ref=S),v.createElement(v.Fragment,null,v.createElement(xd,{cache:x,serialized:R,isStringTag:typeof b=="string"}),v.createElement(b,y))});return h.displayName=a===void 0?"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")":a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=p,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return l===void 0&&hd?"NO_COMPONENT_SELECTOR":"."+l}}),h.withComponent=function(w,x){return e(w,ux({},n,x,{shouldForwardProp:li(h,x,!0)})).apply(void 0,p)},h}},wd="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),lo=vd.bind(null);wd.forEach(function(e){lo[e]=lo(e)});function Sd(e){return e==null||Object.keys(e).length===0}function ii(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(pd,{styles:typeof t=="function"?r=>t(Sd(r)?n:r):t})}function si(e,t){return lo(e,t)}function Cd(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ci=[];function ht(e){return ci[0]=e,Wn(ci)}var jd=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===u||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===c||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===p||d.getModuleId!==void 0))}})),ui=Tt(((e,t)=>{t.exports=jd()}))();function Ue(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function di(e){if(v.isValidElement(e)||(0,ui.isValidElementType)(e)||!Ue(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=di(e[n])}),t}function _e(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||(0,ui.isValidElementType)(t[o])?r[o]=t[o]:Ue(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ue(e[o])?r[o]=_e(e[o],t[o],n):n.clone?r[o]=Ue(t[o])?di(t[o]):t[o]:r[o]=t[o]}),r}var kd=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _d(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=kd(t),l=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,g){let f=l.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[l[f]]=="number"?t[l[f]]:g)-r/100}${n})`}function m(d){return l.indexOf(d)+1<l.length?c(d,l[l.indexOf(d)+1]):i(d)}function p(d){let g=l.indexOf(d);return g===0?i(l[1]):g===l.length-1?u(l[g]):c(d,l[l.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:i,down:u,between:c,only:m,not:p,unit:n,...o}}function mi(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var l,i;let a=/min-width:\s*([0-9.]+)/;return(((l=r.match(a))==null?void 0:l[1])||0)-+(((i=o.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,o)=>{let a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Rd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Md(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Nd(e){let t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...i)=>t(e.breakpoints.up(...i),l),a.down=(...i)=>t(e.breakpoints.down(...i),l),a.between=(...i)=>t(e.breakpoints.between(...i),l),a.only=(...i)=>t(e.breakpoints.only(...i),l),a.not=(...i)=>{let u=t(e.breakpoints.not(...i),l);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}let r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}var Fd={borderRadius:4};function Ad(e,t){return t?_e(e,t,{clone:!1}):e}var fn=Ad;const qn={xs:0,sm:600,md:900,lg:1200,xl:1536};var pi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qn[e]}px)`},Id={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:qn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function lt(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let o=r.breakpoints||pi;return t.reduce((a,l,i)=>(a[o.up(o.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let o=r.breakpoints||pi;return Object.keys(t).reduce((a,l)=>{if(Rd(o.keys,l)){let i=Md(r.containerQueries?r:Id,l);i&&(a[i]=n(t[l],l))}else if(Object.keys(o.values||qn).includes(l)){let i=o.up(l);a[i]=n(t[l],l)}else{let i=l;a[i]=t[i]}return a},{})}return n(t)}function Pd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let o=e.up(r);return n[o]={},n},{}))||{}}function fi(e,t){return e.reduce((n,r)=>{let o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function io(e){if(typeof e!="string")throw Error(gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Un(e,t,n,r=n){let o;return o=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:Kn(e,n)||r,t&&(o=t(o,r,e)),o}function $d(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=l=>{if(l[t]==null)return null;let i=l[t],u=l.theme,c=Kn(u,r)||{};return lt(l,i,m=>{let p=Un(c,o,m);return m===p&&typeof m=="string"&&(p=Un(c,o,`${t}${m==="default"?"":io(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var re=$d;function Ed(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Td={m:"margin",p:"padding"},Od={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vd=Ed(e=>{if(e.length>2)if(gi[e])e=gi[e];else return[e];let[t,n]=e.split(""),r=Td[t],o=Od[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]});const so=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var hi=[...so,...co];function gn(e,t,n,r){let o=Kn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;let l=o[Math.abs(a)];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function uo(e){return gn(e,"spacing",8,"spacing")}function hn(e,t){return typeof t=="string"||t==null?t:e(t)}function zd(e,t){return n=>e.reduce((r,o)=>(r[o]=hn(t,n),r),{})}function Dd(e,t,n,r){if(!t.includes(n))return null;let o=zd(Vd(n),r),a=e[n];return lt(e,a,o)}function mo(e,t){let n=uo(e.theme);return Object.keys(e).map(r=>Dd(e,t,r,n)).reduce(fn,{})}function ee(e){return mo(e,so)}ee.propTypes={},ee.filterProps=so;function te(e){return mo(e,co)}te.propTypes={},te.filterProps=co;function yi(e){return mo(e,hi)}yi.propTypes={},yi.filterProps=hi;function bi(e=8,t=uo({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(o=>{let a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Ld(...e){let t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?fn(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}var Jn=Ld;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Ee(e,t){return re({prop:e,themeKey:"borders",transform:t})}const Hd=Ee("border",$e),Bd=Ee("borderTop",$e),Gd=Ee("borderRight",$e),Wd=Ee("borderBottom",$e),qd=Ee("borderLeft",$e),Kd=Ee("borderColor"),Ud=Ee("borderTopColor"),Jd=Ee("borderRightColor"),Xd=Ee("borderBottomColor"),Yd=Ee("borderLeftColor"),Zd=Ee("outline",$e),Qd=Ee("outlineColor"),Xn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=gn(e.theme,"shape.borderRadius",4,"borderRadius");return lt(e,e.borderRadius,n=>({borderRadius:hn(t,n)}))}return null};Xn.propTypes={},Xn.filterProps=["borderRadius"],Jn(Hd,Bd,Gd,Wd,qd,Kd,Ud,Jd,Xd,Yd,Xn,Zd,Qd);const Yn=e=>{if(e.gap!==void 0&&e.gap!==null){let t=gn(e.theme,"spacing",8,"gap");return lt(e,e.gap,n=>({gap:hn(t,n)}))}return null};Yn.propTypes={},Yn.filterProps=["gap"];const Zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=gn(e.theme,"spacing",8,"columnGap");return lt(e,e.columnGap,n=>({columnGap:hn(t,n)}))}return null};Zn.propTypes={},Zn.filterProps=["columnGap"];const Qn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=gn(e.theme,"spacing",8,"rowGap");return lt(e,e.rowGap,n=>({rowGap:hn(t,n)}))}return null};Qn.propTypes={},Qn.filterProps=["rowGap"],Jn(Yn,Zn,Qn,re({prop:"gridColumn"}),re({prop:"gridRow"}),re({prop:"gridAutoFlow"}),re({prop:"gridAutoColumns"}),re({prop:"gridAutoRows"}),re({prop:"gridTemplateColumns"}),re({prop:"gridTemplateRows"}),re({prop:"gridTemplateAreas"}),re({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}Jn(re({prop:"color",themeKey:"palette",transform:Ut}),re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),re({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const em=re({prop:"width",transform:Re}),po=e=>e.maxWidth!==void 0&&e.maxWidth!==null?lt(e,e.maxWidth,t=>{var r,o,a,l,i;let n=((a=(o=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:o.values)==null?void 0:a[t])||qn[t];return n?((i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Re(t)}}):null;po.filterProps=["maxWidth"];const tm=re({prop:"minWidth",transform:Re}),nm=re({prop:"height",transform:Re}),rm=re({prop:"maxHeight",transform:Re}),om=re({prop:"minHeight",transform:Re});re({prop:"size",cssProperty:"width",transform:Re}),re({prop:"size",cssProperty:"height",transform:Re}),Jn(em,po,tm,nm,rm,om,re({prop:"boxSizing"}));var yn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xn},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yn},rowGap:{style:Qn},columnGap:{style:Zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:po},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function am(...e){let t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function lm(e,t){return typeof e=="function"?e(t):e}function im(){function e(n,r,o,a){let l={[n]:r,theme:o},i=a[n];if(!i)return{[n]:r};let{cssProperty:u=n,themeKey:c,transform:m,style:p}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};let d=Kn(o,c)||{};return p?p(l):lt(l,r,g=>{let f=Un(d,m,g);return g===f&&typeof g=="string"&&(f=Un(d,m,`${n}${g==="default"?"":io(g)}`,g)),u===!1?f:{[u]:f}})}function t(n){let{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;let l=o.unstable_sxConfig??yn;function i(u){let c=u;if(typeof u=="function")c=u(o);else if(typeof u!="object")return u;if(!c)return null;let m=Pd(o.breakpoints),p=Object.keys(m),d=m;return Object.keys(c).forEach(g=>{let f=lm(c[g],o);if(f!=null)if(typeof f=="object")if(l[g])d=fn(d,e(g,f,o,l));else{let h=lt({theme:o},f,w=>({[g]:w}));am(h,f)?d[g]=t({sx:f,theme:o,nested:!0}):d=fn(d,h)}else d=fn(d,e(g,f,o,l))}),!a&&o.modularCssLayers?{"@layer sx":mi(o,fi(p,d))}:mi(o,fi(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var xi=im();xi.filterProps=["sx"];var Mt=xi;function sm(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function cm(e={},...t){let{breakpoints:n={},palette:r={},spacing:o,shape:a={},...l}=e,i=_d(n),u=bi(o),c=_e({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Fd,...a}},l);return c=Nd(c),c.applyStyles=sm,c=t.reduce((m,p)=>_e(m,p),c),c.unstable_sxConfig={...yn,...l==null?void 0:l.unstable_sxConfig},c.unstable_sx=function(m){return Mt({sx:m,theme:this})},c}var fo=cm;function um(e){return Object.keys(e).length===0}function dm(e=null){let t=v.useContext(dn);return!t||um(t)?e:t}var go=dm;const mm=fo();function pm(e=mm){return go(e)}var ho=pm;function vi(e){let t=ht(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function fm({styles:e,themeId:t,defaultTheme:n={}}){let r=ho(n),o=t&&r[t]||r,a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(a=Array.isArray(a)?a.map(l=>vi(typeof l=="function"?l(o):l)):vi(a)),(0,s.jsx)(ii,{styles:a})}var wi=fm,gm=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??yn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function hm(e){let{sx:t,...n}=e,{systemProps:r,otherProps:o}=gm(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...l)=>{let i=t(...l);return Ue(i)?{...r,...i}:r}:{...r,...t},{...o,sx:a}}var Si=e=>e,Ci=(()=>{let e=Si;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Si}}})();function ym(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=si("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Mt);return v.forwardRef(function(l,i){let u=ho(n),{className:c,component:m="div",...p}=hm(l);return(0,s.jsx)(a,{as:m,ref:i,className:In(c,o?o(r):r),theme:t&&u[t]||u,...p})})}const bm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function er(e,t,n="Mui"){let r=bm[t];return r?`${n}-${r}`:`${Ci.generate(e)}-${t}`}function tr(e,t,n="Mui"){let r={};return t.forEach(o=>{r[o]=er(e,o,n)}),r}function ji(e){let{variants:t,...n}=e,r={variants:t,style:ht(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ht(o.style))}),r}const xm=fo();function yo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vm(e){return e?(t,n)=>n[e]:null}function wm(e,t,n){e.theme=Cm(e.theme)?n:e.theme[t]||e.theme}function nr(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>nr(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Nt(r.style,n):r.style;else{let{variants:a,...l}=r;o=n?Nt(ht(l),n):l}return ki(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Nt(ht(r.style),n):r.style:n?Nt(ht(r),n):r}function ki(e,t,n=[],r=void 0){var a;let o;e:for(let l=0;l<t.length;l+=1){let i=t[l];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(let u in i.props)if(e[u]!==i.props[u]&&((a=e.ownerState)==null?void 0:a[u])!==i.props[u])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(ht(i.style(o)),r):i.style(o))):n.push(r?Nt(ht(i.style),r):i.style)}return n}function Sm(e={}){let{themeId:t,defaultTheme:n=xm,rootShouldForwardProp:r=yo,slotShouldForwardProp:o=yo}=e;function a(l){wm(l,t,n)}return(l,i={})=>{Cd(l,k=>k.filter(j=>j!==Mt));let{name:u,slot:c,skipVariantsResolver:m,skipSx:p,overridesResolver:d=vm(km(c)),...g}=i,f=u&&u.startsWith("Mui")||c?"components":"custom",h=m===void 0?c&&c!=="Root"&&c!=="root"||!1:m,w=p||!1,x=yo;c==="Root"||c==="root"?x=r:c?x=o:jm(l)&&(x=void 0);let S=si(l,{shouldForwardProp:x,label:void 0,...g}),b=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return nr(j,k,j.theme.modularCssLayers?f:void 0)};if(Ue(k)){let j=ji(k);return function(_){return j.variants?nr(_,j,_.theme.modularCssLayers?f:void 0):_.theme.modularCssLayers?Nt(j.style,f):j.style}}return k},C=(...k)=>{let j=[],_=k.map(b),R=[];if(j.push(a),u&&d&&R.push(function(y){var T,B;let N=(B=(T=y.theme.components)==null?void 0:T[u])==null?void 0:B.styleOverrides;if(!N)return null;let A={};for(let ae in N)A[ae]=nr(y,N[ae],y.theme.modularCssLayers?"theme":void 0);return d(y,A)}),u&&!h&&R.push(function(y){var A,T,B;let N=(B=(T=(A=y.theme)==null?void 0:A.components)==null?void 0:T[u])==null?void 0:B.variants;return N?ki(y,N,[],y.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(_[0])){let y=_.shift(),N=Array(j.length).fill(""),A=Array(R.length).fill(""),T;T=[...N,...y,...A],T.raw=[...N,...y.raw,...A],j.unshift(T)}let F=S(...j,..._,...R);return l.muiName&&(F.muiName=l.muiName),F};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Cm(e){for(let t in e)return!1;return!0}function jm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function km(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function bo(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){let a=e[o],l=t[o];if(!l)n[o]=a||{};else if(!a)n[o]=l;else for(let i in n[o]={...l},a)if(Object.prototype.hasOwnProperty.call(a,i)){let u=i;n[o][u]=bo(a[u],l[u])}}else n[o]===void 0&&(n[o]=e[o])}return n}var Ft=typeof window<"u"?v.useLayoutEffect:v.useEffect;function _m(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Rm=_m;function xo(e,t=0,n=1){return Rm(e,t,n)}function Mm(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yt(e){if(e.type)return e;if(e.charAt(0)==="#")return yt(Mm(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(gt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw Error(gt(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Nm=e=>{let t=yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},bn=(e,t)=>{try{return Nm(e)}catch{return e}};function rr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function _i(e){e=yt(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(c,m=(c+n/30)%12)=>o-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(i+="a",u.push(t[3])),rr({type:i,values:u})}function vo(e){e=yt(e);let t=e.type==="hsl"||e.type==="hsla"?yt(_i(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fm(e,t){let n=vo(e),r=vo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function wo(e,t){return e=yt(e),t=xo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rr(e)}function or(e,t,n){try{return wo(e,t)}catch{return e}}function So(e,t){if(e=yt(e),t=xo(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rr(e)}function W(e,t,n){try{return So(e,t)}catch{return e}}function Co(e,t){if(e=yt(e),t=xo(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rr(e)}function q(e,t,n){try{return Co(e,t)}catch{return e}}function Am(e,t=.15){return vo(e)>.5?So(e,t):Co(e,t)}function ar(e,t,n){try{return Am(e,t)}catch{return e}}function Im(e,t=166){let n;function r(...o){clearTimeout(n),n=setTimeout(()=>{e.apply(this,o)},t)}return r.clear=()=>{clearTimeout(n)},r}function Pm(e){return e&&e.ownerDocument||document}function Ri(e){return Pm(e).defaultView||window}var Mi=0;function $m(e){let[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t??(Mi+=1,n(`mui-${Mi}`))},[t]),r}var Ni={...v}.useId;function Em(e){if(Ni!==void 0){let t=Ni();return e??t}return $m(e)}function Tm(e){let t=v.useRef(e);return Ft(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}var Om=Tm;function Fi(...e){let t=v.useRef(void 0),n=v.useCallback(r=>{let o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let l=a,i=l(r);return typeof i=="function"?i:()=>{l(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function jo(e,t,n=void 0){let r={};for(let o in e){let a=e[o],l="",i=!0;for(let u=0;u<a.length;u+=1){let c=a[u];c&&(l+=(i===!0?"":" ")+t(c),i=!1,n&&n[c]&&(l+=" "+n[c]))}r[o]=l}return r}var Ai=v.createContext(null);function ko(){return v.useContext(Ai)}var Vm=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function zm(e,t){return typeof t=="function"?t(e):{...e,...t}}function Dm(e){let{children:t,theme:n}=e,r=ko(),o=v.useMemo(()=>{let a=r===null?{...n}:zm(r,n);return a!=null&&(a[Vm]=r!==null),a},[n,r]);return(0,s.jsx)(Ai.Provider,{value:o,children:t})}var Lm=Dm,Hm=v.createContext();function Bm({value:e,...t}){return(0,s.jsx)(Hm.Provider,{value:e??!0,...t})}var Gm=Bm,Ii=v.createContext(void 0);function Wm({value:e,children:t}){return(0,s.jsx)(Ii.Provider,{value:e,children:t})}function qm(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let o=t.components[n];return o.defaultProps?bo(o.defaultProps,r):!o.styleOverrides&&!o.variants?bo(o,r):r}function Km({props:e,name:t}){return qm({props:e,name:t,theme:{components:v.useContext(Ii)}})}var Um=Wm;function Jm(e){let t=go(),n=Em()||"",{modularCssLayers:r}=e,o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,o):`@layer ${o};`,Ft(()=>{var i,u;let a=document.querySelector("head");if(!a)return;let l=a.firstChild;if(o){if(l&&((i=l.hasAttribute)!=null&&i.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===n)return;let c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=o,a.prepend(c)}else(u=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||u.remove()},[o,n]),o?(0,s.jsx)(wi,{styles:o}):null}var Pi={};function $i(e,t,n,r=!1){return v.useMemo(()=>{let o=e&&t[e]||t;if(typeof n=="function"){let a=n(o),l=e?{...t,[e]:a}:a;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Xm(e){let{children:t,theme:n,themeId:r}=e,o=go(Pi),a=ko()||Pi,l=$i(r,o,n),i=$i(r,a,n,!0),u=(r?l[r]:l).direction==="rtl",c=Jm(l);return(0,s.jsx)(Lm,{theme:i,children:(0,s.jsx)(dn.Provider,{value:l,children:(0,s.jsx)(Gm,{value:u,children:(0,s.jsxs)(Um,{value:r?l[r].components:l.components,children:[c,t]})})})})}var Ei=Xm,Ti={theme:void 0};function Ym(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(Ti.theme=r.theme,o=ji(e(Ti)),t=o,n=r.theme),o}}const _o="mode",Ro="color-scheme";function Zm(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=_o,colorSchemeStorageKey:a=Ro,attribute:l="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:u}=e||{},c="",m=l;if(l==="class"&&(m=".%s"),l==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);c+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
2
+ var sy=Object.defineProperty;var cy=(v,Ge,zt)=>Ge in v?sy(v,Ge,{enumerable:!0,configurable:!0,writable:!0,value:zt}):v[Ge]=zt;var An=(v,Ge,zt)=>cy(v,typeof Ge!="symbol"?Ge+"":Ge,zt);import{s as Ar,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as uy,c as dy,f as Vc,g as my,h as py,n as rt,p as jt,s as fy,u as Fa}from"./useEvent-DlWF5OMa.js";import{t as gy}from"./react-BGmjiNul.js";import{$r as hy,Cn as zc,Fr as Dc,Gn as Lc,Mr as yy,Nr as by,Rn as xy,Tn as vy,_t as Ir,ai as Hc,d as wy,jr as Sy,oi as Cy,si as jy,__tla as ky}from"./cells-D_SkyFDn.js";import{t as K}from"./compiler-runtime-DeeZ7FnK.js";import{i as kt,r as _y}from"./useLifecycle-CmDXEyIC.js";import{t as Ry}from"./capitalize-DQeWKRGx.js";import{a as My,n as Aa,r as Ny,t as Fy}from"./tooltip-CrRUCOBw.js";import{t as Pr}from"./range-sshwVRcP.js";import{a as $r,d as ot,f as Ay}from"./hotkeys-uKX61F1_.js";import{t as at}from"./invariant-C6yE60hi.js";import{r as Iy}from"./utils-CJJIceVn.js";import{M as Bc,d as Py,n as $y}from"./config-babG4OBR.js";import{t as Gc}from"./ErrorBoundary-Drf1manw.js";import{t as Ey}from"./jsx-runtime-DN_bIXfG.js";import{r as pt,t as de}from"./button-DuYGqRtX.js";import{n as In}from"./clsx-D0MtrJOx.js";import{t as O}from"./cn-C1rgT0yh.js";import{at as Ty}from"./dist-CAcX026F.js";import{r as Oy,t as Vy}from"./once-CTiSlR1m.js";import{t as zy}from"./createReducer-DDa-hVe3.js";import{n as Dy}from"./useNonce-EAuSVK-5.js";import{t as Wc}from"./requests-C0HaHO6a.js";import{t as Z}from"./createLucideIcon-CW2xpJ57.js";import{n as Ly,r as Hy,t as Ia}from"./table-BLx7B_us.js";import{t as By}from"./check-CrAQug3q.js";import{_ as Pa,a as Gy,c as qc,h as Kc,i as Er,n as Uc,o as Wy,r as qy,s as Jc,t as Xc}from"./select-D0g5GnIs.js";import{a as Ky,n as Uy,o as Yc,s as Jy}from"./download-CITws1-y.js";import{t as Xy}from"./chevron-right-CqEd11Di.js";import{a as Yy,d as Zy,f as Zc,l as Qy,p as eb,s as tb,t as nb,u as rb}from"./maps-s2pQkyf5.js";import{a as ob,c as ab,d as lb,f as Tr,i as ib,n as Or,o as sb,t as cb}from"./markdown-renderer-C_xfLXiO.js";import{A as Qc,C as ub,D as db,E as mb,O as pb,S as fb,T as gb,_ as hb,a as Q,b as yb,c as tn,d as Pn,f as $a,g as bb,h as xb,k as vb,m as wb,p as Ea,r as Ta,s as Vr,t as Oa,u as nn,v as Sb,w as Cb,x as jb,y as kb}from"./dropdown-menu-BP4_BZLr.js";import{t as zr}from"./copy-gBVL4NN-.js";import{n as _b,t as eu}from"./spinner-C1czjtp7.js";import{i as Rb,n as Mb,r as Nb,t as Fb}from"./MarimoErrorOutput-Orp0blpZ.js";import{lt as Va,o as tu,r as Ab}from"./input-CaEtLL8p.js";import{t as Ib}from"./badge-DAnNhy3O.js";import{t as Pb}from"./preload-helper-BW0IMuFq.js";import{t as Dr}from"./use-toast-Bzf3rpev.js";import{r as za}from"./useTheme-DfP1CWaW.js";import{E as $b,S as Eb,_ as Tb,c as nu,g as Ob,o as Vb,s as zb,u as Db,w as $n}from"./Combination-D1TsGrBC.js";import{t as ze}from"./tooltip-CvjcEpZC.js";import{a as Lb,c as Hb,i as Da,l as Bb,o as Gb,r as ru,s as Wb}from"./menu-items-9PZrU2e0.js";import{a as qb,n as Kb,r as Ub,t as Jb}from"./dates-CdsE1R40.js";import{t as ou}from"./isValid-DhzaK-Y1.js";import{t as Lr}from"./useDateFormatter-CV0QXb5P.js";import{t as ft}from"./context-BAYdLMF_.js";import{t as Xb}from"./useNumberFormatter-D8ks3oPN.js";import{i as La,n as Yb,o as Zb,r as Ha,t as Ba}from"./popover-DtnzNVk-.js";import{i as Ga,n as Qb,r as Pe,t as ex}from"./numbers-C9_R_vlY.js";import{a as tx,n as au,t as nx}from"./error-banner-DU5Qb8a8.js";import{n as rx}from"./vega-loader.browser-C8wT63Va.js";import{t as rn}from"./copy-DRhpWiOq.js";import{t as ox}from"./copy-icon-B69c-352.js";import{t as Wa}from"./RenderHTML-BzGWfPTJ.js";import{i as ax,n as lx,r as ix}from"./multi-map-fjX9ImVF.js";import{n as sx,t as cx}from"./emotion-is-prop-valid.esm-lG8j6oqk.js";import{t as ux}from"./extends-B9D0JO9U.js";import{t as dx}from"./kbd-Czc5z_04.js";import{r as mx}from"./cell-link-BoUpLV2S.js";import{t as px}from"./useIframeCapabilities-CU-WWxnz.js";import{i as fx,n as gx,r as hx,t as yx}from"./tabs-Ctk4D03n.js";import{n as bx}from"./useAsyncData-BJJJOr9W.js";import{a as xx,o as lu,r as vx,s as wx,t as Sx}from"./command-Qt3ng7cb.js";import{t as Cx}from"./formats-B9CrBoaO.js";import{a as jx,i as kx,n as _x,o as qa,r as iu,t as Rx}from"./table--_20dwBZ.js";let En,su,Ka,Ua,Ja,Xa,cu,Hr,uu,Br,du,Ot,Ya,Gr,Za,mu,pu,Qa,el,tl,nl,fu,gu,rl,ol,Tn,al,ll,il,sl,hu,cl,ul,dl,Wr,Vt,yu,bu,ml,pl,qr,fl,gl,xu,hl,yl,_t,vu,on,bl,xl,vl,wl,Sl,wu,Cl,Mx=Promise.all([(()=>{try{return ky}catch{}})()]).then(async()=>{var Et;var v=Ar(gy(),1),Ge=new WeakMap;function zt(e,t){let n=Vc(t),r=jl(n);for(let[o,...a]of e)(!r.has(o)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(o),n.set(o,...a))}let jl,kl,_l,Kr,Rl,Ml,Nl,Fl,Al,Il,Pl,$l,El,Tl,Ol,Vl,zl;jl=e=>{let t=Ge.get(e);return t||(t=new WeakSet,Ge.set(e,t)),t},gl=Z("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),kl=Z("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),_l=Z("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),Kr=Z("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),Rl=Z("chart-column-stacked",[["path",{d:"M11 13H7",key:"t0o9gq"}],["path",{d:"M19 9h-4",key:"rera1j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]),Ml=Z("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),bl=Z("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ul=Z("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),Nl=Z("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Fl=Z("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),Al=Z("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Il=Z("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),En=Z("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Qa=Z("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Pl=Z("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),$l=Z("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),El=Z("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Tl=Z("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),al=Z("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),Ol=Z("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Vl=Z("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),zl=Z("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),ol=Z("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]),Tn=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},du=function(){return at(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files};var Su=!1;function Cu(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ju(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ku=(function(){function e(n){var r=this;this._insertTag=function(o){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Su:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(ju(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Cu(r);try{o.insertRule(n,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ye="-ms-",On="-moz-",z="-webkit-",Dl="comm",Ur="rule",Jr="decl",_u="@import",Ll="@keyframes",Ru="@layer",Mu=Math.abs,Vn=String.fromCharCode,Nu=Object.assign;function Fu(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function Hl(e){return e.trim()}function Au(e,t){return(e=t.exec(e))?e[0]:e}function D(e,t,n){return e.replace(t,n)}function Xr(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function an(e,t,n){return e.slice(t,n)}function We(e){return e.length}function Yr(e){return e.length}function zn(e,t){return t.push(e),e}function Iu(e,t){return e.map(t).join("")}var Dn=1,Dt=1,Bl=0,Ce=0,ie=0,Lt="";function Ln(e,t,n,r,o,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Dn,column:Dt,length:l,return:""}}function ln(e,t){return Nu(Ln("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pu(){return ie}function $u(){return ie=Ce>0?pe(Lt,--Ce):0,Dt--,ie===10&&(Dt=1,Dn--),ie}function ke(){return ie=Ce<Bl?pe(Lt,Ce++):0,Dt++,ie===10&&(Dt=1,Dn++),ie}function qe(){return pe(Lt,Ce)}function Hn(){return Ce}function sn(e,t){return an(Lt,e,t)}function cn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gl(e){return Dn=Dt=1,Bl=We(Lt=e),Ce=0,[]}function Wl(e){return Lt="",e}function Bn(e){return Hl(sn(Ce-1,Zr(e===91?e+2:e===40?e+1:e)))}function Eu(e){for(;(ie=qe())&&ie<33;)ke();return cn(e)>2||cn(ie)>3?"":" "}function Tu(e,t){for(;--t&&ke()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return sn(e,Hn()+(t<6&&qe()==32&&ke()==32))}function Zr(e){for(;ke();)switch(ie){case e:return Ce;case 34:case 39:e!==34&&e!==39&&Zr(ie);break;case 40:e===41&&Zr(e);break;case 92:ke();break}return Ce}function Ou(e,t){for(;ke()&&e+ie!==57&&!(e+ie===84&&qe()===47););return"/*"+sn(t,Ce-1)+"*"+Vn(e===47?e:ke())}function Vu(e){for(;!cn(qe());)ke();return sn(e,Ce)}function zu(e){return Wl(Gn("",null,null,null,[""],e=Gl(e),0,[0],e))}function Gn(e,t,n,r,o,a,l,i,u){for(var c=0,m=0,p=l,d=0,g=0,f=0,h=1,w=1,x=1,S=0,b="",C=o,k=a,j=r,_=b;w;)switch(f=S,S=ke()){case 40:if(f!=108&&pe(_,p-1)==58){Xr(_+=D(Bn(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:_+=Bn(S);break;case 9:case 10:case 13:case 32:_+=Eu(f);break;case 92:_+=Tu(Hn()-1,7);continue;case 47:switch(qe()){case 42:case 47:zn(Du(Ou(ke(),Hn()),t,n),u);break;default:_+="/"}break;case 123*h:i[c++]=We(_)*x;case 125*h:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:x==-1&&(_=D(_,/\f/g,"")),g>0&&We(_)-p&&zn(g>32?Kl(_+";",r,n,p-1):Kl(D(_," ","")+";",r,n,p-2),u);break;case 59:_+=";";default:if(zn(j=ql(_,t,n,c,m,o,i,b,C=[],k=[],p),a),S===123)if(m===0)Gn(_,t,j,j,C,a,p,i,k);else switch(d===99&&pe(_,3)===110?100:d){case 100:case 108:case 109:case 115:Gn(e,j,j,r&&zn(ql(e,j,j,0,0,o,i,b,o,C=[],p),k),o,k,p,i,r?C:k);break;default:Gn(_,j,j,j,[""],k,0,i,k)}}c=m=g=0,h=x=1,b=_="",p=l;break;case 58:p=1+We(_),g=f;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&$u()==125)continue}switch(_+=Vn(S),S*h){case 38:x=m>0?1:(_+="\f",-1);break;case 44:i[c++]=(We(_)-1)*x,x=1;break;case 64:qe()===45&&(_+=Bn(ke())),d=qe(),m=p=We(b=_+=Vu(Hn())),S++;break;case 45:f===45&&We(_)==2&&(h=0)}}return a}function ql(e,t,n,r,o,a,l,i,u,c,m){for(var p=o-1,d=o===0?a:[""],g=Yr(d),f=0,h=0,w=0;f<r;++f)for(var x=0,S=an(e,p+1,p=Mu(h=l[f])),b=e;x<g;++x)(b=Hl(h>0?d[x]+" "+S:D(S,/&\f/g,d[x])))&&(u[w++]=b);return Ln(e,t,n,o===0?Ur:i,u,c,m)}function Du(e,t,n){return Ln(e,t,n,Dl,Vn(Pu()),an(e,2,-2),0)}function Kl(e,t,n,r){return Ln(e,t,n,Jr,an(e,0,r),an(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Yr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Lu(e,t,n,r){switch(e.type){case Ru:if(e.children.length)break;case _u:case Jr:return e.return=e.return||e.value;case Dl:return"";case Ll:return e.return=e.value+"{"+Ht(e.children,r)+"}";case Ur:e.value=e.props.join(",")}return We(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hu(e){var t=Yr(e);return function(n,r,o,a){for(var l="",i=0;i<t;i++)l+=e[i](n,r,o,a)||"";return l}}function Bu(e){return function(t){t.root||(t=t.return)&&e(t)}}var Gu=function(e,t,n){for(var r=0,o=0;r=o,o=qe(),r===38&&o===12&&(t[n]=1),!cn(o);)ke();return sn(e,Ce)},Wu=function(e,t){var n=-1,r=44;do switch(cn(r)){case 0:r===38&&qe()===12&&(t[n]=1),e[n]+=Gu(Ce-1,t,n);break;case 2:e[n]+=Bn(r);break;case 4:if(r===44){e[++n]=qe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vn(r)}while(r=ke());return e},qu=function(e,t){return Wl(Wu(Gl(e),t))},Ul=new WeakMap,Ku=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ul.get(n))&&!r){Ul.set(e,!0);for(var o=[],a=qu(t,o),l=n.props,i=0,u=0;i<a.length;i++)for(var c=0;c<l.length;c++,u++)e.props[u]=o[i]?a[i].replace(/&\f/g,l[c]):l[c]+" "+a[i]}}},Uu=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Jl(e,t){switch(Fu(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+On+e+ye+e+e;case 6828:case 4268:return z+e+ye+e+e;case 6165:return z+e+ye+"flex-"+e+e;case 5187:return z+e+D(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ye+"flex-$1$2")+e;case 5443:return z+e+ye+"flex-item-"+D(e,/flex-|-self/,"")+e;case 4675:return z+e+ye+"flex-line-pack"+D(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ye+D(e,"shrink","negative")+e;case 5292:return z+e+ye+D(e,"basis","preferred-size")+e;case 6060:return z+"box-"+D(e,"-grow","")+z+e+ye+D(e,"grow","positive")+e;case 4554:return z+D(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(We(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+On+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xr(e,"stretch")?Jl(D(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,We(e)-3-(~Xr(e,"!important")&&10))){case 107:return D(e,":",":"+z)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(pe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ye+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ye+e+e}return e}var Ju=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jr:e.return=Jl(e.value,e.length);break;case Ll:return Ht([ln(e,{value:D(e.value,"@","@"+z)})],r);case Ur:if(e.length)return Iu(e.props,function(o){switch(Au(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([ln(e,{props:[D(o,/:(read-\w+)/,":"+On+"$1")]})],r);case"::placeholder":return Ht([ln(e,{props:[D(o,/:(plac\w+)/,":"+z+"input-$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,":"+On+"$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,ye+"input-$1")]})],r)}return""})}}],Qr=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||Ju,o={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),w=1;w<h.length;w++)o[h[w]]=!0;l.push(f)});var i,u=[Ku,Uu],c,m=[Lu,Bu(function(f){c.insert(f)})],p=Hu(u.concat(r,m)),d=function(f){return Ht(zu(f),p)};i=function(f,h,w,x){c=w,d(f?f+"{"+h.styles+"}":h.styles),x&&(g.inserted[h.name]=!0)};var g={key:t,sheet:new ku({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return g.sheet.hydrate(l),g},Xu=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function C(j){if(typeof j=="object"&&j){var _=j.$$typeof;switch(_){case n:switch(j=j.type,j){case c:case m:case o:case l:case a:case d:return j;default:switch(j&&(j=j.$$typeof),j){case u:case p:case h:case f:case i:return j;default:return _}}case r:return _}}}function k(j){return C(j)===m}e.AsyncMode=c,e.ConcurrentMode=m,e.ContextConsumer=u,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=o,e.Lazy=h,e.Memo=f,e.Portal=r,e.Profiler=l,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(j){return k(j)||C(j)===c},e.isConcurrentMode=k,e.isContextConsumer=function(j){return C(j)===u},e.isContextProvider=function(j){return C(j)===i},e.isElement=function(j){return typeof j=="object"&&!!j&&j.$$typeof===n},e.isForwardRef=function(j){return C(j)===p},e.isFragment=function(j){return C(j)===o},e.isLazy=function(j){return C(j)===h},e.isMemo=function(j){return C(j)===f},e.isPortal=function(j){return C(j)===r},e.isProfiler=function(j){return C(j)===l},e.isStrictMode=function(j){return C(j)===a},e.isSuspense=function(j){return C(j)===d},e.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===o||j===m||j===l||j===a||j===d||j===g||typeof j=="object"&&!!j&&(j.$$typeof===h||j.$$typeof===f||j.$$typeof===i||j.$$typeof===u||j.$$typeof===p||j.$$typeof===x||j.$$typeof===S||j.$$typeof===b||j.$$typeof===w)},e.typeOf=C})),Yu=Tt(((e,t)=>{t.exports=Xu()})),Zu=Tt(((e,t)=>{var n=Yu(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=l;function u(w){return n.isMemo(w)?l:i[w.$$typeof]||r}var c=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function h(w,x,S){if(typeof x!="string"){if(f){var b=g(x);b&&b!==f&&h(w,b,S)}var C=m(x);p&&(C=C.concat(p(x)));for(var k=u(w),j=u(x),_=0;_<C.length;++_){var R=C[_];if(!o[R]&&!(S&&S[R])&&!(j&&j[R])&&!(k&&k[R])){var F=d(x,R);try{c(w,R,F)}catch{}}}}return w}t.exports=h})),Qu=!0;function Xl(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]===void 0?o&&(r+=o+" "):t.push(e[o]+";")}),r}var eo=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||Qu===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},to=function(e,t,n){eo(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function ed(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var td={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nd=!1,rd=/[A-Z]|^ms/g,od=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yl=function(e){return e.charCodeAt(1)===45},Zl=function(e){return e!=null&&typeof e!="boolean"},no=sx(function(e){return Yl(e)?e:e.replace(rd,"-$&").toLowerCase()}),Ql=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(od,function(n,r,o){return Ke={name:r,styles:o,next:Ke},r})}return td[e]!==1&&!Yl(e)&&typeof t=="number"&&t!==0?t+"px":t},ad="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function un(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(o.anim===1)return Ke={name:o.name,styles:o.styles,next:Ke},o.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ke={name:l.name,styles:l.styles,next:Ke},l=l.next;return a.styles+";"}return ld(e,t,n);case"function":if(e!==void 0){var i=Ke,u=n(e);return Ke=i,un(e,t,u)}break}var c=n;if(t==null)return c;var m=t[c];return m===void 0?c:m}function ld(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=un(e,t,n[o])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var i=l;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Zl(i)&&(r+=no(a)+":"+Ql(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&nd)throw Error(ad);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Zl(l[u])&&(r+=no(a)+":"+Ql(a,l[u])+";");else{var c=un(e,t,l);switch(a){case"animation":case"animationName":r+=no(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}}}return r}var ei=/label:\s*([^\s;{]+)\s*(;|$)/g,Ke;function Wn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ke=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,o+=un(n,t,a)):o+=a[0];for(var l=1;l<e.length;l++)o+=un(n,t,e[l]),r&&(o+=a[l]);ei.lastIndex=0;for(var i="",u;(u=ei.exec(o))!==null;)i+="-"+u[1];return{name:ed(o)+i,styles:o,next:Ke}}var id=function(e){return e()},ti=v.useInsertionEffect?v.useInsertionEffect:!1,ni=ti||id,ri=ti||v.useLayoutEffect,oi=v.createContext(typeof HTMLElement<"u"?Qr({key:"css"}):null),sd=oi.Provider,ro=function(e){return(0,v.forwardRef)(function(t,n){return e(t,(0,v.useContext)(oi),n)})},dn=v.createContext({}),oo={}.hasOwnProperty,ao="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cd=function(e,t){var n={};for(var r in t)oo.call(t,r)&&(n[r]=t[r]);return n[ao]=e,n},ud=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eo(t,n,r),ni(function(){return to(t,n,r)}),null},dd=ro(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ao],a=[r],l="";typeof e.className=="string"?l=Xl(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var i=Wn(a,void 0,v.useContext(dn));l+=t.key+"-"+i.name;var u={};for(var c in e)oo.call(e,c)&&c!=="css"&&c!==ao&&(u[c]=e[c]);return u.className=l,n&&(u.ref=n),v.createElement(v.Fragment,null,v.createElement(ud,{cache:t,serialized:i,isStringTag:typeof o=="string"}),v.createElement(o,u))});Zu();var md=function(e,t){var n=arguments;if(t==null||!oo.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,o=Array(r);o[0]=dd,o[1]=cd(e,t);for(var a=2;a<r;a++)o[a]=n[a];return v.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(md||(md={}));var pd=ro(function(e,t){var n=e.styles,r=Wn([n],void 0,v.useContext(dn)),o=v.useRef();return ri(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),u!==null&&(i=!0,u.setAttribute("data-emotion",a),l.hydrate([u])),o.current=[l,i],function(){l.flush()}},[t]),ri(function(){var a=o.current,l=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&to(t,r.next,!0),l.tags.length&&(l.before=l.tags[l.tags.length-1].nextElementSibling,l.flush()),t.insert("",r,l,!1)},[t,r.name]),null}),fd=K(),s=Ar(Ey(),1);yl=e=>{let t=(0,fd.c)(6),{container:n,children:r}=e,o;e:{if(!n){let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=Qr({key:"mo",prepend:!0}),t[0]=u):u=t[0],o=u;break e}let i;if(t[1]!==n){let u=n.querySelector("style");u||(u=document.createElement("style"),n.append(u)),i=Qr({key:"mo",prepend:!0,container:u}),t[1]=n,t[2]=i}else i=t[2];o=i}let a=o,l;return t[3]!==a||t[4]!==r?(l=(0,s.jsx)(sd,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=l):l=t[5],l};var mn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},pn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},gd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function gt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",hd=!1,yd=cx,bd=function(e){return e!=="theme"},ai=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?yd:bd},li=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},xd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eo(t,n,r),ni(function(){return to(t,n,r)}),null},vd=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var i=li(t,n,r),u=i||ai(o),c=!u("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var h=ro(function(w,x,S){var b=c&&w.as||o,C="",k=[],j=w;if(w.theme==null){for(var _ in j={},w)j[_]=w[_];j.theme=v.useContext(dn)}typeof w.className=="string"?C=Xl(x.registered,k,w.className):w.className!=null&&(C=w.className+" ");var R=Wn(p.concat(k),x.registered,j);C+=x.key+"-"+R.name,l!==void 0&&(C+=" "+l);var F=c&&i===void 0?ai(b):u,y={};for(var N in w)c&&N==="as"||F(N)&&(y[N]=w[N]);return y.className=C,S&&(y.ref=S),v.createElement(v.Fragment,null,v.createElement(xd,{cache:x,serialized:R,isStringTag:typeof b=="string"}),v.createElement(b,y))});return h.displayName=a===void 0?"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")":a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=p,h.__emotion_forwardProp=i,Object.defineProperty(h,"toString",{value:function(){return l===void 0&&hd?"NO_COMPONENT_SELECTOR":"."+l}}),h.withComponent=function(w,x){return e(w,ux({},n,x,{shouldForwardProp:li(h,x,!0)})).apply(void 0,p)},h}},wd="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),lo=vd.bind(null);wd.forEach(function(e){lo[e]=lo(e)});function Sd(e){return e==null||Object.keys(e).length===0}function ii(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(pd,{styles:typeof t=="function"?r=>t(Sd(r)?n:r):t})}function si(e,t){return lo(e,t)}function Cd(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ci=[];function ht(e){return ci[0]=e,Wn(ci)}var jd=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===u||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===c||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===p||d.getModuleId!==void 0))}})),ui=Tt(((e,t)=>{t.exports=jd()}))();function Ue(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function di(e){if(v.isValidElement(e)||(0,ui.isValidElementType)(e)||!Ue(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=di(e[n])}),t}function _e(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||(0,ui.isValidElementType)(t[o])?r[o]=t[o]:Ue(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ue(e[o])?r[o]=_e(e[o],t[o],n):n.clone?r[o]=Ue(t[o])?di(t[o]):t[o]:r[o]=t[o]}),r}var kd=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _d(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=kd(t),l=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,g){let f=l.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[l[f]]=="number"?t[l[f]]:g)-r/100}${n})`}function m(d){return l.indexOf(d)+1<l.length?c(d,l[l.indexOf(d)+1]):i(d)}function p(d){let g=l.indexOf(d);return g===0?i(l[1]):g===l.length-1?u(l[g]):c(d,l[l.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:i,down:u,between:c,only:m,not:p,unit:n,...o}}function mi(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var l,i;let a=/min-width:\s*([0-9.]+)/;return(((l=r.match(a))==null?void 0:l[1])||0)-+(((i=o.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,o)=>{let a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Rd(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Md(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Nd(e){let t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...i)=>t(e.breakpoints.up(...i),l),a.down=(...i)=>t(e.breakpoints.down(...i),l),a.between=(...i)=>t(e.breakpoints.between(...i),l),a.only=(...i)=>t(e.breakpoints.only(...i),l),a.not=(...i)=>{let u=t(e.breakpoints.not(...i),l);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}let r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}var Fd={borderRadius:4};function Ad(e,t){return t?_e(e,t,{clone:!1}):e}var fn=Ad;const qn={xs:0,sm:600,md:900,lg:1200,xl:1536};var pi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qn[e]}px)`},Id={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:qn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function lt(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let o=r.breakpoints||pi;return t.reduce((a,l,i)=>(a[o.up(o.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let o=r.breakpoints||pi;return Object.keys(t).reduce((a,l)=>{if(Rd(o.keys,l)){let i=Md(r.containerQueries?r:Id,l);i&&(a[i]=n(t[l],l))}else if(Object.keys(o.values||qn).includes(l)){let i=o.up(l);a[i]=n(t[l],l)}else{let i=l;a[i]=t[i]}return a},{})}return n(t)}function Pd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let o=e.up(r);return n[o]={},n},{}))||{}}function fi(e,t){return e.reduce((n,r)=>{let o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function io(e){if(typeof e!="string")throw Error(gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Un(e,t,n,r=n){let o;return o=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:Kn(e,n)||r,t&&(o=t(o,r,e)),o}function $d(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=l=>{if(l[t]==null)return null;let i=l[t],u=l.theme,c=Kn(u,r)||{};return lt(l,i,m=>{let p=Un(c,o,m);return m===p&&typeof m=="string"&&(p=Un(c,o,`${t}${m==="default"?"":io(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var re=$d;function Ed(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Td={m:"margin",p:"padding"},Od={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vd=Ed(e=>{if(e.length>2)if(gi[e])e=gi[e];else return[e];let[t,n]=e.split(""),r=Td[t],o=Od[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]});const so=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var hi=[...so,...co];function gn(e,t,n,r){let o=Kn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;let l=o[Math.abs(a)];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function uo(e){return gn(e,"spacing",8,"spacing")}function hn(e,t){return typeof t=="string"||t==null?t:e(t)}function zd(e,t){return n=>e.reduce((r,o)=>(r[o]=hn(t,n),r),{})}function Dd(e,t,n,r){if(!t.includes(n))return null;let o=zd(Vd(n),r),a=e[n];return lt(e,a,o)}function mo(e,t){let n=uo(e.theme);return Object.keys(e).map(r=>Dd(e,t,r,n)).reduce(fn,{})}function ee(e){return mo(e,so)}ee.propTypes={},ee.filterProps=so;function te(e){return mo(e,co)}te.propTypes={},te.filterProps=co;function yi(e){return mo(e,hi)}yi.propTypes={},yi.filterProps=hi;function bi(e=8,t=uo({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(o=>{let a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Ld(...e){let t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?fn(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}var Jn=Ld;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Ee(e,t){return re({prop:e,themeKey:"borders",transform:t})}const Hd=Ee("border",$e),Bd=Ee("borderTop",$e),Gd=Ee("borderRight",$e),Wd=Ee("borderBottom",$e),qd=Ee("borderLeft",$e),Kd=Ee("borderColor"),Ud=Ee("borderTopColor"),Jd=Ee("borderRightColor"),Xd=Ee("borderBottomColor"),Yd=Ee("borderLeftColor"),Zd=Ee("outline",$e),Qd=Ee("outlineColor"),Xn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=gn(e.theme,"shape.borderRadius",4,"borderRadius");return lt(e,e.borderRadius,n=>({borderRadius:hn(t,n)}))}return null};Xn.propTypes={},Xn.filterProps=["borderRadius"],Jn(Hd,Bd,Gd,Wd,qd,Kd,Ud,Jd,Xd,Yd,Xn,Zd,Qd);const Yn=e=>{if(e.gap!==void 0&&e.gap!==null){let t=gn(e.theme,"spacing",8,"gap");return lt(e,e.gap,n=>({gap:hn(t,n)}))}return null};Yn.propTypes={},Yn.filterProps=["gap"];const Zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=gn(e.theme,"spacing",8,"columnGap");return lt(e,e.columnGap,n=>({columnGap:hn(t,n)}))}return null};Zn.propTypes={},Zn.filterProps=["columnGap"];const Qn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=gn(e.theme,"spacing",8,"rowGap");return lt(e,e.rowGap,n=>({rowGap:hn(t,n)}))}return null};Qn.propTypes={},Qn.filterProps=["rowGap"],Jn(Yn,Zn,Qn,re({prop:"gridColumn"}),re({prop:"gridRow"}),re({prop:"gridAutoFlow"}),re({prop:"gridAutoColumns"}),re({prop:"gridAutoRows"}),re({prop:"gridTemplateColumns"}),re({prop:"gridTemplateRows"}),re({prop:"gridTemplateAreas"}),re({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}Jn(re({prop:"color",themeKey:"palette",transform:Ut}),re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),re({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const em=re({prop:"width",transform:Re}),po=e=>e.maxWidth!==void 0&&e.maxWidth!==null?lt(e,e.maxWidth,t=>{var r,o,a,l,i;let n=((a=(o=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:o.values)==null?void 0:a[t])||qn[t];return n?((i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Re(t)}}):null;po.filterProps=["maxWidth"];const tm=re({prop:"minWidth",transform:Re}),nm=re({prop:"height",transform:Re}),rm=re({prop:"maxHeight",transform:Re}),om=re({prop:"minHeight",transform:Re});re({prop:"size",cssProperty:"width",transform:Re}),re({prop:"size",cssProperty:"height",transform:Re}),Jn(em,po,tm,nm,rm,om,re({prop:"boxSizing"}));var yn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xn},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yn},rowGap:{style:Qn},columnGap:{style:Zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:po},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function am(...e){let t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function lm(e,t){return typeof e=="function"?e(t):e}function im(){function e(n,r,o,a){let l={[n]:r,theme:o},i=a[n];if(!i)return{[n]:r};let{cssProperty:u=n,themeKey:c,transform:m,style:p}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};let d=Kn(o,c)||{};return p?p(l):lt(l,r,g=>{let f=Un(d,m,g);return g===f&&typeof g=="string"&&(f=Un(d,m,`${n}${g==="default"?"":io(g)}`,g)),u===!1?f:{[u]:f}})}function t(n){let{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;let l=o.unstable_sxConfig??yn;function i(u){let c=u;if(typeof u=="function")c=u(o);else if(typeof u!="object")return u;if(!c)return null;let m=Pd(o.breakpoints),p=Object.keys(m),d=m;return Object.keys(c).forEach(g=>{let f=lm(c[g],o);if(f!=null)if(typeof f=="object")if(l[g])d=fn(d,e(g,f,o,l));else{let h=lt({theme:o},f,w=>({[g]:w}));am(h,f)?d[g]=t({sx:f,theme:o,nested:!0}):d=fn(d,h)}else d=fn(d,e(g,f,o,l))}),!a&&o.modularCssLayers?{"@layer sx":mi(o,fi(p,d))}:mi(o,fi(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var xi=im();xi.filterProps=["sx"];var Mt=xi;function sm(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function cm(e={},...t){let{breakpoints:n={},palette:r={},spacing:o,shape:a={},...l}=e,i=_d(n),u=bi(o),c=_e({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Fd,...a}},l);return c=Nd(c),c.applyStyles=sm,c=t.reduce((m,p)=>_e(m,p),c),c.unstable_sxConfig={...yn,...l==null?void 0:l.unstable_sxConfig},c.unstable_sx=function(m){return Mt({sx:m,theme:this})},c}var fo=cm;function um(e){return Object.keys(e).length===0}function dm(e=null){let t=v.useContext(dn);return!t||um(t)?e:t}var go=dm;const mm=fo();function pm(e=mm){return go(e)}var ho=pm;function vi(e){let t=ht(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function fm({styles:e,themeId:t,defaultTheme:n={}}){let r=ho(n),o=t&&r[t]||r,a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(a=Array.isArray(a)?a.map(l=>vi(typeof l=="function"?l(o):l)):vi(a)),(0,s.jsx)(ii,{styles:a})}var wi=fm,gm=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??yn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function hm(e){let{sx:t,...n}=e,{systemProps:r,otherProps:o}=gm(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...l)=>{let i=t(...l);return Ue(i)?{...r,...i}:r}:{...r,...t},{...o,sx:a}}var Si=e=>e,Ci=(()=>{let e=Si;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Si}}})();function ym(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=si("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Mt);return v.forwardRef(function(l,i){let u=ho(n),{className:c,component:m="div",...p}=hm(l);return(0,s.jsx)(a,{as:m,ref:i,className:In(c,o?o(r):r),theme:t&&u[t]||u,...p})})}const bm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function er(e,t,n="Mui"){let r=bm[t];return r?`${n}-${r}`:`${Ci.generate(e)}-${t}`}function tr(e,t,n="Mui"){let r={};return t.forEach(o=>{r[o]=er(e,o,n)}),r}function ji(e){let{variants:t,...n}=e,r={variants:t,style:ht(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ht(o.style))}),r}const xm=fo();function yo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vm(e){return e?(t,n)=>n[e]:null}function wm(e,t,n){e.theme=Cm(e.theme)?n:e.theme[t]||e.theme}function nr(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>nr(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Nt(r.style,n):r.style;else{let{variants:a,...l}=r;o=n?Nt(ht(l),n):l}return ki(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Nt(ht(r.style),n):r.style:n?Nt(ht(r),n):r}function ki(e,t,n=[],r=void 0){var a;let o;e:for(let l=0;l<t.length;l+=1){let i=t[l];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(let u in i.props)if(e[u]!==i.props[u]&&((a=e.ownerState)==null?void 0:a[u])!==i.props[u])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(ht(i.style(o)),r):i.style(o))):n.push(r?Nt(ht(i.style),r):i.style)}return n}function Sm(e={}){let{themeId:t,defaultTheme:n=xm,rootShouldForwardProp:r=yo,slotShouldForwardProp:o=yo}=e;function a(l){wm(l,t,n)}return(l,i={})=>{Cd(l,k=>k.filter(j=>j!==Mt));let{name:u,slot:c,skipVariantsResolver:m,skipSx:p,overridesResolver:d=vm(km(c)),...g}=i,f=u&&u.startsWith("Mui")||c?"components":"custom",h=m===void 0?c&&c!=="Root"&&c!=="root"||!1:m,w=p||!1,x=yo;c==="Root"||c==="root"?x=r:c?x=o:jm(l)&&(x=void 0);let S=si(l,{shouldForwardProp:x,label:void 0,...g}),b=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return nr(j,k,j.theme.modularCssLayers?f:void 0)};if(Ue(k)){let j=ji(k);return function(_){return j.variants?nr(_,j,_.theme.modularCssLayers?f:void 0):_.theme.modularCssLayers?Nt(j.style,f):j.style}}return k},C=(...k)=>{let j=[],_=k.map(b),R=[];if(j.push(a),u&&d&&R.push(function(y){var T,B;let N=(B=(T=y.theme.components)==null?void 0:T[u])==null?void 0:B.styleOverrides;if(!N)return null;let A={};for(let ae in N)A[ae]=nr(y,N[ae],y.theme.modularCssLayers?"theme":void 0);return d(y,A)}),u&&!h&&R.push(function(y){var A,T,B;let N=(B=(T=(A=y.theme)==null?void 0:A.components)==null?void 0:T[u])==null?void 0:B.variants;return N?ki(y,N,[],y.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(_[0])){let y=_.shift(),N=Array(j.length).fill(""),A=Array(R.length).fill(""),T;T=[...N,...y,...A],T.raw=[...N,...y.raw,...A],j.unshift(T)}let F=S(...j,..._,...R);return l.muiName&&(F.muiName=l.muiName),F};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Cm(e){for(let t in e)return!1;return!0}function jm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function km(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function bo(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){let a=e[o],l=t[o];if(!l)n[o]=a||{};else if(!a)n[o]=l;else for(let i in n[o]={...l},a)if(Object.prototype.hasOwnProperty.call(a,i)){let u=i;n[o][u]=bo(a[u],l[u])}}else n[o]===void 0&&(n[o]=e[o])}return n}var Ft=typeof window<"u"?v.useLayoutEffect:v.useEffect;function _m(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Rm=_m;function xo(e,t=0,n=1){return Rm(e,t,n)}function Mm(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yt(e){if(e.type)return e;if(e.charAt(0)==="#")return yt(Mm(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(gt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw Error(gt(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Nm=e=>{let t=yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},bn=(e,t)=>{try{return Nm(e)}catch{return e}};function rr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function _i(e){e=yt(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(c,m=(c+n/30)%12)=>o-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(i+="a",u.push(t[3])),rr({type:i,values:u})}function vo(e){e=yt(e);let t=e.type==="hsl"||e.type==="hsla"?yt(_i(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fm(e,t){let n=vo(e),r=vo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function wo(e,t){return e=yt(e),t=xo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rr(e)}function or(e,t,n){try{return wo(e,t)}catch{return e}}function So(e,t){if(e=yt(e),t=xo(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rr(e)}function W(e,t,n){try{return So(e,t)}catch{return e}}function Co(e,t){if(e=yt(e),t=xo(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rr(e)}function q(e,t,n){try{return Co(e,t)}catch{return e}}function Am(e,t=.15){return vo(e)>.5?So(e,t):Co(e,t)}function ar(e,t,n){try{return Am(e,t)}catch{return e}}function Im(e,t=166){let n;function r(...o){clearTimeout(n),n=setTimeout(()=>{e.apply(this,o)},t)}return r.clear=()=>{clearTimeout(n)},r}function Pm(e){return e&&e.ownerDocument||document}function Ri(e){return Pm(e).defaultView||window}var Mi=0;function $m(e){let[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t??(Mi+=1,n(`mui-${Mi}`))},[t]),r}var Ni={...v}.useId;function Em(e){if(Ni!==void 0){let t=Ni();return e??t}return $m(e)}function Tm(e){let t=v.useRef(e);return Ft(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}var Om=Tm;function Fi(...e){let t=v.useRef(void 0),n=v.useCallback(r=>{let o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let l=a,i=l(r);return typeof i=="function"?i:()=>{l(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function jo(e,t,n=void 0){let r={};for(let o in e){let a=e[o],l="",i=!0;for(let u=0;u<a.length;u+=1){let c=a[u];c&&(l+=(i===!0?"":" ")+t(c),i=!1,n&&n[c]&&(l+=" "+n[c]))}r[o]=l}return r}var Ai=v.createContext(null);function ko(){return v.useContext(Ai)}var Vm=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function zm(e,t){return typeof t=="function"?t(e):{...e,...t}}function Dm(e){let{children:t,theme:n}=e,r=ko(),o=v.useMemo(()=>{let a=r===null?{...n}:zm(r,n);return a!=null&&(a[Vm]=r!==null),a},[n,r]);return(0,s.jsx)(Ai.Provider,{value:o,children:t})}var Lm=Dm,Hm=v.createContext();function Bm({value:e,...t}){return(0,s.jsx)(Hm.Provider,{value:e??!0,...t})}var Gm=Bm,Ii=v.createContext(void 0);function Wm({value:e,children:t}){return(0,s.jsx)(Ii.Provider,{value:e,children:t})}function qm(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let o=t.components[n];return o.defaultProps?bo(o.defaultProps,r):!o.styleOverrides&&!o.variants?bo(o,r):r}function Km({props:e,name:t}){return qm({props:e,name:t,theme:{components:v.useContext(Ii)}})}var Um=Wm;function Jm(e){let t=go(),n=Em()||"",{modularCssLayers:r}=e,o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,o):`@layer ${o};`,Ft(()=>{var i,u;let a=document.querySelector("head");if(!a)return;let l=a.firstChild;if(o){if(l&&((i=l.hasAttribute)!=null&&i.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===n)return;let c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=o,a.prepend(c)}else(u=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||u.remove()},[o,n]),o?(0,s.jsx)(wi,{styles:o}):null}var Pi={};function $i(e,t,n,r=!1){return v.useMemo(()=>{let o=e&&t[e]||t;if(typeof n=="function"){let a=n(o),l=e?{...t,[e]:a}:a;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Xm(e){let{children:t,theme:n,themeId:r}=e,o=go(Pi),a=ko()||Pi,l=$i(r,o,n),i=$i(r,a,n,!0),u=(r?l[r]:l).direction==="rtl",c=Jm(l);return(0,s.jsx)(Lm,{theme:i,children:(0,s.jsx)(dn.Provider,{value:l,children:(0,s.jsx)(Gm,{value:u,children:(0,s.jsxs)(Um,{value:r?l[r].components:l.components,children:[c,t]})})})})}var Ei=Xm,Ti={theme:void 0};function Ym(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(Ti.theme=r.theme,o=ji(e(Ti)),t=o,n=r.theme),o}}const _o="mode",Ro="color-scheme";function Zm(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=_o,colorSchemeStorageKey:a=Ro,attribute:l="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:u}=e||{},c="",m=l;if(l==="class"&&(m=".%s"),l==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);c+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
3
3
  ${i}.classList.add('${d}'.replace('%s', colorScheme));`}let p=m.match(/\[([^\]]+)\]/);if(p){let[d,g]=p[1].split("=");g||(c+=`${i}.removeAttribute('${d}'.replace('%s', light));
4
4
  ${i}.removeAttribute('${d}'.replace('%s', dark));`),c+=`
5
5
  ${i}.setAttribute('${d}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else c+=`${i}.setAttribute('${m}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -1,7 +1,7 @@
1
- import{s as G}from"./chunk-LvLJmgfZ.js";import{d as ye,f as ve,l as Ne,u as be}from"./useEvent-DlWF5OMa.js";import{t as we}from"./react-BGmjiNul.js";import{C as ke,Fr as J,Kr as Ie,Pn as $e,Pr as _e,fn as Fe,q as Ae,rn as Te,v as Ce}from"./cells-Dk_j8HX9.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{t as Se}from"./invariant-C6yE60hi.js";import{r as Me}from"./utils-CJJIceVn.js";import{t as qe}from"./jsx-runtime-DN_bIXfG.js";import{r as X,t as $}from"./button-DuYGqRtX.js";import{t as Y}from"./cn-C1rgT0yh.js";import{t as H}from"./createLucideIcon-CW2xpJ57.js";import{_ as ze}from"./select-D0g5GnIs.js";import{a as Ee,p as Pe,r as Le,t as We}from"./dropdown-menu-BP4_BZLr.js";import{a as Ve,n as Be}from"./state-HUtu_wpA.js";import{c as Z,n as Qe}from"./datasource-i415crE1.js";import{a as De}from"./dist-RKnr9SNh.js";import{t as ee}from"./tooltip-CvjcEpZC.js";import{a as Oe,i as He,n as Ue,r as Ke}from"./multi-map-fjX9ImVF.js";import{t as te}from"./kbd-Czc5z_04.js";import{t as A}from"./links-DNmjkr65.js";import{r as Re,t as Ge}from"./alert-BEdExd6A.js";import{o as Je,t as Xe}from"./useInstallPackage-RldLPyJs.js";import{n as b}from"./cell-link-DNVmmRzI.js";var Ye=H("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),T=H("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]),re=H("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);function Ze(r){let e=null,s=r.cursor();do s.name==="ExpressionStatement"&&(e=s.node);while(s.next());return e}function et(r){let e=r.split(`
1
+ import{s as G}from"./chunk-LvLJmgfZ.js";import{d as ye,f as ve,l as Ne,u as be}from"./useEvent-DlWF5OMa.js";import{t as we}from"./react-BGmjiNul.js";import{C as ke,Fr as J,Kr as Ie,Pn as $e,Pr as _e,fn as Fe,in as Ae,q as Te,v as Ce}from"./cells-D_SkyFDn.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{t as Se}from"./invariant-C6yE60hi.js";import{r as Me}from"./utils-CJJIceVn.js";import{t as qe}from"./jsx-runtime-DN_bIXfG.js";import{r as X,t as $}from"./button-DuYGqRtX.js";import{t as Y}from"./cn-C1rgT0yh.js";import{t as H}from"./createLucideIcon-CW2xpJ57.js";import{_ as ze}from"./select-D0g5GnIs.js";import{a as Ee,p as Pe,r as Le,t as We}from"./dropdown-menu-BP4_BZLr.js";import{a as Ve,n as Be}from"./state-kFdt1US2.js";import{c as Z,n as Qe}from"./datasource-CR_zEq5o.js";import{a as De}from"./dist-RKnr9SNh.js";import{t as ee}from"./tooltip-CvjcEpZC.js";import{a as Oe,i as He,n as Ue,r as Ke}from"./multi-map-fjX9ImVF.js";import{t as te}from"./kbd-Czc5z_04.js";import{t as A}from"./links-DNmjkr65.js";import{r as Re,t as Ge}from"./alert-BEdExd6A.js";import{o as Je,t as Xe}from"./useInstallPackage-RldLPyJs.js";import{n as b}from"./cell-link-BoUpLV2S.js";var Ye=H("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),T=H("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]),re=H("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);function Ze(r){let e=null,s=r.cursor();do s.name==="ExpressionStatement"&&(e=s.node);while(s.next());return e}function et(r){let e=r.split(`
2
2
  `),s=" ",n=Ze(De.parse(r));if(!n)return["def _():",...U(e,s),`${s}return`,"","","_()"].join(`
3
3
  `);let i=r.slice(0,n.from).trim(),l=r.slice(n.from).trim(),a=i.split(`
4
4
  `),c=l.split(`
5
5
  `);return["def _():",...U(a,s),`${s}return ${c[0]}`,...U(c.slice(1),s),"","","_()"].join(`
6
6
  `)}function U(r,e){if(r.length===1&&r[0]==="")return[];let s=[];for(let n of r)n===""?s.push(""):s.push(e+n);return s}function tt(r,e){var s;if(r.type==="multiple-defs")return[{title:"Fix: Wrap in a function",description:"Make this cell's variables local by wrapping the cell in a function.",fixType:"manual",onFix:async n=>{Se(n.editor,"Editor is null");let i=et(n.editor.state.doc.toString());n.editor.dispatch({changes:{from:0,to:n.editor.state.doc.length,insert:i}})}}];if(r.type==="exception"&&r.exception_type==="NameError"){let n=(s=r.msg.match(/name '(.+)' is not defined/))==null?void 0:s[1];if(!n||!(n in se))return[];let i=rt(n);return[{title:`Fix: Add '${i}'`,description:"Add a new cell for the missing import",fixType:"manual",onFix:async l=>{l.addCodeBelow(i)}}]}return r.type==="sql-error"&&e.aiEnabled?[{title:"Fix with AI",description:"Fix the SQL statement",fixType:"ai",onFix:async n=>{var a;let i=Qe(n.cellId),l=`Fix the SQL statement: ${r.msg}.`;i&&(l+=`
7
- Database schema: ${i}`),(a=n.aiFix)==null||a.setAiCompletionCell({cellId:n.cellId,initialPrompt:l,triggerImmediately:n.aiFix.triggerFix})}}]:[]}function rt(r){let e=se[r];return e===r?`import ${e}`:`import ${e} as ${r}`}var se={mo:"marimo",alt:"altair",bokeh:"bokeh",dask:"dask",np:"numpy",pd:"pandas",pl:"polars",plotly:"plotly",plt:"matplotlib.pyplot",px:"plotly.express",scipy:"scipy",sk:"sklearn",sns:"seaborn",stats:"scipy.stats",tf:"tensorflow",torch:"torch",xr:"xarray",dt:"datetime",json:"json",math:"math",os:"os",re:"re",sys:"sys"},st=E(),nt=Ie("marimo:ai-autofix-mode","autofix",Fe);function lt(){let r=(0,st.c)(3),[e,s]=Ne(nt),n;return r[0]!==e||r[1]!==s?(n={fixMode:e,setFixMode:s},r[0]=e,r[1]=s,r[2]=n):n=r[2],n}var K=E(),t=G(qe(),1);const N=r=>{let e=(0,K.c)(21),{errors:s,cellId:n,className:i}=r,l=ve(),{createNewCell:a}=ke(),c=be(Me),o;if(e[0]!==c||e[1]!==s){let x;e[3]===c?x=e[4]:(x=y=>tt(y,{aiEnabled:c}),e[3]=c,e[4]=x),o=s.flatMap(x),e[0]=c,e[1]=s,e[2]=o}else o=e[2];let m=o,p=ye(Be);if(m.length===0)return null;let d=m[0],f;e[5]!==n||e[6]!==a||e[7]!==d||e[8]!==p||e[9]!==l?(f=x=>{var w;let y=(w=l.get(Ce).cellHandles[n].current)==null?void 0:w.editorView;d.onFix({addCodeBelow:_=>{a({cellId:n,autoFocus:!1,before:!1,code:_})},editor:y,cellId:n,aiFix:{setAiCompletionCell:p,triggerFix:x}}),y==null||y.focus()},e[5]=n,e[6]=a,e[7]=d,e[8]=p,e[9]=l,e[10]=f):f=e[10];let u=f,j;e[11]===i?j=e[12]:(j=Y("my-2",i),e[11]=i,e[12]=j);let h;e[13]!==d.description||e[14]!==d.fixType||e[15]!==d.title||e[16]!==u?(h=d.fixType==="ai"?(0,t.jsx)(oe,{tooltip:d.description,openPrompt:()=>u(!1),applyAutofix:()=>u(!0)}):(0,t.jsx)(ee,{content:d.description,align:"start",children:(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal",onClick:()=>u(!1),children:[(0,t.jsx)(Z,{className:"h-3 w-3 mr-2"}),d.title]})}),e[13]=d.description,e[14]=d.fixType,e[15]=d.title,e[16]=u,e[17]=h):h=e[17];let g;return e[18]!==j||e[19]!==h?(g=(0,t.jsx)("div",{className:j,children:h}),e[18]=j,e[19]=h,e[20]=g):g=e[20],g};var ne=Ve,le=Z,ie="Suggest a prompt",ae="Fix with AI";const oe=r=>{let e=(0,K.c)(21),{tooltip:s,openPrompt:n,applyAutofix:i}=r,{fixMode:l,setFixMode:a}=lt(),c=l==="prompt"?n:i,o;e[0]===l?o=e[1]:(o=l==="prompt"?(0,t.jsx)(ne,{className:"h-3 w-3 mr-2 mb-0.5"}):(0,t.jsx)(le,{className:"h-3 w-3 mr-2 mb-0.5"}),e[0]=l,e[1]=o);let m=l==="prompt"?ie:ae,p;e[2]!==c||e[3]!==o||e[4]!==m?(p=(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal rounded-r-none border-r-0",onClick:c,children:[o,m]}),e[2]=c,e[3]=o,e[4]=m,e[5]=p):p=e[5];let d;e[6]!==p||e[7]!==s?(d=(0,t.jsx)(ee,{content:s,align:"start",children:p}),e[6]=p,e[7]=s,e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(Pe,{asChild:!0,children:(0,t.jsx)($,{size:"xs",variant:"outline",className:"rounded-l-none px-2","aria-label":"Fix options",children:(0,t.jsx)(ze,{className:"h-3 w-3"})})}),e[9]=f):f=e[9];let u;e[10]!==l||e[11]!==a?(u=()=>{a(l==="prompt"?"autofix":"prompt")},e[10]=l,e[11]=a,e[12]=u):u=e[12];let j=l==="prompt"?"autofix":"prompt",h;e[13]===j?h=e[14]:(h=(0,t.jsx)(it,{mode:j}),e[13]=j,e[14]=h);let g;e[15]!==u||e[16]!==h?(g=(0,t.jsxs)(We,{children:[f,(0,t.jsx)(Le,{align:"end",className:"w-56",children:(0,t.jsx)(Ee,{className:"flex items-center gap-2",onClick:u,children:h})})]}),e[15]=u,e[16]=h,e[17]=g):g=e[17];let x;return e[18]!==g||e[19]!==d?(x=(0,t.jsxs)("div",{className:"flex",children:[d,g]}),e[18]=g,e[19]=d,e[20]=x):x=e[20],x};var it=r=>{let e=(0,K.c)(12),{mode:s}=r,n;e[0]===s?n=e[1]:(n=s==="prompt"?(0,t.jsx)(ne,{className:"h-4 w-4"}):(0,t.jsx)(le,{className:"h-4 w-4"}),e[0]=s,e[1]=n);let i=n,l=s==="prompt"?ie:ae,a=s==="prompt"?"Edit the prompt before applying":"Apply AI fixes automatically",c;e[2]===l?c=e[3]:(c=(0,t.jsx)("span",{className:"font-medium",children:l}),e[2]=l,e[3]=c);let o;e[4]===a?o=e[5]:(o=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:a}),e[4]=a,e[5]=o);let m;e[6]!==c||e[7]!==o?(m=(0,t.jsxs)("div",{className:"flex flex-col",children:[c,o]}),e[6]=c,e[7]=o,e[8]=m):m=e[8];let p;return e[9]!==i||e[10]!==m?(p=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[i,m]}),e[9]=i,e[10]=m,e[11]=p):p=e[11],p},ce=/(https?:\/\/\S+)/,at=/\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i,de=/^data:image\//i,ot=["avatars.githubusercontent.com"];function me(r){return de.test(r)?[{type:"image",url:r}]:r.split(ce).filter(e=>e.trim()!=="").map(e=>ce.test(e)?at.test(e)||de.test(e)||ot.some(s=>e.includes(s))?{type:"image",url:e}:{type:"url",url:e}:{type:"text",value:e})}var pe=E(),P=G(we(),1),ct=new Ae;const R=r=>{let e=RegExp("\x1B\\[[0-9;]*m","g");return r.replaceAll(e,"")};var ue=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi;function dt(r){ue.lastIndex=0;let e=ue.exec(r);if(!e)return null;let s=e.index+e[0].length,n=r.slice(s).split(/\s+/),i="",l=0;for(let c of n){let o=c.trim();if(!o)continue;if(o.startsWith("-")){l+=o.length+1;continue}let m=o.match(/^[\w,.[\]-]+/);if(m){i=m[0];break}break}if(!i)return null;let a=s+l+i.length;return{package:i,endIndex:a}}function k(r,e=""){if(!r)return null;if(!/https?:\/\//.test(r))return r;let s=me(r);return s.length===1&&s[0].type==="text"?r:(0,t.jsx)(t.Fragment,{children:s.map((n,i)=>{let l=e?`${e}-${i}`:i;if(n.type==="url"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:X.stopPropagation(),className:"text-link hover:underline",children:a},l)}if(n.type==="image"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:X.stopPropagation(),className:"text-link hover:underline",children:a},l)}return(0,t.jsx)(P.Fragment,{children:n.value},l)})})}var mt=r=>{let e=(0,pe.c)(6),{packages:s,children:n}=r,{handleInstallPackages:i}=Xe(),l;e[0]!==i||e[1]!==s?(l=c=>{i(s),c.preventDefault()},e[0]=i,e[1]=s,e[2]=l):l=e[2];let a;return e[3]!==n||e[4]!==l?(a=(0,t.jsx)("button",{onClick:l,className:"text-link hover:underline",type:"button",children:n}),e[3]=n,e[4]=l,e[5]=a):a=e[5],a};const pt=r=>{if(!(r instanceof J.Text))return;let e=R(r.data);if(!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(e))return;let s=[],n=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi,i;for(;(i=n.exec(e))!==null;){let c=i.index,o=dt(e.slice(c));o&&s.push({match:i,result:o})}if(s.length===0)return;let l=[],a=0;if(s.forEach((c,o)=>{let{match:m,result:p}=c,d=m.index,f=d+p.endIndex;if(a<d){let j=e.slice(a,d);l.push((0,t.jsx)(P.Fragment,{children:k(j,`before-${o}`)},`before-${o}`))}let u=e.slice(d,f);l.push((0,t.jsx)(mt,{packages:[p.package],children:u},`install-${o}`)),a=f}),a<e.length){let c=e.slice(a);l.push((0,t.jsx)(P.Fragment,{children:k(c,"after")},"after"))}return(0,t.jsx)(t.Fragment,{children:l})},ut=r=>{if(!(r instanceof J.Text))return;let e=r.data;if(!/https?:\/\//.test(e))return;let s=k(e);if(typeof s!="string")return(0,t.jsx)(t.Fragment,{children:s})},ht=(...r)=>e=>{for(let s of r){let n=s(e);if(n!==void 0)return n}},xt=(r,e)=>(0,t.jsx)("span",{children:_e(ct.ansi_to_html(r),{replace:s=>e(s)})}),ft=r=>{let e=(0,pe.c)(4),{text:s}=r,n;e[0]===s?n=e[1]:(n=xt(s,ht(pt,ut)),e[0]=s,e[1]=n);let i=n,l;return e[2]===i?l=e[3]:(l=(0,t.jsx)(t.Fragment,{children:i}),e[2]=i,e[3]=l),l};var he=E(),I=r=>{let e=(0,he.c)(10),s=r.title??"Tip",n;e[0]===s?n=e[1]:(n=(0,t.jsx)(Oe,{className:"pt-2 pb-2 font-normal",children:s}),e[0]=s,e[1]=n);let i;e[2]===r.children?i=e[3]:(i=(0,t.jsx)(Ke,{className:"mr-24 text-[0.84375rem]",children:r.children}),e[2]=r.children,e[3]=i);let l;e[4]!==n||e[5]!==i?(l=(0,t.jsxs)(He,{value:"item-1",className:"text-muted-foreground",children:[n,i]}),e[4]=n,e[5]=i,e[6]=l):l=e[6];let a;return e[7]!==r.className||e[8]!==l?(a=(0,t.jsx)(Ue,{type:"single",collapsible:!0,className:r.className,children:l}),e[7]=r.className,e[8]=l,e[9]=a):a=e[9],a};const jt=r=>{let e=(0,he.c)(31),{errors:s,cellId:n,className:i}=r,l=Te(),a="This cell wasn't run because it has errors",c="destructive",o="text-error";if(s.some(gt))a="Interrupted";else if(s.some(yt))a="An internal error occurred";else if(s.some(vt))a="Ancestor prevented from running",c="default",o="text-secondary-foreground";else if(s.some(Nt))a="Ancestor stopped",c="default",o="text-secondary-foreground";else if(s.some(bt))a="SQL error";else{let x;e[0]===s?x=e[1]:(x=s.find(wt),e[0]=s,e[1]=x);let y=x;y&&"exception_type"in y&&(a=y.exception_type)}let m,p,d,f,u,j;if(e[2]!==c||e[3]!==n||e[4]!==l||e[5]!==i||e[6]!==s||e[7]!==o||e[8]!==a){let x=s.filter(kt),y=s.filter(It),w=s.filter($t),_=s.filter(_t),L=s.filter(Ft),C=s.filter(At),S=s.filter(Tt),W=s.filter(Ct),V=s.filter(St),B=s.filter(Mt),F=s.filter(qt),Q=s.filter(zt),D=s.filter(Et),M;e[15]===l?M=e[16]:(M=()=>{l.openApplication("scratchpad")},e[15]=l,e[16]=M);let xe=M,fe=()=>{let v=[];if(F.length>0||Q.length>0){let z=F.some(Pt),ge=!z&&F.some(Lt);v.push((0,t.jsxs)("div",{children:[F.map(Wt),Q.map(Vt),z&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>Je(l),children:[(0,t.jsx)(Ye,{className:"h-3.5 w-3.5 mr-1.5 mb-0.5"}),(0,t.jsx)("span",{children:"Open package manager"})]}),ge&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>l.openApplication("terminal"),children:[(0,t.jsx)(re,{className:"h-3.5 w-3.5 mr-1.5"}),(0,t.jsx)("span",{children:"Open terminal"})]}),n&&(0,t.jsx)(N,{errors:[...F,...Q],cellId:n})]},"syntax-unknown"))}if(x.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"The setup cell cannot be run because it has references."}),(0,t.jsx)("ul",{className:"list-disc",children:x.flatMap(Bt)}),n&&(0,t.jsx)(N,{errors:x,cellId:n}),(0,t.jsxs)(I,{title:"Why can't the setup cell have references?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"The setup cell contains logic that must be run before any other cell runs, including top-level imports used by top-level functions. For this reason, it can't refer to other cells' variables."}),(0,t.jsx)("p",{className:"py-2",children:"Try simplifying the setup cell to only contain only necessary variables."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-setup",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"setup-refs")),y.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell is in a cycle."}),(0,t.jsx)("ul",{className:"list-disc",children:y.flatMap(Qt)}),n&&(0,t.jsx)(N,{errors:y,cellId:n}),(0,t.jsxs)(I,{title:"What are cycles and how do I resolve them?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"An example of a cycle is if one cell declares a variable 'a' and reads 'b', and another cell declares 'b' and and reads 'a'. Cycles like this make it impossible for marimo to know how to run your cells, and generally suggest that your code has a bug."}),(0,t.jsx)("p",{className:"py-2",children:"Try merging these cells into a single cell to eliminate the cycle."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-cycles",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"cycle")),w.length>0){let z=w[0].name;v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell redefines variables from other cells."}),w.map(Ot),n&&(0,t.jsx)(N,{errors:w,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I redefine variables?",children:[(0,t.jsx)("p",{className:"pb-2",children:"marimo requires that each variable is defined in just one cell. This constraint enables reactive and reproducible execution, arbitrary cell reordering, seamless UI elements, execution as a script, and more."}),(0,t.jsxs)("p",{className:"py-2",children:["Try merging this cell with the mentioned cells or wrapping it in a function. Alternatively, prefix variables with an underscore (e.g., ",(0,t.jsxs)(te,{className:"inline",children:["_",z]}),"). to make them private to this cell."]}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-multiple-definitions",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]}),(0,t.jsx)(I,{title:"Need a scratchpad?",children:(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsxs)($,{size:"xs",variant:"link",className:"my-2 font-normal mx-0 px-0",onClick:xe,children:[(0,t.jsx)($e,{className:"h-3"}),(0,t.jsx)("span",{children:"Try the scratchpad"})]}),(0,t.jsx)("span",{children:"to experiment without restrictions on variable names."})]})})]},"multiple-defs"))}return _.length>0&&v.push((0,t.jsxs)("div",{children:[_.map(Ht),n&&(0,t.jsx)(N,{errors:_,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I use `import *`?",children:[(0,t.jsx)("p",{className:"pb-2",children:"Star imports are incompatible with marimo's git-friendly file format and reproducible reactive execution."}),(0,t.jsx)("p",{className:"py-2",children:"marimo's Python file format stores code in functions, so notebooks can be imported as regular Python modules without executing all their code. But Python disallows `import *` everywhere except at the top-level of a module."}),(0,t.jsx)("p",{className:"py-2",children:"Star imports would also silently add names to globals, which would be incompatible with reactive execution."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-import-star",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"import-star")),L.length>0&&v.push((0,t.jsxs)("div",{children:[L.map(Ut),n&&(0,t.jsx)(N,{errors:L,cellId:n})]},"interruption")),C.length>0&&v.push((0,t.jsxs)("ul",{children:[C.map(Kt),C.some(Rt)&&(0,t.jsx)(I,{children:"Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."}),n&&(0,t.jsx)(N,{errors:C,cellId:n})]},"exception")),S.length>0&&v.push((0,t.jsxs)("ul",{children:[S.map(Gt),n&&(0,t.jsx)(N,{errors:S,cellId:n}),(0,t.jsx)(I,{children:S.some(Jt)?"Ensure that the referenced cells define the required variables, or turn off strict execution.":"Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."})]},"strict-exception")),W.length>0&&v.push((0,t.jsxs)("div",{children:[W.map(Xt),n&&(0,t.jsx)(N,{errors:W,cellId:n})]},"internal")),V.length>0&&v.push((0,t.jsxs)("div",{children:[V.map(Yt),n&&(0,t.jsx)(N,{errors:V,cellId:n})]},"ancestor-prevented")),B.length>0&&v.push((0,t.jsxs)("div",{children:[B.map(Zt),n&&(0,t.jsx)(N,{errors:B,cellId:n})]},"ancestor-stopped")),D.length>0&&v.push((0,t.jsxs)("div",{children:[D.map(er),n&&(0,t.jsx)(N,{errors:D,cellId:n,className:"mt-2.5"})]},"sql-errors")),v},O=`font-code font-medium tracking-wide ${o}`,q;e[17]!==O||e[18]!==a?(q=(0,t.jsx)(Re,{className:O,children:a}),e[17]=O,e[18]=a,e[19]=q):q=e[19];let je=q;m=Ge,f=c,e[20]===i?u=e[21]:(u=Y("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4",i),e[20]=i,e[21]=u),j=je,p="flex flex-col gap-8",d=fe(),e[2]=c,e[3]=n,e[4]=l,e[5]=i,e[6]=s,e[7]=o,e[8]=a,e[9]=m,e[10]=p,e[11]=d,e[12]=f,e[13]=u,e[14]=j}else m=e[9],p=e[10],d=e[11],f=e[12],u=e[13],j=e[14];let h;e[22]!==p||e[23]!==d?(h=(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:p,children:d})}),e[22]=p,e[23]=d,e[24]=h):h=e[24];let g;return e[25]!==m||e[26]!==f||e[27]!==u||e[28]!==j||e[29]!==h?(g=(0,t.jsxs)(m,{variant:f,className:u,children:[j,h]}),e[25]=m,e[26]=f,e[27]=u,e[28]=j,e[29]=h,e[30]=g):g=e[30],g};function gt(r){return r.type==="interruption"}function yt(r){return r.type==="internal"}function vt(r){return r.type==="ancestor-prevented"}function Nt(r){return r.type==="ancestor-stopped"}function bt(r){return r.type==="sql-error"}function wt(r){return r.type==="exception"}function kt(r){return r.type==="setup-refs"}function It(r){return r.type==="cycle"}function $t(r){return r.type==="multiple-defs"}function _t(r){return r.type==="import-star"}function Ft(r){return r.type==="interruption"}function At(r){return r.type==="exception"}function Tt(r){return r.type==="strict-exception"}function Ct(r){return r.type==="internal"}function St(r){return r.type==="ancestor-prevented"}function Mt(r){return r.type==="ancestor-stopped"}function qt(r){return r.type==="syntax"}function zt(r){return r.type==="unknown"}function Et(r){return r.type==="sql-error"}function Pt(r){return r.msg.includes("!pip")}function Lt(r){return r.msg.includes("use os.subprocess")}function Wt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`syntax-${e}`)},`syntax-${e}`)}function Vt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`unknown-${e}`)},`unknown-${e}`)}function Bt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[": "," ",s[1].length===1?s[1][0]:s[1].join(", ")]})]},`setup-refs-${e}-${n}`))}function Qt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" -> ",s[1].length===1?s[1][0]:s[1].join(", ")," -> "]}),(0,t.jsx)(b,{cellId:s[2]})]},`cycle-${e}-${n}`))}function Dt(r,e){return(0,t.jsx)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:(0,t.jsx)(b,{cellId:r})},`cell-${e}`)}function Ot(r,e){return(0,t.jsxs)(P.Fragment,{children:[(0,t.jsx)("p",{className:"text-muted-foreground mt-2",children:`'${r.name}' was also defined by:`}),(0,t.jsx)("ul",{className:"list-disc",children:r.cells.map(Dt)})]},`multiple-defs-${e}`)}function Ht(r,e){return(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg},`import-star-${e}`)}function Ut(r,e){return(0,t.jsx)("p",{children:"This cell was interrupted and needs to be re-run."},`interruption-${e}`)}function Kt(r,e){return r.exception_type==="NameError"&&r.msg.startsWith("name 'mo'")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:"name 'mo' is not defined."}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["The marimo module (imported as"," ",(0,t.jsx)(te,{className:"inline",children:"mo"}),") is required for Markdown, SQL, and UI elements."]})]})},`exception-${e}`):r.exception_type==="NameError"&&r.msg.startsWith("name '_")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["Variables prefixed with an underscore are local to a cell"," ","(",(0,t.jsxs)(A,{href:"https://links.marimo.app/local-variables",children:["docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),")."]}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]})},`exception-${e}`):(0,t.jsx)("li",{className:"my-2",children:r.raising_cell==null?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:k(r.msg,`exception-${e}`)}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]}):(0,t.jsxs)("div",{children:[k(r.msg,`exception-${e}`),(0,t.jsx)(b,{cellId:r.raising_cell})]})},`exception-${e}`)}function Rt(r){return r.raising_cell!=null}function Gt(r,e){return(0,t.jsx)("li",{className:"my-2",children:r.blamed_cell==null?(0,t.jsx)("p",{children:r.msg}):(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.blamed_cell})]})},`strict-exception-${e}`)}function Jt(r){return r.blamed_cell!=null}function Xt(r,e){return(0,t.jsx)("p",{children:r.msg},`internal-${e}`)}function Yt(r,e){return(0,t.jsxs)("div",{children:[r.msg,r.blamed_cell==null?(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),")"]}):(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),"\xA0blames\xA0",(0,t.jsx)(b,{cellId:r.blamed_cell}),")"]})]},`ancestor-prevented-${e}`)}function Zt(r,e){return(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.raising_cell})]},`ancestor-stopped-${e}`)}function er(r,e){return(0,t.jsx)("div",{className:"space-y-2 mt-2",children:(0,t.jsx)("p",{className:"text-muted-foreground whitespace-pre-wrap",children:r.msg})},`sql-error-${e}`)}export{re as a,oe as i,ft as n,me as r,jt as t};
7
+ Database schema: ${i}`),(a=n.aiFix)==null||a.setAiCompletionCell({cellId:n.cellId,initialPrompt:l,triggerImmediately:n.aiFix.triggerFix})}}]:[]}function rt(r){let e=se[r];return e===r?`import ${e}`:`import ${e} as ${r}`}var se={mo:"marimo",alt:"altair",bokeh:"bokeh",dask:"dask",np:"numpy",pd:"pandas",pl:"polars",plotly:"plotly",plt:"matplotlib.pyplot",px:"plotly.express",scipy:"scipy",sk:"sklearn",sns:"seaborn",stats:"scipy.stats",tf:"tensorflow",torch:"torch",xr:"xarray",dt:"datetime",json:"json",math:"math",os:"os",re:"re",sys:"sys"},st=E(),nt=Ie("marimo:ai-autofix-mode","autofix",Fe);function lt(){let r=(0,st.c)(3),[e,s]=Ne(nt),n;return r[0]!==e||r[1]!==s?(n={fixMode:e,setFixMode:s},r[0]=e,r[1]=s,r[2]=n):n=r[2],n}var K=E(),t=G(qe(),1);const N=r=>{let e=(0,K.c)(21),{errors:s,cellId:n,className:i}=r,l=ve(),{createNewCell:a}=ke(),c=be(Me),o;if(e[0]!==c||e[1]!==s){let x;e[3]===c?x=e[4]:(x=y=>tt(y,{aiEnabled:c}),e[3]=c,e[4]=x),o=s.flatMap(x),e[0]=c,e[1]=s,e[2]=o}else o=e[2];let m=o,p=ye(Be);if(m.length===0)return null;let d=m[0],f;e[5]!==n||e[6]!==a||e[7]!==d||e[8]!==p||e[9]!==l?(f=x=>{var w;let y=(w=l.get(Ce).cellHandles[n].current)==null?void 0:w.editorView;d.onFix({addCodeBelow:_=>{a({cellId:n,autoFocus:!1,before:!1,code:_})},editor:y,cellId:n,aiFix:{setAiCompletionCell:p,triggerFix:x}}),y==null||y.focus()},e[5]=n,e[6]=a,e[7]=d,e[8]=p,e[9]=l,e[10]=f):f=e[10];let u=f,j;e[11]===i?j=e[12]:(j=Y("my-2",i),e[11]=i,e[12]=j);let h;e[13]!==d.description||e[14]!==d.fixType||e[15]!==d.title||e[16]!==u?(h=d.fixType==="ai"?(0,t.jsx)(oe,{tooltip:d.description,openPrompt:()=>u(!1),applyAutofix:()=>u(!0)}):(0,t.jsx)(ee,{content:d.description,align:"start",children:(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal",onClick:()=>u(!1),children:[(0,t.jsx)(Z,{className:"h-3 w-3 mr-2"}),d.title]})}),e[13]=d.description,e[14]=d.fixType,e[15]=d.title,e[16]=u,e[17]=h):h=e[17];let g;return e[18]!==j||e[19]!==h?(g=(0,t.jsx)("div",{className:j,children:h}),e[18]=j,e[19]=h,e[20]=g):g=e[20],g};var ne=Ve,le=Z,ie="Suggest a prompt",ae="Fix with AI";const oe=r=>{let e=(0,K.c)(21),{tooltip:s,openPrompt:n,applyAutofix:i}=r,{fixMode:l,setFixMode:a}=lt(),c=l==="prompt"?n:i,o;e[0]===l?o=e[1]:(o=l==="prompt"?(0,t.jsx)(ne,{className:"h-3 w-3 mr-2 mb-0.5"}):(0,t.jsx)(le,{className:"h-3 w-3 mr-2 mb-0.5"}),e[0]=l,e[1]=o);let m=l==="prompt"?ie:ae,p;e[2]!==c||e[3]!==o||e[4]!==m?(p=(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal rounded-r-none border-r-0",onClick:c,children:[o,m]}),e[2]=c,e[3]=o,e[4]=m,e[5]=p):p=e[5];let d;e[6]!==p||e[7]!==s?(d=(0,t.jsx)(ee,{content:s,align:"start",children:p}),e[6]=p,e[7]=s,e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(Pe,{asChild:!0,children:(0,t.jsx)($,{size:"xs",variant:"outline",className:"rounded-l-none px-2","aria-label":"Fix options",children:(0,t.jsx)(ze,{className:"h-3 w-3"})})}),e[9]=f):f=e[9];let u;e[10]!==l||e[11]!==a?(u=()=>{a(l==="prompt"?"autofix":"prompt")},e[10]=l,e[11]=a,e[12]=u):u=e[12];let j=l==="prompt"?"autofix":"prompt",h;e[13]===j?h=e[14]:(h=(0,t.jsx)(it,{mode:j}),e[13]=j,e[14]=h);let g;e[15]!==u||e[16]!==h?(g=(0,t.jsxs)(We,{children:[f,(0,t.jsx)(Le,{align:"end",className:"w-56",children:(0,t.jsx)(Ee,{className:"flex items-center gap-2",onClick:u,children:h})})]}),e[15]=u,e[16]=h,e[17]=g):g=e[17];let x;return e[18]!==g||e[19]!==d?(x=(0,t.jsxs)("div",{className:"flex",children:[d,g]}),e[18]=g,e[19]=d,e[20]=x):x=e[20],x};var it=r=>{let e=(0,K.c)(12),{mode:s}=r,n;e[0]===s?n=e[1]:(n=s==="prompt"?(0,t.jsx)(ne,{className:"h-4 w-4"}):(0,t.jsx)(le,{className:"h-4 w-4"}),e[0]=s,e[1]=n);let i=n,l=s==="prompt"?ie:ae,a=s==="prompt"?"Edit the prompt before applying":"Apply AI fixes automatically",c;e[2]===l?c=e[3]:(c=(0,t.jsx)("span",{className:"font-medium",children:l}),e[2]=l,e[3]=c);let o;e[4]===a?o=e[5]:(o=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:a}),e[4]=a,e[5]=o);let m;e[6]!==c||e[7]!==o?(m=(0,t.jsxs)("div",{className:"flex flex-col",children:[c,o]}),e[6]=c,e[7]=o,e[8]=m):m=e[8];let p;return e[9]!==i||e[10]!==m?(p=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[i,m]}),e[9]=i,e[10]=m,e[11]=p):p=e[11],p},ce=/(https?:\/\/\S+)/,at=/\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i,de=/^data:image\//i,ot=["avatars.githubusercontent.com"];function me(r){return de.test(r)?[{type:"image",url:r}]:r.split(ce).filter(e=>e.trim()!=="").map(e=>ce.test(e)?at.test(e)||de.test(e)||ot.some(s=>e.includes(s))?{type:"image",url:e}:{type:"url",url:e}:{type:"text",value:e})}var pe=E(),P=G(we(),1),ct=new Te;const R=r=>{let e=RegExp("\x1B\\[[0-9;]*m","g");return r.replaceAll(e,"")};var ue=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi;function dt(r){ue.lastIndex=0;let e=ue.exec(r);if(!e)return null;let s=e.index+e[0].length,n=r.slice(s).split(/\s+/),i="",l=0;for(let c of n){let o=c.trim();if(!o)continue;if(o.startsWith("-")){l+=o.length+1;continue}let m=o.match(/^[\w,.[\]-]+/);if(m){i=m[0];break}break}if(!i)return null;let a=s+l+i.length;return{package:i,endIndex:a}}function k(r,e=""){if(!r)return null;if(!/https?:\/\//.test(r))return r;let s=me(r);return s.length===1&&s[0].type==="text"?r:(0,t.jsx)(t.Fragment,{children:s.map((n,i)=>{let l=e?`${e}-${i}`:i;if(n.type==="url"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:X.stopPropagation(),className:"text-link hover:underline",children:a},l)}if(n.type==="image"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:X.stopPropagation(),className:"text-link hover:underline",children:a},l)}return(0,t.jsx)(P.Fragment,{children:n.value},l)})})}var mt=r=>{let e=(0,pe.c)(6),{packages:s,children:n}=r,{handleInstallPackages:i}=Xe(),l;e[0]!==i||e[1]!==s?(l=c=>{i(s),c.preventDefault()},e[0]=i,e[1]=s,e[2]=l):l=e[2];let a;return e[3]!==n||e[4]!==l?(a=(0,t.jsx)("button",{onClick:l,className:"text-link hover:underline",type:"button",children:n}),e[3]=n,e[4]=l,e[5]=a):a=e[5],a};const pt=r=>{if(!(r instanceof J.Text))return;let e=R(r.data);if(!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(e))return;let s=[],n=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi,i;for(;(i=n.exec(e))!==null;){let c=i.index,o=dt(e.slice(c));o&&s.push({match:i,result:o})}if(s.length===0)return;let l=[],a=0;if(s.forEach((c,o)=>{let{match:m,result:p}=c,d=m.index,f=d+p.endIndex;if(a<d){let j=e.slice(a,d);l.push((0,t.jsx)(P.Fragment,{children:k(j,`before-${o}`)},`before-${o}`))}let u=e.slice(d,f);l.push((0,t.jsx)(mt,{packages:[p.package],children:u},`install-${o}`)),a=f}),a<e.length){let c=e.slice(a);l.push((0,t.jsx)(P.Fragment,{children:k(c,"after")},"after"))}return(0,t.jsx)(t.Fragment,{children:l})},ut=r=>{if(!(r instanceof J.Text))return;let e=r.data;if(!/https?:\/\//.test(e))return;let s=k(e);if(typeof s!="string")return(0,t.jsx)(t.Fragment,{children:s})},ht=(...r)=>e=>{for(let s of r){let n=s(e);if(n!==void 0)return n}},xt=(r,e)=>(0,t.jsx)("span",{children:_e(ct.ansi_to_html(r),{replace:s=>e(s)})}),ft=r=>{let e=(0,pe.c)(4),{text:s}=r,n;e[0]===s?n=e[1]:(n=xt(s,ht(pt,ut)),e[0]=s,e[1]=n);let i=n,l;return e[2]===i?l=e[3]:(l=(0,t.jsx)(t.Fragment,{children:i}),e[2]=i,e[3]=l),l};var he=E(),I=r=>{let e=(0,he.c)(10),s=r.title??"Tip",n;e[0]===s?n=e[1]:(n=(0,t.jsx)(Oe,{className:"pt-2 pb-2 font-normal",children:s}),e[0]=s,e[1]=n);let i;e[2]===r.children?i=e[3]:(i=(0,t.jsx)(Ke,{className:"mr-24 text-[0.84375rem]",children:r.children}),e[2]=r.children,e[3]=i);let l;e[4]!==n||e[5]!==i?(l=(0,t.jsxs)(He,{value:"item-1",className:"text-muted-foreground",children:[n,i]}),e[4]=n,e[5]=i,e[6]=l):l=e[6];let a;return e[7]!==r.className||e[8]!==l?(a=(0,t.jsx)(Ue,{type:"single",collapsible:!0,className:r.className,children:l}),e[7]=r.className,e[8]=l,e[9]=a):a=e[9],a};const jt=r=>{let e=(0,he.c)(31),{errors:s,cellId:n,className:i}=r,l=Ae(),a="This cell wasn't run because it has errors",c="destructive",o="text-error";if(s.some(gt))a="Interrupted";else if(s.some(yt))a="An internal error occurred";else if(s.some(vt))a="Ancestor prevented from running",c="default",o="text-secondary-foreground";else if(s.some(Nt))a="Ancestor stopped",c="default",o="text-secondary-foreground";else if(s.some(bt))a="SQL error";else{let x;e[0]===s?x=e[1]:(x=s.find(wt),e[0]=s,e[1]=x);let y=x;y&&"exception_type"in y&&(a=y.exception_type)}let m,p,d,f,u,j;if(e[2]!==c||e[3]!==n||e[4]!==l||e[5]!==i||e[6]!==s||e[7]!==o||e[8]!==a){let x=s.filter(kt),y=s.filter(It),w=s.filter($t),_=s.filter(_t),L=s.filter(Ft),C=s.filter(At),S=s.filter(Tt),W=s.filter(Ct),V=s.filter(St),B=s.filter(Mt),F=s.filter(qt),Q=s.filter(zt),D=s.filter(Et),M;e[15]===l?M=e[16]:(M=()=>{l.openApplication("scratchpad")},e[15]=l,e[16]=M);let xe=M,fe=()=>{let v=[];if(F.length>0||Q.length>0){let z=F.some(Pt),ge=!z&&F.some(Lt);v.push((0,t.jsxs)("div",{children:[F.map(Wt),Q.map(Vt),z&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>Je(l),children:[(0,t.jsx)(Ye,{className:"h-3.5 w-3.5 mr-1.5 mb-0.5"}),(0,t.jsx)("span",{children:"Open package manager"})]}),ge&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>l.openApplication("terminal"),children:[(0,t.jsx)(re,{className:"h-3.5 w-3.5 mr-1.5"}),(0,t.jsx)("span",{children:"Open terminal"})]}),n&&(0,t.jsx)(N,{errors:[...F,...Q],cellId:n})]},"syntax-unknown"))}if(x.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"The setup cell cannot be run because it has references."}),(0,t.jsx)("ul",{className:"list-disc",children:x.flatMap(Bt)}),n&&(0,t.jsx)(N,{errors:x,cellId:n}),(0,t.jsxs)(I,{title:"Why can't the setup cell have references?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"The setup cell contains logic that must be run before any other cell runs, including top-level imports used by top-level functions. For this reason, it can't refer to other cells' variables."}),(0,t.jsx)("p",{className:"py-2",children:"Try simplifying the setup cell to only contain only necessary variables."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-setup",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"setup-refs")),y.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell is in a cycle."}),(0,t.jsx)("ul",{className:"list-disc",children:y.flatMap(Qt)}),n&&(0,t.jsx)(N,{errors:y,cellId:n}),(0,t.jsxs)(I,{title:"What are cycles and how do I resolve them?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"An example of a cycle is if one cell declares a variable 'a' and reads 'b', and another cell declares 'b' and and reads 'a'. Cycles like this make it impossible for marimo to know how to run your cells, and generally suggest that your code has a bug."}),(0,t.jsx)("p",{className:"py-2",children:"Try merging these cells into a single cell to eliminate the cycle."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-cycles",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"cycle")),w.length>0){let z=w[0].name;v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell redefines variables from other cells."}),w.map(Ot),n&&(0,t.jsx)(N,{errors:w,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I redefine variables?",children:[(0,t.jsx)("p",{className:"pb-2",children:"marimo requires that each variable is defined in just one cell. This constraint enables reactive and reproducible execution, arbitrary cell reordering, seamless UI elements, execution as a script, and more."}),(0,t.jsxs)("p",{className:"py-2",children:["Try merging this cell with the mentioned cells or wrapping it in a function. Alternatively, prefix variables with an underscore (e.g., ",(0,t.jsxs)(te,{className:"inline",children:["_",z]}),"). to make them private to this cell."]}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-multiple-definitions",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]}),(0,t.jsx)(I,{title:"Need a scratchpad?",children:(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsxs)($,{size:"xs",variant:"link",className:"my-2 font-normal mx-0 px-0",onClick:xe,children:[(0,t.jsx)($e,{className:"h-3"}),(0,t.jsx)("span",{children:"Try the scratchpad"})]}),(0,t.jsx)("span",{children:"to experiment without restrictions on variable names."})]})})]},"multiple-defs"))}return _.length>0&&v.push((0,t.jsxs)("div",{children:[_.map(Ht),n&&(0,t.jsx)(N,{errors:_,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I use `import *`?",children:[(0,t.jsx)("p",{className:"pb-2",children:"Star imports are incompatible with marimo's git-friendly file format and reproducible reactive execution."}),(0,t.jsx)("p",{className:"py-2",children:"marimo's Python file format stores code in functions, so notebooks can be imported as regular Python modules without executing all their code. But Python disallows `import *` everywhere except at the top-level of a module."}),(0,t.jsx)("p",{className:"py-2",children:"Star imports would also silently add names to globals, which would be incompatible with reactive execution."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-import-star",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"import-star")),L.length>0&&v.push((0,t.jsxs)("div",{children:[L.map(Ut),n&&(0,t.jsx)(N,{errors:L,cellId:n})]},"interruption")),C.length>0&&v.push((0,t.jsxs)("ul",{children:[C.map(Kt),C.some(Rt)&&(0,t.jsx)(I,{children:"Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."}),n&&(0,t.jsx)(N,{errors:C,cellId:n})]},"exception")),S.length>0&&v.push((0,t.jsxs)("ul",{children:[S.map(Gt),n&&(0,t.jsx)(N,{errors:S,cellId:n}),(0,t.jsx)(I,{children:S.some(Jt)?"Ensure that the referenced cells define the required variables, or turn off strict execution.":"Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."})]},"strict-exception")),W.length>0&&v.push((0,t.jsxs)("div",{children:[W.map(Xt),n&&(0,t.jsx)(N,{errors:W,cellId:n})]},"internal")),V.length>0&&v.push((0,t.jsxs)("div",{children:[V.map(Yt),n&&(0,t.jsx)(N,{errors:V,cellId:n})]},"ancestor-prevented")),B.length>0&&v.push((0,t.jsxs)("div",{children:[B.map(Zt),n&&(0,t.jsx)(N,{errors:B,cellId:n})]},"ancestor-stopped")),D.length>0&&v.push((0,t.jsxs)("div",{children:[D.map(er),n&&(0,t.jsx)(N,{errors:D,cellId:n,className:"mt-2.5"})]},"sql-errors")),v},O=`font-code font-medium tracking-wide ${o}`,q;e[17]!==O||e[18]!==a?(q=(0,t.jsx)(Re,{className:O,children:a}),e[17]=O,e[18]=a,e[19]=q):q=e[19];let je=q;m=Ge,f=c,e[20]===i?u=e[21]:(u=Y("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4",i),e[20]=i,e[21]=u),j=je,p="flex flex-col gap-8",d=fe(),e[2]=c,e[3]=n,e[4]=l,e[5]=i,e[6]=s,e[7]=o,e[8]=a,e[9]=m,e[10]=p,e[11]=d,e[12]=f,e[13]=u,e[14]=j}else m=e[9],p=e[10],d=e[11],f=e[12],u=e[13],j=e[14];let h;e[22]!==p||e[23]!==d?(h=(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:p,children:d})}),e[22]=p,e[23]=d,e[24]=h):h=e[24];let g;return e[25]!==m||e[26]!==f||e[27]!==u||e[28]!==j||e[29]!==h?(g=(0,t.jsxs)(m,{variant:f,className:u,children:[j,h]}),e[25]=m,e[26]=f,e[27]=u,e[28]=j,e[29]=h,e[30]=g):g=e[30],g};function gt(r){return r.type==="interruption"}function yt(r){return r.type==="internal"}function vt(r){return r.type==="ancestor-prevented"}function Nt(r){return r.type==="ancestor-stopped"}function bt(r){return r.type==="sql-error"}function wt(r){return r.type==="exception"}function kt(r){return r.type==="setup-refs"}function It(r){return r.type==="cycle"}function $t(r){return r.type==="multiple-defs"}function _t(r){return r.type==="import-star"}function Ft(r){return r.type==="interruption"}function At(r){return r.type==="exception"}function Tt(r){return r.type==="strict-exception"}function Ct(r){return r.type==="internal"}function St(r){return r.type==="ancestor-prevented"}function Mt(r){return r.type==="ancestor-stopped"}function qt(r){return r.type==="syntax"}function zt(r){return r.type==="unknown"}function Et(r){return r.type==="sql-error"}function Pt(r){return r.msg.includes("!pip")}function Lt(r){return r.msg.includes("use os.subprocess")}function Wt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`syntax-${e}`)},`syntax-${e}`)}function Vt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`unknown-${e}`)},`unknown-${e}`)}function Bt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[": "," ",s[1].length===1?s[1][0]:s[1].join(", ")]})]},`setup-refs-${e}-${n}`))}function Qt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" -> ",s[1].length===1?s[1][0]:s[1].join(", ")," -> "]}),(0,t.jsx)(b,{cellId:s[2]})]},`cycle-${e}-${n}`))}function Dt(r,e){return(0,t.jsx)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:(0,t.jsx)(b,{cellId:r})},`cell-${e}`)}function Ot(r,e){return(0,t.jsxs)(P.Fragment,{children:[(0,t.jsx)("p",{className:"text-muted-foreground mt-2",children:`'${r.name}' was also defined by:`}),(0,t.jsx)("ul",{className:"list-disc",children:r.cells.map(Dt)})]},`multiple-defs-${e}`)}function Ht(r,e){return(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg},`import-star-${e}`)}function Ut(r,e){return(0,t.jsx)("p",{children:"This cell was interrupted and needs to be re-run."},`interruption-${e}`)}function Kt(r,e){return r.exception_type==="NameError"&&r.msg.startsWith("name 'mo'")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:"name 'mo' is not defined."}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["The marimo module (imported as"," ",(0,t.jsx)(te,{className:"inline",children:"mo"}),") is required for Markdown, SQL, and UI elements."]})]})},`exception-${e}`):r.exception_type==="NameError"&&r.msg.startsWith("name '_")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["Variables prefixed with an underscore are local to a cell"," ","(",(0,t.jsxs)(A,{href:"https://links.marimo.app/local-variables",children:["docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),")."]}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]})},`exception-${e}`):(0,t.jsx)("li",{className:"my-2",children:r.raising_cell==null?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:k(r.msg,`exception-${e}`)}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]}):(0,t.jsxs)("div",{children:[k(r.msg,`exception-${e}`),(0,t.jsx)(b,{cellId:r.raising_cell})]})},`exception-${e}`)}function Rt(r){return r.raising_cell!=null}function Gt(r,e){return(0,t.jsx)("li",{className:"my-2",children:r.blamed_cell==null?(0,t.jsx)("p",{children:r.msg}):(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.blamed_cell})]})},`strict-exception-${e}`)}function Jt(r){return r.blamed_cell!=null}function Xt(r,e){return(0,t.jsx)("p",{children:r.msg},`internal-${e}`)}function Yt(r,e){return(0,t.jsxs)("div",{children:[r.msg,r.blamed_cell==null?(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),")"]}):(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),"\xA0blames\xA0",(0,t.jsx)(b,{cellId:r.blamed_cell}),")"]})]},`ancestor-prevented-${e}`)}function Zt(r,e){return(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.raising_cell})]},`ancestor-stopped-${e}`)}function er(r,e){return(0,t.jsx)("div",{className:"space-y-2 mt-2",children:(0,t.jsx)("p",{className:"text-muted-foreground whitespace-pre-wrap",children:r.msg})},`sql-error-${e}`)}export{re as a,oe as i,ft as n,me as r,jt as t};
@@ -1 +1 @@
1
- import{s as v}from"./chunk-LvLJmgfZ.js";import{p as x,u as j}from"./useEvent-DlWF5OMa.js";import{t as _}from"./react-BGmjiNul.js";import{Fr as u,Pr as w}from"./cells-Dk_j8HX9.js";import{t as y}from"./compiler-runtime-DeeZ7FnK.js";import{o as N}from"./utils-CJJIceVn.js";import{t as R}from"./jsx-runtime-DN_bIXfG.js";import{t as z}from"./mode-BOijHAOc.js";import{t as C}from"./usePress-C2LPFxyv.js";import{t as F}from"./copy-icon-B69c-352.js";import{t as E}from"./purify.es-N-2faAGj.js";import{t as H}from"./useRunCells-DLQFWY1L.js";var k=y(),m=v(_(),1),s=v(R(),1);const M=e=>{let t=(0,k.c)(16),r,a,i;t[0]===e?(r=t[1],a=t[2],i=t[3]):({href:a,children:r,...i}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=i);let o=(0,m.useRef)(null),l;t[4]===a?l=t[5]:(l=()=>{let d=new URL(globalThis.location.href);d.hash=a,globalThis.history.pushState({},"",d.toString()),globalThis.dispatchEvent(new HashChangeEvent("hashchange"));let S=a.slice(1),A=document.getElementById(S);A&&A.scrollIntoView({behavior:"smooth",block:"start"})},t[4]=a,t[5]=l);let n=l,c;t[6]===n?c=t[7]:(c={onPress:()=>{n()}},t[6]=n,t[7]=c);let{pressProps:b}=C(c),f;t[8]===n?f=t[9]:(f=d=>{d.preventDefault(),n()},t[8]=n,t[9]=f);let g=f,h;return t[10]!==r||t[11]!==g||t[12]!==a||t[13]!==b||t[14]!==i?(h=(0,s.jsx)("a",{ref:o,href:a,...b,onClick:g,...i,children:r}),t[10]=r,t[11]=g,t[12]=a,t[13]=b,t[14]=i,t[15]=h):h=t[15],h};var T=x(e=>{let t=e(H),r=e(N);if(t||r)return!1;let a=!0;try{a=z()==="read"}catch{return!0}return!a});function L(){return j(T)}var p="data-temp-href-target";E.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&(e.hasAttribute("target")||e.setAttribute("target","_self"),e.hasAttribute("target")&&e.setAttribute(p,e.getAttribute("target")||""))}),E.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(p)&&(e.setAttribute("target",e.getAttribute(p)||""),e.removeAttribute(p),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer"))});function O(e){let t={USE_PROFILES:{html:!0,svg:!0,mathMl:!0},FORCE_BODY:!0,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,attributeNameCheck:/^[A-Za-z][\w-]*$/},SAFE_FOR_XML:!e.includes("marimo-mermaid")};return E.sanitize(e,t)}var I=y(),D=e=>{if(e instanceof u.Element&&!/^[A-Za-z][\w-]*$/.test(e.name))return m.createElement(m.Fragment)},P=(e,t)=>{if(t instanceof u.Element&&t.name==="body"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},V=(e,t)=>{if(t instanceof u.Element&&t.name==="html"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},W=e=>{if(e instanceof u.Element&&e.attribs&&e.name==="iframe"){let t=document.createElement("iframe");return Object.entries(e.attribs).forEach(([r,a])=>{r.startsWith('"')&&r.endsWith('"')&&(r=r.slice(1,-1)),t.setAttribute(r,a)}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.outerHTML}})}},$=e=>{if(e instanceof u.Element&&e.name==="script"){let t=e.attribs.src;if(!t)return;if(!document.querySelector(`script[src="${t}"]`)){let r=document.createElement("script");r.src=t,document.head.append(r)}return(0,s.jsx)(s.Fragment,{})}},U=(e,t)=>{if(t instanceof u.Element&&t.name==="a"){let r=t.attribs.href;if(r!=null&&r.startsWith("#")&&!r.startsWith("#code/")){let a=null;return(0,m.isValidElement)(e)&&"props"in e&&(a=e.props.children),(0,s.jsx)(M,{href:r,...t.attribs,children:a})}}},Z=(e,t,r)=>{var a,i;if(t instanceof u.Element&&t.name==="div"&&((i=(a=t.attribs)==null?void 0:a.class)!=null&&i.includes("codehilite")))return(0,s.jsx)(B,{children:e},r)},B=e=>{let t=(0,I.c)(3),{children:r}=e,a=(0,m.useRef)(null),i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,s.jsx)(F,{tooltip:!1,className:"p-1",value:()=>{var n;let l=(n=a.current)==null?void 0:n.firstChild;return l&&l.textContent||""}})}),t[0]=i):i=t[0];let o;return t[1]===r?o=t[2]:(o=(0,s.jsxs)("div",{className:"relative group codehilite-wrapper",ref:a,children:[r,i]}),t[1]=r,t[2]=o),o};const q=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r=!0})=>(0,s.jsx)(G,{html:e,alwaysSanitizeHtml:r,additionalReplacements:t});var G=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r})=>{let a=L();return X({html:(0,m.useMemo)(()=>r||a?O(e):e,[e,r,a]),additionalReplacements:t})};function X({html:e,additionalReplacements:t=[]}){let r=[D,W,$,...t],a=[Z,U,P,V];return w(e,{replace:(i,o)=>{for(let l of r){let n=l(i,o);if(n)return n}return i},transform:(i,o,l)=>{for(let n of a){let c=n(i,o,l);if(c)return c}return i}})}export{q as t};
1
+ import{s as v}from"./chunk-LvLJmgfZ.js";import{p as x,u as j}from"./useEvent-DlWF5OMa.js";import{t as _}from"./react-BGmjiNul.js";import{Fr as u,Pr as w}from"./cells-D_SkyFDn.js";import{t as y}from"./compiler-runtime-DeeZ7FnK.js";import{o as N}from"./utils-CJJIceVn.js";import{t as R}from"./jsx-runtime-DN_bIXfG.js";import{t as z}from"./mode-BFwdGSZ7.js";import{t as C}from"./usePress-C2LPFxyv.js";import{t as F}from"./copy-icon-B69c-352.js";import{t as E}from"./purify.es-N-2faAGj.js";import{t as H}from"./useRunCells-BZ_OFvV4.js";var k=y(),m=v(_(),1),s=v(R(),1);const M=e=>{let t=(0,k.c)(16),r,a,i;t[0]===e?(r=t[1],a=t[2],i=t[3]):({href:a,children:r,...i}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=i);let o=(0,m.useRef)(null),l;t[4]===a?l=t[5]:(l=()=>{let d=new URL(globalThis.location.href);d.hash=a,globalThis.history.pushState({},"",d.toString()),globalThis.dispatchEvent(new HashChangeEvent("hashchange"));let S=a.slice(1),A=document.getElementById(S);A&&A.scrollIntoView({behavior:"smooth",block:"start"})},t[4]=a,t[5]=l);let n=l,c;t[6]===n?c=t[7]:(c={onPress:()=>{n()}},t[6]=n,t[7]=c);let{pressProps:b}=C(c),f;t[8]===n?f=t[9]:(f=d=>{d.preventDefault(),n()},t[8]=n,t[9]=f);let g=f,h;return t[10]!==r||t[11]!==g||t[12]!==a||t[13]!==b||t[14]!==i?(h=(0,s.jsx)("a",{ref:o,href:a,...b,onClick:g,...i,children:r}),t[10]=r,t[11]=g,t[12]=a,t[13]=b,t[14]=i,t[15]=h):h=t[15],h};var T=x(e=>{let t=e(H),r=e(N);if(t||r)return!1;let a=!0;try{a=z()==="read"}catch{return!0}return!a});function L(){return j(T)}var p="data-temp-href-target";E.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&(e.hasAttribute("target")||e.setAttribute("target","_self"),e.hasAttribute("target")&&e.setAttribute(p,e.getAttribute("target")||""))}),E.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(p)&&(e.setAttribute("target",e.getAttribute(p)||""),e.removeAttribute(p),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer"))});function O(e){let t={USE_PROFILES:{html:!0,svg:!0,mathMl:!0},FORCE_BODY:!0,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,attributeNameCheck:/^[A-Za-z][\w-]*$/},SAFE_FOR_XML:!e.includes("marimo-mermaid")};return E.sanitize(e,t)}var I=y(),D=e=>{if(e instanceof u.Element&&!/^[A-Za-z][\w-]*$/.test(e.name))return m.createElement(m.Fragment)},P=(e,t)=>{if(t instanceof u.Element&&t.name==="body"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},V=(e,t)=>{if(t instanceof u.Element&&t.name==="html"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},W=e=>{if(e instanceof u.Element&&e.attribs&&e.name==="iframe"){let t=document.createElement("iframe");return Object.entries(e.attribs).forEach(([r,a])=>{r.startsWith('"')&&r.endsWith('"')&&(r=r.slice(1,-1)),t.setAttribute(r,a)}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.outerHTML}})}},$=e=>{if(e instanceof u.Element&&e.name==="script"){let t=e.attribs.src;if(!t)return;if(!document.querySelector(`script[src="${t}"]`)){let r=document.createElement("script");r.src=t,document.head.append(r)}return(0,s.jsx)(s.Fragment,{})}},U=(e,t)=>{if(t instanceof u.Element&&t.name==="a"){let r=t.attribs.href;if(r!=null&&r.startsWith("#")&&!r.startsWith("#code/")){let a=null;return(0,m.isValidElement)(e)&&"props"in e&&(a=e.props.children),(0,s.jsx)(M,{href:r,...t.attribs,children:a})}}},Z=(e,t,r)=>{var a,i;if(t instanceof u.Element&&t.name==="div"&&((i=(a=t.attribs)==null?void 0:a.class)!=null&&i.includes("codehilite")))return(0,s.jsx)(B,{children:e},r)},B=e=>{let t=(0,I.c)(3),{children:r}=e,a=(0,m.useRef)(null),i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,s.jsx)(F,{tooltip:!1,className:"p-1",value:()=>{var n;let l=(n=a.current)==null?void 0:n.firstChild;return l&&l.textContent||""}})}),t[0]=i):i=t[0];let o;return t[1]===r?o=t[2]:(o=(0,s.jsxs)("div",{className:"relative group codehilite-wrapper",ref:a,children:[r,i]}),t[1]=r,t[2]=o),o};const q=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r=!0})=>(0,s.jsx)(G,{html:e,alwaysSanitizeHtml:r,additionalReplacements:t});var G=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r})=>{let a=L();return X({html:(0,m.useMemo)(()=>r||a?O(e):e,[e,r,a]),additionalReplacements:t})};function X({html:e,additionalReplacements:t=[]}){let r=[D,W,$,...t],a=[Z,U,P,V];return w(e,{replace:(i,o)=>{for(let l of r){let n=l(i,o);if(n)return n}return i},transform:(i,o,l)=>{for(let n of a){let c=n(i,o,l);if(c)return c}return i}})}export{q as t};