@marimo-team/islands 0.14.18-dev13 → 0.14.18-dev14

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 (61) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Bnr7LcSy.js → ConnectedDataExplorerComponent-Bnyf0wrs.js} +2 -2
  2. package/dist/{ImageComparisonComponent-DdY9u-6W.js → ImageComparisonComponent-W4jgM4-_.js} +1 -1
  3. package/dist/{_baseUniq-bDa-t2ZN.js → _baseUniq-7p-tNzzs.js} +1 -1
  4. package/dist/{any-language-editor-B3H-BJeW.js → any-language-editor-BEZBVKTd.js} +1 -1
  5. package/dist/{architectureDiagram-SUXI7LT5-B1OmdWrA.js → architectureDiagram-SUXI7LT5-CzBow-d7.js} +5 -5
  6. package/dist/assets/{worker-CvLTHCt4.js → worker-IDMFdmDA.js} +715 -708
  7. package/dist/{blockDiagram-6J76NXCF-CdrYLpUl.js → blockDiagram-6J76NXCF-C_Ei5I_U.js} +5 -5
  8. package/dist/{c4Diagram-6F6E4RAY-cFAeTjE2.js → c4Diagram-6F6E4RAY-Ca8OAeCH.js} +2 -2
  9. package/dist/{channel-C53-7U2V.js → channel-CxB8SKJL.js} +1 -1
  10. package/dist/{chunk-353BL4L5-CtYMa2dT.js → chunk-353BL4L5-U0j3zKF-.js} +1 -1
  11. package/dist/{chunk-67H74DCK-QXlBcYBg.js → chunk-67H74DCK-CnOydduA.js} +1 -1
  12. package/dist/{chunk-AACKK3MU-Bdk_bHBY.js → chunk-AACKK3MU-C8CQ_G-V.js} +1 -1
  13. package/dist/{chunk-BFAMUDN2-ByDO35Tp.js → chunk-BFAMUDN2-YEy_777M.js} +1 -1
  14. package/dist/{chunk-E2GYISFI-D5jQ3zGO.js → chunk-E2GYISFI-BdI2wxLD.js} +1 -1
  15. package/dist/{chunk-OW32GOEJ-BEXEWS3m.js → chunk-OW32GOEJ-DXPExcoN.js} +3 -3
  16. package/dist/{chunk-SKB7J2MH-CA2BG3E5.js → chunk-SKB7J2MH-DwCxdss9.js} +1 -1
  17. package/dist/{chunk-SZ463SBG-CvdAnhOq.js → chunk-SZ463SBG-DUBDjVhT.js} +4 -4
  18. package/dist/{classDiagram-v2-YAWTLIQI-BKMvihry.js → classDiagram-M3E45YP4-CAS-nU_q.js} +2 -2
  19. package/dist/{classDiagram-M3E45YP4-BKMvihry.js → classDiagram-v2-YAWTLIQI-CAS-nU_q.js} +2 -2
  20. package/dist/{clone-Be3ihRo0.js → clone-CWolWr_I.js} +1 -1
  21. package/dist/{dagre-JOIXM2OF-nGpI_AFE.js → dagre-JOIXM2OF-Bp43y9CD.js} +6 -6
  22. package/dist/{data-grid-overlay-editor-DeXewPaR.js → data-grid-overlay-editor-4tx7ynw8.js} +2 -2
  23. package/dist/{diagram-5UYTHUR4-BPb_siuw.js → diagram-5UYTHUR4-B-A4MED0.js} +3 -3
  24. package/dist/{diagram-VMROVX33-BucAQy2c.js → diagram-VMROVX33-D8nk_3qb.js} +5 -5
  25. package/dist/{diagram-ZTM2IBQH-2bzC59yP.js → diagram-ZTM2IBQH-DcG6EUsO.js} +3 -3
  26. package/dist/{erDiagram-3M52JZNH-0UqeDdeB.js → erDiagram-3M52JZNH-BvBhNDZO.js} +4 -4
  27. package/dist/{flowDiagram-KYDEHFYC-D-r_lhP_.js → flowDiagram-KYDEHFYC-CW3zfkOr.js} +5 -5
  28. package/dist/{ganttDiagram-EK5VF46D-DfdMHbRg.js → ganttDiagram-EK5VF46D-BJ6iLAC-.js} +4 -4
  29. package/dist/{gitGraphDiagram-GW3U2K7C-CwqvFtPh.js → gitGraphDiagram-GW3U2K7C-BihYZE_a.js} +4 -4
  30. package/dist/{glide-data-editor-BQQrAeoB.js → glide-data-editor-BO89WttR.js} +3 -3
  31. package/dist/{graph-Bvks7ArX.js → graph-CRqwBRFA.js} +3 -3
  32. package/dist/{index-BzGgJcI0.js → index-BlKMvB4M.js} +1 -1
  33. package/dist/{index-BEekjFNX.js → index-DoM5KpwN.js} +1 -1
  34. package/dist/{index-Dw-DGF8a.js → index-Du9BJSvj.js} +3 -3
  35. package/dist/{index-FgAnozAm.js → index-tTeg75gM.js} +1 -1
  36. package/dist/{infoDiagram-LHK5PUON-Cd0R9bpY.js → infoDiagram-LHK5PUON-B0uub2we.js} +2 -2
  37. package/dist/{journeyDiagram-EWQZEKCU-CMouvt7k.js → journeyDiagram-EWQZEKCU-CSRP4-Yn.js} +3 -3
  38. package/dist/{kanban-definition-ZSS6B67P-CGD0bvHx.js → kanban-definition-ZSS6B67P-B16onpiT.js} +2 -2
  39. package/dist/{layout-C35gS4mB.js → layout-yGvQy3yH.js} +4 -4
  40. package/dist/{linear-Cyle-ynY.js → linear-BMLyHZAB.js} +1 -1
  41. package/dist/{main-BpBfykN6.js → main-8m4ymv7s.js} +709 -700
  42. package/dist/main.js +1 -1
  43. package/dist/{mermaid-DGGNHrJr.js → mermaid-CV0e6U-W.js} +29 -29
  44. package/dist/{min-lckJOrOR.js → min-DspVJN9y.js} +2 -2
  45. package/dist/{mindmap-definition-6CBA2TL7-CfsxNkfd.js → mindmap-definition-6CBA2TL7-QZ6phOzC.js} +2 -2
  46. package/dist/{number-overlay-editor-DkkbQQyG.js → number-overlay-editor-mVpILjRO.js} +2 -2
  47. package/dist/{pieDiagram-NIOCPIFQ-CwPftXH7.js → pieDiagram-NIOCPIFQ-Chlmz-qw.js} +3 -3
  48. package/dist/{quadrantDiagram-2OG54O6I-p9Yncp4h.js → quadrantDiagram-2OG54O6I-JASNEQ_A.js} +2 -2
  49. package/dist/{react-plotly-B3YaHeLe.js → react-plotly-Cid1a4Ex.js} +1 -1
  50. package/dist/{requirementDiagram-QOLK2EJ7-NtjkbQMb.js → requirementDiagram-QOLK2EJ7-DrPAcfNE.js} +3 -3
  51. package/dist/{sankeyDiagram-4UZDY2LN-D-Q5P_GH.js → sankeyDiagram-4UZDY2LN-C1XBsY6Q.js} +1 -1
  52. package/dist/{sequenceDiagram-SKLFT4DO-z_2yb-np.js → sequenceDiagram-SKLFT4DO-2P70MfOH.js} +3 -3
  53. package/dist/{slides-component-CmXodbml.js → slides-component-DIZ-8MOa.js} +1 -1
  54. package/dist/{stateDiagram-MI5ZYTHO-ykayf3nM.js → stateDiagram-MI5ZYTHO-DqShqnut.js} +4 -4
  55. package/dist/{stateDiagram-v2-5AN5P6BG-C2cUwhIH.js → stateDiagram-v2-5AN5P6BG-Cu1EqiyO.js} +2 -2
  56. package/dist/{time-DDHfppAX.js → time-CeigqKte.js} +2 -2
  57. package/dist/{timeline-definition-MYPXXCX6-BIdqOp5Y.js → timeline-definition-MYPXXCX6-DUZNbFqh.js} +1 -1
  58. package/dist/{treemap-75Q7IDZK-BITofSU4.js → treemap-75Q7IDZK-BIv9vW1U.js} +5 -5
  59. package/dist/{vega-component-BDAcHQ7v.js → vega-component-CWZkaqO3.js} +2 -2
  60. package/dist/{xychartDiagram-H2YORKM3-DWY8aqgt.js → xychartDiagram-H2YORKM3-CxlyXn91.js} +2 -2
  61. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  var dr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
