@marimo-team/islands 0.13.11-dev3 → 0.13.11-dev30

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 (60) hide show
  1. package/dist/{ConnectedDataExplorerComponent-USp92iy8.js → ConnectedDataExplorerComponent-D3RBGKI8.js} +2 -2
  2. package/dist/{VegaLite-BTxG75R7.js → VegaLite-DR71BlxV.js} +3 -3
  3. package/dist/{_baseUniq-KXqcZE1r.js → _baseUniq-DejRO9BL.js} +54 -54
  4. package/dist/{any-language-editor-BSTu-Quf.js → any-language-editor-80z78Iv5.js} +1 -1
  5. package/dist/{architectureDiagram-IEHRJDOE-Y-6M9D6d.js → architectureDiagram-IEHRJDOE-D6Xy5ULa.js} +5 -5
  6. package/dist/assets/{save-worker-BPdUArx2.js → save-worker-9HEtFDM0.js} +286 -278
  7. package/dist/assets/{worker-ClUJakx7.js → worker-BGGm0KYZ.js} +343 -335
  8. package/dist/assets/{worker-C7cQgmFi.js → worker-e6AF4zgJ.js} +221 -213
  9. package/dist/{blockDiagram-JOT3LUYC-BvJ81ptn.js → blockDiagram-JOT3LUYC-w_o5498j.js} +4 -4
  10. package/dist/{c4Diagram-VJAJSXHY-DczhTE0C.js → c4Diagram-VJAJSXHY-B4kROMMq.js} +2 -2
  11. package/dist/{channel-CzXlDBP9.js → channel-CG759eX7.js} +1 -1
  12. package/dist/{chunk-4BMEZGHF-CQEbzKUS.js → chunk-4BMEZGHF-BgT_1pyR.js} +1 -1
  13. package/dist/{chunk-A2AXSNBT-eVhLc-rs.js → chunk-A2AXSNBT-BQoLq6yr.js} +2 -2
  14. package/dist/{chunk-AEK57VVT-Dfgm7pC5.js → chunk-AEK57VVT-WyWko15X.js} +2 -2
  15. package/dist/{chunk-D6G4REZN-DAH1zN26.js → chunk-D6G4REZN-B28MQghc.js} +1 -1
  16. package/dist/{chunk-RZ5BOZE2-DpAwfDPF.js → chunk-RZ5BOZE2-D1Kw_TtP.js} +1 -1
  17. package/dist/{chunk-XZIHB7SX-9HFpABOz.js → chunk-XZIHB7SX-Cy_McmPE.js} +1 -1
  18. package/dist/{classDiagram-GIVACNV2-DLqsRvpf.js → classDiagram-GIVACNV2-C0SVAR7F.js} +2 -2
  19. package/dist/{classDiagram-v2-COTLJTTW-DLqsRvpf.js → classDiagram-v2-COTLJTTW-C0SVAR7F.js} +2 -2
  20. package/dist/{clone-CG7vLLmu.js → clone-BYDn9vU4.js} +1 -1
  21. package/dist/{dagre-OKDRZEBW-DHsnUTVw.js → dagre-OKDRZEBW-Cwkcdz2q.js} +6 -6
  22. package/dist/{data-editor-C-GgxO9H.js → data-editor-C4OhSL9T.js} +1 -1
  23. package/dist/{diagram-SSKATNLV-Bmrgr45e.js → diagram-SSKATNLV-VyBQU9rW.js} +3 -3
  24. package/dist/{diagram-VNBRO52H-DHH5q1IV.js → diagram-VNBRO52H-ChvvMlqc.js} +3 -3
  25. package/dist/{erDiagram-Q7BY3M3F-CP78xDHD.js → erDiagram-Q7BY3M3F-DO4lp2xY.js} +3 -3
  26. package/dist/{flowDiagram-4HSFHLVR-2GeiVHdR.js → flowDiagram-4HSFHLVR-CoG-yKNm.js} +3 -3
  27. package/dist/{ganttDiagram-APWFNJXF-D_MVC5sh.js → ganttDiagram-APWFNJXF-DoOXLJ5_.js} +55 -55
  28. package/dist/{gitGraphDiagram-7IBYFJ6S-bw4KAyFL.js → gitGraphDiagram-7IBYFJ6S-sgznfiFD.js} +4 -4
  29. package/dist/{graph-CdMu5g_Q.js → graph-DwopZ4yj.js} +3 -3
  30. package/dist/{index-CR-YmDAD.js → index-GMqPIe4T.js} +1 -1
  31. package/dist/{index-D0ZAcE0L.js → index-lrUzu1Hm.js} +3 -3
  32. package/dist/{index-B9l8Z-Av.js → index-m4hg6DFl.js} +1 -1
  33. package/dist/{index-Cc9QCUYT.js → index-yx7-vKlY.js} +1 -1
  34. package/dist/{infoDiagram-PH2N3AL5-CEw0fORh.js → infoDiagram-PH2N3AL5-Dflgmbge.js} +2 -2
  35. package/dist/{journeyDiagram-U35MCT3I-LBrVl0fT.js → journeyDiagram-U35MCT3I-CE0B1c_U.js} +2 -2
  36. package/dist/{kanban-definition-NDS4AKOZ-BJR6gba-.js → kanban-definition-NDS4AKOZ-DYWeTeqa.js} +1 -1
  37. package/dist/{layout-CDMOEuLe.js → layout-D7pzYoS1.js} +51 -51
  38. package/dist/{linear-BpI8e45O.js → linear-RkIPJ3n0.js} +32 -32
  39. package/dist/{main-DSNiO9Os.js → main-Bm93qTyH.js} +31437 -31027
  40. package/dist/main.js +1 -1
  41. package/dist/{mermaid-CHAXWBq7.js → mermaid-FqBbojc3.js} +28 -28
  42. package/dist/min-Csc_I1-u.js +80 -0
  43. package/dist/{mindmap-definition-ALO5MXBD-Bbj9grNR.js → mindmap-definition-ALO5MXBD-DVa8Ezuw.js} +2 -2
  44. package/dist/{pieDiagram-IB7DONF6-BIl29lI7.js → pieDiagram-IB7DONF6-CTxiA6kk.js} +3 -3
  45. package/dist/{quadrantDiagram-7GDLP6J5-BcTjj3GA.js → quadrantDiagram-7GDLP6J5-AUcmgMCP.js} +2 -2
  46. package/dist/{radar-MK3ICKWK-Bb_7gec9.js → radar-MK3ICKWK-DUeZ2fif.js} +11 -11
  47. package/dist/{react-plotly-fIHR7egR.js → react-plotly-BU5LOTee.js} +1 -1
  48. package/dist/{requirementDiagram-KVF5MWMF-BzCTK4z0.js → requirementDiagram-KVF5MWMF-Dof6lD7O.js} +2 -2
  49. package/dist/{sankeyDiagram-QLVOVGJD--uaI539J.js → sankeyDiagram-QLVOVGJD-Dmy6oRXf.js} +1 -1
  50. package/dist/{sequenceDiagram-X6HHIX6F-DEAgKh-E.js → sequenceDiagram-X6HHIX6F-D6dxdSmM.js} +3 -3
  51. package/dist/{slides-component-kw4L_Wiw.js → slides-component-2ww8bGnx.js} +1 -1
  52. package/dist/{stateDiagram-DGXRK772-Cp3bI9bu.js → stateDiagram-DGXRK772-OMLVr40m.js} +4 -4
  53. package/dist/{stateDiagram-v2-YXO3MK2T-BJnGwvX7.js → stateDiagram-v2-YXO3MK2T-DjHTCK9p.js} +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/{time-D43WBnQ-.js → time-CgO6qcLS.js} +2 -2
  56. package/dist/{timeline-definition-BDJGKUSR-DFWVg6Zw.js → timeline-definition-BDJGKUSR-CrIpIjws.js} +1 -1
  57. package/dist/{vega-component-CzTU0Oww.js → vega-component-H12RRdfx.js} +2 -2
  58. package/dist/{xychartDiagram-VJFVF3MP-CGjMqGc7.js → xychartDiagram-VJFVF3MP-DSW_CYTz.js} +2 -2
  59. package/package.json +2 -2
  60. package/dist/min-FCyEdcCq.js +0 -85
@@ -1,6 +1,6 @@
1
- var _r = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
- var ps = _r((ys, yt) => {
3
- class wr {
1
+ var wr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
+ var hs = wr((gs, yt) => {
3
+ class br {
4
4
  constructor() {
5
5
  this.status = "pending", this.promise = new Promise((e, r) => {
6
6
  this.reject = (n) => {
@@ -114,7 +114,7 @@ var ps = _r((ys, yt) => {
114
114
  "invalid_intersection_types",
115
115
  "not_multiple_of",
116
116
  "not_finite"
117
- ]), br = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
117
+ ]), kr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
118
118
  class P extends Error {
119
119
  get errors() {
120
120
  return this.issues;
@@ -232,7 +232,7 @@ var ps = _r((ys, yt) => {
232
232
  return { message: r };
233
233
  };
234
234
  let At = ge;
235
- function kr(t) {
235
+ function xr(t) {
236
236
  At = t;
237
237
  }
238
238
  function He() {
@@ -258,7 +258,7 @@ var ps = _r((ys, yt) => {
258
258
  path: a,
259
259
  message: o
260
260
  };
261
- }, xr = [];
261
+ }, Sr = [];
262
262
  function f(t, e) {
263
263
  const r = He(), n = We({
264
264
  issueData: e,
@@ -589,14 +589,14 @@ var ps = _r((ys, yt) => {
589
589
  return this.safeParse(null).success;
590
590
  }
591
591
  }
592
- const Sr = /^c[^\s-]{8,}$/i, Tr = /^[0-9a-z]+$/, Er = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Or = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Nr = /^[a-z0-9_-]{21}$/i, Rr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ar = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Cr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ir = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
592
+ const Tr = /^c[^\s-]{8,}$/i, Er = /^[0-9a-z]+$/, Or = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Nr = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Rr = /^[a-z0-9_-]{21}$/i, Ar = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Cr = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ir = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Pr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
593
593
  let at;
594
- const Pr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, jr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Zr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, $r = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Mr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Fr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, It = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Dr = new RegExp(`^${It}$`);
594
+ const jr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, $r = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Mr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Dr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, It = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Lr = new RegExp(`^${It}$`);
595
595
  function Pt(t) {
596
596
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
597
597
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
598
598
  }
599
- function Lr(t) {
599
+ function Vr(t) {
600
600
  return new RegExp(`^${Pt(t)}$`);
601
601
  }
602
602
  function jt(t) {
@@ -604,11 +604,11 @@ var ps = _r((ys, yt) => {
604
604
  const r = [];
605
605
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
606
606
  }
607
- function Vr(t, e) {
608
- return !!((e === "v4" || !e) && Pr.test(t) || (e === "v6" || !e) && Zr.test(t));
609
- }
610
607
  function zr(t, e) {
611
- if (!Rr.test(t))
608
+ return !!((e === "v4" || !e) && jr.test(t) || (e === "v6" || !e) && $r.test(t));
609
+ }
610
+ function qr(t, e) {
611
+ if (!Ar.test(t))
612
612
  return !1;
613
613
  try {
614
614
  const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
@@ -617,8 +617,8 @@ var ps = _r((ys, yt) => {
617
617
  return !1;
618
618
  }
619
619
  }
620
- function qr(t, e) {
621
- return !!((e === "v4" || !e) && jr.test(t) || (e === "v6" || !e) && $r.test(t));
620
+ function Ur(t, e) {
621
+ return !!((e === "v4" || !e) && Zr.test(t) || (e === "v6" || !e) && Mr.test(t));
622
622
  }
623
623
  class Z extends w {
624
624
  _parse(e) {
@@ -669,43 +669,43 @@ var ps = _r((ys, yt) => {
669
669
  message: a.message
670
670
  }), n.dirty());
671
671
  } else if (a.kind === "email")
672
- Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
672
+ Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
673
673
  validation: "email",
674
674
  code: u.invalid_string,
675
675
  message: a.message
676
676
  }), n.dirty());
677
677
  else if (a.kind === "emoji")
678
- at || (at = new RegExp(Ir, "u")), at.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
678
+ at || (at = new RegExp(Pr, "u")), at.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
679
679
  validation: "emoji",
680
680
  code: u.invalid_string,
681
681
  message: a.message
682
682
  }), n.dirty());
683
683
  else if (a.kind === "uuid")
684
- Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
684
+ Nr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
685
685
  validation: "uuid",
686
686
  code: u.invalid_string,
687
687
  message: a.message
688
688
  }), n.dirty());
689
689
  else if (a.kind === "nanoid")
690
- Nr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
690
+ Rr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
691
691
  validation: "nanoid",
692
692
  code: u.invalid_string,
693
693
  message: a.message
694
694
  }), n.dirty());
695
695
  else if (a.kind === "cuid")
696
- Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
696
+ Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
697
697
  validation: "cuid",
698
698
  code: u.invalid_string,
699
699
  message: a.message
700
700
  }), n.dirty());
701
701
  else if (a.kind === "cuid2")
702
- Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
702
+ Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
703
703
  validation: "cuid2",
704
704
  code: u.invalid_string,
705
705
  message: a.message
706
706
  }), n.dirty());
707
707
  else if (a.kind === "ulid")
708
- Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
708
+ Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
709
709
  validation: "ulid",
710
710
  code: u.invalid_string,
711
711
  message: a.message
@@ -740,35 +740,35 @@ var ps = _r((ys, yt) => {
740
740
  code: u.invalid_string,
741
741
  validation: "datetime",
742
742
  message: a.message
743
- }), n.dirty()) : a.kind === "date" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
743
+ }), n.dirty()) : a.kind === "date" ? Lr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
744
744
  code: u.invalid_string,
745
745
  validation: "date",
746
746
  message: a.message
747
- }), n.dirty()) : a.kind === "time" ? Lr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
747
+ }), n.dirty()) : a.kind === "time" ? Vr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
748
748
  code: u.invalid_string,
749
749
  validation: "time",
750
750
  message: a.message