2
- var bn = dr((Tn, Qe) => {
2
+ var bn = dr((Tn, Xe) => {
3
3
  const cr = 1e10, lr = 1e3;
4
4
  function be(t, e) {
5
5
  const r = t.map((n) => `"${n}"`).join(", ");
@@ -11,77 +11,77 @@ var bn = dr((Tn, Qe) => {
11
11
  e = y;
12
12
  }
13
13
  let n = {};
14
- function a(y) {
14
+ function s(y) {
15
15
  n.unregisterHandler && n.unregisterHandler(), n = y, n.registerHandler?.(or);
16
16
  }
17
- let s;
17
+ let a;
18
18
  function i(y) {
19
19
  if (typeof y == "function") {
20
- s = y;
20
+ a = y;
21
21
  return;
22
22
  }
23
- s = (b, O) => {
24
- const R = y[b];
25
- if (R)
26
- return R(O);
23
+ a = (b, E) => {
24
+ const C = y[b];
25
+ if (C)
26
+ return C(E);
27
27
  const $ = y._;
28
28
  if (!$)
29
29
  throw new Error(`The requested method has no handler: ${b}`);
30
- return $(b, O);
30
+ return $(b, E);
31
31
  };
32
32
  }
33
33
  const { maxRequestTime: o = lr } = t;
34
- t.transport && a(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
34
+ t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
35
35
  let d = 0;
36
36
  function l() {
37
37
  return d <= cr ? ++d : d = 0;
38
38
  }
39
39
  const h = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
40
40
  function S(y, ...b) {
41
- const O = b[0];
42
- return new Promise((R, $) => {
41
+ const E = b[0];
42
+ return new Promise((C, $) => {
43
43
  if (!n.send)
44
44
  throw be(["send"], "make requests");
45
- const z = l(), nt = {
45
+ const z = l(), st = {
46
46
  type: "request",
47
47
  id: z,
48
48
  method: y,
49
- params: O
49
+ params: E
50
50
  };
51
- h.set(z, { resolve: R, reject: $ }), o !== 1 / 0 && x.set(z, setTimeout(() => {
51
+ h.set(z, { resolve: C, reject: $ }), o !== 1 / 0 && x.set(z, setTimeout(() => {
52
52
  x.delete(z), $(new Error("RPC request timed out."));
53
- }, o)), e.onSend?.(nt), n.send(nt);
53
+ }, o)), e.onSend?.(st), n.send(st);
54
54
  });
55
55
  }
56
56
  const j = new Proxy(S, {
57
- get: (y, b, O) => b in y ? Reflect.get(y, b, O) : (R) => S(b, R)
57
+ get: (y, b, E) => b in y ? Reflect.get(y, b, E) : (C) => S(b, C)
58
58
  }), D = j;
59
59
  function we(y, ...b) {
60
- const O = b[0];
60
+ const E = b[0];
61
61
  if (!n.send)
62
62
  throw be(["send"], "send messages");
63
- const R = {
63
+ const C = {
64
64
  type: "message",
65
65
  id: y,
66
- payload: O
66
+ payload: E
67
67
  };
68
- e.onSend?.(R), n.send(R);
68
+ e.onSend?.(C), n.send(C);
69
69
  }
70
- const tt = new Proxy(we, {
71
- get: (y, b, O) => b in y ? Reflect.get(y, b, O) : (R) => we(b, R)
72
- }), rt = tt, Y = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Set();
73
- function sr(y, b) {
70
+ const rt = new Proxy(we, {
71
+ get: (y, b, E) => b in y ? Reflect.get(y, b, E) : (C) => we(b, C)
72
+ }), nt = rt, Y = /* @__PURE__ */ new Map(), Ze = /* @__PURE__ */ new Set();
73
+ function ar(y, b) {
74
74
  if (!n.registerHandler)
75
75
  throw be(["registerHandler"], "register message listeners");
76
76
  if (y === "*") {
77
- Fe.add(b);
77
+ Ze.add(b);
78
78
  return;
79
79
  }
80
80
  Y.has(y) || Y.set(y, /* @__PURE__ */ new Set()), Y.get(y)?.add(b);
81
81
  }
82
82
  function ir(y, b) {
83
83
  if (y === "*") {
84
- Fe.delete(b);
84
+ Ze.delete(b);
85
85
  return;
86
86
  }
87
87
  Y.get(y)?.delete(b), Y.get(y)?.size === 0 && Y.delete(y);
@@ -90,16 +90,16 @@ var bn = dr((Tn, Qe) => {
90
90
  if (e.onReceive?.(y), !("type" in y))
91
91
  throw new Error("Message does not contain a type.");
92
92
  if (y.type === "request") {
93
- if (!n.send || !s)
93
+ if (!n.send || !a)
94
94
  throw be(["send", "requestHandler"], "handle requests");
95
- const { id: b, method: O, params: R } = y;
95
+ const { id: b, method: E, params: C } = y;
96
96
  let $;
97
97
  try {
98
98
  $ = {
99
99
  type: "response",
100
100
  id: b,
101
101
  success: !0,
102
- payload: await s(O, R)
102
+ payload: await a(E, C)
103
103
  };
104
104
  } catch (z) {
105
105
  if (!(z instanceof Error))
@@ -117,57 +117,57 @@ var bn = dr((Tn, Qe) => {
117
117
  if (y.type === "response") {
118
118
  const b = x.get(y.id);
119
119
  b != null && clearTimeout(b);
120
- const { resolve: O, reject: R } = h.get(y.id) ?? {};
121
- y.success ? O?.(y.payload) : R?.(new Error(y.error));
120
+ const { resolve: E, reject: C } = h.get(y.id) ?? {};
121
+ y.success ? E?.(y.payload) : C?.(new Error(y.error));
122
122
  return;
123
123
  }
124
124
  if (y.type === "message") {
125
- for (const O of Fe)
126
- O(y.id, y.payload);
125
+ for (const E of Ze)
126
+ E(y.id, y.payload);
127
127
  const b = Y.get(y.id);
128
128
  if (!b)
129
129
  return;
130
- for (const O of b)
131
- O(y.payload);
130
+ for (const E of b)
131
+ E(y.payload);
132
132
  return;
133
133
  }
134
134
  throw new Error(`Unexpected RPC message type: ${y.type}`);
135
135
  }
136
136
  return {
137
- setTransport: a,
137
+ setTransport: s,
138
138
  setRequestHandler: i,
139
139
  request: j,
140
140
  requestProxy: D,
141
- send: tt,
142
- sendProxy: rt,
143
- addMessageListener: sr,
141
+ send: rt,
142
+ sendProxy: nt,
143
+ addMessageListener: ar,
144
144
  removeMessageListener: ir,
145
- proxy: { send: rt, request: D },
145
+ proxy: { send: nt, request: D },
146
146
  _setDebugHooks: r
147
147
  };
148
148
  }
149
149
  function fr(t) {
150
150
  return ur(t);
151
151
  }
152
- const xt = "[transport-id]";
152
+ const St = "[transport-id]";
153
153
  function hr(t, e) {
154
154
  const { transportId: r } = e;
155
- return r != null ? { [xt]: r, data: t } : t;
155
+ return r != null ? { [St]: r, data: t } : t;
156
156
  }
157
157
  function pr(t, e) {
158
- const { transportId: r, filter: n } = e, a = n?.();
159
- if (r != null && a != null)
158
+ const { transportId: r, filter: n } = e, s = n?.();
159
+ if (r != null && s != null)
160
160
  throw new Error("Cannot use both `transportId` and `filter` at the same time");
161
- let s = t;
161
+ let a = t;
162
162
  if (r) {
163
- if (t[xt] !== r)
163
+ if (t[St] !== r)
164
164
  return [!0];
165
- s = t.data;
165
+ a = t.data;
166
166
  }
167
- return a === !1 ? [!0] : [!1, s];
167
+ return s === !1 ? [!0] : [!1, a];
168
168
  }
169
169
  function mr(t, e = {}) {
170
- const { transportId: r, filter: n, remotePort: a } = e, s = t, i = a ?? t;
170
+ const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
171
171
  let o;
172
172
  return {
173
173
  send(d) {
@@ -180,10 +180,10 @@ var bn = dr((Tn, Qe) => {
180
180
  filter: () => n?.(l)
181
181
  });
182
182
  x || d(S);
183
- }, s.addEventListener("message", o);
183
+ }, a.addEventListener("message", o);
184
184
  },
185
185
  unregisterHandler() {
186
- o && s.removeEventListener("message", o);
186
+ o && a.removeEventListener("message", o);
187
187
  }
188
188
  };
189
189
  }
@@ -191,25 +191,25 @@ var bn = dr((Tn, Qe) => {
191
191
  return mr(self, t);
192
192
  }
193
193
  const gr = "marimo-transport";
194
- var _r = Object.defineProperty, k = (t, e) => _r(t, "name", { value: e, configurable: !0 }), St = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
194
+ var _r = Object.defineProperty, k = (t, e) => _r(t, "name", { value: e, configurable: !0 }), Tt = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
195
195
  if (typeof require < "u") return require.apply(this, arguments);
196
196
  throw new Error('Dynamic require of "' + t + '" is not supported');
197
197
  });
198
- function Tt(t) {
198
+ function Ot(t) {
199
199
  return !isNaN(parseFloat(t)) && isFinite(t);
200
200
  }
201
- k(Tt, "_isNumber");
201
+ k(Ot, "_isNumber");
202
202
  function W(t) {
203
203
  return t.charAt(0).toUpperCase() + t.substring(1);
204
204
  }
205
205
  k(W, "_capitalize");
206
- function $e(t) {
206
+ function Fe(t) {
207
207
  return function() {
208
208
  return this[t];
209
209
  };
210
210
  }
211
- k($e, "_getter");
212
- var re = ["isConstructor", "isEval", "isNative", "isToplevel"], ne = ["columnNumber", "lineNumber"], ae = ["fileName", "functionName", "source"], vr = ["args"], kr = ["evalOrigin"], xe = re.concat(ne, ae, vr, kr);
211
+ k(Fe, "_getter");
212
+ var re = ["isConstructor", "isEval", "isNative", "isToplevel"], ne = ["columnNumber", "lineNumber"], se = ["fileName", "functionName", "source"], vr = ["args"], kr = ["evalOrigin"], xe = re.concat(ne, se, vr, kr);
213
213
  function I(t) {
214
214
  if (t) for (var e = 0; e < xe.length; e++) t[xe[e]] !== void 0 && this["set" + W(xe[e])](t[xe[e]]);
215
215
  }
@@ -230,30 +230,30 @@ var bn = dr((Tn, Qe) => {
230
230
  return this.getIsEval() ? t ? "[eval] (" + t + ":" + e + ":" + r + ")" : "[eval]:" + e + ":" + r : n ? n + " (" + t + ":" + e + ":" + r + ")" : t + ":" + e + ":" + r;
231
231
  } };
232
232
  I.fromString = k(function(t) {
233
- var e = t.indexOf("("), r = t.lastIndexOf(")"), n = t.substring(0, e), a = t.substring(e + 1, r).split(","), s = t.substring(r + 1);
234
- if (s.indexOf("@") === 0) var i = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(s, ""), o = i[1], d = i[2], l = i[3];
235
- return new I({ functionName: n, args: a || void 0, fileName: o, lineNumber: d || void 0, columnNumber: l || void 0 });
233
+ var e = t.indexOf("("), r = t.lastIndexOf(")"), n = t.substring(0, e), s = t.substring(e + 1, r).split(","), a = t.substring(r + 1);
234
+ if (a.indexOf("@") === 0) var i = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a, ""), o = i[1], d = i[2], l = i[3];
235
+ return new I({ functionName: n, args: s || void 0, fileName: o, lineNumber: d || void 0, columnNumber: l || void 0 });
236
236
  }, "StackFrame$$fromString");
237
- for (Q = 0; Q < re.length; Q++) I.prototype["get" + W(re[Q])] = $e(re[Q]), I.prototype["set" + W(re[Q])] = /* @__PURE__ */ function(t) {
237
+ for (Q = 0; Q < re.length; Q++) I.prototype["get" + W(re[Q])] = Fe(re[Q]), I.prototype["set" + W(re[Q])] = /* @__PURE__ */ function(t) {
238
238
  return function(e) {
239
239
  this[t] = !!e;
240
240
  };
241
241
  }(re[Q]);
242
242
  var Q;
243
- for (X = 0; X < ne.length; X++) I.prototype["get" + W(ne[X])] = $e(ne[X]), I.prototype["set" + W(ne[X])] = /* @__PURE__ */ function(t) {
243
+ for (X = 0; X < ne.length; X++) I.prototype["get" + W(ne[X])] = Fe(ne[X]), I.prototype["set" + W(ne[X])] = /* @__PURE__ */ function(t) {
244
244
  return function(e) {
245
- if (!Tt(e)) throw new TypeError(t + " must be a Number");
245
+ if (!Ot(e)) throw new TypeError(t + " must be a Number");
246
246
  this[t] = Number(e);
247
247
  };
248
248
  }(ne[X]);
249
249
  var X;
250
- for (G = 0; G < ae.length; G++) I.prototype["get" + W(ae[G])] = $e(ae[G]), I.prototype["set" + W(ae[G])] = /* @__PURE__ */ function(t) {
250
+ for (G = 0; G < se.length; G++) I.prototype["get" + W(se[G])] = Fe(se[G]), I.prototype["set" + W(se[G])] = /* @__PURE__ */ function(t) {
251
251
  return function(e) {
252
252
  this[t] = String(e);
253
253
  };
254
- }(ae[G]);
255
- var G, Ze = I;
256
- function Ot() {
254
+ }(se[G]);
255
+ var G, Me = I;
256
+ function Et() {
257
257
  var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
258
258
  return { parse: k(function(r) {
259
259
  if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
@@ -261,75 +261,75 @@ var bn = dr((Tn, Qe) => {
261
261
  throw new Error("Cannot parse given Error object");
262
262
  }, "ErrorStackParser$$parse"), extractLocation: k(function(r) {
263
263
  if (r.indexOf(":") === -1) return [r];
264
- var n = /(.+?)(?::(\d+))?(?::(\d+))?$/, a = n.exec(r.replace(/[()]/g, ""));
265
- return [a[1], a[2] || void 0, a[3] || void 0];
264
+ var n = /(.+?)(?::(\d+))?(?::(\d+))?$/, s = n.exec(r.replace(/[()]/g, ""));
265
+ return [s[1], s[2] || void 0, s[3] || void 0];
266
266
  }, "ErrorStackParser$$extractLocation"), parseV8OrIE: k(function(r) {
267
267
  var n = r.stack.split(`
268
- `).filter(function(a) {
269
- return !!a.match(t);
268
+ `).filter(function(s) {
269
+ return !!s.match(t);
270
270
  }, this);
271
- return n.map(function(a) {
272
- a.indexOf("(eval ") > -1 && (a = a.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
273
- var s = a.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), i = s.match(/ (\(.+\)$)/);
274
- s = i ? s.replace(i[0], "") : s;
275
- var o = this.extractLocation(i ? i[1] : s), d = i && s || void 0, l = ["eval", "<anonymous>"].indexOf(o[0]) > -1 ? void 0 : o[0];
276
- return new Ze({ functionName: d, fileName: l, lineNumber: o[1], columnNumber: o[2], source: a });
271
+ return n.map(function(s) {
272
+ s.indexOf("(eval ") > -1 && (s = s.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
273
+ var a = s.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), i = a.match(/ (\(.+\)$)/);
274
+ a = i ? a.replace(i[0], "") : a;
275
+ var o = this.extractLocation(i ? i[1] : a), d = i && a || void 0, l = ["eval", "<anonymous>"].indexOf(o[0]) > -1 ? void 0 : o[0];
276
+ return new Me({ functionName: d, fileName: l, lineNumber: o[1], columnNumber: o[2], source: s });
277
277
  }, this);
278
278
  }, "ErrorStackParser$$parseV8OrIE"), parseFFOrSafari: k(function(r) {
279
279
  var n = r.stack.split(`
280
- `).filter(function(a) {
281
- return !a.match(e);
280
+ `).filter(function(s) {
281
+ return !s.match(e);
282
282
  }, this);
283
- return n.map(function(a) {
284
- if (a.indexOf(" > eval") > -1 && (a = a.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), a.indexOf("@") === -1 && a.indexOf(":") === -1) return new Ze({ functionName: a });
285
- var s = /((.*".+"[^@]*)?[^@]*)(?:@)/, i = a.match(s), o = i && i[1] ? i[1] : void 0, d = this.extractLocation(a.replace(s, ""));
286
- return new Ze({ functionName: o, fileName: d[0], lineNumber: d[1], columnNumber: d[2], source: a });
283
+ return n.map(function(s) {
284
+ if (s.indexOf(" > eval") > -1 && (s = s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), s.indexOf("@") === -1 && s.indexOf(":") === -1) return new Me({ functionName: s });
285
+ var a = /((.*".+"[^@]*)?[^@]*)(?:@)/, i = s.match(a), o = i && i[1] ? i[1] : void 0, d = this.extractLocation(s.replace(a, ""));
286
+ return new Me({ functionName: o, fileName: d[0], lineNumber: d[1], columnNumber: d[2], source: s });
287
287
  }, this);
288
288
  }, "ErrorStackParser$$parseFFOrSafari") };
289
289
  }
290
- k(Ot, "ErrorStackParser");
291
- var wr = new Ot(), br = wr, L = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Et = L && typeof Qe < "u" && typeof Qe.exports < "u" && typeof St < "u" && typeof __dirname < "u", xr = L && !Et, Sr = typeof Deno < "u", Nt = !L && !Sr, Tr = Nt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Or = Nt && typeof importScripts == "function" && typeof self == "object";
290
+ k(Et, "ErrorStackParser");
291
+ var wr = new Et(), br = wr, L = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Nt = L && typeof Xe < "u" && typeof Xe.exports < "u" && typeof Tt < "u" && typeof __dirname < "u", xr = L && !Nt, Sr = typeof Deno < "u", Rt = !L && !Sr, Tr = Rt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Or = Rt && typeof importScripts == "function" && typeof self == "object";
292
292
  typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
293
- var Rt, Le, Ct, at, Xe;
294
- async function Ge() {
295
- if (!L || (Rt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, at = await import("./__vite-browser-external-CPvbk0mb.js"), Xe = await import("./__vite-browser-external-CPvbk0mb.js"), Ct = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Le = await import("./__vite-browser-external-CPvbk0mb.js"), Ke = Le.sep, typeof St < "u")) return;
296
- let t = at, e = await import("./__vite-browser-external-CPvbk0mb.js"), r = await import("./__vite-browser-external-CPvbk0mb.js"), n = await import("./__vite-browser-external-CPvbk0mb.js"), a = { fs: t, crypto: e, ws: r, child_process: n };
297
- globalThis.require = function(s) {
298
- return a[s];
293
+ var Ct, De, At, at, Ge;
294
+ async function Ke() {
295
+ if (!L || (Ct = (await import("./__vite-browser-external-CPvbk0mb.js")).default, at = await import("./__vite-browser-external-CPvbk0mb.js"), Ge = await import("./__vite-browser-external-CPvbk0mb.js"), At = (await import("./__vite-browser-external-CPvbk0mb.js")).default, De = await import("./__vite-browser-external-CPvbk0mb.js"), et = De.sep, typeof Tt < "u")) return;
296
+ let t = at, 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 };
297
+ globalThis.require = function(a) {
298
+ return s[a];
299
299
  };
300
300
  }
301
- k(Ge, "initNodeModules");
302
- function At(t, e) {
303
- return Le.resolve(e || ".", t);
304
- }
305
- k(At, "node_resolvePath");
301
+ k(Ke, "initNodeModules");
306
302
  function It(t, e) {
307
- return e === void 0 && (e = location), new URL(t, e).toString();
303
+ return De.resolve(e || ".", t);
308
304
  }
309
- k(It, "browser_resolvePath");
310
- var De;
311
- L ? De = At : De = It;
312
- var Ke;
313
- L || (Ke = "/");
305
+ k(It, "node_resolvePath");
314
306
  function Pt(t, e) {
315
- return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: Xe.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
307
+ return e === void 0 && (e = location), new URL(t, e).toString();
316
308
  }
317
- k(Pt, "node_getBinaryResponse");
309
+ k(Pt, "browser_resolvePath");
310
+ var qe;
311
+ L ? qe = It : qe = Pt;
312
+ var et;
313
+ L || (et = "/");
318
314
  function jt(t, e) {
315
+ return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: Ge.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
316
+ }
317
+ k(jt, "node_getBinaryResponse");
318
+ function $t(t, e) {
319
319
  let r = new URL(t, location);
320
320
  return { response: fetch(r, e ? { integrity: e } : {}) };
321
321
  }
322
- k(jt, "browser_getBinaryResponse");
323
- var Oe;
324
- L ? Oe = Pt : Oe = jt;
325
- async function $t(t, e) {
326
- let { response: r, binary: n } = Oe(t, e);
322
+ k($t, "browser_getBinaryResponse");
323
+ var Ee;
324
+ L ? Ee = jt : Ee = $t;
325
+ async function Ft(t, e) {
326
+ let { response: r, binary: n } = Ee(t, e);
327
327
  if (n) return n;
328
- let a = await r;
329
- if (!a.ok) throw new Error(`Failed to load '${t}': request failed.`);
330
- return new Uint8Array(await a.arrayBuffer());
328
+ let s = await r;
329
+ if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
330
+ return new Uint8Array(await s.arrayBuffer());
331
331
  }
332
- k($t, "loadBinaryFile");
332
+ k(Ft, "loadBinaryFile");
333
333
  var Se;
334
334
  if (Tr) Se = k(async (t) => await import(t), "loadScript");
335
335
  else if (Or) Se = k(async (t) => {
@@ -340,22 +340,22 @@ var bn = dr((Tn, Qe) => {
340
340
  else throw e;
341
341
  }
342
342
  }, "loadScript");
343
- else if (L) Se = Ft;
343
+ else if (L) Se = Zt;
344
344
  else throw new Error("Cannot determine runtime environment");
345
- async function Ft(t) {
346
- t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Ct.runInThisContext(await (await fetch(t)).text()) : await import(Rt.pathToFileURL(t).href);
347
- }
348
- k(Ft, "nodeLoadScript");
349
345
  async function Zt(t) {
346
+ t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? At.runInThisContext(await (await fetch(t)).text()) : await import(Ct.pathToFileURL(t).href);
347
+ }
348
+ k(Zt, "nodeLoadScript");
349
+ async function Mt(t) {
350
350
  if (L) {
351
- await Ge();
352
- let e = await Xe.readFile(t, { encoding: "utf8" });
351
+ await Ke();
352
+ let e = await Ge.readFile(t, { encoding: "utf8" });
353
353
  return JSON.parse(e);
354
354
  } else return await (await fetch(t)).json();
355
355
  }
356
- k(Zt, "loadLockFile");
357
- async function Mt() {
358
- if (Et) return __dirname;
356
+ k(Mt, "loadLockFile");
357
+ async function Lt() {
358
+ if (Nt) return __dirname;
359
359
  let t;
360
360
  try {
361
361
  throw new Error();
@@ -367,23 +367,23 @@ var bn = dr((Tn, Qe) => {
367
367
  let n = await import("./__vite-browser-external-CPvbk0mb.js");
368
368
  return (await import("./__vite-browser-external-CPvbk0mb.js")).fileURLToPath(n.dirname(e));
369
369
  }
370
- let r = e.lastIndexOf(Ke);
370
+ let r = e.lastIndexOf(et);
371
371
  if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
372
372
  return e.slice(0, r);
373
373
  }
374
- k(Mt, "calculateDirname");
375
- function Lt(t) {
376
- let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, a = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(s) {
377
- if (!s.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
374
+ k(Lt, "calculateDirname");
375
+ function Dt(t) {
376
+ let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
377
+ if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
378
378
  return r.mount.apply(null, arguments);
379
- }, syncfs: async (s, i, o) => {
379
+ }, syncfs: async (a, i, o) => {
380
380
  try {
381
- let d = a.getLocalSet(s), l = await a.getRemoteSet(s), h = i ? l : d, x = i ? d : l;
382
- await a.reconcile(s, h, x), o(null);
381
+ let d = s.getLocalSet(a), l = await s.getRemoteSet(a), h = i ? l : d, x = i ? d : l;
382
+ await s.reconcile(a, h, x), o(null);
383
383
  } catch (d) {
384
384
  o(d);
385
385
  }
386
- }, getLocalSet: (s) => {
386
+ }, getLocalSet: (a) => {
387
387
  let i = /* @__PURE__ */ Object.create(null);
388
388
  function o(h) {
389
389
  return h !== "." && h !== "..";
@@ -393,47 +393,47 @@ var bn = dr((Tn, Qe) => {
393
393
  return (x) => n.join2(h, x);
394
394
  }
395
395
  k(d, "toAbsolute");
396
- let l = e.readdir(s.mountpoint).filter(o).map(d(s.mountpoint));
396
+ let l = e.readdir(a.mountpoint).filter(o).map(d(a.mountpoint));
397
397
  for (; l.length; ) {
398
398
  let h = l.pop(), x = e.stat(h);
399
399
  e.isDir(x.mode) && l.push.apply(l, e.readdir(h).filter(o).map(d(h))), i[h] = { timestamp: x.mtime, mode: x.mode };
400
400
  }
401
401
  return { type: "local", entries: i };
402
- }, getRemoteSet: async (s) => {
403
- let i = /* @__PURE__ */ Object.create(null), o = await Er(s.opts.fileSystemHandle);
404
- for (let [d, l] of o) d !== "." && (i[n.join2(s.mountpoint, d)] = { timestamp: l.kind === "file" ? new Date((await l.getFile()).lastModified) : /* @__PURE__ */ new Date(), mode: l.kind === "file" ? a.FILE_MODE : a.DIR_MODE });
402
+ }, getRemoteSet: async (a) => {
403
+ let i = /* @__PURE__ */ Object.create(null), o = await Er(a.opts.fileSystemHandle);
404
+ for (let [d, l] of o) d !== "." && (i[n.join2(a.mountpoint, d)] = { timestamp: l.kind === "file" ? new Date((await l.getFile()).lastModified) : /* @__PURE__ */ new Date(), mode: l.kind === "file" ? s.FILE_MODE : s.DIR_MODE });
405
405
  return { type: "remote", entries: i, handles: o };
406
- }, loadLocalEntry: (s) => {
407
- let i = e.lookupPath(s).node, o = e.stat(s);
406
+ }, loadLocalEntry: (a) => {
407
+ let i = e.lookupPath(a).node, o = e.stat(a);
408
408
  if (e.isDir(o.mode)) return { timestamp: o.mtime, mode: o.mode };
409
409
  if (e.isFile(o.mode)) return i.contents = r.getFileDataAsTypedArray(i), { timestamp: o.mtime, mode: o.mode, contents: i.contents };
410
410
  throw new Error("node type not supported");
411
- }, storeLocalEntry: (s, i) => {
412
- if (e.isDir(i.mode)) e.mkdirTree(s, i.mode);
413
- else if (e.isFile(i.mode)) e.writeFile(s, i.contents, { canOwn: !0 });
411
+ }, storeLocalEntry: (a, i) => {
412
+ if (e.isDir(i.mode)) e.mkdirTree(a, i.mode);
413
+ else if (e.isFile(i.mode)) e.writeFile(a, i.contents, { canOwn: !0 });
414
414
  else throw new Error("node type not supported");
415
- e.chmod(s, i.mode), e.utime(s, i.timestamp, i.timestamp);
416
- }, removeLocalEntry: (s) => {
417
- var i = e.stat(s);
418
- e.isDir(i.mode) ? e.rmdir(s) : e.isFile(i.mode) && e.unlink(s);
419
- }, loadRemoteEntry: async (s) => {
420
- if (s.kind === "file") {
421
- let i = await s.getFile();
422
- return { contents: new Uint8Array(await i.arrayBuffer()), mode: a.FILE_MODE, timestamp: new Date(i.lastModified) };
415
+ e.chmod(a, i.mode), e.utime(a, i.timestamp, i.timestamp);
416
+ }, removeLocalEntry: (a) => {
417
+ var i = e.stat(a);
418
+ e.isDir(i.mode) ? e.rmdir(a) : e.isFile(i.mode) && e.unlink(a);
419
+ }, loadRemoteEntry: async (a) => {
420
+ if (a.kind === "file") {
421
+ let i = await a.getFile();
422
+ return { contents: new Uint8Array(await i.arrayBuffer()), mode: s.FILE_MODE, timestamp: new Date(i.lastModified) };
423
423
  } else {
424
- if (s.kind === "directory") return { mode: a.DIR_MODE, timestamp: /* @__PURE__ */ new Date() };
425
- throw new Error("unknown kind: " + s.kind);
424
+ if (a.kind === "directory") return { mode: s.DIR_MODE, timestamp: /* @__PURE__ */ new Date() };
425
+ throw new Error("unknown kind: " + a.kind);
426
426
  }
427
- }, storeRemoteEntry: async (s, i, o) => {
428
- let d = s.get(n.dirname(i)), l = e.isFile(o.mode) ? await d.getFileHandle(n.basename(i), { create: !0 }) : await d.getDirectoryHandle(n.basename(i), { create: !0 });
427
+ }, storeRemoteEntry: async (a, i, o) => {
428
+ let d = a.get(n.dirname(i)), l = e.isFile(o.mode) ? await d.getFileHandle(n.basename(i), { create: !0 }) : await d.getDirectoryHandle(n.basename(i), { create: !0 });
429
429
  if (l.kind === "file") {
430
430
  let h = await l.createWritable();
431
431
  await h.write(o.contents), await h.close();
432
432
  }
433
- s.set(i, l);
434
- }, removeRemoteEntry: async (s, i) => {
435
- await s.get(n.dirname(i)).removeEntry(n.basename(i)), s.delete(i);
436
- }, reconcile: async (s, i, o) => {
433
+ a.set(i, l);
434
+ }, removeRemoteEntry: async (a, i) => {
435
+ await a.get(n.dirname(i)).removeEntry(n.basename(i)), a.delete(i);
436
+ }, reconcile: async (a, i, o) => {
437
437
  let d = 0, l = [];
438
438
  Object.keys(i.entries).forEach(function(S) {
439
439
  let j = i.entries[S], D = o.entries[S];
@@ -445,46 +445,46 @@ var bn = dr((Tn, Qe) => {
445
445
  }), h.sort().reverse(), !d) return;
446
446
  let x = i.type === "remote" ? i.handles : o.handles;
447
447
  for (let S of l) {
448
- let j = n.normalize(S.replace(s.mountpoint, "/")).substring(1);
448
+ let j = n.normalize(S.replace(a.mountpoint, "/")).substring(1);
449
449
  if (o.type === "local") {
450
- let D = x.get(j), we = await a.loadRemoteEntry(D);
451
- a.storeLocalEntry(S, we);
450
+ let D = x.get(j), we = await s.loadRemoteEntry(D);
451
+ s.storeLocalEntry(S, we);
452
452
  } else {
453
- let D = a.loadLocalEntry(S);
454
- await a.storeRemoteEntry(x, j, D);
453
+ let D = s.loadLocalEntry(S);
454
+ await s.storeRemoteEntry(x, j, D);
455
455
  }
456
456
  }
457
- for (let S of h) if (o.type === "local") a.removeLocalEntry(S);
457
+ for (let S of h) if (o.type === "local") s.removeLocalEntry(S);
458
458
  else {
459
- let j = n.normalize(S.replace(s.mountpoint, "/")).substring(1);
460
- await a.removeRemoteEntry(x, j);
459
+ let j = n.normalize(S.replace(a.mountpoint, "/")).substring(1);
460
+ await s.removeRemoteEntry(x, j);
461
461
  }
462
462
  } };
463
- t.FS.filesystems.NATIVEFS_ASYNC = a;
463
+ t.FS.filesystems.NATIVEFS_ASYNC = s;
464
464
  }
465
- k(Lt, "initializeNativeFS");
465
+ k(Dt, "initializeNativeFS");
466
466
  var Er = k(async (t) => {
467
467
  let e = [];
468
- async function r(a) {
469
- for await (let s of a.values()) e.push(s), s.kind === "directory" && await r(s);
468
+ async function r(s) {
469
+ for await (let a of s.values()) e.push(a), a.kind === "directory" && await r(a);
470
470
  }
471
471
  k(r, "collect"), await r(t);
472
472
  let n = /* @__PURE__ */ new Map();
473
473
  n.set(".", t);
474
- for (let a of e) {
475
- let s = (await t.resolve(a)).join("/");
476
- n.set(s, a);
474
+ for (let s of e) {
475
+ let a = (await t.resolve(s)).join("/");
476
+ n.set(a, s);
477
477
  }
478
478
  return n;
479
479
  }, "getFsHandles");
480
- function Dt(t) {
481
- let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: Ht(t), quit(r, n) {
480
+ function qt(t) {
481
+ let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: Bt(t), quit(r, n) {
482
482
  throw e.exited = { status: r, toThrow: n }, n;
483
- }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: Bt(t.indexURL) };
483
+ }, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: Wt(t.indexURL) };
484
484
  return e;
485
485
  }
486
- k(Dt, "createSettings");
487
- function qt(t) {
486
+ k(qt, "createSettings");
487
+ function Vt(t) {
488
488
  return function(e) {
489
489
  let r = "/";
490
490
  try {
@@ -495,14 +495,14 @@ var bn = dr((Tn, Qe) => {
495
495
  e.FS.chdir(t);
496
496
  };
497
497
  }
498
- k(qt, "createHomeDirectory");
499
- function Vt(t) {
498
+ k(Vt, "createHomeDirectory");
499
+ function zt(t) {
500
500
  return function(e) {
501
501
  Object.assign(e.ENV, t);
502
502
  };
503
503
  }
504
- k(Vt, "setEnvironment");
505
- function zt(t) {
504
+ k(zt, "setEnvironment");
505
+ function Ut(t) {
506
506
  return t ? [async (e) => {
507
507
  e.addRunDependency("fsInitHook");
508
508
  try {
@@ -512,56 +512,56 @@ var bn = dr((Tn, Qe) => {
512
512
  }
513
513
  }] : [];
514
514
  }
515
- k(zt, "callFsInitHook");
516
- function Ut(t) {
517
- let e = $t(t);
515
+ k(Ut, "callFsInitHook");
516
+ function Ht(t) {
517
+ let e = Ft(t);
518
518
  return async (r) => {
519
- let n = r._py_version_major(), a = r._py_version_minor();
520
- r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${a}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
519
+ let n = r._py_version_major(), s = r._py_version_minor();
520
+ r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
521
521
  try {
522
- let s = await e;
523
- r.FS.writeFile(`/lib/python${n}${a}.zip`, s);
524
- } catch (s) {
525
- console.error("Error occurred while installing the standard library:"), console.error(s);
522
+ let a = await e;
523
+ r.FS.writeFile(`/lib/python${n}${s}.zip`, a);
524
+ } catch (a) {
525
+ console.error("Error occurred while installing the standard library:"), console.error(a);
526
526
  } finally {
527
527
  r.removeRunDependency("install-stdlib");
528
528
  }
529
529
  };
530
530
  }
531
- k(Ut, "installStdlib");
532
- function Ht(t) {
531
+ k(Ht, "installStdlib");
532
+ function Bt(t) {
533
533
  let e;
534
- return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...zt(t.fsInit), Ut(e), qt(t.env.HOME), Vt(t.env), Lt];
534
+ return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...Ut(t.fsInit), Ht(e), Vt(t.env.HOME), zt(t.env), Dt];
535
535
  }
536
- k(Ht, "getFileSystemInitializationFuncs");
537
- function Bt(t) {
536
+ k(Bt, "getFileSystemInitializationFuncs");
537
+ function Wt(t) {
538
538
  if (typeof WasmOffsetConverter < "u") return;
539
- let { binary: e, response: r } = Oe(t + "pyodide.asm.wasm");
540
- return function(n, a) {
539
+ let { binary: e, response: r } = Ee(t + "pyodide.asm.wasm");
540
+ return function(n, s) {
541
541
  return async function() {
542
542
  try {
543
- let s;
544
- r ? s = await WebAssembly.instantiateStreaming(r, n) : s = await WebAssembly.instantiate(await e, n);
545
- let { instance: i, module: o } = s;
546
- a(i, o);
547
- } catch (s) {
548
- console.warn("wasm instantiation failed!"), console.warn(s);
543
+ let a;
544
+ r ? a = await WebAssembly.instantiateStreaming(r, n) : a = await WebAssembly.instantiate(await e, n);
545
+ let { instance: i, module: o } = a;
546
+ s(i, o);
547
+ } catch (a) {
548
+ console.warn("wasm instantiation failed!"), console.warn(a);
549
549
  }
550
550
  }(), {};
551
551
  };
552
552
  }
553
- k(Bt, "getInstantiateWasmFunc");
554
- var qe = "0.27.7";
555
- async function Ve(t = {}) {
553
+ k(Wt, "getInstantiateWasmFunc");
554
+ var Ve = "0.27.7";
555
+ async function ze(t = {}) {
556
556
  var e, r;
557
- await Ge();
558
- let n = t.indexURL || await Mt();
559
- n = De(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
560
- let a = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !0, checkAPIVersion: !0, BUILD_ID: "e94377f5ce7dcf67e0417b69a0016733c2cfb6b4622ee8c490a6f17eb58e863b" }, s = Object.assign(a, t);
561
- (e = s.env).HOME ?? (e.HOME = "/home/pyodide"), (r = s.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
562
- let i = Dt(s), o = i.API;
563
- if (o.lockFilePromise = Zt(s.lockFileURL), typeof _createPyodideModule != "function") {
564
- let S = `${s.indexURL}pyodide.asm.js`;
557
+ await Ke();
558
+ let n = t.indexURL || await Lt();
559
+ n = qe(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
560
+ let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !0, checkAPIVersion: !0, BUILD_ID: "e94377f5ce7dcf67e0417b69a0016733c2cfb6b4622ee8c490a6f17eb58e863b" }, a = Object.assign(s, t);
561
+ (e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
562
+ let i = qt(a), o = i.API;
563
+ if (o.lockFilePromise = Mt(a.lockFileURL), typeof _createPyodideModule != "function") {
564
+ let S = `${a.indexURL}pyodide.asm.js`;
565
565
  await Se(S);
566
566
  }
567
567
  let d;
@@ -571,19 +571,19 @@ var bn = dr((Tn, Qe) => {
571
571
  }
572
572
  let l = await _createPyodideModule(i);
573
573
  if (i.exited) throw i.exited.toThrow;
574
- if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !== qe && s.checkAPIVersion) throw new Error(`Pyodide version does not match: '${qe}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);
574
+ if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !== Ve && a.checkAPIVersion) throw new Error(`Pyodide version does not match: '${Ve}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);
575
575
  l.locateFile = (S) => {
576
576
  throw new Error("Didn't expect to load any more file_packager files!");
577
577
  };
578
578
  let h;
579
579
  d && (h = o.restoreSnapshot(d));
580
580
  let x = o.finalizeBootstrap(h, t._snapshotDeserializer);
581
- return o.sys.path.insert(0, ""), x.version.includes("dev") || o.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${x.version}/full/`), o._pyodide.set_excepthook(), await o.packageIndexReady, o.initializeStreams(s.stdin, s.stdout, s.stderr), x;
581
+ return o.sys.path.insert(0, ""), x.version.includes("dev") || o.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${x.version}/full/`), o._pyodide.set_excepthook(), await o.packageIndexReady, o.initializeStreams(a.stdin, a.stdout, a.stderr), x;
582
582
  }
583
- k(Ve, "loadPyodide");
583
+ k(ze, "loadPyodide");
584
584
  const Nr = !1;
585
585
  function Rr(t) {
586
- return t.includes("dev") && Nr ? "dev" : `v${qe}`;
586
+ return t.includes("dev") && Nr ? "dev" : `v${Ve}`;
587
587
  }
588
588
  class Cr {
589
589
  constructor(e) {
@@ -604,7 +604,7 @@ var bn = dr((Tn, Qe) => {
604
604
  const he = {
605
605
  NOOP: () => {
606
606
  }
607
- }, Wt = (t, e) => {
607
+ }, Jt = (t, e) => {
608
608
  const r = `[${t}]`;
609
609
  return {
610
610
  debug: (...n) => e.debug(r, ...n),
@@ -612,10 +612,10 @@ var bn = dr((Tn, Qe) => {
612
612
  warn: (...n) => e.warn(r, ...n),
613
613
  error: (...n) => e.error(r, ...n),
614
614
  trace: (...n) => e.trace(r, ...n),
615
- get: (n) => Wt(`${t}.${n}`, e),
616
- disabled: (n = !0) => n ? Ne : e
615
+ get: (n) => Jt(`${t}.${n}`, e),
616
+ disabled: (n = !0) => n ? Re : e
617
617
  };
618
- }, Ee = {
618
+ }, Ne = {
619
619
  debug: (...t) => {
620
620
  console.debug(...t);
621
621
  },
@@ -631,19 +631,19 @@ var bn = dr((Tn, Qe) => {
631
631
  trace: (...t) => {
632
632
  console.trace(...t);
633
633
  },
634
- get: (t) => Wt(t, Ee),
635
- disabled: (t = !0) => t ? Ne : Ee
636
- }, Ne = {
634
+ get: (t) => Jt(t, Ne),
635
+ disabled: (t = !0) => t ? Re : Ne
636
+ }, Re = {
637
637
  debug: () => he.NOOP,
638
638
  log: () => he.NOOP,
639
639
  warn: () => he.NOOP,
640
640
  error: () => he.NOOP,
641
641
  trace: () => he.NOOP,
642
- get: () => Ne,
643
- disabled: () => Ne
642
+ get: () => Re,
643
+ disabled: () => Re
644
644
  };
645
645
  function Ar() {
646
- return typeof window < "u" && window.Logger || Ee;
646
+ return typeof window < "u" && window.Logger || Ne;
647
647
  }
648
648
  const H = Ar();
649
649
  class Ir {
@@ -663,49 +663,49 @@ var bn = dr((Tn, Qe) => {
663
663
  }
664
664
  var w;
665
665
  (function(t) {
666
- t.assertEqual = (a) => {
666
+ t.assertEqual = (s) => {
667
667
  };
668
- function e(a) {
668
+ function e(s) {
669
669
  }
670
670
  t.assertIs = e;
671
- function r(a) {
671
+ function r(s) {
672
672
  throw new Error();
673
673
  }
674
- t.assertNever = r, t.arrayToEnum = (a) => {
675
- const s = {};
676
- for (const i of a)
677
- s[i] = i;
678
- return s;
679
- }, t.getValidEnumValues = (a) => {
680
- const s = t.objectKeys(a).filter((o) => typeof a[a[o]] != "number"), i = {};
681
- for (const o of s)
682
- i[o] = a[o];
674
+ t.assertNever = r, t.arrayToEnum = (s) => {
675
+ const a = {};
676
+ for (const i of s)
677
+ a[i] = i;
678
+ return a;
679
+ }, t.getValidEnumValues = (s) => {
680
+ const a = t.objectKeys(s).filter((o) => typeof s[s[o]] != "number"), i = {};
681
+ for (const o of a)
682
+ i[o] = s[o];
683
683
  return t.objectValues(i);
684
- }, t.objectValues = (a) => t.objectKeys(a).map(function(s) {
685
- return a[s];
686
- }), t.objectKeys = typeof Object.keys == "function" ? (a) => Object.keys(a) : (a) => {
687
- const s = [];
688
- for (const i in a)
689
- Object.prototype.hasOwnProperty.call(a, i) && s.push(i);
690
- return s;
691
- }, t.find = (a, s) => {
692
- for (const i of a)
693
- if (s(i))
684
+ }, t.objectValues = (s) => t.objectKeys(s).map(function(a) {
685
+ return s[a];
686
+ }), t.objectKeys = typeof Object.keys == "function" ? (s) => Object.keys(s) : (s) => {
687
+ const a = [];
688
+ for (const i in s)
689
+ Object.prototype.hasOwnProperty.call(s, i) && a.push(i);
690
+ return a;
691
+ }, t.find = (s, a) => {
692
+ for (const i of s)
693
+ if (a(i))
694
694
  return i;
695
- }, t.isInteger = typeof Number.isInteger == "function" ? (a) => Number.isInteger(a) : (a) => typeof a == "number" && Number.isFinite(a) && Math.floor(a) === a;
696
- function n(a, s = " | ") {
697
- return a.map((i) => typeof i == "string" ? `'${i}'` : i).join(s);
695
+ }, t.isInteger = typeof Number.isInteger == "function" ? (s) => Number.isInteger(s) : (s) => typeof s == "number" && Number.isFinite(s) && Math.floor(s) === s;
696
+ function n(s, a = " | ") {
697
+ return s.map((i) => typeof i == "string" ? `'${i}'` : i).join(a);
698
698
  }
699
- t.joinValues = n, t.jsonStringifyReplacer = (a, s) => typeof s == "bigint" ? s.toString() : s;
699
+ t.joinValues = n, t.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
700
700
  })(w || (w = {}));
701
- var st;
701
+ var it;
702
702
  (function(t) {
703
703
  t.mergeShapes = (e, r) => ({
704
704
  ...e,
705
705
  ...r
706
706
  // second overwrites first
707
707
  });
708
- })(st || (st = {}));
708
+ })(it || (it = {}));
709
709
  const f = w.arrayToEnum([
710
710
  "string",
711
711
  "nan",
@@ -780,16 +780,16 @@ var bn = dr((Tn, Qe) => {
780
780
  Object.setPrototypeOf ? Object.setPrototypeOf(this, r) : this.__proto__ = r, this.name = "ZodError", this.issues = e;
781
781
  }
782
782
  format(e) {
783
- const r = e || function(s) {
784
- return s.message;
785
- }, n = { _errors: [] }, a = (s) => {
786
- for (const i of s.issues)
783
+ const r = e || function(a) {
784
+ return a.message;
785
+ }, n = { _errors: [] }, s = (a) => {
786
+ for (const i of a.issues)
787
787
  if (i.code === "invalid_union")
788
- i.unionErrors.map(a);
788
+ i.unionErrors.map(s);
789
789
  else if (i.code === "invalid_return_type")
790
- a(i.returnTypeError);
790
+ s(i.returnTypeError);
791
791
  else if (i.code === "invalid_arguments")
792
- a(i.argumentsError);
792
+ s(i.argumentsError);
793
793
  else if (i.path.length === 0)
794
794
  n._errors.push(r(i));
795
795
  else {
@@ -800,7 +800,7 @@ var bn = dr((Tn, Qe) => {
800
800
  }
801
801
  }
802
802
  };
803
- return a(this), n;
803
+ return s(this), n;
804
804
  }
805
805
  static assert(e) {
806
806
  if (!(e instanceof V))
@@ -817,12 +817,12 @@ var bn = dr((Tn, Qe) => {
817
817
  }
818
818
  flatten(e = (r) => r.message) {
819
819
  const r = {}, n = [];
820
- for (const a of this.issues)
821
- if (a.path.length > 0) {
822
- const s = a.path[0];
823
- r[s] = r[s] || [], r[s].push(e(a));
820
+ for (const s of this.issues)
821
+ if (s.path.length > 0) {
822
+ const a = s.path[0];
823
+ r[a] = r[a] || [], r[a].push(e(s));
824
824
  } else
825
- n.push(e(a));
825
+ n.push(e(s));
826
826
  return { formErrors: n, fieldErrors: r };
827
827
  }
828
828
  get formErrors() {
@@ -830,7 +830,7 @@ var bn = dr((Tn, Qe) => {
830
830
  }
831
831
  }
832
832
  V.create = (t) => new V(t);
833
- const ze = (t, e) => {
833
+ const Ue = (t, e) => {
834
834
  let r;
835
835
  switch (t.code) {
836
836
  case c.invalid_type:
@@ -886,28 +886,28 @@ var bn = dr((Tn, Qe) => {
886
886
  }
887
887
  return { message: r };
888
888
  };
889
- let Pr = ze;
889
+ let Pr = Ue;
890
890
  function jr() {
891
891
  return Pr;
892
892
  }
893
893
  const $r = (t) => {
894
- const { data: e, path: r, errorMaps: n, issueData: a } = t, s = [...r, ...a.path || []], i = {
895
- ...a,
896
- path: s
894
+ const { data: e, path: r, errorMaps: n, issueData: s } = t, a = [...r, ...s.path || []], i = {
895
+ ...s,
896
+ path: a
897
897
  };
898
- if (a.message !== void 0)
898
+ if (s.message !== void 0)
899
899
  return {
900
- ...a,
901
- path: s,
902
- message: a.message
900
+ ...s,
901
+ path: a,
902
+ message: s.message
903
903
  };
904
904
  let o = "";
905
905
  const d = n.filter((l) => !!l).slice().reverse();
906
906
  for (const l of d)
907
907
  o = l(i, { data: e, defaultError: o }).message;
908
908
  return {
909
- ...a,
910
- path: s,
909
+ ...s,
910
+ path: a,
911
911
  message: o
912
912
  };
913
913
  };
@@ -923,9 +923,9 @@ var bn = dr((Tn, Qe) => {
923
923
  // then schema-bound map if available
924
924
  r,
925
925
  // then global override map
926
- r === ze ? void 0 : ze
926
+ r === Ue ? void 0 : Ue
927
927
  // then global default map
928
- ].filter((a) => !!a)
928
+ ].filter((s) => !!s)
929
929
  });
930
930
  t.common.issues.push(n);
931
931
  }
@@ -941,19 +941,19 @@ var bn = dr((Tn, Qe) => {
941
941
  }
942
942
  static mergeArray(e, r) {
943
943
  const n = [];
944
- for (const a of r) {
945
- if (a.status === "aborted")
944
+ for (const s of r) {
945
+ if (s.status === "aborted")
946
946
  return g;
947
- a.status === "dirty" && e.dirty(), n.push(a.value);
947
+ s.status === "dirty" && e.dirty(), n.push(s.value);
948
948
  }
949
949
  return { status: e.value, value: n };
950
950
  }
951
951
  static async mergeObjectAsync(e, r) {
952
952
  const n = [];
953
- for (const a of r) {
954
- const s = await a.key, i = await a.value;
953
+ for (const s of r) {
954
+ const a = await s.key, i = await s.value;
955
955
  n.push({
956
- key: s,
956
+ key: a,
957
957
  value: i
958
958
  });
959
959
  }
@@ -961,31 +961,31 @@ var bn = dr((Tn, Qe) => {
961
961
  }
962
962
  static mergeObjectSync(e, r) {
963
963
  const n = {};
964
- for (const a of r) {
965
- const { key: s, value: i } = a;
966
- if (s.status === "aborted" || i.status === "aborted")
964
+ for (const s of r) {
965
+ const { key: a, value: i } = s;
966
+ if (a.status === "aborted" || i.status === "aborted")
967
967
  return g;
968
- s.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), s.value !== "__proto__" && (typeof i.value < "u" || a.alwaysSet) && (n[s.value] = i.value);
968
+ a.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), a.value !== "__proto__" && (typeof i.value < "u" || s.alwaysSet) && (n[a.value] = i.value);
969
969
  }
970
970
  return { status: e.value, value: n };
971
971
  }
972
972
  }
973
973
  const g = Object.freeze({
974
974
  status: "aborted"
975
- }), ge = (t) => ({ status: "dirty", value: t }), P = (t) => ({ status: "valid", value: t }), it = (t) => t.status === "aborted", ot = (t) => t.status === "dirty", oe = (t) => t.status === "valid", Re = (t) => typeof Promise < "u" && t instanceof Promise;
975
+ }), ge = (t) => ({ status: "dirty", value: t }), P = (t) => ({ status: "valid", value: t }), ot = (t) => t.status === "aborted", dt = (t) => t.status === "dirty", oe = (t) => t.status === "valid", Ce = (t) => typeof Promise < "u" && t instanceof Promise;
976
976
  var p;
977
977
  (function(t) {
978
978
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
979
979
  })(p || (p = {}));
980
980
  class M {
981
- constructor(e, r, n, a) {
982
- this._cachedPath = [], this.parent = e, this.data = r, this._path = n, this._key = a;
981
+ constructor(e, r, n, s) {
982
+ this._cachedPath = [], this.parent = e, this.data = r, this._path = n, this._key = s;
983
983
  }
984
984
  get path() {
985
985
  return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
986
986
  }
987
987
  }
988
- const dt = (t, e) => {
988
+ const ct = (t, e) => {
989
989
  if (oe(e))
990
990
  return { success: !0, data: e.value };
991
991
  if (!t.common.issues.length)
@@ -1003,13 +1003,13 @@ var bn = dr((Tn, Qe) => {
1003
1003
  function _(t) {
1004
1004
  if (!t)
1005
1005
  return {};
1006
- const { errorMap: e, invalid_type_error: r, required_error: n, description: a } = t;
1006
+ const { errorMap: e, invalid_type_error: r, required_error: n, description: s } = t;
1007
1007
  if (e && (r || n))
1008
1008
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
1009
- return e ? { errorMap: e, description: a } : { errorMap: (i, o) => {
1009
+ return e ? { errorMap: e, description: s } : { errorMap: (i, o) => {
1010
1010
  const { message: d } = t;
1011
1011
  return i.code === "invalid_enum_value" ? { message: d ?? o.defaultError } : typeof o.data > "u" ? { message: d ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: d ?? r ?? o.defaultError };
1012
- }, description: a };
1012
+ }, description: s };
1013
1013
  }
1014
1014
  class v {
1015
1015
  get description() {
@@ -1043,7 +1043,7 @@ var bn = dr((Tn, Qe) => {
1043
1043
  }
1044
1044
  _parseSync(e) {
1045
1045
  const r = this._parse(e);
1046
- if (Re(r))
1046
+ if (Ce(r))
1047
1047
  throw new Error("Synchronous parse encountered promise.");
1048
1048
  return r;
1049
1049
  }
@@ -1069,8 +1069,8 @@ var bn = dr((Tn, Qe) => {
1069
1069
  parent: null,
1070
1070
  data: e,
1071
1071
  parsedType: U(e)
1072
- }, a = this._parseSync({ data: e, path: n.path, parent: n });
1073
- return dt(n, a);
1072
+ }, s = this._parseSync({ data: e, path: n.path, parent: n });
1073
+ return ct(n, s);
1074
1074
  }
1075
1075
  "~validate"(e) {
1076
1076
  const r = {
@@ -1122,21 +1122,21 @@ var bn = dr((Tn, Qe) => {
1122
1122
  parent: null,
1123
1123
  data: e,
1124
1124
  parsedType: U(e)
1125
- }, a = this._parse({ data: e, path: n.path, parent: n }), s = await (Re(a) ? a : Promise.resolve(a));
1126
- return dt(n, s);
1125
+ }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Ce(s) ? s : Promise.resolve(s));
1126
+ return ct(n, a);
1127
1127
  }
1128
1128
  refine(e, r) {
1129
- const n = (a) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(a) : r;
1130
- return this._refinement((a, s) => {
1131
- const i = e(a), o = () => s.addIssue({
1129
+ const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
1130
+ return this._refinement((s, a) => {
1131
+ const i = e(s), o = () => a.addIssue({
1132
1132
  code: c.custom,
1133
- ...n(a)
1133
+ ...n(s)
1134
1134
  });
1135
1135
  return typeof Promise < "u" && i instanceof Promise ? i.then((d) => d ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
1136
1136
  });
1137
1137
  }
1138
1138
  refinement(e, r) {
1139
- return this._refinement((n, a) => e(n) ? !0 : (a.addIssue(typeof r == "function" ? r(n, a) : r), !1));
1139
+ return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof r == "function" ? r(n, s) : r), !1));
1140
1140
  }
1141
1141
  _refinement(e) {
1142
1142
  return new le({
@@ -1168,13 +1168,13 @@ var bn = dr((Tn, Qe) => {
1168
1168
  return Z.create(this);
1169
1169
  }
1170
1170
  promise() {
1171
- return je.create(this, this._def);
1171
+ return $e.create(this, this._def);
1172
1172
  }
1173
1173
  or(e) {
1174
- return Ae.create([this, e], this._def);
1174
+ return Ie.create([this, e], this._def);
1175
1175
  }
1176
1176
  and(e) {
1177
- return Ie.create(this, e, this._def);
1177
+ return Pe.create(this, e, this._def);
1178
1178
  }
1179
1179
  transform(e) {
1180
1180
  return new le({
@@ -1186,7 +1186,7 @@ var bn = dr((Tn, Qe) => {
1186
1186
  }
1187
1187
  default(e) {
1188
1188
  const r = typeof e == "function" ? e : () => e;
1189
- return new Be({
1189
+ return new We({
1190
1190
  ..._(this._def),
1191
1191
  innerType: this,
1192
1192
  defaultValue: r,
@@ -1194,7 +1194,7 @@ var bn = dr((Tn, Qe) => {
1194
1194
  });
1195
1195
  }
1196
1196
  brand() {
1197
- return new an({
1197
+ return new sn({
1198
1198
  typeName: m.ZodBranded,
1199
1199
  type: this,
1200
1200
  ..._(this._def)
@@ -1202,7 +1202,7 @@ var bn = dr((Tn, Qe) => {
1202
1202
  }
1203
1203
  catch(e) {
1204
1204
  const r = typeof e == "function" ? e : () => e;
1205
- return new We({
1205
+ return new Je({
1206
1206
  ..._(this._def),
1207
1207
  innerType: this,
1208
1208
  catchValue: r,
@@ -1217,10 +1217,10 @@ var bn = dr((Tn, Qe) => {
1217
1217
  });
1218
1218
  }
1219
1219
  pipe(e) {
1220
- return et.create(this, e);
1220
+ return tt.create(this, e);
1221
1221
  }
1222
1222
  readonly() {
1223
- return Je.create(this);
1223
+ return Ye.create(this);
1224
1224
  }
1225
1225
  isOptional() {
1226
1226
  return this.safeParse(void 0).success;
@@ -1230,19 +1230,19 @@ var bn = dr((Tn, Qe) => {
1230
1230
  }
1231
1231
  }
1232
1232
  const Fr = /^c[^\s-]{8,}$/i, Zr = /^[0-9a-z]+$/, Mr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Lr = /^[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, Dr = /^[a-z0-9_-]{21}$/i, qr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Vr = /^[-+]?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)?)??$/, zr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ur = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1233
- let Me;
1234
- const Hr = /^(?:(?: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])$/, Br = /^(?:(?: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])$/, Wr = /^(([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]))$/, Jr = /^(([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])$/, Yr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Qr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Jt = "((\\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])))", Xr = new RegExp(`^${Jt}$`);
1235
- function Yt(t) {
1233
+ let Le;
1234
+ const Hr = /^(?:(?: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])$/, Br = /^(?:(?: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])$/, Wr = /^(([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]))$/, Jr = /^(([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])$/, Yr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Qr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Yt = "((\\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])))", Xr = new RegExp(`^${Yt}$`);
1235
+ function Qt(t) {
1236
1236
  let e = "[0-5]\\d";
1237
1237
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
1238
1238
  const r = t.precision ? "+" : "?";
1239
1239
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
1240
1240
  }
1241
1241
  function Gr(t) {
1242
- return new RegExp(`^${Yt(t)}$`);
1242
+ return new RegExp(`^${Qt(t)}$`);
1243
1243
  }
1244
1244
  function Kr(t) {
1245
- let e = `${Jt}T${Yt(t)}`;
1245
+ let e = `${Yt}T${Qt(t)}`;
1246
1246
  const r = [];
1247
1247
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
1248
1248
  }
@@ -1256,8 +1256,8 @@ var bn = dr((Tn, Qe) => {
1256
1256
  const [r] = t.split(".");
1257
1257
  if (!r)
1258
1258
  return !1;
1259
- const n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), a = JSON.parse(atob(n));
1260
- return !(typeof a != "object" || a === null || "typ" in a && a?.typ !== "JWT" || !a.alg || e && a.alg !== e);
1259
+ const n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
1260
+ return !(typeof s != "object" || s === null || "typ" in s && s?.typ !== "JWT" || !s.alg || e && s.alg !== e);
1261
1261
  } catch {
1262
1262
  return !1;
1263
1263
  }
@@ -1268,160 +1268,160 @@ var bn = dr((Tn, Qe) => {
1268
1268
  class q extends v {
1269
1269
  _parse(e) {
1270
1270
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== f.string) {
1271
- const s = this._getOrReturnCtx(e);
1272
- return u(s, {
1271
+ const a = this._getOrReturnCtx(e);
1272
+ return u(a, {
1273
1273
  code: c.invalid_type,
1274
1274
  expected: f.string,
1275
- received: s.parsedType
1275
+ received: a.parsedType
1276
1276
  }), g;
1277
1277
  }
1278
1278
  const n = new A();
1279
- let a;
1280
- for (const s of this._def.checks)
1281
- if (s.kind === "min")
1282
- e.data.length < s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1279
+ let s;
1280
+ for (const a of this._def.checks)
1281
+ if (a.kind === "min")
1282
+ e.data.length < a.value && (s = this._getOrReturnCtx(e, s), u(s, {
1283
1283
  code: c.too_small,
1284
- minimum: s.value,
1284
+ minimum: a.value,
1285
1285
  type: "string",
1286
1286
  inclusive: !0,
1287
1287
  exact: !1,
1288
- message: s.message
1288
+ message: a.message
1289
1289
  }), n.dirty());
1290
- else if (s.kind === "max")
1291
- e.data.length > s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1290
+ else if (a.kind === "max")
1291
+ e.data.length > a.value && (s = this._getOrReturnCtx(e, s), u(s, {
1292
1292
  code: c.too_big,
1293
- maximum: s.value,
1293
+ maximum: a.value,
1294
1294
  type: "string",
1295
1295
  inclusive: !0,
1296
1296
  exact: !1,
1297
- message: s.message
1297
+ message: a.message
1298
1298
  }), n.dirty());
1299
- else if (s.kind === "length") {
1300
- const i = e.data.length > s.value, o = e.data.length < s.value;
1301
- (i || o) && (a = this._getOrReturnCtx(e, a), i ? u(a, {
1299
+ else if (a.kind === "length") {
1300
+ const i = e.data.length > a.value, o = e.data.length < a.value;
1301
+ (i || o) && (s = this._getOrReturnCtx(e, s), i ? u(s, {
1302
1302
  code: c.too_big,
1303
- maximum: s.value,
1303
+ maximum: a.value,
1304
1304
  type: "string",
1305
1305
  inclusive: !0,
1306
1306
  exact: !0,
1307
- message: s.message
1308
- }) : o && u(a, {
1307
+ message: a.message
1308
+ }) : o && u(s, {
1309
1309
  code: c.too_small,
1310
- minimum: s.value,
1310
+ minimum: a.value,
1311
1311
  type: "string",
1312
1312
  inclusive: !0,
1313
1313
  exact: !0,
1314
- message: s.message
1314
+ message: a.message
1315
1315
  }), n.dirty());
1316
- } else if (s.kind === "email")
1317
- zr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1316
+ } else if (a.kind === "email")
1317
+ zr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1318
1318
  validation: "email",
1319
1319
  code: c.invalid_string,
1320
- message: s.message
1320
+ message: a.message
1321
1321
  }), n.dirty());
1322
- else if (s.kind === "emoji")
1323
- Me || (Me = new RegExp(Ur, "u")), Me.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1322
+ else if (a.kind === "emoji")
1323
+ Le || (Le = new RegExp(Ur, "u")), Le.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1324
1324
  validation: "emoji",
1325
1325
  code: c.invalid_string,
1326
- message: s.message
1326
+ message: a.message
1327
1327
  }), n.dirty());
1328
- else if (s.kind === "uuid")
1329
- Lr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1328
+ else if (a.kind === "uuid")
1329
+ Lr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1330
1330
  validation: "uuid",
1331
1331
  code: c.invalid_string,
1332
- message: s.message
1332
+ message: a.message
1333
1333
  }), n.dirty());
1334
- else if (s.kind === "nanoid")
1335
- Dr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1334
+ else if (a.kind === "nanoid")
1335
+ Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1336
1336
  validation: "nanoid",
1337
1337
  code: c.invalid_string,
1338
- message: s.message
1338
+ message: a.message
1339
1339
  }), n.dirty());
1340
- else if (s.kind === "cuid")
1341
- Fr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1340
+ else if (a.kind === "cuid")
1341
+ Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1342
1342
  validation: "cuid",
1343
1343
  code: c.invalid_string,
1344
- message: s.message
1344
+ message: a.message
1345
1345
  }), n.dirty());
1346
- else if (s.kind === "cuid2")
1347
- Zr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1346
+ else if (a.kind === "cuid2")
1347
+ Zr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1348
1348
  validation: "cuid2",
1349
1349
  code: c.invalid_string,
1350
- message: s.message
1350
+ message: a.message
1351
1351
  }), n.dirty());
1352
- else if (s.kind === "ulid")
1353
- Mr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1352
+ else if (a.kind === "ulid")
1353
+ Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1354
1354
  validation: "ulid",
1355
1355
  code: c.invalid_string,
1356
- message: s.message
1356
+ message: a.message
1357
1357
  }), n.dirty());
1358
- else if (s.kind === "url")
1358
+ else if (a.kind === "url")
1359
1359
  try {
1360
1360
  new URL(e.data);
1361
1361
  } catch {
1362
- a = this._getOrReturnCtx(e, a), u(a, {
1362
+ s = this._getOrReturnCtx(e, s), u(s, {
1363
1363
  validation: "url",
1364
1364
  code: c.invalid_string,
1365
- message: s.message
1365
+ message: a.message
1366
1366
  }), n.dirty();
1367
1367
  }
1368
- else s.kind === "regex" ? (s.regex.lastIndex = 0, s.regex.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1368
+ else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1369
1369
  validation: "regex",
1370
1370
  code: c.invalid_string,
1371
- message: s.message
1372
- }), n.dirty())) : s.kind === "trim" ? e.data = e.data.trim() : s.kind === "includes" ? e.data.includes(s.value, s.position) || (a = this._getOrReturnCtx(e, a), u(a, {
1371
+ message: a.message
1372
+ }), n.dirty())) : a.kind === "trim" ? e.data = e.data.trim() : a.kind === "includes" ? e.data.includes(a.value, a.position) || (s = this._getOrReturnCtx(e, s), u(s, {
1373
1373
  code: c.invalid_string,
1374
- validation: { includes: s.value, position: s.position },
1375
- message: s.message
1376
- }), n.dirty()) : s.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : s.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : s.kind === "startsWith" ? e.data.startsWith(s.value) || (a = this._getOrReturnCtx(e, a), u(a, {
1374
+ validation: { includes: a.value, position: a.position },
1375
+ message: a.message
1376
+ }), n.dirty()) : a.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : a.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : a.kind === "startsWith" ? e.data.startsWith(a.value) || (s = this._getOrReturnCtx(e, s), u(s, {
1377
1377
  code: c.invalid_string,
1378
- validation: { startsWith: s.value },
1379
- message: s.message
1380
- }), n.dirty()) : s.kind === "endsWith" ? e.data.endsWith(s.value) || (a = this._getOrReturnCtx(e, a), u(a, {
1378
+ validation: { startsWith: a.value },
1379
+ message: a.message
1380
+ }), n.dirty()) : a.kind === "endsWith" ? e.data.endsWith(a.value) || (s = this._getOrReturnCtx(e, s), u(s, {
1381
1381
  code: c.invalid_string,
1382
- validation: { endsWith: s.value },
1383
- message: s.message
1384
- }), n.dirty()) : s.kind === "datetime" ? Kr(s).test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1382
+ validation: { endsWith: a.value },
1383
+ message: a.message
1384
+ }), n.dirty()) : a.kind === "datetime" ? Kr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1385
1385
  code: c.invalid_string,
1386
1386
  validation: "datetime",
1387
- message: s.message
1388
- }), n.dirty()) : s.kind === "date" ? Xr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1387
+ message: a.message
1388
+ }), n.dirty()) : a.kind === "date" ? Xr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1389
1389
  code: c.invalid_string,
1390
1390
  validation: "date",
1391
- message: s.message
1392
- }), n.dirty()) : s.kind === "time" ? Gr(s).test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1391
+ message: a.message
1392
+ }), n.dirty()) : a.kind === "time" ? Gr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1393
1393
  code: c.invalid_string,
1394
1394
  validation: "time",
1395
- message: s.message
1396
- }), n.dirty()) : s.kind === "duration" ? Vr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1395
+ message: a.message
1396
+ }), n.dirty()) : a.kind === "duration" ? Vr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1397
1397
  validation: "duration",
1398
1398
  code: c.invalid_string,
1399
- message: s.message
1400
- }), n.dirty()) : s.kind === "ip" ? en(e.data, s.version) || (a = this._getOrReturnCtx(e, a), u(a, {
1399
+ message: a.message
1400
+ }), n.dirty()) : a.kind === "ip" ? en(e.data, a.version) || (s = this._getOrReturnCtx(e, s), u(s, {
1401
1401
  validation: "ip",
1402
1402
  code: c.invalid_string,
1403
- message: s.message
1404
- }), n.dirty()) : s.kind === "jwt" ? tn(e.data, s.alg) || (a = this._getOrReturnCtx(e, a), u(a, {
1403
+ message: a.message
1404
+ }), n.dirty()) : a.kind === "jwt" ? tn(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), u(s, {
1405
1405
  validation: "jwt",
1406
1406
  code: c.invalid_string,
1407
- message: s.message
1408
- }), n.dirty()) : s.kind === "cidr" ? rn(e.data, s.version) || (a = this._getOrReturnCtx(e, a), u(a, {
1407
+ message: a.message
1408
+ }), n.dirty()) : a.kind === "cidr" ? rn(e.data, a.version) || (s = this._getOrReturnCtx(e, s), u(s, {
1409
1409
  validation: "cidr",
1410
1410
  code: c.invalid_string,
1411
- message: s.message
1412
- }), n.dirty()) : s.kind === "base64" ? Yr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1411
+ message: a.message
1412
+ }), n.dirty()) : a.kind === "base64" ? Yr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1413
1413
  validation: "base64",
1414
1414
  code: c.invalid_string,
1415
- message: s.message
1416
- }), n.dirty()) : s.kind === "base64url" ? Qr.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
1415
+ message: a.message
1416
+ }), n.dirty()) : a.kind === "base64url" ? Qr.test(e.data) || (s = this._getOrReturnCtx(e, s), u(s, {
1417
1417
  validation: "base64url",
1418
1418
  code: c.invalid_string,
1419
- message: s.message
1420
- }), n.dirty()) : w.assertNever(s);
1419
+ message: a.message
1420
+ }), n.dirty()) : w.assertNever(a);
1421
1421
  return { status: n.value, value: e.data };
1422
1422
  }
1423
1423
  _regex(e, r, n) {
1424
- return this.refinement((a) => e.test(a), {
1424
+ return this.refinement((s) => e.test(s), {
1425
1425
  validation: r,
1426
1426
  code: c.invalid_string,
1427
1427
  ...p.errToObj(n)
@@ -1649,8 +1649,8 @@ var bn = dr((Tn, Qe) => {
1649
1649
  ..._(t)
1650
1650
  });
1651
1651
  function nn(t, e) {
1652
- const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, a = r > n ? r : n, s = Number.parseInt(t.toFixed(a).replace(".", "")), i = Number.parseInt(e.toFixed(a).replace(".", ""));
1653
- return s % i / 10 ** a;
1652
+ const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = Number.parseInt(t.toFixed(s).replace(".", "")), i = Number.parseInt(e.toFixed(s).replace(".", ""));
1653
+ return a % i / 10 ** s;
1654
1654
  }
1655
1655
  class de extends v {
1656
1656
  constructor() {
@@ -1658,44 +1658,44 @@ var bn = dr((Tn, Qe) => {
1658
1658
  }
1659
1659
  _parse(e) {
1660
1660
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== f.number) {
1661
- const s = this._getOrReturnCtx(e);
1662
- return u(s, {
1661
+ const a = this._getOrReturnCtx(e);
1662
+ return u(a, {
1663
1663
  code: c.invalid_type,
1664
1664
  expected: f.number,
1665
- received: s.parsedType
1665
+ received: a.parsedType
1666
1666
  }), g;
1667
1667
  }
1668
1668
  let n;
1669
- const a = new A();
1670
- for (const s of this._def.checks)
1671
- s.kind === "int" ? w.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1669
+ const s = new A();
1670
+ for (const a of this._def.checks)
1671
+ a.kind === "int" ? w.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1672
1672
  code: c.invalid_type,
1673
1673
  expected: "integer",
1674
1674
  received: "float",
1675
- message: s.message
1676
- }), a.dirty()) : s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1675
+ message: a.message
1676
+ }), s.dirty()) : a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1677
1677
  code: c.too_small,
1678
- minimum: s.value,
1678
+ minimum: a.value,
1679
1679
  type: "number",
1680
- inclusive: s.inclusive,
1680
+ inclusive: a.inclusive,
1681
1681
  exact: !1,
1682
- message: s.message
1683
- }), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1682
+ message: a.message
1683
+ }), s.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1684
1684
  code: c.too_big,
1685
- maximum: s.value,
1685
+ maximum: a.value,
1686
1686
  type: "number",
1687
- inclusive: s.inclusive,
1687
+ inclusive: a.inclusive,
1688
1688
  exact: !1,
1689
- message: s.message
1690
- }), a.dirty()) : s.kind === "multipleOf" ? nn(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
1689
+ message: a.message
1690
+ }), s.dirty()) : a.kind === "multipleOf" ? nn(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
1691
1691
  code: c.not_multiple_of,
1692
- multipleOf: s.value,
1693
- message: s.message
1694
- }), a.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1692
+ multipleOf: a.value,
1693
+ message: a.message
1694
+ }), s.dirty()) : a.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1695
1695
  code: c.not_finite,
1696
- message: s.message
1697
- }), a.dirty()) : w.assertNever(s);
1698
- return { status: a.value, value: e.data };
1696
+ message: a.message
1697
+ }), s.dirty()) : w.assertNever(a);
1698
+ return { status: s.value, value: e.data };
1699
1699
  }
1700
1700
  gte(e, r) {
1701
1701
  return this.setLimit("min", e, !0, p.toString(r));
@@ -1709,7 +1709,7 @@ var bn = dr((Tn, Qe) => {
1709
1709
  lt(e, r) {
1710
1710
  return this.setLimit("max", e, !1, p.toString(r));
1711
1711
  }
1712
- setLimit(e, r, n, a) {
1712
+ setLimit(e, r, n, s) {
1713
1713
  return new de({
1714
1714
  ...this._def,
1715
1715
  checks: [
@@ -1718,7 +1718,7 @@ var bn = dr((Tn, Qe) => {
1718
1718
  kind: e,
1719
1719
  value: r,
1720
1720
  inclusive: n,
1721
- message: p.toString(a)
1721
+ message: p.toString(s)
1722
1722
  }
1723
1723
  ]
1724
1724
  });
@@ -1838,26 +1838,26 @@ var bn = dr((Tn, Qe) => {
1838
1838
  if (this._getType(e) !== f.bigint)
1839
1839
  return this._getInvalidInput(e);
1840
1840
  let n;
1841
- const a = new A();
1842
- for (const s of this._def.checks)
1843
- s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1841
+ const s = new A();
1842
+ for (const a of this._def.checks)
1843
+ a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1844
1844
  code: c.too_small,
1845
1845
  type: "bigint",
1846
- minimum: s.value,
1847
- inclusive: s.inclusive,
1848
- message: s.message
1849
- }), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1846
+ minimum: a.value,
1847
+ inclusive: a.inclusive,
1848
+ message: a.message
1849
+ }), s.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1850
1850
  code: c.too_big,
1851
1851
  type: "bigint",
1852
- maximum: s.value,
1853
- inclusive: s.inclusive,
1854
- message: s.message
1855
- }), a.dirty()) : s.kind === "multipleOf" ? e.data % s.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
1852
+ maximum: a.value,
1853
+ inclusive: a.inclusive,
1854
+ message: a.message
1855
+ }), s.dirty()) : a.kind === "multipleOf" ? e.data % a.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
1856
1856
  code: c.not_multiple_of,
1857
- multipleOf: s.value,
1858
- message: s.message
1859
- }), a.dirty()) : w.assertNever(s);
1860
- return { status: a.value, value: e.data };
1857
+ multipleOf: a.value,
1858
+ message: a.message
1859
+ }), s.dirty()) : w.assertNever(a);
1860
+ return { status: s.value, value: e.data };
1861
1861
  }
1862
1862
  _getInvalidInput(e) {
1863
1863
  const r = this._getOrReturnCtx(e);
@@ -1879,7 +1879,7 @@ var bn = dr((Tn, Qe) => {
1879
1879
  lt(e, r) {
1880
1880
  return this.setLimit("max", e, !1, p.toString(r));
1881
1881
  }
1882
- setLimit(e, r, n, a) {
1882
+ setLimit(e, r, n, s) {
1883
1883
  return new ve({
1884
1884
  ...this._def,
1885
1885
  checks: [
@@ -1888,7 +1888,7 @@ var bn = dr((Tn, Qe) => {
1888
1888
  kind: e,
1889
1889
  value: r,
1890
1890
  inclusive: n,
1891
- message: p.toString(a)
1891
+ message: p.toString(s)
1892
1892
  }
1893
1893
  ]
1894
1894
  });
@@ -1957,7 +1957,7 @@ var bn = dr((Tn, Qe) => {
1957
1957
  coerce: t?.coerce ?? !1,
1958
1958
  ..._(t)
1959
1959
  });
1960
- class Ue extends v {
1960
+ class He extends v {
1961
1961
  _parse(e) {
1962
1962
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== f.boolean) {
1963
1963
  const n = this._getOrReturnCtx(e);
@@ -1970,52 +1970,52 @@ var bn = dr((Tn, Qe) => {
1970
1970
  return P(e.data);
1971
1971
  }
1972
1972
  }
1973
- Ue.create = (t) => new Ue({
1973
+ He.create = (t) => new He({
1974
1974
  typeName: m.ZodBoolean,
1975
1975
  coerce: t?.coerce || !1,
1976
1976
  ..._(t)
1977
1977
  });
1978
- class Ce extends v {
1978
+ class Ae extends v {
1979
1979
  _parse(e) {
1980
1980
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== f.date) {
1981
- const s = this._getOrReturnCtx(e);
1982
- return u(s, {
1981
+ const a = this._getOrReturnCtx(e);
1982
+ return u(a, {
1983
1983
  code: c.invalid_type,
1984
1984
  expected: f.date,
1985
- received: s.parsedType
1985
+ received: a.parsedType
1986
1986
  }), g;
1987
1987
  }
1988
1988
  if (Number.isNaN(e.data.getTime())) {
1989
- const s = this._getOrReturnCtx(e);
1990
- return u(s, {
1989
+ const a = this._getOrReturnCtx(e);
1990
+ return u(a, {
1991
1991
  code: c.invalid_date
1992
1992
  }), g;
1993
1993
  }
1994
1994
  const n = new A();
1995
- let a;
1996
- for (const s of this._def.checks)
1997
- s.kind === "min" ? e.data.getTime() < s.value && (a = this._getOrReturnCtx(e, a), u(a, {
1995
+ let s;
1996
+ for (const a of this._def.checks)
1997
+ a.kind === "min" ? e.data.getTime() < a.value && (s = this._getOrReturnCtx(e, s), u(s, {
1998
1998
  code: c.too_small,
1999
- message: s.message,
1999
+ message: a.message,
2000
2000
  inclusive: !0,
2001
2001
  exact: !1,
2002
- minimum: s.value,
2002
+ minimum: a.value,
2003
2003
  type: "date"
2004
- }), n.dirty()) : s.kind === "max" ? e.data.getTime() > s.value && (a = this._getOrReturnCtx(e, a), u(a, {
2004
+ }), n.dirty()) : a.kind === "max" ? e.data.getTime() > a.value && (s = this._getOrReturnCtx(e, s), u(s, {
2005
2005
  code: c.too_big,
2006
- message: s.message,
2006
+ message: a.message,
2007
2007
  inclusive: !0,
2008
2008
  exact: !1,
2009
- maximum: s.value,
2009
+ maximum: a.value,
2010
2010
  type: "date"
2011
- }), n.dirty()) : w.assertNever(s);
2011
+ }), n.dirty()) : w.assertNever(a);
2012
2012
  return {
2013
2013
  status: n.value,
2014
2014
  value: new Date(e.data.getTime())
2015
2015
  };
2016
2016
  }
2017
2017
  _addCheck(e) {
2018
- return new Ce({
2018
+ return new Ae({
2019
2019
  ...this._def,
2020
2020
  checks: [...this._def.checks, e]
2021
2021
  });
@@ -2047,13 +2047,13 @@ var bn = dr((Tn, Qe) => {
2047
2047
  return e != null ? new Date(e) : null;
2048
2048
  }
2049
2049
  }
2050
- Ce.create = (t) => new Ce({
2050
+ Ae.create = (t) => new Ae({
2051
2051
  checks: [],
2052
2052
  coerce: t?.coerce || !1,
2053
2053
  typeName: m.ZodDate,
2054
2054
  ..._(t)
2055
2055
  });
2056
- class ct extends v {
2056
+ class lt extends v {
2057
2057
  _parse(e) {
2058
2058
  if (this._getType(e) !== f.symbol) {
2059
2059
  const n = this._getOrReturnCtx(e);
@@ -2066,11 +2066,11 @@ var bn = dr((Tn, Qe) => {
2066
2066
  return P(e.data);
2067
2067
  }
2068
2068
  }
2069
- ct.create = (t) => new ct({
2069
+ lt.create = (t) => new lt({
2070
2070
  typeName: m.ZodSymbol,
2071
2071
  ..._(t)
2072
2072
  });
2073
- class lt extends v {
2073
+ class ut extends v {
2074
2074
  _parse(e) {
2075
2075
  if (this._getType(e) !== f.undefined) {
2076
2076
  const n = this._getOrReturnCtx(e);
@@ -2083,11 +2083,11 @@ var bn = dr((Tn, Qe) => {
2083
2083
  return P(e.data);
2084
2084
  }
2085
2085
  }
2086
- lt.create = (t) => new lt({
2086
+ ut.create = (t) => new ut({
2087
2087
  typeName: m.ZodUndefined,
2088
2088
  ..._(t)
2089
2089
  });
2090
- class ut extends v {
2090
+ class ft extends v {
2091
2091
  _parse(e) {
2092
2092
  if (this._getType(e) !== f.null) {
2093
2093
  const n = this._getOrReturnCtx(e);
@@ -2100,11 +2100,11 @@ var bn = dr((Tn, Qe) => {
2100
2100
  return P(e.data);
2101
2101
  }
2102
2102
  }
2103
- ut.create = (t) => new ut({
2103
+ ft.create = (t) => new ft({
2104
2104
  typeName: m.ZodNull,
2105
2105
  ..._(t)
2106
2106
  });
2107
- class ft extends v {
2107
+ class ht extends v {
2108
2108
  constructor() {
2109
2109
  super(...arguments), this._any = !0;
2110
2110
  }
@@ -2112,11 +2112,11 @@ var bn = dr((Tn, Qe) => {
2112
2112
  return P(e.data);
2113
2113
  }
2114
2114
  }
2115
- ft.create = (t) => new ft({
2115
+ ht.create = (t) => new ht({
2116
2116
  typeName: m.ZodAny,
2117
2117
  ..._(t)
2118
2118
  });
2119
- class ht extends v {
2119
+ class pt extends v {
2120
2120
  constructor() {
2121
2121
  super(...arguments), this._unknown = !0;
2122
2122
  }
@@ -2124,7 +2124,7 @@ var bn = dr((Tn, Qe) => {
2124
2124
  return P(e.data);
2125
2125
  }
2126
2126
  }
2127
- ht.create = (t) => new ht({
2127
+ pt.create = (t) => new pt({
2128
2128
  typeName: m.ZodUnknown,
2129
2129
  ..._(t)
2130
2130
  });
@@ -2142,7 +2142,7 @@ var bn = dr((Tn, Qe) => {
2142
2142
  typeName: m.ZodNever,
2143
2143
  ..._(t)
2144
2144
  });
2145
- class pt extends v {
2145
+ class mt extends v {
2146
2146
  _parse(e) {
2147
2147
  if (this._getType(e) !== f.undefined) {
2148
2148
  const n = this._getOrReturnCtx(e);
@@ -2155,49 +2155,49 @@ var bn = dr((Tn, Qe) => {
2155
2155
  return P(e.data);
2156
2156
  }
2157
2157
  }
2158
- pt.create = (t) => new pt({
2158
+ mt.create = (t) => new mt({
2159
2159
  typeName: m.ZodVoid,
2160
2160
  ..._(t)
2161
2161
  });
2162
2162
  class Z extends v {
2163
2163
  _parse(e) {
2164
- const { ctx: r, status: n } = this._processInputParams(e), a = this._def;
2164
+ const { ctx: r, status: n } = this._processInputParams(e), s = this._def;
2165
2165
  if (r.parsedType !== f.array)
2166
2166
  return u(r, {
2167
2167
  code: c.invalid_type,
2168
2168
  expected: f.array,
2169
2169
  received: r.parsedType
2170
2170
  }), g;
2171
- if (a.exactLength !== null) {
2172
- const i = r.data.length > a.exactLength.value, o = r.data.length < a.exactLength.value;
2171
+ if (s.exactLength !== null) {
2172
+ const i = r.data.length > s.exactLength.value, o = r.data.length < s.exactLength.value;
2173
2173
  (i || o) && (u(r, {
2174
2174
  code: i ? c.too_big : c.too_small,
2175
- minimum: o ? a.exactLength.value : void 0,
2176
- maximum: i ? a.exactLength.value : void 0,
2175
+ minimum: o ? s.exactLength.value : void 0,
2176
+ maximum: i ? s.exactLength.value : void 0,
2177
2177
  type: "array",
2178
2178
  inclusive: !0,
2179
2179
  exact: !0,
2180
- message: a.exactLength.message
2180
+ message: s.exactLength.message
2181
2181
  }), n.dirty());
2182
2182
  }
2183
- if (a.minLength !== null && r.data.length < a.minLength.value && (u(r, {
2183
+ if (s.minLength !== null && r.data.length < s.minLength.value && (u(r, {
2184
2184
  code: c.too_small,
2185
- minimum: a.minLength.value,
2185
+ minimum: s.minLength.value,
2186
2186
  type: "array",
2187
2187
  inclusive: !0,
2188
2188
  exact: !1,
2189
- message: a.minLength.message
2190
- }), n.dirty()), a.maxLength !== null && r.data.length > a.maxLength.value && (u(r, {
2189
+ message: s.minLength.message
2190
+ }), n.dirty()), s.maxLength !== null && r.data.length > s.maxLength.value && (u(r, {
2191
2191
  code: c.too_big,
2192
- maximum: a.maxLength.value,
2192
+ maximum: s.maxLength.value,
2193
2193
  type: "array",
2194
2194
  inclusive: !0,
2195
2195
  exact: !1,
2196
- message: a.maxLength.message
2196
+ message: s.maxLength.message
2197
2197
  }), n.dirty()), r.common.async)
2198
- return Promise.all([...r.data].map((i, o) => a.type._parseAsync(new M(r, i, r.path, o)))).then((i) => A.mergeArray(n, i));
2199
- const s = [...r.data].map((i, o) => a.type._parseSync(new M(r, i, r.path, o)));
2200
- return A.mergeArray(n, s);
2198
+ return Promise.all([...r.data].map((i, o) => s.type._parseAsync(new M(r, i, r.path, o)))).then((i) => A.mergeArray(n, i));
2199
+ const a = [...r.data].map((i, o) => s.type._parseSync(new M(r, i, r.path, o)));
2200
+ return A.mergeArray(n, a);
2201
2201
  }
2202
2202
  get element() {
2203
2203
  return this._def.type;
@@ -2232,12 +2232,12 @@ var bn = dr((Tn, Qe) => {
2232
2232
  typeName: m.ZodArray,
2233
2233
  ..._(e)
2234
2234
  });
2235
- function se(t) {
2235
+ function ae(t) {
2236
2236
  if (t instanceof T) {
2237
2237
  const e = {};
2238
2238
  for (const r in t.shape) {
2239
2239
  const n = t.shape[r];
2240
- e[r] = B.create(se(n));
2240
+ e[r] = B.create(ae(n));
2241
2241
  }
2242
2242
  return new T({
2243
2243
  ...t._def,
@@ -2245,8 +2245,8 @@ var bn = dr((Tn, Qe) => {
2245
2245
  });
2246
2246
  } else return t instanceof Z ? new Z({
2247
2247
  ...t._def,
2248
- type: se(t.element)
2249
- }) : t instanceof B ? B.create(se(t.unwrap())) : t instanceof ue ? ue.create(se(t.unwrap())) : t instanceof ee ? ee.create(t.items.map((e) => se(e))) : t;
2248
+ type: ae(t.element)
2249
+ }) : t instanceof B ? B.create(ae(t.unwrap())) : t instanceof ue ? ue.create(ae(t.unwrap())) : t instanceof ee ? ee.create(t.items.map((e) => ae(e))) : t;
2250
2250
  }
2251
2251
  class T extends v {
2252
2252
  constructor() {
@@ -2267,17 +2267,17 @@ var bn = dr((Tn, Qe) => {
2267
2267
  received: l.parsedType
2268
2268
  }), g;
2269
2269
  }
2270
- const { status: n, ctx: a } = this._processInputParams(e), { shape: s, keys: i } = this._getCached(), o = [];
2270
+ const { status: n, ctx: s } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
2271
2271
  if (!(this._def.catchall instanceof J && this._def.unknownKeys === "strip"))
2272
- for (const l in a.data)
2272
+ for (const l in s.data)
2273
2273
  i.includes(l) || o.push(l);
2274
2274
  const d = [];
2275
2275
  for (const l of i) {
2276
- const h = s[l], x = a.data[l];
2276
+ const h = a[l], x = s.data[l];
2277
2277
  d.push({
2278
2278
  key: { status: "valid", value: l },
2279
- value: h._parse(new M(a, x, a.path, l)),
2280
- alwaysSet: l in a.data
2279
+ value: h._parse(new M(s, x, s.path, l)),
2280
+ alwaysSet: l in s.data
2281
2281
  });
2282
2282
  }
2283
2283
  if (this._def.catchall instanceof J) {
@@ -2286,10 +2286,10 @@ var bn = dr((Tn, Qe) => {
2286
2286
  for (const h of o)
2287
2287
  d.push({
2288
2288
  key: { status: "valid", value: h },
2289
- value: { status: "valid", value: a.data[h] }
2289
+ value: { status: "valid", value: s.data[h] }
2290
2290
  });
2291
2291
  else if (l === "strict")
2292
- o.length > 0 && (u(a, {
2292
+ o.length > 0 && (u(s, {
2293
2293
  code: c.unrecognized_keys,
2294
2294
  keys: o
2295
2295
  }), n.dirty());
@@ -2297,18 +2297,18 @@ var bn = dr((Tn, Qe) => {
2297
2297
  } else {
2298
2298
  const l = this._def.catchall;
2299
2299
  for (const h of o) {
2300
- const x = a.data[h];
2300
+ const x = s.data[h];
2301
2301
  d.push({
2302
2302
  key: { status: "valid", value: h },
2303
2303
  value: l._parse(
2304
- new M(a, x, a.path, h)
2304
+ new M(s, x, s.path, h)
2305
2305
  //, ctx.child(key), value, getParsedType(value)
2306
2306
  ),
2307
- alwaysSet: h in a.data
2307
+ alwaysSet: h in s.data
2308
2308
  });
2309
2309
  }
2310
2310
  }
2311
- return a.common.async ? Promise.resolve().then(async () => {
2311
+ return s.common.async ? Promise.resolve().then(async () => {
2312
2312
  const l = [];
2313
2313
  for (const h of d) {
2314
2314
  const x = await h.key, S = await h.value;
@@ -2330,11 +2330,11 @@ var bn = dr((Tn, Qe) => {
2330
2330
  unknownKeys: "strict",
2331
2331
  ...e !== void 0 ? {
2332
2332
  errorMap: (r, n) => {
2333
- const a = this._def.errorMap?.(r, n).message ?? n.defaultError;
2333
+ const s = this._def.errorMap?.(r, n).message ?? n.defaultError;
2334
2334
  return r.code === "unrecognized_keys" ? {
2335
- message: p.errToObj(e).message ?? a
2335
+ message: p.errToObj(e).message ?? s
2336
2336
  } : {
2337
- message: a
2337
+ message: s
2338
2338
  };
2339
2339
  }
2340
2340
  } : {}
@@ -2481,13 +2481,13 @@ var bn = dr((Tn, Qe) => {
2481
2481
  * @deprecated
2482
2482
  */
2483
2483
  deepPartial() {
2484
- return se(this);
2484
+ return ae(this);
2485
2485
  }
2486
2486
  partial(e) {
2487
2487
  const r = {};
2488
2488
  for (const n of w.objectKeys(this.shape)) {
2489
- const a = this.shape[n];
2490
- e && !e[n] ? r[n] = a : r[n] = a.optional();
2489
+ const s = this.shape[n];
2490
+ e && !e[n] ? r[n] = s : r[n] = s.optional();
2491
2491
  }
2492
2492
  return new T({
2493
2493
  ...this._def,
@@ -2500,10 +2500,10 @@ var bn = dr((Tn, Qe) => {
2500
2500
  if (e && !e[n])
2501
2501
  r[n] = this.shape[n];
2502
2502
  else {
2503
- let s = this.shape[n];
2504
- for (; s instanceof B; )
2505
- s = s._def.innerType;
2506
- r[n] = s;
2503
+ let a = this.shape[n];
2504
+ for (; a instanceof B; )
2505
+ a = a._def.innerType;
2506
+ r[n] = a;
2507
2507
  }
2508
2508
  return new T({
2509
2509
  ...this._def,
@@ -2511,7 +2511,7 @@ var bn = dr((Tn, Qe) => {
2511
2511
  });
2512
2512
  }
2513
2513
  keyof() {
2514
- return Qt(w.objectKeys(this.shape));
2514
+ return Xt(w.objectKeys(this.shape));
2515
2515
  }
2516
2516
  }
2517
2517
  T.create = (t, e) => new T({
@@ -2535,24 +2535,24 @@ var bn = dr((Tn, Qe) => {
2535
2535
  typeName: m.ZodObject,
2536
2536
  ..._(e)
2537
2537
  });
2538
- class Ae extends v {
2538
+ class Ie extends v {
2539
2539
  _parse(e) {
2540
2540
  const { ctx: r } = this._processInputParams(e), n = this._def.options;
2541
- function a(s) {
2542
- for (const o of s)
2541
+ function s(a) {
2542
+ for (const o of a)
2543
2543
  if (o.result.status === "valid")
2544
2544
  return o.result;
2545
- for (const o of s)
2545
+ for (const o of a)
2546
2546
  if (o.result.status === "dirty")
2547
2547
  return r.common.issues.push(...o.ctx.common.issues), o.result;
2548
- const i = s.map((o) => new V(o.ctx.common.issues));
2548
+ const i = a.map((o) => new V(o.ctx.common.issues));
2549
2549
  return u(r, {
2550
2550
  code: c.invalid_union,
2551
2551
  unionErrors: i
2552
2552
  }), g;
2553
2553
  }
2554
2554
  if (r.common.async)
2555
- return Promise.all(n.map(async (s) => {
2555
+ return Promise.all(n.map(async (a) => {
2556
2556
  const i = {
2557
2557
  ...r,
2558
2558
  common: {
@@ -2562,16 +2562,16 @@ var bn = dr((Tn, Qe) => {
2562
2562
  parent: null
2563
2563
  };
2564
2564
  return {
2565
- result: await s._parseAsync({
2565
+ result: await a._parseAsync({
2566
2566
  data: r.data,
2567
2567
  path: r.path,
2568
2568
  parent: i
2569
2569
  }),
2570
2570
  ctx: i
2571
2571
  };
2572
- })).then(a);
2572
+ })).then(s);
2573
2573
  {
2574
- let s;
2574
+ let a;
2575
2575
  const i = [];
2576
2576
  for (const d of n) {
2577
2577
  const l = {
@@ -2588,10 +2588,10 @@ var bn = dr((Tn, Qe) => {
2588
2588
  });
2589
2589
  if (h.status === "valid")
2590
2590
  return h;
2591
- h.status === "dirty" && !s && (s = { result: h, ctx: l }), l.common.issues.length && i.push(l.common.issues);
2591
+ h.status === "dirty" && !a && (a = { result: h, ctx: l }), l.common.issues.length && i.push(l.common.issues);
2592
2592
  }
2593
- if (s)
2594
- return r.common.issues.push(...s.ctx.common.issues), s.result;
2593
+ if (a)
2594
+ return r.common.issues.push(...a.ctx.common.issues), a.result;
2595
2595
  const o = i.map((d) => new V(d));
2596
2596
  return u(r, {
2597
2597
  code: c.invalid_union,
@@ -2603,19 +2603,19 @@ var bn = dr((Tn, Qe) => {
2603
2603
  return this._def.options;
2604
2604
  }
2605
2605
  }
2606
- Ae.create = (t, e) => new Ae({
2606
+ Ie.create = (t, e) => new Ie({
2607
2607
  options: t,
2608
2608
  typeName: m.ZodUnion,
2609
2609
  ..._(e)
2610
2610
  });
2611
- function He(t, e) {
2611
+ function Be(t, e) {
2612
2612
  const r = U(t), n = U(e);
2613
2613
  if (t === e)
2614
2614
  return { valid: !0, data: t };
2615
2615
  if (r === f.object && n === f.object) {
2616
- const a = w.objectKeys(e), s = w.objectKeys(t).filter((o) => a.indexOf(o) !== -1), i = { ...t, ...e };
2617
- for (const o of s) {
2618
- const d = He(t[o], e[o]);
2616
+ const s = w.objectKeys(e), a = w.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
2617
+ for (const o of a) {
2618
+ const d = Be(t[o], e[o]);
2619
2619
  if (!d.valid)
2620
2620
  return { valid: !1 };
2621
2621
  i[o] = d.data;
@@ -2624,23 +2624,23 @@ var bn = dr((Tn, Qe) => {
2624
2624
  } else if (r === f.array && n === f.array) {
2625
2625
  if (t.length !== e.length)
2626
2626
  return { valid: !1 };
2627
- const a = [];
2628
- for (let s = 0; s < t.length; s++) {
2629
- const i = t[s], o = e[s], d = He(i, o);
2627
+ const s = [];
2628
+ for (let a = 0; a < t.length; a++) {
2629
+ const i = t[a], o = e[a], d = Be(i, o);
2630
2630
  if (!d.valid)
2631
2631
  return { valid: !1 };
2632
- a.push(d.data);
2632
+ s.push(d.data);
2633
2633
  }
2634
- return { valid: !0, data: a };
2634
+ return { valid: !0, data: s };
2635
2635
  } else return r === f.date && n === f.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2636
2636
  }
2637
- class Ie extends v {
2637
+ class Pe extends v {
2638
2638
  _parse(e) {
2639
- const { status: r, ctx: n } = this._processInputParams(e), a = (s, i) => {
2640
- if (it(s) || it(i))
2639
+ const { status: r, ctx: n } = this._processInputParams(e), s = (a, i) => {
2640
+ if (ot(a) || ot(i))
2641
2641
  return g;
2642
- const o = He(s.value, i.value);
2643
- return o.valid ? ((ot(s) || ot(i)) && r.dirty(), { status: r.value, value: o.data }) : (u(n, {
2642
+ const o = Be(a.value, i.value);
2643
+ return o.valid ? ((dt(a) || dt(i)) && r.dirty(), { status: r.value, value: o.data }) : (u(n, {
2644
2644
  code: c.invalid_intersection_types
2645
2645
  }), g);
2646
2646
  };
@@ -2655,7 +2655,7 @@ var bn = dr((Tn, Qe) => {
2655
2655
  path: n.path,
2656
2656
  parent: n
2657
2657
  })
2658
- ]).then(([s, i]) => a(s, i)) : a(this._def.left._parseSync({
2658
+ ]).then(([a, i]) => s(a, i)) : s(this._def.left._parseSync({
2659
2659
  data: n.data,
2660
2660
  path: n.path,
2661
2661
  parent: n
@@ -2666,7 +2666,7 @@ var bn = dr((Tn, Qe) => {
2666
2666
  }));
2667
2667
  }
2668
2668
  }
2669
- Ie.create = (t, e, r) => new Ie({
2669
+ Pe.create = (t, e, r) => new Pe({
2670
2670
  left: t,
2671
2671
  right: e,
2672
2672
  typeName: m.ZodIntersection,
@@ -2696,11 +2696,11 @@ var bn = dr((Tn, Qe) => {
2696
2696
  exact: !1,
2697
2697
  type: "array"
2698
2698
  }), r.dirty());
2699
- const s = [...n.data].map((i, o) => {
2699
+ const a = [...n.data].map((i, o) => {
2700
2700
  const d = this._def.items[o] || this._def.rest;
2701
2701
  return d ? d._parse(new M(n, i, n.path, o)) : null;
2702
2702
  }).filter((i) => !!i);
2703
- return n.common.async ? Promise.all(s).then((i) => A.mergeArray(r, i)) : A.mergeArray(r, s);
2703
+ return n.common.async ? Promise.all(a).then((i) => A.mergeArray(r, i)) : A.mergeArray(r, a);
2704
2704
  }
2705
2705
  get items() {
2706
2706
  return this._def.items;
@@ -2722,7 +2722,7 @@ var bn = dr((Tn, Qe) => {
2722
2722
  ..._(e)
2723
2723
  });
2724
2724
  };
2725
- class Pe extends v {
2725
+ class je extends v {
2726
2726
  get keySchema() {
2727
2727
  return this._def.keyType;
2728
2728
  }
@@ -2737,25 +2737,25 @@ var bn = dr((Tn, Qe) => {
2737
2737
  expected: f.object,
2738
2738
  received: n.parsedType
2739
2739
  }), g;
2740
- const a = [], s = this._def.keyType, i = this._def.valueType;
2740
+ const s = [], a = this._def.keyType, i = this._def.valueType;
2741
2741
  for (const o in n.data)
2742
- a.push({
2743
- key: s._parse(new M(n, o, n.path, o)),
2742
+ s.push({
2743
+ key: a._parse(new M(n, o, n.path, o)),
2744
2744
  value: i._parse(new M(n, n.data[o], n.path, o)),
2745
2745
  alwaysSet: o in n.data
2746
2746
  });
2747
- return n.common.async ? A.mergeObjectAsync(r, a) : A.mergeObjectSync(r, a);
2747
+ return n.common.async ? A.mergeObjectAsync(r, s) : A.mergeObjectSync(r, s);
2748
2748
  }
2749
2749
  get element() {
2750
2750
  return this._def.valueType;
2751
2751
  }
2752
2752
  static create(e, r, n) {
2753
- return r instanceof v ? new Pe({
2753
+ return r instanceof v ? new je({
2754
2754
  keyType: e,
2755
2755
  valueType: r,
2756
2756
  typeName: m.ZodRecord,
2757
2757
  ..._(n)
2758
- }) : new Pe({
2758
+ }) : new je({
2759
2759
  keyType: q.create(),
2760
2760
  valueType: e,
2761
2761
  typeName: m.ZodRecord,
@@ -2763,7 +2763,7 @@ var bn = dr((Tn, Qe) => {
2763
2763
  });
2764
2764
  }
2765
2765
  }
2766
- class mt extends v {
2766
+ class yt extends v {
2767
2767
  get keySchema() {
2768
2768
  return this._def.keyType;
2769
2769
  }
@@ -2778,9 +2778,9 @@ var bn = dr((Tn, Qe) => {
2778
2778
  expected: f.map,
2779
2779
  received: n.parsedType
2780
2780
  }), g;
2781
- const a = this._def.keyType, s = this._def.valueType, i = [...n.data.entries()].map(([o, d], l) => ({
2782
- key: a._parse(new M(n, o, n.path, [l, "key"])),
2783
- value: s._parse(new M(n, d, n.path, [l, "value"]))
2781
+ const s = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, d], l) => ({
2782
+ key: s._parse(new M(n, o, n.path, [l, "key"])),
2783
+ value: a._parse(new M(n, d, n.path, [l, "value"]))
2784
2784
  }));
2785
2785
  if (n.common.async) {
2786
2786
  const o = /* @__PURE__ */ new Map();
@@ -2805,7 +2805,7 @@ var bn = dr((Tn, Qe) => {
2805
2805
  }
2806
2806
  }
2807
2807
  }
2808
- mt.create = (t, e, r) => new mt({
2808
+ yt.create = (t, e, r) => new yt({
2809
2809
  valueType: e,
2810
2810
  keyType: t,
2811
2811
  typeName: m.ZodMap,
@@ -2820,23 +2820,23 @@ var bn = dr((Tn, Qe) => {
2820
2820
  expected: f.set,
2821
2821
  received: n.parsedType
2822
2822
  }), g;
2823
- const a = this._def;
2824
- a.minSize !== null && n.data.size < a.minSize.value && (u(n, {
2823
+ const s = this._def;
2824
+ s.minSize !== null && n.data.size < s.minSize.value && (u(n, {
2825
2825
  code: c.too_small,
2826
- minimum: a.minSize.value,
2826
+ minimum: s.minSize.value,
2827
2827
  type: "set",
2828
2828
  inclusive: !0,
2829
2829
  exact: !1,
2830
- message: a.minSize.message
2831
- }), r.dirty()), a.maxSize !== null && n.data.size > a.maxSize.value && (u(n, {
2830
+ message: s.minSize.message
2831
+ }), r.dirty()), s.maxSize !== null && n.data.size > s.maxSize.value && (u(n, {
2832
2832
  code: c.too_big,
2833
- maximum: a.maxSize.value,
2833
+ maximum: s.maxSize.value,
2834
2834
  type: "set",
2835
2835
  inclusive: !0,
2836
2836
  exact: !1,
2837
- message: a.maxSize.message
2837
+ message: s.maxSize.message
2838
2838
  }), r.dirty());
2839
- const s = this._def.valueType;
2839
+ const a = this._def.valueType;
2840
2840
  function i(d) {
2841
2841
  const l = /* @__PURE__ */ new Set();
2842
2842
  for (const h of d) {
@@ -2846,7 +2846,7 @@ var bn = dr((Tn, Qe) => {
2846
2846
  }
2847
2847
  return { status: r.value, value: l };
2848
2848
  }
2849
- const o = [...n.data.values()].map((d, l) => s._parse(new M(n, d, n.path, l)));
2849
+ const o = [...n.data.values()].map((d, l) => a._parse(new M(n, d, n.path, l)));
2850
2850
  return n.common.async ? Promise.all(o).then((d) => i(d)) : i(o);
2851
2851
  }
2852
2852
  min(e, r) {
@@ -2875,7 +2875,7 @@ var bn = dr((Tn, Qe) => {
2875
2875
  typeName: m.ZodSet,
2876
2876
  ..._(e)
2877
2877
  });
2878
- class yt extends v {
2878
+ class gt extends v {
2879
2879
  get schema() {
2880
2880
  return this._def.getter();
2881
2881
  }
@@ -2884,12 +2884,12 @@ var bn = dr((Tn, Qe) => {
2884
2884
  return this._def.getter()._parse({ data: r.data, path: r.path, parent: r });
2885
2885
  }
2886
2886
  }
2887
- yt.create = (t, e) => new yt({
2887
+ gt.create = (t, e) => new gt({
2888
2888
  getter: t,
2889
2889
  typeName: m.ZodLazy,
2890
2890
  ..._(e)
2891
2891
  });
2892
- class gt extends v {
2892
+ class _t extends v {
2893
2893
  _parse(e) {
2894
2894
  if (e.data !== this._def.value) {
2895
2895
  const r = this._getOrReturnCtx(e);
@@ -2905,12 +2905,12 @@ var bn = dr((Tn, Qe) => {
2905
2905
  return this._def.value;
2906
2906
  }
2907
2907
  }
2908
- gt.create = (t, e) => new gt({
2908
+ _t.create = (t, e) => new _t({
2909
2909
  value: t,
2910
2910
  typeName: m.ZodLiteral,
2911
2911
  ..._(e)
2912
2912
  });
2913
- function Qt(t, e) {
2913
+ function Xt(t, e) {
2914
2914
  return new ce({
2915
2915
  values: t,
2916
2916
  typeName: m.ZodEnum,
@@ -2971,24 +2971,24 @@ var bn = dr((Tn, Qe) => {
2971
2971
  });
2972
2972
  }
2973
2973
  }
2974
- ce.create = Qt;
2975
- class _t extends v {
2974
+ ce.create = Xt;
2975
+ class vt extends v {
2976
2976
  _parse(e) {
2977
2977
  const r = w.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
2978
2978
  if (n.parsedType !== f.string && n.parsedType !== f.number) {
2979
- const a = w.objectValues(r);
2979
+ const s = w.objectValues(r);
2980
2980
  return u(n, {
2981
- expected: w.joinValues(a),
2981
+ expected: w.joinValues(s),
2982
2982
  received: n.parsedType,
2983
2983
  code: c.invalid_type
2984
2984
  }), g;
2985
2985
  }
2986
2986
  if (this._cache || (this._cache = new Set(w.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2987
- const a = w.objectValues(r);
2987
+ const s = w.objectValues(r);
2988
2988
  return u(n, {
2989
2989
  received: n.data,
2990
2990
  code: c.invalid_enum_value,
2991
- options: a
2991
+ options: s
2992
2992
  }), g;
2993
2993
  }
2994
2994
  return P(e.data);
@@ -2997,12 +2997,12 @@ var bn = dr((Tn, Qe) => {
2997
2997
  return this._def.values;
2998
2998
  }
2999
2999
  }
3000
- _t.create = (t, e) => new _t({
3000
+ vt.create = (t, e) => new vt({
3001
3001
  values: t,
3002
3002
  typeName: m.ZodNativeEnum,
3003
3003
  ..._(e)
3004
3004
  });
3005
- class je extends v {
3005
+ class $e extends v {
3006
3006
  unwrap() {
3007
3007
  return this._def.type;
3008
3008
  }
@@ -3015,13 +3015,13 @@ var bn = dr((Tn, Qe) => {
3015
3015
  received: r.parsedType
3016
3016
  }), g;
3017
3017
  const n = r.parsedType === f.promise ? r.data : Promise.resolve(r.data);
3018
- return P(n.then((a) => this._def.type.parseAsync(a, {
3018
+ return P(n.then((s) => this._def.type.parseAsync(s, {
3019
3019
  path: r.path,
3020
3020
  errorMap: r.common.contextualErrorMap
3021
3021
  })));
3022
3022
  }
3023
3023
  }
3024
- je.create = (t, e) => new je({
3024
+ $e.create = (t, e) => new $e({
3025
3025
  type: t,
3026
3026
  typeName: m.ZodPromise,
3027
3027
  ..._(e)
@@ -3034,7 +3034,7 @@ var bn = dr((Tn, Qe) => {
3034
3034
  return this._def.schema._def.typeName === m.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3035
3035
  }
3036
3036
  _parse(e) {
3037
- const { status: r, ctx: n } = this._processInputParams(e), a = this._def.effect || null, s = {
3037
+ const { status: r, ctx: n } = this._processInputParams(e), s = this._def.effect || null, a = {
3038
3038
  addIssue: (i) => {
3039
3039
  u(n, i), i.fatal ? r.abort() : r.dirty();
3040
3040
  },
@@ -3042,8 +3042,8 @@ var bn = dr((Tn, Qe) => {
3042
3042
  return n.path;
3043
3043
  }
3044
3044
  };
3045
- if (s.addIssue = s.addIssue.bind(s), a.type === "preprocess") {
3046
- const i = a.transform(n.data, s);
3045
+ if (a.addIssue = a.addIssue.bind(a), s.type === "preprocess") {
3046
+ const i = s.transform(n.data, a);
3047
3047
  if (n.common.async)
3048
3048
  return Promise.resolve(i).then(async (o) => {
3049
3049
  if (r.value === "aborted")
@@ -3066,9 +3066,9 @@ var bn = dr((Tn, Qe) => {
3066
3066
  return o.status === "aborted" ? g : o.status === "dirty" || r.value === "dirty" ? ge(o.value) : o;
3067
3067
  }
3068
3068
  }
3069
- if (a.type === "refinement") {
3069
+ if (s.type === "refinement") {
3070
3070
  const i = (o) => {
3071
- const d = a.refinement(o, s);
3071
+ const d = s.refinement(o, a);
3072
3072
  if (n.common.async)
3073
3073
  return Promise.resolve(d);
3074
3074
  if (d instanceof Promise)
@@ -3085,7 +3085,7 @@ var bn = dr((Tn, Qe) => {
3085
3085
  } else
3086
3086
  return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? g : (o.status === "dirty" && r.dirty(), i(o.value).then(() => ({ status: r.value, value: o.value }))));
3087
3087
  }
3088
- if (a.type === "transform")
3088
+ if (s.type === "transform")
3089
3089
  if (n.common.async === !1) {
3090
3090
  const i = this._def.schema._parseSync({
3091
3091
  data: n.data,
@@ -3094,16 +3094,16 @@ var bn = dr((Tn, Qe) => {
3094
3094
  });
3095
3095
  if (!oe(i))
3096
3096
  return g;
3097
- const o = a.transform(i.value, s);
3097
+ const o = s.transform(i.value, a);
3098
3098
  if (o instanceof Promise)
3099
3099
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
3100
3100
  return { status: r.value, value: o };
3101
3101
  } else
3102
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => oe(i) ? Promise.resolve(a.transform(i.value, s)).then((o) => ({
3102
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => oe(i) ? Promise.resolve(s.transform(i.value, a)).then((o) => ({
3103
3103
  status: r.value,
3104
3104
  value: o
3105
3105
  })) : g);
3106
- w.assertNever(a);
3106
+ w.assertNever(s);
3107
3107
  }
3108
3108
  }
3109
3109
  le.create = (t, e, r) => new le({
@@ -3144,7 +3144,7 @@ var bn = dr((Tn, Qe) => {
3144
3144
  typeName: m.ZodNullable,
3145
3145
  ..._(e)
3146
3146
  });
3147
- class Be extends v {
3147
+ class We extends v {
3148
3148
  _parse(e) {
3149
3149
  const { ctx: r } = this._processInputParams(e);
3150
3150
  let n = r.data;
@@ -3158,13 +3158,13 @@ var bn = dr((Tn, Qe) => {
3158
3158
  return this._def.innerType;
3159
3159
  }
3160
3160
  }
3161
- Be.create = (t, e) => new Be({
3161
+ We.create = (t, e) => new We({
3162
3162
  innerType: t,
3163
3163
  typeName: m.ZodDefault,
3164
3164
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
3165
3165
  ..._(e)
3166
3166
  });
3167
- class We extends v {
3167
+ class Je extends v {
3168
3168
  _parse(e) {
3169
3169
  const { ctx: r } = this._processInputParams(e), n = {
3170
3170
  ...r,
@@ -3172,16 +3172,16 @@ var bn = dr((Tn, Qe) => {
3172
3172
  ...r.common,
3173
3173
  issues: []
3174
3174
  }
3175
- }, a = this._def.innerType._parse({
3175
+ }, s = this._def.innerType._parse({
3176
3176
  data: n.data,
3177
3177
  path: n.path,
3178
3178
  parent: {
3179
3179
  ...n
3180
3180
  }
3181
3181
  });
3182
- return Re(a) ? a.then((s) => ({
3182
+ return Ce(s) ? s.then((a) => ({
3183
3183
  status: "valid",
3184
- value: s.status === "valid" ? s.value : this._def.catchValue({
3184
+ value: a.status === "valid" ? a.value : this._def.catchValue({
3185
3185
  get error() {
3186
3186
  return new V(n.common.issues);
3187
3187
  },
@@ -3189,7 +3189,7 @@ var bn = dr((Tn, Qe) => {
3189
3189
  })
3190
3190
  })) : {
3191
3191
  status: "valid",
3192
- value: a.status === "valid" ? a.value : this._def.catchValue({
3192
+ value: s.status === "valid" ? s.value : this._def.catchValue({
3193
3193
  get error() {
3194
3194
  return new V(n.common.issues);
3195
3195
  },
@@ -3201,13 +3201,13 @@ var bn = dr((Tn, Qe) => {
3201
3201
  return this._def.innerType;
3202
3202
  }
3203
3203
  }
3204
- We.create = (t, e) => new We({
3204
+ Je.create = (t, e) => new Je({
3205
3205
  innerType: t,
3206
3206
  typeName: m.ZodCatch,
3207
3207
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3208
3208
  ..._(e)
3209
3209
  });
3210
- class vt extends v {
3210
+ class kt extends v {
3211
3211
  _parse(e) {
3212
3212
  if (this._getType(e) !== f.nan) {
3213
3213
  const n = this._getOrReturnCtx(e);
@@ -3220,11 +3220,11 @@ var bn = dr((Tn, Qe) => {
3220
3220
  return { status: "valid", value: e.data };
3221
3221
  }
3222
3222
  }
3223
- vt.create = (t) => new vt({
3223
+ kt.create = (t) => new kt({
3224
3224
  typeName: m.ZodNaN,
3225
3225
  ..._(t)
3226
3226
  });
3227
- class an extends v {
3227
+ class sn extends v {
3228
3228
  _parse(e) {
3229
3229
  const { ctx: r } = this._processInputParams(e), n = r.data;
3230
3230
  return this._def.type._parse({
@@ -3237,56 +3237,56 @@ var bn = dr((Tn, Qe) => {
3237
3237
  return this._def.type;
3238
3238
  }
3239
3239
  }
3240
- class et extends v {
3240
+ class tt extends v {
3241
3241
  _parse(e) {
3242
3242
  const { status: r, ctx: n } = this._processInputParams(e);
3243
3243
  if (n.common.async)
3244
3244
  return (async () => {
3245
- const s = await this._def.in._parseAsync({
3245
+ const a = await this._def.in._parseAsync({
3246
3246
  data: n.data,
3247
3247
  path: n.path,
3248
3248
  parent: n
3249
3249
  });
3250
- return s.status === "aborted" ? g : s.status === "dirty" ? (r.dirty(), ge(s.value)) : this._def.out._parseAsync({
3251
- data: s.value,
3250
+ return a.status === "aborted" ? g : a.status === "dirty" ? (r.dirty(), ge(a.value)) : this._def.out._parseAsync({
3251
+ data: a.value,
3252
3252
  path: n.path,
3253
3253
  parent: n
3254
3254
  });
3255
3255
  })();
3256
3256
  {
3257
- const a = this._def.in._parseSync({
3257
+ const s = this._def.in._parseSync({
3258
3258
  data: n.data,
3259
3259
  path: n.path,
3260
3260
  parent: n
3261
3261
  });
3262
- return a.status === "aborted" ? g : a.status === "dirty" ? (r.dirty(), {
3262
+ return s.status === "aborted" ? g : s.status === "dirty" ? (r.dirty(), {
3263
3263
  status: "dirty",
3264
- value: a.value
3264
+ value: s.value
3265
3265
  }) : this._def.out._parseSync({
3266
- data: a.value,
3266
+ data: s.value,
3267
3267
  path: n.path,
3268
3268
  parent: n
3269
3269
  });
3270
3270
  }
3271
3271
  }
3272
3272
  static create(e, r) {
3273
- return new et({
3273
+ return new tt({
3274
3274
  in: e,
3275
3275
  out: r,
3276
3276
  typeName: m.ZodPipeline
3277
3277
  });
3278
3278
  }
3279
3279
  }
3280
- class Je extends v {
3280
+ class Ye extends v {
3281
3281
  _parse(e) {
3282
- const r = this._def.innerType._parse(e), n = (a) => (oe(a) && (a.value = Object.freeze(a.value)), a);
3283
- return Re(r) ? r.then((a) => n(a)) : n(r);
3282
+ const r = this._def.innerType._parse(e), n = (s) => (oe(s) && (s.value = Object.freeze(s.value)), s);
3283
+ return Ce(r) ? r.then((s) => n(s)) : n(r);
3284
3284
  }
3285
3285
  unwrap() {
3286
3286
  return this._def.innerType;
3287
3287
  }
3288
3288
  }
3289
- Je.create = (t, e) => new Je({
3289
+ Ye.create = (t, e) => new Ye({
3290
3290
  innerType: t,
3291
3291
  typeName: m.ZodReadonly,
3292
3292
  ..._(e)
@@ -3295,29 +3295,29 @@ var bn = dr((Tn, Qe) => {
3295
3295
  (function(t) {
3296
3296
  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";
3297
3297
  })(m || (m = {}));
3298
- const C = q.create, pe = de.create, F = Ue.create;
3298
+ const O = q.create, pe = de.create, F = He.create;
3299
3299
  J.create;
3300
- const Xt = Z.create, N = T.create, sn = Ae.create;
3301
- Ie.create;
3300
+ const Te = Z.create, N = T.create, an = Ie.create;
3301
+ Pe.create;
3302
3302
  ee.create;
3303
- const on = Pe.create, E = ce.create;
3304
- je.create;
3303
+ const on = je.create, R = ce.create;
3304
+ $e.create;
3305
3305
  B.create;
3306
3306
  ue.create;
3307
- const Ye = N({
3308
- detail: C()
3307
+ const Qe = N({
3308
+ detail: O()
3309
3309
  }), Gt = N({
3310
- error: C()
3310
+ error: O()
3311
3311
  });
3312
3312
  function Kt(t) {
3313
3313
  if (!t)
3314
3314
  return "Unknown error";
3315
3315
  if (t instanceof Error) {
3316
- const e = Ye.safeParse(t.cause);
3316
+ const e = Qe.safeParse(t.cause);
3317
3317
  return e.success ? e.data.detail : dn(t.message);
3318
3318
  }
3319
3319
  if (typeof t == "object") {
3320
- const e = Ye.safeParse(t);
3320
+ const e = Qe.safeParse(t);
3321
3321
  if (e.success)
3322
3322
  return e.data.detail;
3323
3323
  const r = Gt.safeParse(t);
@@ -3334,7 +3334,7 @@ var bn = dr((Tn, Qe) => {
3334
3334
  const e = cn(t);
3335
3335
  if (!e)
3336
3336
  return t;
3337
- const r = Ye.safeParse(e);
3337
+ const r = Qe.safeParse(e);
3338
3338
  if (r.success)
3339
3339
  return r.data.detail;
3340
3340
  const n = Gt.safeParse(e);
@@ -3370,16 +3370,16 @@ var bn = dr((Tn, Qe) => {
3370
3370
  "lazy-polars",
3371
3371
  "pandas"
3372
3372
  ], nr = ["html", "markdown", "ipynb"], te = N({
3373
- api_key: C().optional(),
3374
- base_url: C().optional()
3373
+ api_key: O().optional(),
3374
+ base_url: O().optional()
3375
3375
  }).passthrough(), un = N({
3376
3376
  completion: N({
3377
3377
  activate_on_typing: F().default(!0),
3378
- copilot: sn([F(), E(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
3379
- codeium_api_key: C().nullish()
3378
+ copilot: an([F(), R(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
3379
+ codeium_api_key: O().nullish()
3380
3380
  }).passthrough().default({}),
3381
3381
  save: N({
3382
- autosave: E(["off", "after_delay"]).default("after_delay"),
3382
+ autosave: R(["off", "after_delay"]).default("after_delay"),
3383
3383
  autosave_delay: pe().nonnegative().transform((t) => Math.max(t, 1e3)).default(1e3),
3384
3384
  format_on_save: F().default(!1)
3385
3385
  }).passthrough().default({}),
@@ -3387,50 +3387,56 @@ var bn = dr((Tn, Qe) => {
3387
3387
  line_length: pe().nonnegative().default(79).transform((t) => Math.min(t, 1e3))
3388
3388
  }).passthrough().default({}),
3389
3389
  keymap: N({
3390
- preset: E(["default", "vim"]).default("default"),
3391
- overrides: on(C()).default({}),
3390
+ preset: R(["default", "vim"]).default("default"),
3391
+ overrides: on(O()).default({}),
3392
3392
  destructive_delete: F().default(!0)
3393
3393
  }).passthrough().default({}),
3394
3394
  runtime: N({
3395
3395
  auto_instantiate: F().default(!0),
3396
- on_cell_change: E(["lazy", "autorun"]).default("autorun"),
3397
- auto_reload: E(["off", "lazy", "autorun"]).default("off"),
3398
- watcher_on_save: E(["lazy", "autorun"]).default("lazy"),
3399
- default_sql_output: E(rr).default("auto"),
3400
- default_auto_download: Xt(E(nr)).default([])
3396
+ on_cell_change: R(["lazy", "autorun"]).default("autorun"),
3397
+ auto_reload: R(["off", "lazy", "autorun"]).default("off"),
3398
+ watcher_on_save: R(["lazy", "autorun"]).default("lazy"),
3399
+ default_sql_output: R(rr).default("auto"),
3400
+ default_auto_download: Te(R(nr)).default([])
3401
3401
  }).passthrough().default({}),
3402
3402
  display: N({
3403
- theme: E(["light", "dark", "system"]).default("light"),
3403
+ theme: R(["light", "dark", "system"]).default("light"),
3404
3404
  code_editor_font_size: pe().nonnegative().default(14),
3405
- cell_output: E(["above", "below"]).default("above"),
3406
- dataframes: E(["rich", "plain"]).default("rich"),
3405
+ cell_output: R(["above", "below"]).default("above"),
3406
+ dataframes: R(["rich", "plain"]).default("rich"),
3407
3407
  default_table_page_size: pe().default(10),
3408
3408
  default_table_max_columns: pe().default(50),
3409
- default_width: E(tr).default("medium").transform((t) => t === "normal" ? "compact" : t),
3409
+ default_width: R(tr).default("medium").transform((t) => t === "normal" ? "compact" : t),
3410
3410
  reference_highlighting: F().default(!1)
3411
3411
  }).passthrough().default({}),
3412
3412
  package_management: N({
3413
- manager: E(ln).default("pip")
3413
+ manager: R(ln).default("pip")
3414
3414
  }).passthrough().default({ manager: "pip" }),
3415
3415
  ai: N({
3416
- rules: C().default(""),
3417
- mode: E(["manual", "ask"]).default("manual"),
3418
- // TODO: the model currently exists on the open_ai object, but we should
3419
- // move it to the top level.
3420
- open_ai: te.extend({
3421
- model: C().optional()
3422
- }).passthrough().optional(),
3416
+ rules: O().default(""),
3417
+ mode: R(["manual", "ask"]).default("manual"),
3418
+ open_ai: te.optional(),
3423
3419
  anthropic: te.optional(),
3424
3420
  google: te.optional(),
3425
3421
  ollama: te.optional(),
3426
3422
  open_ai_compatible: te.optional(),
3427
3423
  azure: te.optional(),
3428
3424
  bedrock: N({
3429
- region_name: C().optional(),
3430
- profile_name: C().optional(),
3431
- aws_access_key_id: C().optional(),
3432
- aws_secret_access_key: C().optional()
3433
- }).optional()
3425
+ region_name: O().optional(),
3426
+ profile_name: O().optional(),
3427
+ aws_access_key_id: O().optional(),
3428
+ aws_secret_access_key: O().optional()
3429
+ }).optional(),
3430
+ models: N({
3431
+ chat_model: O().nullish(),
3432
+ edit_model: O().nullish(),
3433
+ autocomplete_model: O().nullish(),
3434
+ displayed_models: Te(O()).default([]),
3435
+ custom_models: Te(O()).default([])
3436
+ }).default({
3437
+ displayed_models: [],
3438
+ custom_models: []
3439
+ })
3434
3440
  }).passthrough().default({}),
3435
3441
  experimental: N({
3436
3442
  markdown: F().optional(),
@@ -3454,21 +3460,22 @@ var bn = dr((Tn, Qe) => {
3454
3460
  ai: {
3455
3461
  rules: "",
3456
3462
  mode: "manual",
3457
- open_ai: {}
3463
+ open_ai: {},
3464
+ models: {}
3458
3465
  }
3459
- }), fn = C(), hn = E(rr).default("auto");
3466
+ }), fn = O(), hn = R(rr).default("auto");
3460
3467
  N({
3461
- width: E(tr).default("medium").transform((t) => t === "normal" ? "compact" : t),
3468
+ width: R(tr).default("medium").transform((t) => t === "normal" ? "compact" : t),
3462
3469
  app_title: fn.nullish(),
3463
- css_file: C().nullish(),
3464
- html_head_file: C().nullish(),
3465
- auto_download: Xt(E(nr)).default([]),
3470
+ css_file: O().nullish(),
3471
+ html_head_file: O().nullish(),
3472
+ auto_download: Te(R(nr)).default([]),
3466
3473
  sql_output: hn
3467
3474
  }).default({ width: "medium", auto_download: [] });
3468
3475
  function pn() {
3469
3476
  return un.parse({});
3470
3477
  }
3471
- const kt = (t) => new TextDecoder().decode(t);
3478
+ const wt = (t) => new TextDecoder().decode(t);
3472
3479
  function _e(t) {
3473
3480
  return t.FS;
3474
3481
  }
@@ -3487,42 +3494,42 @@ var bn = dr((Tn, Qe) => {
3487
3494
  _e(t).mount(t.FS.filesystems.IDBFS, { root: "." }, ye);
3488
3495
  },
3489
3496
  populateFilesToMemory: async (t) => {
3490
- await wt(t, !0);
3497
+ await bt(t, !0);
3491
3498
  },
3492
3499
  persistFilesToRemote: async (t) => {
3493
- await wt(t, !1);
3500
+ await bt(t, !1);
3494
3501
  },
3495
3502
  readNotebook: (t) => {
3496
3503
  const e = _e(t), r = `${ye}/${me}`;
3497
- return kt(e.readFile(r));
3504
+ return wt(e.readFile(r));
3498
3505
  },
3499
3506
  initNotebookCode: (t) => {
3500
- const { pyodide: e, filename: r, code: n } = t, a = _e(e), s = (i) => {
3507
+ const { pyodide: e, filename: r, code: n } = t, s = _e(e), a = (i) => {
3501
3508
  try {
3502
- return kt(a.readFile(i));
3509
+ return wt(s.readFile(i));
3503
3510
  } catch {
3504
3511
  return null;
3505
3512
  }
3506
3513
  };
3507
3514
  if (r && r !== me) {
3508
- const i = s(r);
3515
+ const i = a(r);
3509
3516
  if (i)
3510
3517
  return {
3511
3518
  code: i,
3512
3519
  filename: r
3513
3520
  };
3514
3521
  }
3515
- return a.writeFile(me, n), {
3522
+ return s.writeFile(me, n), {
3516
3523
  code: n,
3517
3524
  filename: me
3518
3525
  };
3519
3526
  }
3520
3527
  };
3521
- function wt(t, e) {
3528
+ function bt(t, e) {
3522
3529
  return new Promise((r, n) => {
3523
- _e(t).syncfs(e, (a) => {
3524
- if (a instanceof Error) {
3525
- n(a);
3530
+ _e(t).syncfs(e, (s) => {
3531
+ if (s instanceof Error) {
3532
+ n(s);
3526
3533
  return;
3527
3534
  }
3528
3535
  r();
@@ -3536,7 +3543,7 @@ var bn = dr((Tn, Qe) => {
3536
3543
  name: e,
3537
3544
  startTime: Date.now(),
3538
3545
  attributes: r,
3539
- end: (a = "ok") => this.endSpan(n, a)
3546
+ end: (s = "ok") => this.endSpan(n, s)
3540
3547
  };
3541
3548
  return this.spans.push(n), n;
3542
3549
  }
@@ -3547,22 +3554,22 @@ var bn = dr((Tn, Qe) => {
3547
3554
  return this.spans;
3548
3555
  }
3549
3556
  wrap(e, r, n = {}) {
3550
- const a = this.startSpan(r || e.name, n);
3557
+ const s = this.startSpan(r || e.name, n);
3551
3558
  try {
3552
- const s = e();
3553
- return this.endSpan(a), s;
3554
- } catch (s) {
3555
- throw this.endSpan(a, "error"), s;
3559
+ const a = e();
3560
+ return this.endSpan(s), a;
3561
+ } catch (a) {
3562
+ throw this.endSpan(s, "error"), a;
3556
3563
  }
3557
3564
  }
3558
3565
  wrapAsync(e, r, n = {}) {
3559
- return async (...a) => {
3560
- const s = this.startSpan(r || e.name, n);
3566
+ return async (...s) => {
3567
+ const a = this.startSpan(r || e.name, n);
3561
3568
  try {
3562
- const i = await e(...a);
3563
- return this.endSpan(s), i;
3569
+ const i = await e(...s);
3570
+ return this.endSpan(a), i;
3564
3571
  } catch (i) {
3565
- throw this.endSpan(s, "error"), i;
3572
+ throw this.endSpan(a, "error"), i;
3566
3573
  }
3567
3574
  };
3568
3575
  }
@@ -3581,11 +3588,11 @@ var bn = dr((Tn, Qe) => {
3581
3588
  return await this.loadPyodideAndPackages(e);
3582
3589
  }
3583
3590
  async loadPyodideAndPackages(e) {
3584
- if (!Ve)
3591
+ if (!ze)
3585
3592
  throw new Error("loadPyodide is not defined");
3586
3593
  const r = ie.startSpan("loadPyodide");
3587
3594
  try {
3588
- const n = await Ve({
3595
+ const n = await ze({
3589
3596
  // Perf: These get loaded while pyodide is being bootstrapped
3590
3597
  packages: [
3591
3598
  "micropip",
@@ -3616,10 +3623,10 @@ var bn = dr((Tn, Qe) => {
3616
3623
  });
3617
3624
  }
3618
3625
  async startSession(e) {
3619
- const { code: r, filename: n, onMessage: a, queryParameters: s, userConfig: i } = e;
3626
+ const { code: r, filename: n, onMessage: s, queryParameters: a, userConfig: i } = e;
3620
3627
  self.messenger = {
3621
- callback: a
3622
- }, self.query_params = s, self.user_config = i;
3628
+ callback: s
3629
+ }, self.query_params = a, self.user_config = i;
3623
3630
  const o = ie.startSpan("startSession.runPython"), d = n || K.NOTEBOOK_FILENAME, [l, h, x] = this.requirePyodide.runPython(
3624
3631
  `
3625
3632
  print("[py] Starting marimo...")
@@ -3662,13 +3669,13 @@ ${e}`, e = `import pygments
3662
3669
  ${e}`, e = `import jedi
3663
3670
  ${e}`, e = `import pyodide_http
3664
3671
  ${e}`;
3665
- const a = [...r];
3666
- let s = ie.startSpan("pyodide.loadPackage");
3672
+ const s = [...r];
3673
+ let a = ie.startSpan("pyodide.loadPackage");
3667
3674
  await n.loadPackagesFromImports(e, {
3668
3675
  errorCallback: H.error,
3669
3676
  messageCallback: H.log
3670
- }), s.end(), s = ie.startSpan("micropip.install");
3671
- const i = a.filter(
3677
+ }), a.end(), a = ie.startSpan("micropip.install");
3678
+ const i = s.filter(
3672
3679
  (o) => !n.loadedPackages[o]
3673
3680
  );
3674
3681
  i.length > 0 && await n.runPythonAsync(`
@@ -3681,7 +3688,7 @@ ${e}`;
3681
3688
  await micropip.install(missing)
3682
3689
  `).catch((o) => {
3683
3690
  H.error("Failed to load packages from micropip", o);
3684
- }), s.end();
3691
+ }), a.end();
3685
3692
  }
3686
3693
  }
3687
3694
  class _n extends gn {
@@ -3696,8 +3703,8 @@ ${e}`;
3696
3703
  code: r,
3697
3704
  filename: n
3698
3705
  });
3699
- } catch (a) {
3700
- H.error(a);
3706
+ } catch (s) {
3707
+ H.error(s);
3701
3708
  }
3702
3709
  return { code: r, filename: n };
3703
3710
  }
@@ -3724,16 +3731,16 @@ ${e}`;
3724
3731
  });
3725
3732
  }
3726
3733
  }
3727
- const Te = vn(), ar = new Cr(
3734
+ const Oe = vn(), sr = new Cr(
3728
3735
  (t) => {
3729
3736
  fe.send.kernelMessage({ message: t });
3730
3737
  }
3731
- ), bt = new Ir(), kn = {
3738
+ ), xt = new Ir(), kn = {
3732
3739
  /**
3733
3740
  * Start the session
3734
3741
  */
3735
3742
  startSession: async (t) => {
3736
- await Te;
3743
+ await Oe;
3737
3744
  try {
3738
3745
  er(self.controller, "Controller not loaded");
3739
3746
  const e = await self.controller.mountFilesystem({
@@ -3741,9 +3748,9 @@ ${e}`;
3741
3748
  filename: `app-${t.appId}.py`
3742
3749
  }), r = await self.controller.startSession({
3743
3750
  ...e,
3744
- onMessage: ar.push
3751
+ onMessage: sr.push
3745
3752
  });
3746
- bt.resolve(r), fe.send.initialized({});
3753
+ xt.resolve(r), fe.send.initialized({});
3747
3754
  } catch (e) {
3748
3755
  fe.send.initializedError({
3749
3756
  error: Kt(e)
@@ -3754,7 +3761,7 @@ ${e}`;
3754
3761
  * Load packages
3755
3762
  */
3756
3763
  loadPackages: async (t) => {
3757
- await Te, t.includes("mo.sql") && (t = `import pandas
3764
+ await Oe, t.includes("mo.sql") && (t = `import pandas
3758
3765
  ${t}`, t = `import duckdb
3759
3766
  ${t}`, t = `import sqlglot
3760
3767
  ${t}`, t.includes("polars") && (t = `import pyarrow
@@ -3767,15 +3774,15 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
3767
3774
  * Call a function on the bridge
3768
3775
  */
3769
3776
  bridge: async (t) => {
3770
- await Te;
3771
- const { functionName: e, payload: r } = t, n = await bt.promise, a = r == null ? null : typeof r == "string" ? r : JSON.stringify(r), s = a == null ? (
3777
+ await Oe;
3778
+ const { functionName: e, payload: r } = t, n = await xt.promise, s = r == null ? null : typeof r == "string" ? r : JSON.stringify(r), a = s == null ? (
3772
3779
  // @ts-expect-error ehh TypeScript
3773
3780
  await n[e]()
3774
3781
  ) : (
3775
3782
  // @ts-expect-error ehh TypeScript
3776
- await n[e](a)
3783
+ await n[e](s)
3777
3784
  );
3778
- return typeof s == "string" ? JSON.parse(s) : s;
3785
+ return typeof a == "string" ? JSON.parse(a) : a;
3779
3786
  }
3780
3787
  }, fe = fr({
3781
3788
  transport: yr({
@@ -3785,7 +3792,7 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
3785
3792
  });
3786
3793
  fe.send("ready", {});
3787
3794
  fe.addMessageListener("consumerReady", async () => {
3788
- await Te, ar.start();
3795
+ await Oe, sr.start();
3789
3796
  });
3790
3797
  function wn() {
3791
3798
  return self.name;