751
- }), n.dirty()) : a.kind === "duration" ? Ar.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
751
+ }), n.dirty()) : a.kind === "duration" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
752
752
  validation: "duration",
753
753
  code: u.invalid_string,
754
754
  message: a.message
755
- }), n.dirty()) : a.kind === "ip" ? Vr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
755
+ }), n.dirty()) : a.kind === "ip" ? zr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
756
756
  validation: "ip",
757
757
  code: u.invalid_string,
758
758
  message: a.message
759
- }), n.dirty()) : a.kind === "jwt" ? zr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
759
+ }), n.dirty()) : a.kind === "jwt" ? qr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
760
760
  validation: "jwt",
761
761
  code: u.invalid_string,
762
762
  message: a.message
763
- }), n.dirty()) : a.kind === "cidr" ? qr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
763
+ }), n.dirty()) : a.kind === "cidr" ? Ur(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
764
764
  validation: "cidr",
765
765
  code: u.invalid_string,
766
766
  message: a.message
767
- }), n.dirty()) : a.kind === "base64" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
767
+ }), n.dirty()) : a.kind === "base64" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
768
768
  validation: "base64",
769
769
  code: u.invalid_string,
770
770
  message: a.message
771
- }), n.dirty()) : a.kind === "base64url" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
771
+ }), n.dirty()) : a.kind === "base64url" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
772
772
  validation: "base64url",
773
773
  code: u.invalid_string,
774
774
  message: a.message
@@ -1007,7 +1007,7 @@ var ps = _r((ys, yt) => {
1007
1007
  ..._(t)
1008
1008
  });
1009
1009
  };
1010
- function Ur(t, e) {
1010
+ function Br(t, e) {
1011
1011
  const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = parseInt(t.toFixed(s).replace(".", "")), i = parseInt(e.toFixed(s).replace(".", ""));
1012
1012
  return a % i / Math.pow(10, s);
1013
1013
  }
@@ -1046,7 +1046,7 @@ var ps = _r((ys, yt) => {
1046
1046
  inclusive: a.inclusive,
1047
1047
  exact: !1,
1048
1048
  message: a.message
1049
- }), s.dirty()) : a.kind === "multipleOf" ? Ur(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1049
+ }), s.dirty()) : a.kind === "multipleOf" ? Br(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
1050
1050
  code: u.not_multiple_of,
1051
1051
  multipleOf: a.value,
1052
1052
  message: a.message
@@ -2755,7 +2755,7 @@ var ps = _r((ys, yt) => {
2755
2755
  typeName: y.ZodNaN,
2756
2756
  ..._(t)
2757
2757
  });
2758
- const Br = Symbol("zod_brand");
2758
+ const Hr = Symbol("zod_brand");
2759
2759
  class gt extends w {
2760
2760
  _parse(e) {
2761
2761
  const { ctx: r } = this._processInputParams(e), n = r.data;
@@ -2845,16 +2845,16 @@ var ps = _r((ys, yt) => {
2845
2845
  }
2846
2846
  }) : ve.create();
2847
2847
  }
2848
- const Hr = {
2848
+ const Wr = {
2849
2849
  object: O.lazycreate
2850
2850
  };
2851
2851
  var y;
2852
2852
  (function(t) {
2853
2853
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
2854
2854
  })(y || (y = {}));
2855
- const Wr = (t, e = {
2855
+ const Jr = (t, e = {
2856
2856
  message: `Input not instance of ${t.name}`
2857
- }) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create, Jr = Xe.create, Yr = Y.create, Dt = Ne.create, Gr = oe.create, Kr = Ye.create, Xr = Re.create, Qr = Ae.create, en = ve.create, tn = ae.create, rn = H.create, nn = Ge.create, sn = $.create, an = O.create, on = O.strictCreate, dn = Ce.create, cn = rt.create, un = Ie.create, ln = V.create, fn = Pe.create, pn = Ke.create, hn = de.create, mn = ye.create, yn = je.create, gn = Ze.create, vn = G.create, _n = $e.create, wn = _e.create, Tt = M.create, bn = D.create, kn = K.create, xn = M.createWithPreprocess, Sn = Le.create, Tn = () => Mt().optional(), En = () => Ft().optional(), On = () => Dt().optional(), Nn = {
2857
+ }) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create, Yr = Xe.create, Gr = Y.create, Dt = Ne.create, Kr = oe.create, Xr = Ye.create, Qr = Re.create, en = Ae.create, tn = ve.create, rn = ae.create, nn = H.create, sn = Ge.create, an = $.create, on = O.create, dn = O.strictCreate, cn = Ce.create, un = rt.create, ln = Ie.create, fn = V.create, pn = Pe.create, hn = Ke.create, mn = de.create, yn = ye.create, gn = je.create, vn = Ze.create, _n = G.create, wn = $e.create, bn = _e.create, Tt = M.create, kn = D.create, xn = K.create, Sn = M.createWithPreprocess, Tn = Le.create, En = () => Mt().optional(), On = () => Ft().optional(), Nn = () => Dt().optional(), Rn = {
2858
2858
  string: (t) => Z.create({ ...t, coerce: !0 }),
2859
2859
  number: (t) => J.create({ ...t, coerce: !0 }),
2860
2860
  boolean: (t) => Ne.create({
@@ -2863,14 +2863,14 @@ var ps = _r((ys, yt) => {
2863
2863
  }),
2864
2864
  bigint: (t) => Y.create({ ...t, coerce: !0 }),
2865
2865
  date: (t) => oe.create({ ...t, coerce: !0 })
2866
- }, Rn = g;
2866
+ }, An = g;
2867
2867
  var m = /* @__PURE__ */ Object.freeze({
2868
2868
  __proto__: null,
2869
2869
  defaultErrorMap: ge,
2870
- setErrorMap: kr,
2870
+ setErrorMap: xr,
2871
2871
  getErrorMap: He,
2872
2872
  makeIssue: We,
2873
- EMPTY_PATH: xr,
2873
+ EMPTY_PATH: Sr,
2874
2874
  addIssueToContext: f,
2875
2875
  ParseStatus: A,
2876
2876
  INVALID: g,
@@ -2924,76 +2924,81 @@ var ps = _r((ys, yt) => {
2924
2924
  ZodDefault: Me,
2925
2925
  ZodCatch: Fe,
2926
2926
  ZodNaN: Xe,
2927
- BRAND: Br,
2927
+ BRAND: Hr,
2928
2928
  ZodBranded: gt,
2929
2929
  ZodPipeline: Le,
2930
2930
  ZodReadonly: De,
2931
2931
  custom: $t,
2932
2932
  Schema: w,
2933
2933
  ZodSchema: w,
2934
- late: Hr,
2934
+ late: Wr,
2935
2935
  get ZodFirstPartyTypeKind() {
2936
2936
  return y;
2937
2937
  },
2938
- coerce: Nn,
2939
- any: en,
2940
- array: sn,
2941
- bigint: Yr,
2938
+ coerce: Rn,
2939
+ any: tn,
2940
+ array: an,
2941
+ bigint: Gr,
2942
2942
  boolean: Dt,
2943
- date: Gr,
2944
- discriminatedUnion: cn,
2943
+ date: Kr,
2944
+ discriminatedUnion: un,
2945
2945
  effect: Tt,
2946
- enum: vn,
2947
- function: mn,
2948
- instanceof: Wr,
2949
- intersection: un,
2950
- lazy: yn,
2951
- literal: gn,
2952
- map: pn,
2953
- nan: Jr,
2954
- nativeEnum: _n,
2955
- never: rn,
2956
- null: Qr,
2957
- nullable: kn,
2946
+ enum: _n,
2947
+ function: yn,
2948
+ instanceof: Jr,
2949
+ intersection: ln,
2950
+ lazy: gn,
2951
+ literal: vn,
2952
+ map: hn,
2953
+ nan: Yr,
2954
+ nativeEnum: wn,
2955
+ never: nn,
2956
+ null: en,
2957
+ nullable: xn,
2958
2958
  number: Ft,
2959
- object: an,
2960
- oboolean: On,
2961
- onumber: En,
2962
- optional: bn,
2963
- ostring: Tn,
2964
- pipeline: Sn,
2965
- preprocess: xn,
2966
- promise: wn,
2967
- record: fn,
2968
- set: hn,
2969
- strictObject: on,
2959
+ object: on,
2960
+ oboolean: Nn,
2961
+ onumber: On,
2962
+ optional: kn,
2963
+ ostring: En,
2964
+ pipeline: Tn,
2965
+ preprocess: Sn,
2966
+ promise: bn,
2967
+ record: pn,
2968
+ set: mn,
2969
+ strictObject: dn,
2970
2970
  string: Mt,
2971
- symbol: Kr,
2971
+ symbol: Xr,
2972
2972
  transformer: Tt,
2973
- tuple: ln,
2974
- undefined: Xr,
2975
- union: dn,
2976
- unknown: tn,
2977
- void: nn,
2978
- NEVER: Rn,
2973
+ tuple: fn,
2974
+ undefined: Qr,
2975
+ union: cn,
2976
+ unknown: rn,
2977
+ void: sn,
2978
+ NEVER: An,
2979
2979
  ZodIssueCode: u,
2980
- quotelessJson: br,
2980
+ quotelessJson: kr,
2981
2981
  ZodError: P
2982
2982
  });
2983
2983
  const lt = m.object({
2984
2984
  detail: m.string()
2985
+ }), Lt = m.object({
2986
+ error: m.string()
2985
2987
  });
2986
- function Lt(t) {
2988
+ function Vt(t) {
2987
2989
  if (!t)
2988
2990
  return "Unknown error";
2989
2991
  if (t instanceof Error) {
2990
2992
  const e = lt.safeParse(t.cause);
2991
- return e.success ? e.data.detail : An(t.message);
2993
+ return e.success ? e.data.detail : Cn(t.message);
2992
2994
  }
2993
2995
  if (typeof t == "object") {
2994
2996
  const e = lt.safeParse(t);
2995
2997
  if (e.success)
2996
2998
  return e.data.detail;
2999
+ const r = Lt.safeParse(t);
3000
+ if (r.success)
3001
+ return r.data.error;
2997
3002
  }
2998
3003
  try {
2999
3004
  return JSON.stringify(t);
@@ -3001,26 +3006,29 @@ var ps = _r((ys, yt) => {
3001
3006
  return String(t);
3002
3007
  }
3003
3008
  }
3004
- function An(t) {
3005
- const e = Cn(t);
3009
+ function Cn(t) {
3010
+ const e = In(t);
3006
3011
  if (!e)
3007
3012
  return t;
3008
3013
  const r = lt.safeParse(e);
3009
- return r.success ? r.data.detail : t;
3014
+ if (r.success)
3015
+ return r.data.detail;
3016
+ const n = Lt.safeParse(e);
3017
+ return n.success ? n.data.error : t;
3010
3018
  }
3011
- function Cn(t) {
3019
+ function In(t) {
3012
3020
  try {
3013
3021
  return JSON.parse(t);
3014
3022
  } catch {
3015
3023
  return t;
3016
3024
  }
3017
3025
  }
3018
- const In = 1e10, Pn = 1e3;
3026
+ const Pn = 1e10, jn = 1e3;
3019
3027
  function ze(t, e) {
3020
3028
  const r = t.map((n) => `"${n}"`).join(", ");
3021
3029
  return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
3022
3030
  }
3023
- function jn(t = {}) {
3031
+ function Zn(t = {}) {
3024
3032
  let e = {};
3025
3033
  function r(v) {
3026
3034
  e = v;
@@ -3028,7 +3036,7 @@ var ps = _r((ys, yt) => {
3028
3036
  let n = {};
3029
3037
  function s(v) {
3030
3038
  var T;
3031
- n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n, vr);
3039
+ n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n, _r);
3032
3040
  }
3033
3041
  let a;
3034
3042
  function i(v) {
@@ -3046,11 +3054,11 @@ var ps = _r((ys, yt) => {
3046
3054
  return R(T, N);
3047
3055
  };
3048
3056
  }
3049
- const { maxRequestTime: o = Pn } = t;
3057
+ const { maxRequestTime: o = jn } = t;
3050
3058
  t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
3051
3059
  let d = 0;
3052
3060
  function c() {
3053
- return d <= In ? ++d : d = 0;
3061
+ return d <= Pn ? ++d : d = 0;
3054
3062
  }
3055
3063
  const l = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
3056
3064
  function S(v, ...T) {
@@ -3088,7 +3096,7 @@ var ps = _r((ys, yt) => {
3088
3096
  const bt = new Proxy(Ve, {
3089
3097
  get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => Ve(T, E)
3090
3098
  }), kt = bt, Q = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Set();
3091
- function yr(v, T) {
3099
+ function gr(v, T) {
3092
3100
  var N;
3093
3101
  if (!n.registerHandler)
3094
3102
  throw ze(["registerHandler"], "register message listeners");
@@ -3098,7 +3106,7 @@ var ps = _r((ys, yt) => {
3098
3106
  }
3099
3107
  Q.has(v) || Q.set(v, /* @__PURE__ */ new Set()), (N = Q.get(v)) == null || N.add(T);
3100
3108
  }
3101
- function gr(v, T) {
3109
+ function vr(v, T) {
3102
3110
  var N, E;
3103
3111
  if (v === "*") {
3104
3112
  st.delete(T);
@@ -3106,7 +3114,7 @@ var ps = _r((ys, yt) => {
3106
3114
  }
3107
3115
  (N = Q.get(v)) == null || N.delete(T), ((E = Q.get(v)) == null ? void 0 : E.size) === 0 && Q.delete(v);
3108
3116
  }
3109
- async function vr(v) {
3117
+ async function _r(v) {
3110
3118
  var T, N;
3111
3119
  if ((T = e.onReceive) == null || T.call(e, v), !("type" in v))
3112
3120
  throw new Error("Message does not contain a type.");
@@ -3161,42 +3169,42 @@ var ps = _r((ys, yt) => {
3161
3169
  requestProxy: q,
3162
3170
  send: bt,
3163
3171
  sendProxy: kt,
3164
- addMessageListener: yr,
3165
- removeMessageListener: gr,
3172
+ addMessageListener: gr,
3173
+ removeMessageListener: vr,
3166
3174
  proxy: { send: kt, request: q },
3167
3175
  _setDebugHooks: r
3168
3176
  };
3169
3177
  }
3170
- function Zn(t) {
3171
- return jn(t);
3178
+ function $n(t) {
3179
+ return Zn(t);
3172
3180
  }
3173
- const Vt = "[transport-id]";
3174
- function $n(t, e) {
3181
+ const zt = "[transport-id]";
3182
+ function Mn(t, e) {
3175
3183
  const { transportId: r } = e;
3176
- return r != null ? { [Vt]: r, data: t } : t;
3184
+ return r != null ? { [zt]: r, data: t } : t;
3177
3185
  }
3178
- function Mn(t, e) {
3186
+ function Fn(t, e) {
3179
3187
  const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
3180
3188
  if (r != null && s != null)
3181
3189
  throw new Error("Cannot use both `transportId` and `filter` at the same time");
3182
3190
  let a = t;
3183
3191
  if (r) {
3184
- if (t[Vt] !== r)
3192
+ if (t[zt] !== r)
3185
3193
  return [!0];
3186
3194
  a = t.data;
3187
3195
  }
3188
3196
  return s === !1 ? [!0] : [!1, a];
3189
3197
  }
3190
- function Fn(t, e = {}) {
3198
+ function Dn(t, e = {}) {
3191
3199
  const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
3192
3200
  let o;
3193
3201
  return {
3194
3202
  send(d) {
3195
- i.postMessage($n(d, { transportId: r }));
3203
+ i.postMessage(Mn(d, { transportId: r }));
3196
3204
  },
3197
3205
  registerHandler(d) {
3198
3206
  o = (c) => {
3199
- const l = c.data, [b, S] = Mn(l, {
3207
+ const l = c.data, [b, S] = Fn(l, {
3200
3208
  transportId: r,
3201
3209
  filter: () => n == null ? void 0 : n(c)
3202
3210
  });
@@ -3208,15 +3216,15 @@ var ps = _r((ys, yt) => {
3208
3216
  }
3209
3217
  };
3210
3218
  }
3211
- function Dn(t) {
3212
- return Fn(self, t);
3219
+ function Ln(t) {
3220
+ return Dn(self, t);
3213
3221
  }
3214
- function zt(t, e) {
3222
+ function qt(t, e) {
3215
3223
  if (!t)
3216
3224
  throw new Error(e);
3217
3225
  }
3218
- const Ln = "marimo-transport";
3219
- class Vn {
3226
+ const Vn = "marimo-transport";
3227
+ class zn {
3220
3228
  constructor(e) {
3221
3229
  this.onMessage = e, this.started = !1, this.push = (r) => {
3222
3230
  this.started ? this.onMessage(r) : this.buffer.push(r);
@@ -3228,7 +3236,7 @@ var ps = _r((ys, yt) => {
3228
3236
  const be = {
3229
3237
  NOOP: () => {
3230
3238
  }
3231
- }, qt = (t, e) => {
3239
+ }, Ut = (t, e) => {
3232
3240
  const r = `[${t}]`;
3233
3241
  return {
3234
3242
  debug: (...n) => e.debug(r, ...n),
@@ -3236,7 +3244,7 @@ var ps = _r((ys, yt) => {
3236
3244
  warn: (...n) => e.warn(r, ...n),
3237
3245
  error: (...n) => e.error(r, ...n),
3238
3246
  trace: (...n) => e.trace(r, ...n),
3239
- get: (n) => qt(`${t}.${n}`, e),
3247
+ get: (n) => Ut(`${t}.${n}`, e),
3240
3248
  disabled: (n = !0) => n ? et : e
3241
3249
  };
3242
3250
  }, Qe = {
@@ -3255,7 +3263,7 @@ var ps = _r((ys, yt) => {
3255
3263
  trace: (...t) => {
3256
3264
  console.trace(...t);
3257
3265
  },
3258
- get: (t) => qt(t, Qe),
3266
+ get: (t) => Ut(t, Qe),
3259
3267
  disabled: (t = !0) => t ? et : Qe
3260
3268
  }, et = {
3261
3269
  debug: () => be.NOOP,
@@ -3266,28 +3274,28 @@ var ps = _r((ys, yt) => {
3266
3274
  get: () => et,
3267
3275
  disabled: () => et
3268
3276
  };
3269
- function zn() {
3277
+ function qn() {
3270
3278
  return typeof window < "u" && window.Logger || Qe;
3271
3279
  }
3272
- const W = zn(), qn = [
3280
+ const W = qn(), Un = [
3273
3281
  "pip",
3274
3282
  "uv",
3275
3283
  "rye",
3276
3284
  "poetry",
3277
3285
  "pixi"
3278
- ], Ut = [
3286
+ ], Bt = [
3279
3287
  "normal",
3280
3288
  "compact",
3281
3289
  "medium",
3282
3290
  "full",
3283
3291
  "columns"
3284
- ], Bt = [
3292
+ ], Ht = [
3285
3293
  "auto",
3286
3294
  "native",
3287
3295
  "polars",
3288
3296
  "lazy-polars",
3289
3297
  "pandas"
3290
- ], Un = m.object({
3298
+ ], Bn = m.object({
3291
3299
  completion: m.object({
3292
3300
  activate_on_typing: m.boolean().default(!0),
3293
3301
  copilot: m.union([m.boolean(), m.enum(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
@@ -3310,7 +3318,7 @@ var ps = _r((ys, yt) => {
3310
3318
  on_cell_change: m.enum(["lazy", "autorun"]).default("autorun"),
3311
3319
  auto_reload: m.enum(["off", "lazy", "autorun"]).default("off"),
3312
3320
  watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy"),
3313
- default_sql_output: m.enum(Bt).default("auto")
3321
+ default_sql_output: m.enum(Ht).default("auto")
3314
3322
  }).passthrough().default({}),
3315
3323
  display: m.object({
3316
3324
  theme: m.enum(["light", "dark", "system"]).default("light"),
@@ -3318,10 +3326,10 @@ var ps = _r((ys, yt) => {
3318
3326
  cell_output: m.enum(["above", "below"]).default("above"),
3319
3327
  dataframes: m.enum(["rich", "plain"]).default("rich"),
3320
3328
  default_table_page_size: m.number().default(10),
3321
- default_width: m.enum(Ut).default("medium").transform((t) => t === "normal" ? "compact" : t)
3329
+ default_width: m.enum(Bt).default("medium").transform((t) => t === "normal" ? "compact" : t)
3322
3330
  }).passthrough().default({}),
3323
3331
  package_management: m.object({
3324
- manager: m.enum(qn).default("pip")
3332
+ manager: m.enum(Un).default("pip")
3325
3333
  }).passthrough().default({ manager: "pip" }),
3326
3334
  ai: m.object({
3327
3335
  rules: m.string().default(""),
@@ -3356,26 +3364,26 @@ var ps = _r((ys, yt) => {
3356
3364
  rules: "",
3357
3365
  open_ai: {}
3358
3366
  }
3359
- }), Bn = m.string(), Hn = m.enum(Bt).default("auto");
3367
+ }), Hn = m.string(), Wn = m.enum(Ht).default("auto");
3360
3368
  m.object({
3361
- width: m.enum(Ut).default("medium").transform((t) => t === "normal" ? "compact" : t),
3362
- app_title: Bn.nullish(),
3369
+ width: m.enum(Bt).default("medium").transform((t) => t === "normal" ? "compact" : t),
3370
+ app_title: Hn.nullish(),
3363
3371
  css_file: m.string().nullish(),
3364
3372
  html_head_file: m.string().nullish(),
3365
3373
  auto_download: m.array(m.enum(["html", "markdown", "ipynb"])).default([]),
3366
- sql_output: Hn
3374
+ sql_output: Wn
3367
3375
  }).default({ width: "medium", auto_download: [] });
3368
- function Wn() {
3369
- return Un.parse({});
3376
+ function Jn() {
3377
+ return Bn.parse({});
3370
3378
  }
3371
- var Jn = Object.defineProperty, x = (t, e) => Jn(t, "name", { value: e, configurable: !0 }), Ht = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
3379
+ var Yn = Object.defineProperty, x = (t, e) => Yn(t, "name", { value: e, configurable: !0 }), Wt = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
3372
3380
  if (typeof require < "u") return require.apply(this, arguments);
3373
3381
  throw new Error('Dynamic require of "' + t + '" is not supported');
3374
3382
  });
3375
- function Wt(t) {
3383
+ function Jt(t) {
3376
3384
  return !isNaN(parseFloat(t)) && isFinite(t);
3377
3385
  }
3378
- x(Wt, "_isNumber");
3386
+ x(Jt, "_isNumber");
3379
3387
  function X(t) {
3380
3388
  return t.charAt(0).toUpperCase() + t.substring(1);
3381
3389
  }
@@ -3386,7 +3394,7 @@ var ps = _r((ys, yt) => {
3386
3394
  };
3387
3395
  }
3388
3396
  x(nt, "_getter");
3389
- var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Yn = ["args"], Gn = ["evalOrigin"], qe = le.concat(fe, pe, Yn, Gn);
3397
+ var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Gn = ["args"], Kn = ["evalOrigin"], qe = le.concat(fe, pe, Gn, Kn);
3390
3398
  function j(t) {
3391
3399
  if (t) for (var e = 0; e < qe.length; e++) t[qe[e]] !== void 0 && this["set" + X(qe[e])](t[qe[e]]);
3392
3400
  }
@@ -3419,7 +3427,7 @@ var ps = _r((ys, yt) => {
3419
3427
  var te;
3420
3428
  for (re = 0; re < fe.length; re++) j.prototype["get" + X(fe[re])] = nt(fe[re]), j.prototype["set" + X(fe[re])] = /* @__PURE__ */ function(t) {
3421
3429
  return function(e) {
3422
- if (!Wt(e)) throw new TypeError(t + " must be a Number");
3430
+ if (!Jt(e)) throw new TypeError(t + " must be a Number");
3423
3431
  this[t] = Number(e);
3424
3432
  };
3425
3433
  }(fe[re]);
@@ -3430,7 +3438,7 @@ var ps = _r((ys, yt) => {
3430
3438
  };
3431
3439
  }(pe[ne]);
3432
3440
  var ne, it = j;
3433
- function Jt() {
3441
+ function Yt() {
3434
3442
  var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
3435
3443
  return { parse: x(function(r) {
3436
3444
  if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
@@ -3464,52 +3472,52 @@ var ps = _r((ys, yt) => {
3464
3472
  }, this);
3465
3473
  }, "ErrorStackParser$$parseFFOrSafari") };
3466
3474
  }
3467
- x(Jt, "ErrorStackParser");
3468
- var Kn = new Jt(), Xn = Kn, z = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Yt = z && typeof yt < "u" && typeof yt.exports < "u" && typeof Ht < "u" && typeof __dirname < "u", Qn = z && !Yt, es = typeof Deno < "u", Gt = !z && !es, ts = Gt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", rs = Gt && typeof importScripts == "function" && typeof self == "object";
3475
+ x(Yt, "ErrorStackParser");
3476
+ var Xn = new Yt(), Qn = Xn, z = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Gt = z && typeof yt < "u" && typeof yt.exports < "u" && typeof Wt < "u" && typeof __dirname < "u", es = z && !Gt, ts = typeof Deno < "u", Kt = !z && !ts, rs = Kt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", ns = Kt && typeof importScripts == "function" && typeof self == "object";
3469
3477
  typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
3470
- var Kt, ft, Xt, Et, vt;
3478
+ var Xt, ft, Qt, Et, vt;
3471
3479
  async function _t() {
3472
- if (!z || (Kt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Et = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Xt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ft = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ft.sep, typeof Ht < "u")) return;
3480
+ if (!z || (Xt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Et = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Qt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ft = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ft.sep, typeof Wt < "u")) return;
3473
3481
  let t = Et, e = await import("./__vite-browser-external-CPvbk0mb.js"), r = await import("./__vite-browser-external-CPvbk0mb.js"), n = await import("./__vite-browser-external-CPvbk0mb.js"), s = { fs: t, crypto: e, ws: r, child_process: n };
3474
3482
  globalThis.require = function(a) {
3475
3483
  return s[a];
3476
3484
  };
3477
3485
  }
3478
3486
  x(_t, "initNodeModules");
3479
- function Qt(t, e) {
3487
+ function er(t, e) {
3480
3488
  return ft.resolve(e || ".", t);
3481
3489
  }
3482
- x(Qt, "node_resolvePath");
3483
- function er(t, e) {
3490
+ x(er, "node_resolvePath");
3491
+ function tr(t, e) {
3484
3492
  return e === void 0 && (e = location), new URL(t, e).toString();
3485
3493
  }
3486
- x(er, "browser_resolvePath");
3494
+ x(tr, "browser_resolvePath");
3487
3495
  var pt;
3488
- z ? pt = Qt : pt = er;
3496
+ z ? pt = er : pt = tr;
3489
3497
  var wt;
3490
3498
  z || (wt = "/");
3491
- function tr(t, e) {
3499
+ function rr(t, e) {
3492
3500
  return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: vt.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
3493
3501
  }
3494
- x(tr, "node_getBinaryResponse");
3495
- function rr(t, e) {
3502
+ x(rr, "node_getBinaryResponse");
3503
+ function nr(t, e) {
3496
3504
  let r = new URL(t, location);
3497
3505
  return { response: fetch(r, e ? { integrity: e } : {}) };
3498
3506
  }
3499
- x(rr, "browser_getBinaryResponse");
3507
+ x(nr, "browser_getBinaryResponse");
3500
3508
  var tt;
3501
- z ? tt = tr : tt = rr;
3502
- async function nr(t, e) {
3509
+ z ? tt = rr : tt = nr;
3510
+ async function sr(t, e) {
3503
3511
  let { response: r, binary: n } = tt(t, e);
3504
3512
  if (n) return n;
3505
3513
  let s = await r;
3506
3514
  if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
3507
3515
  return new Uint8Array(await s.arrayBuffer());
3508
3516
  }
3509
- x(nr, "loadBinaryFile");
3517
+ x(sr, "loadBinaryFile");
3510
3518
  var Ue;
3511
- if (ts) Ue = x(async (t) => await import(t), "loadScript");
3512
- else if (rs) Ue = x(async (t) => {
3519
+ if (rs) Ue = x(async (t) => await import(t), "loadScript");
3520
+ else if (ns) Ue = x(async (t) => {
3513
3521
  try {
3514
3522
  globalThis.importScripts(t);
3515
3523
  } catch (e) {
@@ -3517,30 +3525,30 @@ var ps = _r((ys, yt) => {
3517
3525
  else throw e;
3518
3526
  }
3519
3527
  }, "loadScript");
3520
- else if (z) Ue = sr;
3528
+ else if (z) Ue = ar;
3521
3529
  else throw new Error("Cannot determine runtime environment");
3522
- async function sr(t) {
3523
- t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Xt.runInThisContext(await (await fetch(t)).text()) : await import(Kt.pathToFileURL(t).href);
3524
- }
3525
- x(sr, "nodeLoadScript");
3526
3530
  async function ar(t) {
3531
+ t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Qt.runInThisContext(await (await fetch(t)).text()) : await import(Xt.pathToFileURL(t).href);
3532
+ }
3533
+ x(ar, "nodeLoadScript");
3534
+ async function ir(t) {
3527
3535
  if (z) {
3528
3536
  await _t();
3529
3537
  let e = await vt.readFile(t, { encoding: "utf8" });
3530
3538
  return JSON.parse(e);
3531
3539
  } else return await (await fetch(t)).json();
3532
3540
  }
3533
- x(ar, "loadLockFile");
3534
- async function ir() {
3535
- if (Yt) return __dirname;
3541
+ x(ir, "loadLockFile");
3542
+ async function or() {
3543
+ if (Gt) return __dirname;
3536
3544
  let t;
3537
3545
  try {
3538
3546
  throw new Error();
3539
3547
  } catch (n) {
3540
3548
  t = n;
3541
3549
  }
3542
- let e = Xn.parse(t)[0].fileName;
3543
- if (z && !e.startsWith("file://") && (e = `file://${e}`), Qn) {
3550
+ let e = Qn.parse(t)[0].fileName;
3551
+ if (z && !e.startsWith("file://") && (e = `file://${e}`), es) {
3544
3552
  let n = await import("./__vite-browser-external-CPvbk0mb.js");
3545
3553
  return (await import("./__vite-browser-external-CPvbk0mb.js")).fileURLToPath(n.dirname(e));
3546
3554
  }
@@ -3548,8 +3556,8 @@ var ps = _r((ys, yt) => {
3548
3556
  if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
3549
3557
  return e.slice(0, r);
3550
3558
  }
3551
- x(ir, "calculateDirname");
3552
- function or(t) {
3559
+ x(or, "calculateDirname");
3560
+ function dr(t) {
3553
3561
  let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
3554
3562
  if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
3555
3563
  return r.mount.apply(null, arguments);
@@ -3577,7 +3585,7 @@ var ps = _r((ys, yt) => {
3577
3585
  }
3578
3586
  return { type: "local", entries: i };
3579
3587
  }, getRemoteSet: async (a) => {
3580
- let i = /* @__PURE__ */ Object.create(null), o = await ns(a.opts.fileSystemHandle);
3588
+ let i = /* @__PURE__ */ Object.create(null), o = await ss(a.opts.fileSystemHandle);
3581
3589
  for (let [d, c] of o) d !== "." && (i[n.join2(a.mountpoint, d)] = { timestamp: c.kind === "file" ? new Date((await c.getFile()).lastModified) : /* @__PURE__ */ new Date(), mode: c.kind === "file" ? s.FILE_MODE : s.DIR_MODE });
3582
3590
  return { type: "remote", entries: i, handles: o };
3583
3591
  }, loadLocalEntry: (a) => {
@@ -3639,8 +3647,8 @@ var ps = _r((ys, yt) => {
3639
3647
  } };
3640
3648
  t.FS.filesystems.NATIVEFS_ASYNC = s;
3641
3649
  }
3642
- x(or, "initializeNativeFS");
3643
- var ns = x(async (t) => {
3650
+ x(dr, "initializeNativeFS");
3651
+ var ss = x(async (t) => {
3644
3652
  let e = [];
3645
3653
  async function r(s) {
3646
3654
  for await (let a of s.values()) e.push(a), a.kind === "directory" && await r(a);
@@ -3654,14 +3662,14 @@ var ps = _r((ys, yt) => {
3654
3662
  }
3655
3663
  return n;
3656
3664
  }, "getFsHandles");
3657
- function dr(t) {
3658
- let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: pr(t), quit(r, n) {
3665
+ function cr(t) {
3666
+ let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: hr(t), quit(r, n) {
3659
3667
  throw e.exited = { status: r, toThrow: n }, n;
3660
- }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: hr(t.indexURL) };
3668
+ }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: mr(t.indexURL) };
3661
3669
  return e;
3662
3670
  }
3663
- x(dr, "createSettings");
3664
- function cr(t) {
3671
+ x(cr, "createSettings");
3672
+ function ur(t) {
3665
3673
  return function(e) {
3666
3674
  let r = "/";
3667
3675
  try {
@@ -3672,14 +3680,14 @@ var ps = _r((ys, yt) => {
3672
3680
  e.FS.chdir(t);
3673
3681
  };
3674
3682
  }
3675
- x(cr, "createHomeDirectory");
3676
- function ur(t) {
3683
+ x(ur, "createHomeDirectory");
3684
+ function lr(t) {
3677
3685
  return function(e) {
3678
3686
  Object.assign(e.ENV, t);
3679
3687
  };
3680
3688
  }
3681
- x(ur, "setEnvironment");
3682
- function lr(t) {
3689
+ x(lr, "setEnvironment");
3690
+ function fr(t) {
3683
3691
  return t ? [async (e) => {
3684
3692
  e.addRunDependency("fsInitHook");
3685
3693
  try {
@@ -3689,9 +3697,9 @@ var ps = _r((ys, yt) => {
3689
3697
  }
3690
3698
  }] : [];
3691
3699
  }
3692
- x(lr, "callFsInitHook");
3693
- function fr(t) {
3694
- let e = nr(t);
3700
+ x(fr, "callFsInitHook");
3701
+ function pr(t) {
3702
+ let e = sr(t);
3695
3703
  return async (r) => {
3696
3704
  let n = r._py_version_major(), s = r._py_version_minor();
3697
3705
  r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
@@ -3705,13 +3713,13 @@ var ps = _r((ys, yt) => {
3705
3713
  }
3706
3714
  };
3707
3715
  }
3708
- x(fr, "installStdlib");
3709
- function pr(t) {
3716
+ x(pr, "installStdlib");
3717
+ function hr(t) {
3710
3718
  let e;
3711
- return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...lr(t.fsInit), fr(e), cr(t.env.HOME), ur(t.env), or];
3719
+ return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...fr(t.fsInit), pr(e), ur(t.env.HOME), lr(t.env), dr];
3712
3720
  }
3713
- x(pr, "getFileSystemInitializationFuncs");
3714
- function hr(t) {
3721
+ x(hr, "getFileSystemInitializationFuncs");
3722
+ function mr(t) {
3715
3723
  if (typeof WasmOffsetConverter < "u") return;
3716
3724
  let { binary: e, response: r } = tt(t + "pyodide.asm.wasm");
3717
3725
  return function(n, s) {
@@ -3727,17 +3735,17 @@ var ps = _r((ys, yt) => {
3727
3735
  }(), {};
3728
3736
  };
3729
3737
  }
3730
- x(hr, "getInstantiateWasmFunc");
3738
+ x(mr, "getInstantiateWasmFunc");
3731
3739
  var ht = "0.27.5";
3732
3740
  async function mt(t = {}) {
3733
3741
  var e, r;
3734
3742
  await _t();
3735
- let n = t.indexURL || await ir();
3743
+ let n = t.indexURL || await or();
3736
3744
  n = pt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
3737
3745
  let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !1, checkAPIVersion: !0, BUILD_ID: "bd0388b62e760f8ba04185eb443fec955f25434f49c7b951efe5b1f792dbe5d4" }, a = Object.assign(s, t);
3738
3746
  (e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
3739
- let i = dr(a), o = i.API;
3740
- if (o.lockFilePromise = ar(a.lockFileURL), typeof _createPyodideModule != "function") {
3747
+ let i = cr(a), o = i.API;
3748
+ if (o.lockFilePromise = ir(a.lockFileURL), typeof _createPyodideModule != "function") {
3741
3749
  let S = `${a.indexURL}pyodide.asm.js`;
3742
3750
  await Ue(S);
3743
3751
  }
@@ -3818,7 +3826,7 @@ var ps = _r((ys, yt) => {
3818
3826
  });
3819
3827
  });
3820
3828
  }
3821
- class ss {
3829
+ class as {
3822
3830
  constructor() {
3823
3831
  this.spans = [];
3824
3832
  }
@@ -3860,15 +3868,15 @@ var ps = _r((ys, yt) => {
3860
3868
  logSpans() {
3861
3869
  }
3862
3870
  }
3863
- const he = new ss();
3871
+ const he = new as();
3864
3872
  globalThis.t = he;
3865
- const as = !1;
3866
- class is {
3873
+ const is = !1;
3874
+ class os {
3867
3875
  constructor() {
3868
3876
  this.pyodide = null;
3869
3877
  }
3870
3878
  get requirePyodide() {
3871
- return zt(this.pyodide, "Pyodide not loaded"), this.pyodide;
3879
+ return qt(this.pyodide, "Pyodide not loaded"), this.pyodide;
3872
3880
  }
3873
3881
  async bootstrap(e) {
3874
3882
  return await this.loadPyodideAndPackages(e);
@@ -3888,7 +3896,7 @@ var ps = _r((ys, yt) => {
3888
3896
  "narwhals",
3889
3897
  "packaging"
3890
3898
  ],
3891
- _makeSnapshot: as,
3899
+ _makeSnapshot: is,
3892
3900
  lockFileURL: `https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,
3893
3901
  // Without this, this fails in Firefox with
3894
3902
  // `Could not extract indexURL path from pyodide module`
@@ -3977,7 +3985,7 @@ ${e}`;
3977
3985
  }), a.end();
3978
3986
  }
3979
3987
  }
3980
- class os extends is {
3988
+ class ds extends os {
3981
3989
  async bootstrap(e) {
3982
3990
  return await super.bootstrap(e);
3983
3991
  }
@@ -4000,50 +4008,50 @@ ${e}`;
4000
4008
  code: e.code,
4001
4009
  filename: e.filename,
4002
4010
  onMessage: e.onMessage,
4003
- userConfig: Wn()
4011
+ userConfig: Jn()
4004
4012
  });
4005
4013
  }
4006
4014
  }
4007
- const ds = !1;
4008
- function cs(t) {
4009
- return t.includes("dev") && ds ? "dev" : `v${ht}`;
4015
+ const cs = !1;
4016
+ function us(t) {
4017
+ return t.includes("dev") && cs ? "dev" : `v${ht}`;
4010
4018
  }
4011
- async function us() {
4012
- const t = fs(), e = cs(t);
4019
+ async function ls() {
4020
+ const t = ps(), e = us(t);
4013
4021
  try {
4014
- self.controller = new os(), self.pyodide = await self.controller.bootstrap({
4022
+ self.controller = new ds(), self.pyodide = await self.controller.bootstrap({
4015
4023
  version: t,
4016
4024
  pyodideVersion: e
4017
4025
  });
4018
4026
  } catch (r) {
4019
4027
  W.error("Error bootstrapping", r), we.send.initializedError({
4020
- error: Lt(r)
4028
+ error: Vt(r)
4021
4029
  });
4022
4030
  }
4023
4031
  }
4024
- const Be = us(), mr = new Vn(
4032
+ const Be = ls(), yr = new zn(
4025
4033
  (t) => {
4026
4034
  we.send.kernelMessage({ message: t });
4027
4035
  }
4028
- ), Rt = new wr(), ls = {
4036
+ ), Rt = new br(), fs = {
4029
4037
  /**
4030
4038
  * Start the session
4031
4039
  */
4032
4040
  startSession: async (t) => {
4033
4041
  await Be;
4034
4042
  try {
4035
- zt(self.controller, "Controller not loaded");
4043
+ qt(self.controller, "Controller not loaded");
4036
4044
  const e = await self.controller.mountFilesystem({
4037
4045
  code: t.code,
4038
4046
  filename: `app-${t.appId}.py`
4039
4047
  }), r = await self.controller.startSession({
4040
4048
  ...e,
4041
- onMessage: mr.push
4049
+ onMessage: yr.push
4042
4050
  });
4043
4051
  Rt.resolve(r), we.send.initialized({});
4044
4052
  } catch (e) {
4045
4053
  we.send.initializedError({
4046
- error: Lt(e)
4054
+ error: Vt(e)
4047
4055
  });
4048
4056
  }
4049
4057
  },
@@ -4074,18 +4082,18 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
4074
4082
  );
4075
4083
  return typeof a == "string" ? JSON.parse(a) : a;
4076
4084
  }
4077
- }, we = Zn({
4078
- transport: Dn({
4079
- transportId: Ln
4085
+ }, we = $n({
4086
+ transport: Ln({
4087
+ transportId: Vn
4080
4088
  }),
4081
- requestHandler: ls
4089
+ requestHandler: fs
4082
4090
  });
4083
4091
  we.send("ready", {});
4084
4092
  we.addMessageListener("consumerReady", async () => {
4085
- await Be, mr.start();
4093
+ await Be, yr.start();
4086
4094
  });
4087
- function fs() {
4095
+ function ps() {
4088
4096
  return self.name;
4089
4097
  }
4090
4098
  });
4091
- export default ps();
4099
+ export default hs();