soonjs 0.0.34 → 0.1.0

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/deps/acorn-jU-39Pbw5W-x7qdgz1ts.js +3005 -0
  2. package/dist/deps/acorn-jU-39Pbw5W-z5debqqlj.js +16 -0
  3. package/dist/deps/angular-eXKcfordor-b1hkohm74.js +3 -0
  4. package/dist/deps/angular-eXKcfordor-l3kwajkbh.js +2533 -0
  5. package/dist/deps/babel-QODt_XJZCU-a8i81wjiu.js +15 -0
  6. package/dist/deps/babel-QODt_XJZCU-ghwhrb71b.js +7217 -0
  7. package/dist/deps/estree-_Gcr3virjH-h1acxq4yv.js +44 -0
  8. package/dist/deps/estree-_Gcr3virjH-j31qwtvbp.js +4528 -0
  9. package/dist/deps/flow-VkrRJr6lFd-qqbqr5hei.js +27411 -0
  10. package/dist/deps/flow-VkrRJr6lFd-ucth0k2tc.js +20 -0
  11. package/dist/deps/{glimmer-SKEURx3bl3-j891aljn1.js → glimmer-I6jyK4xw2I-23lk5ck83.js} +1409 -1462
  12. package/dist/deps/glimmer-I6jyK4xw2I-3z8pf5pty.js +37 -0
  13. package/dist/deps/graphql-F7JRnTC996-4d02luxbf.js +28 -0
  14. package/dist/deps/graphql-F7JRnTC996-narvpamoj.js +1221 -0
  15. package/dist/deps/html-C-ZYESkdqr-ogat88tt8.js +25 -0
  16. package/dist/deps/html-C-ZYESkdqr-te4xlvh7i.js +2791 -0
  17. package/dist/deps/markdown-4m9fGqwyBD-3zxc7zsgm.js +3190 -0
  18. package/dist/deps/markdown-4m9fGqwyBD-pv6ycpbaq.js +62 -0
  19. package/dist/deps/meriyah-2XmgupY1jB-90gvtx3gl.js +5 -0
  20. package/dist/deps/meriyah-2XmgupY1jB-akr3gkgcz.js +2645 -0
  21. package/dist/deps/postcss-UtIjNac23s-dmefkra5w.js +61 -0
  22. package/dist/deps/postcss-UtIjNac23s-kaopmxfox.js +4739 -0
  23. package/dist/deps/typescript-7W94NRN5-v-d4v78yftm.js +21 -0
  24. package/dist/deps/typescript-7W94NRN5-v-y96cijxoo.js +12947 -0
  25. package/dist/deps/yaml-GTMY6ek0xu-5ybo8o2wg.js +159 -0
  26. package/dist/deps/yaml-GTMY6ek0xu-x856naz63.js +4079 -0
  27. package/dist/index.cjs +8 -8
  28. package/dist/index.js +1376 -1180
  29. package/dist/vite-plugin-soon-client.cjs +148 -156
  30. package/dist/vite-plugin-soon-client.js +33643 -38238
  31. package/dist/vite-plugin-soon-server.cjs +19 -20
  32. package/dist/vite-plugin-soon-server.d.ts +2 -2
  33. package/dist/vite-plugin-soon-server.js +1142 -1153
  34. package/package.json +12 -10
  35. package/dist/deps/acorn-MFuat2YCgG-b60r79xuq.js +0 -15
  36. package/dist/deps/acorn-MFuat2YCgG-znyzt9bsi.js +0 -2895
  37. package/dist/deps/angular-Nz7Izt9RB4-3agl5iuad.js +0 -1
  38. package/dist/deps/angular-Nz7Izt9RB4-k9gll1g2p.js +0 -1448
  39. package/dist/deps/babel-JaNXSJC73c-78chk7vt0.js +0 -6844
  40. package/dist/deps/babel-JaNXSJC73c-kufra91xr.js +0 -15
  41. package/dist/deps/estree-lrVsLbm9_D-ddquqk13a.js +0 -4265
  42. package/dist/deps/estree-lrVsLbm9_D-h2bhlvrak.js +0 -36
  43. package/dist/deps/flow-MAZ63dnw8p-9qklekr72.js +0 -19
  44. package/dist/deps/flow-MAZ63dnw8p-bkeo4owf1.js +0 -26221
  45. package/dist/deps/glimmer-SKEURx3bl3-igeybe6v2.js +0 -30
  46. package/dist/deps/graphql--N7MQg-wpp-gcvs9060v.js +0 -29
  47. package/dist/deps/graphql--N7MQg-wpp-tvobch3j0.js +0 -1212
  48. package/dist/deps/html-WW7XljTSl6-x8sxwnqcb.js +0 -2623
  49. package/dist/deps/html-WW7XljTSl6-ylw8ht4cg.js +0 -23
  50. package/dist/deps/markdown-i-DCK3AslU-gavz86jke.js +0 -62
  51. package/dist/deps/markdown-i-DCK3AslU-jj4g2i9mp.js +0 -3058
  52. package/dist/deps/meriyah-0-URq6zZ8n-bq3yx0s50.js +0 -4
  53. package/dist/deps/meriyah-0-URq6zZ8n-yvpkfa2jn.js +0 -2320
  54. package/dist/deps/postcss-urUw1vxeu1-rvrg58zgo.js +0 -52
  55. package/dist/deps/postcss-urUw1vxeu1-sr2tuk3a4.js +0 -4664
  56. package/dist/deps/typescript-5-LBeuVeDB-jbsjwqvq8.js +0 -20
  57. package/dist/deps/typescript-5-LBeuVeDB-wgvb9qpn3.js +0 -12794
  58. package/dist/deps/yaml-zChCAOpgM7-2tuvm27wb.js +0 -161
  59. package/dist/deps/yaml-zChCAOpgM7-8sl1vv60w.js +0 -4088
  60. /package/dist/deps/{soon-id-t25L9qRGGZ-5apkd8o17.js → soon-id-t25L9qRGGZ-fzl1kq3ux.js} +0 -0
  61. /package/dist/deps/{soon-id-t25L9qRGGZ-xzfp84d25.js → soon-id-t25L9qRGGZ-yp47pjtmz.js} +0 -0
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var dt = Object.defineProperty;
2
- var mt = (r, e, t) => e in r ? dt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var x = (r, e, t) => mt(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { PassThrough as ht } from "stream";
5
- import { g as Fr, c as yr, u as vt } from "./deps/soon-id-t25L9qRGGZ-xzfp84d25.js";
6
- import gt from "util";
7
- var k = {};
8
- Object.defineProperty(k, "__esModule", { value: !0 });
9
- k.TokenData = void 0;
10
- k.parse = Te;
11
- k.compile = $t;
12
- var wt = k.match = Tt;
13
- k.pathToRegexp = Rt;
14
- const bt = "/", tr = (r) => r, St = new RegExp("^\\p{XID_Continue}$", "u"), le = "https://git.new/pathToRegexpError", Et = {
1
+ var qt = Object.defineProperty;
2
+ var Wt = (r, e, t) => e in r ? qt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var P = (r, e, t) => Wt(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { PassThrough as Ft } from "stream";
5
+ import { g as nt, c as Ir, u as Gt } from "./deps/soon-id-t25L9qRGGZ-yp47pjtmz.js";
6
+ import Ht from "util";
7
+ var H = {};
8
+ Object.defineProperty(H, "__esModule", { value: !0 });
9
+ H.TokenData = void 0;
10
+ H.parse = wr;
11
+ H.compile = Qt;
12
+ var jt = H.match = Yt;
13
+ H.pathToRegexp = lt;
14
+ const at = "/", gr = (r) => r, kt = new RegExp("^\\p{XID_Continue}$", "u"), fe = "https://git.new/pathToRegexpError", zt = {
15
15
  "!": "!",
16
16
  "@": "@",
17
17
  ";": ";",
@@ -22,13 +22,13 @@ const bt = "/", tr = (r) => r, St = new RegExp("^\\p{XID_Continue}$", "u"), le =
22
22
  "{": "{",
23
23
  "}": "}"
24
24
  };
25
- function At(r) {
25
+ function Kt(r) {
26
26
  const e = [...r], t = [];
27
27
  let n = 0;
28
28
  for (; n < e.length; ) {
29
- const a = e[n], o = Et[a];
30
- if (o) {
31
- t.push({ type: o, index: n++, value: a });
29
+ const a = e[n], i = zt[a];
30
+ if (i) {
31
+ t.push({ type: i, index: n++, value: a });
32
32
  continue;
33
33
  }
34
34
  if (a === "\\") {
@@ -36,16 +36,16 @@ function At(r) {
36
36
  continue;
37
37
  }
38
38
  if (a === ":") {
39
- let i = "";
40
- for (; St.test(e[++n]); )
41
- i += e[n];
42
- if (!i)
39
+ let o = "";
40
+ for (; kt.test(e[++n]); )
41
+ o += e[n];
42
+ if (!o)
43
43
  throw new TypeError(`Missing parameter name at ${n}`);
44
- t.push({ type: "NAME", index: n, value: i });
44
+ t.push({ type: "NAME", index: n, value: o });
45
45
  continue;
46
46
  }
47
47
  if (a === "(") {
48
- const i = n++;
48
+ const o = n++;
49
49
  let f = 1, l = "";
50
50
  if (e[n] === "?")
51
51
  throw new TypeError(`Pattern cannot start with "?" at ${n}`);
@@ -64,17 +64,17 @@ function At(r) {
64
64
  l += e[n++];
65
65
  }
66
66
  if (f)
67
- throw new TypeError(`Unbalanced pattern at ${i}`);
67
+ throw new TypeError(`Unbalanced pattern at ${o}`);
68
68
  if (!l)
69
- throw new TypeError(`Missing pattern at ${i}`);
69
+ throw new TypeError(`Missing pattern at ${o}`);
70
70
  t.push({ type: "PATTERN", index: n, value: l });
71
71
  continue;
72
72
  }
73
73
  t.push({ type: "CHAR", index: n, value: e[n++] });
74
74
  }
75
- return t.push({ type: "END", index: n, value: "" }), new Pt(t);
75
+ return t.push({ type: "END", index: n, value: "" }), new Vt(t);
76
76
  }
77
- class Pt {
77
+ class Vt {
78
78
  constructor(e) {
79
79
  this.tokens = e, this.index = 0;
80
80
  }
@@ -91,7 +91,7 @@ class Pt {
91
91
  if (t !== void 0)
92
92
  return t;
93
93
  const { type: n, index: a } = this.peek();
94
- throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${le}`);
94
+ throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${fe}`);
95
95
  }
96
96
  text() {
97
97
  let e = "", t;
@@ -103,279 +103,284 @@ class Pt {
103
103
  return this.tryConsume("?") || this.tryConsume("*") || this.tryConsume("+");
104
104
  }
105
105
  }
106
- class se {
106
+ class Me {
107
107
  constructor(e, t) {
108
108
  this.tokens = e, this.delimiter = t;
109
109
  }
110
110
  }
111
- k.TokenData = se;
112
- function Te(r, e = {}) {
113
- const { encodePath: t = tr, delimiter: n = t(bt) } = e, a = [], o = At(r);
114
- let i = 0;
111
+ H.TokenData = Me;
112
+ function wr(r, e = {}) {
113
+ const { encodePath: t = gr, delimiter: n = t(at) } = e, a = [], i = Kt(r);
114
+ let o = 0;
115
115
  do {
116
- const f = o.text();
116
+ const f = i.text();
117
117
  f && a.push(t(f));
118
- const l = o.tryConsume("NAME"), u = o.tryConsume("PATTERN");
119
- if (l || u) {
118
+ const l = i.tryConsume("NAME"), c = i.tryConsume("PATTERN");
119
+ if (l || c) {
120
120
  a.push({
121
- name: l || String(i++),
122
- pattern: u
121
+ name: l || String(o++),
122
+ pattern: c
123
123
  });
124
- const c = o.peek();
125
- if (c.type === "*")
126
- throw new TypeError(`Unexpected * at ${c.index}, you probably want \`/*\` or \`{/:foo}*\`: ${le}`);
124
+ const u = i.peek();
125
+ if (u.type === "*")
126
+ throw new TypeError(`Unexpected * at ${u.index}, you probably want \`/*\` or \`{/:foo}*\`: ${fe}`);
127
127
  continue;
128
128
  }
129
- if (o.tryConsume("*")) {
129
+ if (i.tryConsume("*")) {
130
130
  a.push({
131
- name: String(i++),
132
- pattern: `(?:(?!${J(n)}).)*`,
131
+ name: String(o++),
132
+ pattern: `(?:(?!${Y(n)}).)*`,
133
133
  modifier: "*",
134
134
  separator: n
135
135
  });
136
136
  continue;
137
137
  }
138
- if (o.tryConsume("{")) {
139
- const c = o.text(), d = o.tryConsume("NAME"), y = o.tryConsume("PATTERN"), m = o.text(), g = o.tryConsume(";") && o.text();
140
- o.consume("}");
141
- const S = o.modifier();
138
+ if (i.tryConsume("{")) {
139
+ const u = i.text(), d = i.tryConsume("NAME"), y = i.tryConsume("PATTERN"), h = i.text(), g = i.tryConsume(";") && i.text();
140
+ i.consume("}");
141
+ const $ = i.modifier();
142
142
  a.push({
143
- name: d || (y ? String(i++) : ""),
144
- prefix: t(c),
145
- suffix: t(m),
143
+ name: d || (y ? String(o++) : ""),
144
+ prefix: t(u),
145
+ suffix: t(h),
146
146
  pattern: y,
147
- modifier: S,
147
+ modifier: $,
148
148
  separator: g
149
149
  });
150
150
  continue;
151
151
  }
152
- o.consume("END");
152
+ i.consume("END");
153
153
  break;
154
154
  } while (!0);
155
- return new se(a, n);
155
+ return new Me(a, n);
156
156
  }
157
- function $t(r, e = {}) {
158
- const t = r instanceof se ? r : Te(r, e);
159
- return It(t, e);
157
+ function Qt(r, e = {}) {
158
+ const t = r instanceof Me ? r : wr(r, e);
159
+ return Xt(t, e);
160
160
  }
161
- function xt(r, e) {
161
+ function Jt(r, e) {
162
162
  if (typeof r == "string")
163
163
  return () => r;
164
- const t = e || tr, n = r.modifier === "+" || r.modifier === "*", a = r.modifier === "?" || r.modifier === "*", { prefix: o = "", suffix: i = "", separator: f = i + o } = r;
164
+ const t = e || gr, n = r.modifier === "+" || r.modifier === "*", a = r.modifier === "?" || r.modifier === "*", { prefix: i = "", suffix: o = "", separator: f = o + i } = r;
165
165
  if (e && n) {
166
- const u = (p, c) => {
166
+ const c = (p, u) => {
167
167
  if (typeof p != "string")
168
- throw new TypeError(`Expected "${r.name}/${c}" to be a string`);
168
+ throw new TypeError(`Expected "${r.name}/${u}" to be a string`);
169
169
  return t(p);
170
170
  }, s = (p) => {
171
171
  if (!Array.isArray(p))
172
172
  throw new TypeError(`Expected "${r.name}" to be an array`);
173
- return p.length === 0 ? "" : o + p.map(u).join(f) + i;
173
+ return p.length === 0 ? "" : i + p.map(c).join(f) + o;
174
174
  };
175
175
  return a ? (p) => {
176
- const c = p[r.name];
177
- return c == null ? "" : c.length ? s(c) : "";
176
+ const u = p[r.name];
177
+ return u == null ? "" : u.length ? s(u) : "";
178
178
  } : (p) => {
179
- const c = p[r.name];
180
- return s(c);
179
+ const u = p[r.name];
180
+ return s(u);
181
181
  };
182
182
  }
183
- const l = (u) => {
184
- if (typeof u != "string")
183
+ const l = (c) => {
184
+ if (typeof c != "string")
185
185
  throw new TypeError(`Expected "${r.name}" to be a string`);
186
- return o + t(u) + i;
186
+ return i + t(c) + o;
187
187
  };
188
- return a ? (u) => {
189
- const s = u[r.name];
188
+ return a ? (c) => {
189
+ const s = c[r.name];
190
190
  return s == null ? "" : l(s);
191
- } : (u) => {
192
- const s = u[r.name];
191
+ } : (c) => {
192
+ const s = c[r.name];
193
193
  return l(s);
194
194
  };
195
195
  }
196
- function It(r, e) {
197
- const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict: o = !1 } = e, i = Lr(e), f = nr(n, r.delimiter), l = qr(r, f, [], i, o), u = r.tokens.map((s, p) => {
198
- const c = xt(s, t);
196
+ function Xt(r, e) {
197
+ const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict: i = !1 } = e, o = it(e), f = Sr(n, r.delimiter), l = ot(r, f, [], o, i), c = r.tokens.map((s, p) => {
198
+ const u = Jt(s, t);
199
199
  if (!a || typeof s == "string")
200
- return c;
201
- const d = new RegExp(`^${l[p]}$`, i);
200
+ return u;
201
+ const d = new RegExp(`^${l[p]}$`, o);
202
202
  return (y) => {
203
- const m = c(y);
204
- if (!d.test(m))
205
- throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(m)}`);
206
- return m;
203
+ const h = u(y);
204
+ if (!d.test(h))
205
+ throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(h)}`);
206
+ return h;
207
207
  };
208
208
  });
209
209
  return function(p = {}) {
210
- let c = "";
211
- for (const d of u)
212
- c += d(p);
213
- return c;
210
+ let u = "";
211
+ for (const d of c)
212
+ u += d(p);
213
+ return u;
214
214
  };
215
215
  }
216
- function Tt(r, e = {}) {
217
- const { decode: t = decodeURIComponent, loose: n = !0 } = e, a = r instanceof se ? r : Te(r, e), o = nr(n, a.delimiter), i = [], f = Wr(a, i, e), l = i.map((u) => {
218
- if (t && (u.modifier === "+" || u.modifier === "*")) {
219
- const { prefix: s = "", suffix: p = "", separator: c = p + s } = u, d = new RegExp(o(c), "g");
220
- return (y) => y.split(d).map(t);
216
+ function Yt(r, e = {}) {
217
+ const { decode: t = decodeURIComponent, loose: n = !0, delimiter: a = at } = e, i = lt(r, e), o = Sr(n, a), f = i.keys.map((l) => {
218
+ if (t && (l.modifier === "+" || l.modifier === "*")) {
219
+ const { prefix: c = "", suffix: s = "", separator: p = s + c } = l, u = new RegExp(o(p), "g");
220
+ return (d) => d.split(u).map(t);
221
221
  }
222
- return t || tr;
222
+ return t || gr;
223
223
  });
224
- return function(s) {
225
- const p = f.exec(s);
226
- if (!p)
224
+ return function(c) {
225
+ const s = i.exec(c);
226
+ if (!s)
227
227
  return !1;
228
- const { 0: c, index: d } = p, y = /* @__PURE__ */ Object.create(null);
229
- for (let m = 1; m < p.length; m++) {
230
- if (p[m] === void 0)
228
+ const { 0: p, index: u } = s, d = /* @__PURE__ */ Object.create(null);
229
+ for (let y = 1; y < s.length; y++) {
230
+ if (s[y] === void 0)
231
231
  continue;
232
- const g = i[m - 1], S = l[m - 1];
233
- y[g.name] = S(p[m]);
232
+ const h = i.keys[y - 1], g = f[y - 1];
233
+ d[h.name] = g(s[y]);
234
234
  }
235
- return { path: c, index: d, params: y };
235
+ return { path: p, index: u, params: d };
236
236
  };
237
237
  }
238
- function J(r) {
239
- return r.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
238
+ function Y(r) {
239
+ return r.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
240
240
  }
241
- function Ct(r, e) {
242
- const t = J(r);
241
+ function Zt(r, e) {
242
+ const t = Y(r);
243
243
  return e ? `(?:${t})+(?!${t})` : t;
244
244
  }
245
- function nr(r, e) {
245
+ function Sr(r, e) {
246
246
  if (!r)
247
- return J;
248
- const t = new RegExp(`(?:(?!${J(e)}).)+|(.)`, "g");
249
- return (n) => n.replace(t, Ct);
247
+ return Y;
248
+ const t = new RegExp(`(?:(?!${Y(e)}).)+|(.)`, "g");
249
+ return (n) => n.replace(t, Zt);
250
250
  }
251
- function Lr(r) {
251
+ function it(r) {
252
252
  return r.sensitive ? "" : "i";
253
253
  }
254
- function Wr(r, e, t) {
255
- const { trailing: n = !0, loose: a = !0, start: o = !0, end: i = !0, strict: f = !1 } = t, l = Lr(t), u = nr(a, r.delimiter), s = qr(r, u, e, l, f);
256
- let p = o ? "^" : "";
257
- return p += s.join(""), n && (p += `(?:${u(r.delimiter)})?`), p += i ? "$" : `(?=${J(r.delimiter)}|$)`, new RegExp(p, l);
254
+ function Rr(r, e, t, n) {
255
+ const a = r instanceof Me ? r : wr(r, n), { trailing: i = !0, loose: o = !0, start: f = !0, end: l = !0, strict: c = !1 } = n, s = Sr(o, a.delimiter), p = ot(a, s, e, t, c);
256
+ let u = f ? "^" : "";
257
+ return u += p.join(""), i && (u += `(?:${s(a.delimiter)}$)?`), u += l ? "$" : `(?=${Y(a.delimiter)}|$)`, u;
258
258
  }
259
- function qr(r, e, t, n, a) {
260
- const o = `(?:(?!${J(r.delimiter)}).)+?`;
261
- let i = "", f = !0;
262
- return r.tokens.map((l, u) => {
259
+ function ot(r, e, t, n, a) {
260
+ const i = `(?:(?!${Y(r.delimiter)}).)+?`;
261
+ let o = "", f = !0;
262
+ return r.tokens.map((l) => {
263
263
  if (typeof l == "string")
264
- return i = l, e(l);
265
- const { prefix: s = "", suffix: p = "", separator: c = p + s, modifier: d = "" } = l, y = e(s), m = e(p);
264
+ return o = l, e(l);
265
+ const { prefix: c = "", suffix: s = "", separator: p = s + c, modifier: u = "" } = l, d = e(c), y = e(s);
266
266
  if (l.name) {
267
- const g = l.pattern ? `(?:${l.pattern})` : o, S = Ot(g, l.name, n);
268
- if (f || (f = _e(S, s || i)), !f)
269
- throw new TypeError(`Ambiguous pattern for "${l.name}": ${le}`);
270
- if (f = !a || _e(S, p), i = "", t.push(l), d === "+" || d === "*") {
271
- const P = d === "*" ? "?" : "", h = e(c);
272
- if (!h)
273
- throw new TypeError(`Missing separator for "${l.name}": ${le}`);
274
- if (f || (f = !a || _e(S, c)), !f)
275
- throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${le}`);
276
- return f = !a, `(?:${y}(${g}(?:${h}${g})*)${m})${P}`;
267
+ const h = l.pattern ? `(?:${l.pattern})` : i, g = en(h, l.name, n);
268
+ if (f || (f = He(g, c || o)), !f)
269
+ throw new TypeError(`Ambiguous pattern for "${l.name}": ${fe}`);
270
+ if (f = !a || He(g, s), o = "", t.push(l), u === "+" || u === "*") {
271
+ const $ = u === "*" ? "?" : "", E = e(p);
272
+ if (!E)
273
+ throw new TypeError(`Missing separator for "${l.name}": ${fe}`);
274
+ if (f || (f = !a || He(g, p)), !f)
275
+ throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${fe}`);
276
+ return f = !a, `(?:${d}(${h}(?:${E}${h})*)${y})${$}`;
277
277
  }
278
- return `(?:${y}(${g})${m})${d}`;
278
+ return `(?:${d}(${h})${y})${u}`;
279
279
  }
280
- return `(?:${y}${m})${d}`;
280
+ return `(?:${d}${y})${u}`;
281
281
  });
282
282
  }
283
- function Ot(r, e, t) {
283
+ function en(r, e, t) {
284
284
  try {
285
285
  return new RegExp(`^${r}$`, t);
286
286
  } catch (n) {
287
287
  throw new TypeError(`Invalid pattern for "${e}": ${n.message}`);
288
288
  }
289
289
  }
290
- function _e(r, e) {
290
+ function He(r, e) {
291
291
  return e ? !r.test(e) : !1;
292
292
  }
293
- function Rt(r, e = {}) {
294
- const t = r instanceof se ? r : Te(r, e), n = [], a = Wr(t, n, e);
295
- return Object.assign(a, { keys: n });
293
+ function lt(r, e = {}) {
294
+ const t = [], n = it(e);
295
+ if (Array.isArray(r)) {
296
+ const i = r.map((o) => Rr(o, t, n, e));
297
+ return Object.assign(new RegExp(i.join("|")), { keys: t });
298
+ }
299
+ const a = Rr(r, t, n, e);
300
+ return Object.assign(new RegExp(a), { keys: t });
296
301
  }
297
- var Ce = {};
298
- Object.defineProperty(Ce, "__esModule", {
302
+ var De = {};
303
+ Object.defineProperty(De, "__esModule", {
299
304
  value: !0
300
305
  });
301
- Ce.Observable = void 0;
302
- const Gr = (r) => !!Symbol[r], ar = (r) => Gr(r) ? Symbol[r] : "@@" + r, Dt = ar("iterator"), Ve = ar("observable"), kr = ar("species");
303
- function Ae(r, e) {
306
+ De.Observable = void 0;
307
+ const ft = (r) => !!Symbol[r], br = (r) => ft(r) ? Symbol[r] : "@@" + r, rn = br("iterator"), cr = br("observable"), ut = br("species");
308
+ function _e(r, e) {
304
309
  let t = r[e];
305
310
  if (t != null) {
306
311
  if (typeof t != "function") throw new TypeError(t + " is not a function");
307
312
  return t;
308
313
  }
309
314
  }
310
- function oe(r) {
315
+ function ie(r) {
311
316
  let e = r.constructor;
312
- return e !== void 0 && (e = e[kr], e === null && (e = void 0)), e !== void 0 ? e : Oe;
317
+ return e !== void 0 && (e = e[ut], e === null && (e = void 0)), e !== void 0 ? e : Ne;
313
318
  }
314
- function _t(r) {
315
- return r instanceof Oe;
319
+ function tn(r) {
320
+ return r instanceof Ne;
316
321
  }
317
- function X(r) {
318
- X.log ? X.log(r) : setTimeout(() => {
322
+ function Z(r) {
323
+ Z.log ? Z.log(r) : setTimeout(() => {
319
324
  throw r;
320
325
  });
321
326
  }
322
- function we(r) {
327
+ function Ee(r) {
323
328
  Promise.resolve().then(() => {
324
329
  try {
325
330
  r();
326
331
  } catch (e) {
327
- X(e);
332
+ Z(e);
328
333
  }
329
334
  });
330
335
  }
331
- function zr(r) {
336
+ function ct(r) {
332
337
  let e = r._cleanup;
333
338
  if (e !== void 0 && (r._cleanup = void 0, !!e))
334
339
  try {
335
340
  if (typeof e == "function")
336
341
  e();
337
342
  else {
338
- let t = Ae(e, "unsubscribe");
343
+ let t = _e(e, "unsubscribe");
339
344
  t && t.call(e);
340
345
  }
341
346
  } catch (t) {
342
- X(t);
347
+ Z(t);
343
348
  }
344
349
  }
345
- function Qe(r) {
350
+ function sr(r) {
346
351
  r._observer = void 0, r._queue = void 0, r._state = "closed";
347
352
  }
348
- function Mt(r) {
353
+ function nn(r) {
349
354
  let e = r._queue;
350
355
  if (e) {
351
356
  r._queue = void 0, r._state = "ready";
352
- for (let t = 0; t < e.length && (Hr(r, e[t].type, e[t].value), r._state !== "closed"); ++t)
357
+ for (let t = 0; t < e.length && (st(r, e[t].type, e[t].value), r._state !== "closed"); ++t)
353
358
  ;
354
359
  }
355
360
  }
356
- function Hr(r, e, t) {
361
+ function st(r, e, t) {
357
362
  r._state = "running";
358
363
  let n = r._observer;
359
364
  try {
360
- let a = Ae(n, e);
365
+ let a = _e(n, e);
361
366
  switch (e) {
362
367
  case "next":
363
368
  a && a.call(n, t);
364
369
  break;
365
370
  case "error":
366
- if (Qe(r), a) a.call(n, t);
371
+ if (sr(r), a) a.call(n, t);
367
372
  else throw t;
368
373
  break;
369
374
  case "complete":
370
- Qe(r), a && a.call(n);
375
+ sr(r), a && a.call(n);
371
376
  break;
372
377
  }
373
378
  } catch (a) {
374
- X(a);
379
+ Z(a);
375
380
  }
376
- r._state === "closed" ? zr(r) : r._state === "running" && (r._state = "ready");
381
+ r._state === "closed" ? ct(r) : r._state === "running" && (r._state = "ready");
377
382
  }
378
- function Me(r, e, t) {
383
+ function je(r, e, t) {
379
384
  if (r._state !== "closed") {
380
385
  if (r._state === "buffering") {
381
386
  r._queue.push({
@@ -388,33 +393,33 @@ function Me(r, e, t) {
388
393
  r._state = "buffering", r._queue = [{
389
394
  type: e,
390
395
  value: t
391
- }], we(() => Mt(r));
396
+ }], Ee(() => nn(r));
392
397
  return;
393
398
  }
394
- Hr(r, e, t);
399
+ st(r, e, t);
395
400
  }
396
401
  }
397
- class Nt {
402
+ class an {
398
403
  constructor(e, t) {
399
404
  this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
400
405
  let n = this, a = {
401
406
  get closed() {
402
407
  return n._state === "closed";
403
408
  },
404
- next(o) {
405
- Me(n, "next", o);
409
+ next(i) {
410
+ je(n, "next", i);
406
411
  },
407
- error(o) {
408
- Me(n, "error", o);
412
+ error(i) {
413
+ je(n, "error", i);
409
414
  },
410
415
  complete() {
411
- Me(n, "complete");
416
+ je(n, "complete");
412
417
  }
413
418
  };
414
419
  try {
415
420
  this._cleanup = t.call(void 0, a);
416
- } catch (o) {
417
- a.error(o);
421
+ } catch (i) {
422
+ a.error(i);
418
423
  }
419
424
  this._state === "initializing" && (this._state = "ready");
420
425
  }
@@ -422,12 +427,12 @@ class Nt {
422
427
  return this._state === "closed";
423
428
  }
424
429
  unsubscribe() {
425
- this._state !== "closed" && (Qe(this), zr(this));
430
+ this._state !== "closed" && (sr(this), ct(this));
426
431
  }
427
432
  }
428
- let Oe = class be {
433
+ let Ne = class Ae {
429
434
  constructor(e) {
430
- if (!(this instanceof be)) throw new TypeError("Observable cannot be called as a function");
435
+ if (!(this instanceof Ae)) throw new TypeError("Observable cannot be called as a function");
431
436
  if (typeof e != "function") throw new TypeError("Observable initializer must be a function");
432
437
  this._subscriber = e;
433
438
  }
@@ -436,7 +441,7 @@ let Oe = class be {
436
441
  next: e,
437
442
  error: arguments[1],
438
443
  complete: arguments[2]
439
- }), new Nt(e, this._subscriber);
444
+ }), new an(e, this._subscriber);
440
445
  }
441
446
  forEach(e) {
442
447
  return new Promise((t, n) => {
@@ -445,14 +450,14 @@ let Oe = class be {
445
450
  return;
446
451
  }
447
452
  function a() {
448
- o.unsubscribe(), t();
453
+ i.unsubscribe(), t();
449
454
  }
450
- let o = this.subscribe({
451
- next(i) {
455
+ let i = this.subscribe({
456
+ next(o) {
452
457
  try {
453
- e(i, a);
458
+ e(o, a);
454
459
  } catch (f) {
455
- n(f), o.unsubscribe();
460
+ n(f), i.unsubscribe();
456
461
  }
457
462
  },
458
463
  error: n,
@@ -462,13 +467,13 @@ let Oe = class be {
462
467
  }
463
468
  map(e) {
464
469
  if (typeof e != "function") throw new TypeError(e + " is not a function");
465
- let t = oe(this);
470
+ let t = ie(this);
466
471
  return new t((n) => this.subscribe({
467
472
  next(a) {
468
473
  try {
469
474
  a = e(a);
470
- } catch (o) {
471
- return n.error(o);
475
+ } catch (i) {
476
+ return n.error(i);
472
477
  }
473
478
  n.next(a);
474
479
  },
@@ -482,13 +487,13 @@ let Oe = class be {
482
487
  }
483
488
  filter(e) {
484
489
  if (typeof e != "function") throw new TypeError(e + " is not a function");
485
- let t = oe(this);
490
+ let t = ie(this);
486
491
  return new t((n) => this.subscribe({
487
492
  next(a) {
488
493
  try {
489
494
  if (!e(a)) return;
490
- } catch (o) {
491
- return n.error(o);
495
+ } catch (i) {
496
+ return n.error(i);
492
497
  }
493
498
  n.next(a);
494
499
  },
@@ -502,25 +507,25 @@ let Oe = class be {
502
507
  }
503
508
  reduce(e) {
504
509
  if (typeof e != "function") throw new TypeError(e + " is not a function");
505
- let t = oe(this), n = arguments.length > 1, a = !1, i = arguments[1];
510
+ let t = ie(this), n = arguments.length > 1, a = !1, o = arguments[1];
506
511
  return new t((f) => this.subscribe({
507
512
  next(l) {
508
- let u = !a;
509
- if (a = !0, !u || n)
513
+ let c = !a;
514
+ if (a = !0, !c || n)
510
515
  try {
511
- i = e(i, l);
516
+ o = e(o, l);
512
517
  } catch (s) {
513
518
  return f.error(s);
514
519
  }
515
520
  else
516
- i = l;
521
+ o = l;
517
522
  },
518
523
  error(l) {
519
524
  f.error(l);
520
525
  },
521
526
  complete() {
522
527
  if (!a && !n) return f.error(new TypeError("Cannot reduce an empty sequence"));
523
- f.next(i), f.complete();
528
+ f.next(o), f.complete();
524
529
  }
525
530
  }));
526
531
  }
@@ -529,10 +534,10 @@ let Oe = class be {
529
534
  return await this.forEach((t) => e.push(t)), e;
530
535
  }
531
536
  concat(...e) {
532
- let t = oe(this);
537
+ let t = ie(this);
533
538
  return new t((n) => {
534
- let a, o = 0;
535
- function i(f) {
539
+ let a, i = 0;
540
+ function o(f) {
536
541
  a = f.subscribe({
537
542
  next(l) {
538
543
  n.next(l);
@@ -541,37 +546,37 @@ let Oe = class be {
541
546
  n.error(l);
542
547
  },
543
548
  complete() {
544
- o === e.length ? (a = void 0, n.complete()) : i(t.from(e[o++]));
549
+ i === e.length ? (a = void 0, n.complete()) : o(t.from(e[i++]));
545
550
  }
546
551
  });
547
552
  }
548
- return i(this), () => {
553
+ return o(this), () => {
549
554
  a && (a.unsubscribe(), a = void 0);
550
555
  };
551
556
  });
552
557
  }
553
558
  flatMap(e) {
554
559
  if (typeof e != "function") throw new TypeError(e + " is not a function");
555
- let t = oe(this);
560
+ let t = ie(this);
556
561
  return new t((n) => {
557
- let a = [], o = this.subscribe({
562
+ let a = [], i = this.subscribe({
558
563
  next(f) {
559
564
  if (e)
560
565
  try {
561
566
  f = e(f);
562
- } catch (u) {
563
- return n.error(u);
567
+ } catch (c) {
568
+ return n.error(c);
564
569
  }
565
570
  let l = t.from(f).subscribe({
566
- next(u) {
567
- n.next(u);
571
+ next(c) {
572
+ n.next(c);
568
573
  },
569
- error(u) {
570
- n.error(u);
574
+ error(c) {
575
+ n.error(c);
571
576
  },
572
577
  complete() {
573
- let u = a.indexOf(l);
574
- u >= 0 && a.splice(u, 1), i();
578
+ let c = a.indexOf(l);
579
+ c >= 0 && a.splice(c, 1), o();
575
580
  }
576
581
  });
577
582
  a.push(l);
@@ -580,45 +585,45 @@ let Oe = class be {
580
585
  n.error(f);
581
586
  },
582
587
  complete() {
583
- i();
588
+ o();
584
589
  }
585
590
  });
586
- function i() {
587
- o.closed && a.length === 0 && n.complete();
591
+ function o() {
592
+ i.closed && a.length === 0 && n.complete();
588
593
  }
589
594
  return () => {
590
- a.forEach((f) => f.unsubscribe()), o.unsubscribe();
595
+ a.forEach((f) => f.unsubscribe()), i.unsubscribe();
591
596
  };
592
597
  });
593
598
  }
594
- [Ve]() {
599
+ [cr]() {
595
600
  return this;
596
601
  }
597
602
  static from(e) {
598
- let t = typeof this == "function" ? this : be;
603
+ let t = typeof this == "function" ? this : Ae;
599
604
  if (e == null) throw new TypeError(e + " is not an object");
600
- let n = Ae(e, Ve);
605
+ let n = _e(e, cr);
601
606
  if (n) {
602
607
  let a = n.call(e);
603
608
  if (Object(a) !== a) throw new TypeError(a + " is not an object");
604
- return _t(a) && a.constructor === t ? a : new t((o) => a.subscribe(o));
609
+ return tn(a) && a.constructor === t ? a : new t((i) => a.subscribe(i));
605
610
  }
606
- if (Gr("iterator") && (n = Ae(e, Dt), n))
611
+ if (ft("iterator") && (n = _e(e, rn), n))
607
612
  return new t((a) => {
608
- we(() => {
613
+ Ee(() => {
609
614
  if (!a.closed) {
610
- for (let o of n.call(e))
611
- if (a.next(o), a.closed) return;
615
+ for (let i of n.call(e))
616
+ if (a.next(i), a.closed) return;
612
617
  a.complete();
613
618
  }
614
619
  });
615
620
  });
616
621
  if (Array.isArray(e))
617
622
  return new t((a) => {
618
- we(() => {
623
+ Ee(() => {
619
624
  if (!a.closed) {
620
- for (let o = 0; o < e.length; ++o)
621
- if (a.next(e[o]), a.closed) return;
625
+ for (let i = 0; i < e.length; ++i)
626
+ if (a.next(e[i]), a.closed) return;
622
627
  a.complete();
623
628
  }
624
629
  });
@@ -626,9 +631,9 @@ let Oe = class be {
626
631
  throw new TypeError(e + " is not observable");
627
632
  }
628
633
  static of(...e) {
629
- let t = typeof this == "function" ? this : be;
634
+ let t = typeof this == "function" ? this : Ae;
630
635
  return new t((n) => {
631
- we(() => {
636
+ Ee(() => {
632
637
  if (!n.closed) {
633
638
  for (let a = 0; a < e.length; ++a)
634
639
  if (n.next(e[a]), n.closed) return;
@@ -637,444 +642,58 @@ let Oe = class be {
637
642
  });
638
643
  });
639
644
  }
640
- static get [kr]() {
645
+ static get [ut]() {
641
646
  return this;
642
647
  }
643
648
  };
644
- Ce.Observable = Oe;
645
- Object.defineProperty(Oe, Symbol("extensions"), {
649
+ De.Observable = Ne;
650
+ Object.defineProperty(Ne, Symbol("extensions"), {
646
651
  value: {
647
- symbol: Ve,
648
- hostReportError: X
652
+ symbol: cr,
653
+ hostReportError: Z
649
654
  },
650
655
  configurable: !0
651
656
  });
652
- var Ut = Ce.Observable;
653
- const Kr = /* @__PURE__ */ Fr(Ut);
654
- var Bt = Error, Ft = EvalError, Lt = RangeError, Wt = ReferenceError, Vr = SyntaxError, pe = TypeError, qt = URIError, Gt = function() {
655
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
656
- return !1;
657
- if (typeof Symbol.iterator == "symbol")
658
- return !0;
659
- var e = {}, t = Symbol("test"), n = Object(t);
660
- if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
661
- return !1;
662
- var a = 42;
663
- e[t] = a;
664
- for (t in e)
665
- return !1;
666
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
667
- return !1;
668
- var o = Object.getOwnPropertySymbols(e);
669
- if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
670
- return !1;
671
- if (typeof Object.getOwnPropertyDescriptor == "function") {
672
- var i = Object.getOwnPropertyDescriptor(e, t);
673
- if (i.value !== a || i.enumerable !== !0)
674
- return !1;
675
- }
676
- return !0;
677
- }, dr = typeof Symbol < "u" && Symbol, kt = Gt, zt = function() {
678
- return typeof dr != "function" || typeof Symbol != "function" || typeof dr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : kt();
679
- }, Ne = {
680
- __proto__: null,
681
- foo: {}
682
- }, Ht = Object, Kt = function() {
683
- return { __proto__: Ne }.foo === Ne.foo && !(Ne instanceof Ht);
684
- }, Vt = "Function.prototype.bind called on incompatible ", Qt = Object.prototype.toString, jt = Math.max, Jt = "[object Function]", mr = function(e, t) {
685
- for (var n = [], a = 0; a < e.length; a += 1)
686
- n[a] = e[a];
687
- for (var o = 0; o < t.length; o += 1)
688
- n[o + e.length] = t[o];
689
- return n;
690
- }, Xt = function(e, t) {
691
- for (var n = [], a = t, o = 0; a < e.length; a += 1, o += 1)
692
- n[o] = e[a];
693
- return n;
694
- }, Yt = function(r, e) {
695
- for (var t = "", n = 0; n < r.length; n += 1)
696
- t += r[n], n + 1 < r.length && (t += e);
697
- return t;
698
- }, Zt = function(e) {
699
- var t = this;
700
- if (typeof t != "function" || Qt.apply(t) !== Jt)
701
- throw new TypeError(Vt + t);
702
- for (var n = Xt(arguments, 1), a, o = function() {
703
- if (this instanceof a) {
704
- var s = t.apply(
705
- this,
706
- mr(n, arguments)
707
- );
708
- return Object(s) === s ? s : this;
709
- }
710
- return t.apply(
711
- e,
712
- mr(n, arguments)
713
- );
714
- }, i = jt(0, t.length - n.length), f = [], l = 0; l < i; l++)
715
- f[l] = "$" + l;
716
- if (a = Function("binder", "return function (" + Yt(f, ",") + "){ return binder.apply(this,arguments); }")(o), t.prototype) {
717
- var u = function() {
718
- };
719
- u.prototype = t.prototype, a.prototype = new u(), u.prototype = null;
720
- }
721
- return a;
722
- }, en = Zt, or = Function.prototype.bind || en, rn = Function.prototype.call, tn = Object.prototype.hasOwnProperty, nn = or, an = nn.call(rn, tn), v, on = Bt, ln = Ft, fn = Lt, un = Wt, Y = Vr, j = pe, cn = qt, Qr = Function, Ue = function(r) {
723
- try {
724
- return Qr('"use strict"; return (' + r + ").constructor;")();
725
- } catch {
726
- }
727
- }, q = Object.getOwnPropertyDescriptor;
728
- if (q)
729
- try {
730
- q({}, "");
731
- } catch {
732
- q = null;
733
- }
734
- var Be = function() {
735
- throw new j();
736
- }, sn = q ? function() {
737
- try {
738
- return arguments.callee, Be;
739
- } catch {
740
- try {
741
- return q(arguments, "callee").get;
742
- } catch {
743
- return Be;
744
- }
745
- }
746
- }() : Be, K = zt(), pn = Kt(), A = Object.getPrototypeOf || (pn ? function(r) {
747
- return r.__proto__;
748
- } : null), Q = {}, yn = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
749
- __proto__: null,
750
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
751
- "%Array%": Array,
752
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
753
- "%ArrayIteratorPrototype%": K && A ? A([][Symbol.iterator]()) : v,
754
- "%AsyncFromSyncIteratorPrototype%": v,
755
- "%AsyncFunction%": Q,
756
- "%AsyncGenerator%": Q,
757
- "%AsyncGeneratorFunction%": Q,
758
- "%AsyncIteratorPrototype%": Q,
759
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
760
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
761
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
762
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
763
- "%Boolean%": Boolean,
764
- "%DataView%": typeof DataView > "u" ? v : DataView,
765
- "%Date%": Date,
766
- "%decodeURI%": decodeURI,
767
- "%decodeURIComponent%": decodeURIComponent,
768
- "%encodeURI%": encodeURI,
769
- "%encodeURIComponent%": encodeURIComponent,
770
- "%Error%": on,
771
- "%eval%": eval,
772
- // eslint-disable-line no-eval
773
- "%EvalError%": ln,
774
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
775
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
776
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
777
- "%Function%": Qr,
778
- "%GeneratorFunction%": Q,
779
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
780
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
781
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
782
- "%isFinite%": isFinite,
783
- "%isNaN%": isNaN,
784
- "%IteratorPrototype%": K && A ? A(A([][Symbol.iterator]())) : v,
785
- "%JSON%": typeof JSON == "object" ? JSON : v,
786
- "%Map%": typeof Map > "u" ? v : Map,
787
- "%MapIteratorPrototype%": typeof Map > "u" || !K || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
788
- "%Math%": Math,
789
- "%Number%": Number,
790
- "%Object%": Object,
791
- "%parseFloat%": parseFloat,
792
- "%parseInt%": parseInt,
793
- "%Promise%": typeof Promise > "u" ? v : Promise,
794
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
795
- "%RangeError%": fn,
796
- "%ReferenceError%": un,
797
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
798
- "%RegExp%": RegExp,
799
- "%Set%": typeof Set > "u" ? v : Set,
800
- "%SetIteratorPrototype%": typeof Set > "u" || !K || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
801
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
802
- "%String%": String,
803
- "%StringIteratorPrototype%": K && A ? A(""[Symbol.iterator]()) : v,
804
- "%Symbol%": K ? Symbol : v,
805
- "%SyntaxError%": Y,
806
- "%ThrowTypeError%": sn,
807
- "%TypedArray%": yn,
808
- "%TypeError%": j,
809
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
810
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
811
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
812
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
813
- "%URIError%": cn,
814
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
815
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
816
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet
817
- };
818
- if (A)
819
- try {
820
- null.error;
821
- } catch (r) {
822
- var dn = A(A(r));
823
- G["%Error.prototype%"] = dn;
824
- }
825
- var mn = function r(e) {
826
- var t;
827
- if (e === "%AsyncFunction%")
828
- t = Ue("async function () {}");
829
- else if (e === "%GeneratorFunction%")
830
- t = Ue("function* () {}");
831
- else if (e === "%AsyncGeneratorFunction%")
832
- t = Ue("async function* () {}");
833
- else if (e === "%AsyncGenerator%") {
834
- var n = r("%AsyncGeneratorFunction%");
835
- n && (t = n.prototype);
836
- } else if (e === "%AsyncIteratorPrototype%") {
837
- var a = r("%AsyncGenerator%");
838
- a && A && (t = A(a.prototype));
839
- }
840
- return G[e] = t, t;
841
- }, hr = {
842
- __proto__: null,
843
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
844
- "%ArrayPrototype%": ["Array", "prototype"],
845
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
846
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
847
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
848
- "%ArrayProto_values%": ["Array", "prototype", "values"],
849
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
850
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
851
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
852
- "%BooleanPrototype%": ["Boolean", "prototype"],
853
- "%DataViewPrototype%": ["DataView", "prototype"],
854
- "%DatePrototype%": ["Date", "prototype"],
855
- "%ErrorPrototype%": ["Error", "prototype"],
856
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
857
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
858
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
859
- "%FunctionPrototype%": ["Function", "prototype"],
860
- "%Generator%": ["GeneratorFunction", "prototype"],
861
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
862
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
863
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
864
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
865
- "%JSONParse%": ["JSON", "parse"],
866
- "%JSONStringify%": ["JSON", "stringify"],
867
- "%MapPrototype%": ["Map", "prototype"],
868
- "%NumberPrototype%": ["Number", "prototype"],
869
- "%ObjectPrototype%": ["Object", "prototype"],
870
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
871
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
872
- "%PromisePrototype%": ["Promise", "prototype"],
873
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
874
- "%Promise_all%": ["Promise", "all"],
875
- "%Promise_reject%": ["Promise", "reject"],
876
- "%Promise_resolve%": ["Promise", "resolve"],
877
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
878
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
879
- "%RegExpPrototype%": ["RegExp", "prototype"],
880
- "%SetPrototype%": ["Set", "prototype"],
881
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
882
- "%StringPrototype%": ["String", "prototype"],
883
- "%SymbolPrototype%": ["Symbol", "prototype"],
884
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
885
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
886
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
887
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
888
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
889
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
890
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
891
- "%URIErrorPrototype%": ["URIError", "prototype"],
892
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
893
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
894
- }, ye = or, Pe = an, hn = ye.call(Function.call, Array.prototype.concat), vn = ye.call(Function.apply, Array.prototype.splice), vr = ye.call(Function.call, String.prototype.replace), $e = ye.call(Function.call, String.prototype.slice), gn = ye.call(Function.call, RegExp.prototype.exec), wn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, bn = /\\(\\)?/g, Sn = function(e) {
895
- var t = $e(e, 0, 1), n = $e(e, -1);
896
- if (t === "%" && n !== "%")
897
- throw new Y("invalid intrinsic syntax, expected closing `%`");
898
- if (n === "%" && t !== "%")
899
- throw new Y("invalid intrinsic syntax, expected opening `%`");
900
- var a = [];
901
- return vr(e, wn, function(o, i, f, l) {
902
- a[a.length] = f ? vr(l, bn, "$1") : i || o;
903
- }), a;
904
- }, En = function(e, t) {
905
- var n = e, a;
906
- if (Pe(hr, n) && (a = hr[n], n = "%" + a[0] + "%"), Pe(G, n)) {
907
- var o = G[n];
908
- if (o === Q && (o = mn(n)), typeof o > "u" && !t)
909
- throw new j("intrinsic " + e + " exists, but is not available. Please file an issue!");
910
- return {
911
- alias: a,
912
- name: n,
913
- value: o
914
- };
915
- }
916
- throw new Y("intrinsic " + e + " does not exist!");
917
- }, re = function(e, t) {
918
- if (typeof e != "string" || e.length === 0)
919
- throw new j("intrinsic name must be a non-empty string");
920
- if (arguments.length > 1 && typeof t != "boolean")
921
- throw new j('"allowMissing" argument must be a boolean');
922
- if (gn(/^%?[^%]*%?$/, e) === null)
923
- throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
924
- var n = Sn(e), a = n.length > 0 ? n[0] : "", o = En("%" + a + "%", t), i = o.name, f = o.value, l = !1, u = o.alias;
925
- u && (a = u[0], vn(n, hn([0, 1], u)));
926
- for (var s = 1, p = !0; s < n.length; s += 1) {
927
- var c = n[s], d = $e(c, 0, 1), y = $e(c, -1);
928
- if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
929
- throw new Y("property names with quotes must have matching quotes");
930
- if ((c === "constructor" || !p) && (l = !0), a += "." + c, i = "%" + a + "%", Pe(G, i))
931
- f = G[i];
932
- else if (f != null) {
933
- if (!(c in f)) {
934
- if (!t)
935
- throw new j("base intrinsic for " + e + " exists, but the property is not available.");
936
- return;
937
- }
938
- if (q && s + 1 >= n.length) {
939
- var m = q(f, c);
940
- p = !!m, p && "get" in m && !("originalValue" in m.get) ? f = m.get : f = f[c];
941
- } else
942
- p = Pe(f, c), f = f[c];
943
- p && !l && (G[i] = f);
944
- }
945
- }
946
- return f;
947
- }, jr = { exports: {} }, Fe, gr;
948
- function ir() {
949
- if (gr) return Fe;
950
- gr = 1;
951
- var r = re, e = r("%Object.defineProperty%", !0) || !1;
952
- if (e)
953
- try {
954
- e({}, "a", { value: 1 });
955
- } catch {
956
- e = !1;
957
- }
958
- return Fe = e, Fe;
959
- }
960
- var An = re, Se = An("%Object.getOwnPropertyDescriptor%", !0);
961
- if (Se)
962
- try {
963
- Se([], "length");
964
- } catch {
965
- Se = null;
966
- }
967
- var Jr = Se, wr = ir(), Pn = Vr, V = pe, br = Jr, $n = function(e, t, n) {
968
- if (!e || typeof e != "object" && typeof e != "function")
969
- throw new V("`obj` must be an object or a function`");
970
- if (typeof t != "string" && typeof t != "symbol")
971
- throw new V("`property` must be a string or a symbol`");
972
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
973
- throw new V("`nonEnumerable`, if provided, must be a boolean or null");
974
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
975
- throw new V("`nonWritable`, if provided, must be a boolean or null");
976
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
977
- throw new V("`nonConfigurable`, if provided, must be a boolean or null");
978
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
979
- throw new V("`loose`, if provided, must be a boolean");
980
- var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, l = !!br && br(e, t);
981
- if (wr)
982
- wr(e, t, {
983
- configurable: i === null && l ? l.configurable : !i,
984
- enumerable: a === null && l ? l.enumerable : !a,
985
- value: n,
986
- writable: o === null && l ? l.writable : !o
987
- });
988
- else if (f || !a && !o && !i)
989
- e[t] = n;
990
- else
991
- throw new Pn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
992
- }, je = ir(), Xr = function() {
993
- return !!je;
994
- };
995
- Xr.hasArrayLengthDefineBug = function() {
996
- if (!je)
997
- return null;
998
- try {
999
- return je([], "length", { value: 1 }).length !== 1;
1000
- } catch {
1001
- return !0;
1002
- }
1003
- };
1004
- var xn = Xr, In = re, Sr = $n, Tn = xn(), Er = Jr, Ar = pe, Cn = In("%Math.floor%"), On = function(e, t) {
1005
- if (typeof e != "function")
1006
- throw new Ar("`fn` is not a function");
1007
- if (typeof t != "number" || t < 0 || t > 4294967295 || Cn(t) !== t)
1008
- throw new Ar("`length` must be a positive 32-bit integer");
1009
- var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1010
- if ("length" in e && Er) {
1011
- var i = Er(e, "length");
1012
- i && !i.configurable && (a = !1), i && !i.writable && (o = !1);
1013
- }
1014
- return (a || o || !n) && (Tn ? Sr(
1015
- /** @type {Parameters<define>[0]} */
1016
- e,
1017
- "length",
1018
- t,
1019
- !0,
1020
- !0
1021
- ) : Sr(
1022
- /** @type {Parameters<define>[0]} */
1023
- e,
1024
- "length",
1025
- t
1026
- )), e;
1027
- };
1028
- (function(r) {
1029
- var e = or, t = re, n = On, a = pe, o = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), f = t("%Reflect.apply%", !0) || e.call(i, o), l = ir(), u = t("%Math.max%");
1030
- r.exports = function(c) {
1031
- if (typeof c != "function")
1032
- throw new a("a function is required");
1033
- var d = f(e, i, arguments);
1034
- return n(
1035
- d,
1036
- 1 + u(0, c.length - (arguments.length - 1)),
1037
- !0
1038
- );
1039
- };
1040
- var s = function() {
1041
- return f(e, o, arguments);
1042
- };
1043
- l ? l(r.exports, "apply", { value: s }) : r.exports.apply = s;
1044
- })(jr);
1045
- var Rn = jr.exports, Yr = re, Zr = Rn, Dn = Zr(Yr("String.prototype.indexOf")), _n = function(e, t) {
1046
- var n = Yr(e, !!t);
1047
- return typeof n == "function" && Dn(e, ".prototype.") > -1 ? Zr(n) : n;
1048
- }, Mn = gt.inspect, lr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && lr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, xe = lr && Le && typeof Le.get == "function" ? Le.get : null, Pr = lr && Map.prototype.forEach, fr = typeof Set == "function" && Set.prototype, We = Object.getOwnPropertyDescriptor && fr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ie = fr && We && typeof We.get == "function" ? We.get : null, $r = fr && Set.prototype.forEach, Nn = typeof WeakMap == "function" && WeakMap.prototype, fe = Nn ? WeakMap.prototype.has : null, Un = typeof WeakSet == "function" && WeakSet.prototype, ue = Un ? WeakSet.prototype.has : null, Bn = typeof WeakRef == "function" && WeakRef.prototype, xr = Bn ? WeakRef.prototype.deref : null, Fn = Boolean.prototype.valueOf, Ln = Object.prototype.toString, Wn = Function.prototype.toString, qn = String.prototype.match, ur = String.prototype.slice, U = String.prototype.replace, Gn = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, et = RegExp.prototype.test, Tr = Array.prototype.concat, O = Array.prototype.join, kn = Array.prototype.slice, Cr = Math.floor, Je = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, qe = Object.getOwnPropertySymbols, Xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Z = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Z || !0) ? Symbol.toStringTag : null, rt = Object.prototype.propertyIsEnumerable, Or = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
657
+ var on = De.Observable;
658
+ const pt = /* @__PURE__ */ nt(on);
659
+ var te = TypeError, ln = Ht.inspect, Er = typeof Map == "function" && Map.prototype, ke = Object.getOwnPropertyDescriptor && Er ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ie = Er && ke && typeof ke.get == "function" ? ke.get : null, Cr = Er && Map.prototype.forEach, Ar = typeof Set == "function" && Set.prototype, ze = Object.getOwnPropertyDescriptor && Ar ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = Ar && ze && typeof ze.get == "function" ? ze.get : null, Tr = Ar && Set.prototype.forEach, fn = typeof WeakMap == "function" && WeakMap.prototype, ue = fn ? WeakMap.prototype.has : null, un = typeof WeakSet == "function" && WeakSet.prototype, ce = un ? WeakSet.prototype.has : null, cn = typeof WeakRef == "function" && WeakRef.prototype, Mr = cn ? WeakRef.prototype.deref : null, sn = Boolean.prototype.valueOf, pn = Object.prototype.toString, yn = Function.prototype.toString, dn = String.prototype.match, $r = String.prototype.slice, L = String.prototype.replace, hn = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, yt = RegExp.prototype.test, Nr = Array.prototype.concat, I = Array.prototype.join, mn = Array.prototype.slice, Lr = Math.floor, pr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ke = Object.getOwnPropertySymbols, yr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", se = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, dt = Object.prototype.propertyIsEnumerable, Ur = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
1049
660
  return r.__proto__;
1050
661
  } : null);
1051
- function Rr(r, e) {
1052
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || et.call(/e/, e))
662
+ function Br(r, e) {
663
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || yt.call(/e/, e))
1053
664
  return e;
1054
665
  var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1055
666
  if (typeof r == "number") {
1056
- var n = r < 0 ? -Cr(-r) : Cr(r);
667
+ var n = r < 0 ? -Lr(-r) : Lr(r);
1057
668
  if (n !== r) {
1058
- var a = String(n), o = ur.call(e, a.length + 1);
1059
- return U.call(a, t, "$&_") + "." + U.call(U.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
669
+ var a = String(n), i = $r.call(e, a.length + 1);
670
+ return L.call(a, t, "$&_") + "." + L.call(L.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
1060
671
  }
1061
672
  }
1062
- return U.call(e, t, "$&_");
673
+ return L.call(e, t, "$&_");
1063
674
  }
1064
- var Ye = Mn, Dr = Ye.custom, _r = nt(Dr) ? Dr : null, zn = function r(e, t, n, a) {
1065
- var o = t || {};
1066
- if (N(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
675
+ var dr = ln, qr = dr.custom, Wr = vt(qr) ? qr : null, ht = {
676
+ __proto__: null,
677
+ double: '"',
678
+ single: "'"
679
+ }, vn = {
680
+ __proto__: null,
681
+ double: /(["\\])/g,
682
+ single: /(['\\])/g
683
+ }, Le = function r(e, t, n, a) {
684
+ var i = t || {};
685
+ if (T(i, "quoteStyle") && !T(ht, i.quoteStyle))
1067
686
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
1068
- if (N(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
687
+ if (T(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
1069
688
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1070
- var i = N(o, "customInspect") ? o.customInspect : !0;
1071
- if (typeof i != "boolean" && i !== "symbol")
689
+ var o = T(i, "customInspect") ? i.customInspect : !0;
690
+ if (typeof o != "boolean" && o !== "symbol")
1072
691
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1073
- if (N(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
692
+ if (T(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
1074
693
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1075
- if (N(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
694
+ if (T(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
1076
695
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1077
- var f = o.numericSeparator;
696
+ var f = i.numericSeparator;
1078
697
  if (typeof e > "u")
1079
698
  return "undefined";
1080
699
  if (e === null)
@@ -1082,165 +701,168 @@ var Ye = Mn, Dr = Ye.custom, _r = nt(Dr) ? Dr : null, zn = function r(e, t, n, a
1082
701
  if (typeof e == "boolean")
1083
702
  return e ? "true" : "false";
1084
703
  if (typeof e == "string")
1085
- return ot(e, o);
704
+ return wt(e, i);
1086
705
  if (typeof e == "number") {
1087
706
  if (e === 0)
1088
707
  return 1 / 0 / e > 0 ? "0" : "-0";
1089
708
  var l = String(e);
1090
- return f ? Rr(e, l) : l;
709
+ return f ? Br(e, l) : l;
1091
710
  }
1092
711
  if (typeof e == "bigint") {
1093
- var u = String(e) + "n";
1094
- return f ? Rr(e, u) : u;
712
+ var c = String(e) + "n";
713
+ return f ? Br(e, c) : c;
1095
714
  }
1096
- var s = typeof o.depth > "u" ? 5 : o.depth;
715
+ var s = typeof i.depth > "u" ? 5 : i.depth;
1097
716
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
1098
- return Ze(e) ? "[Array]" : "[Object]";
1099
- var p = fa(o, n);
717
+ return hr(e) ? "[Array]" : "[Object]";
718
+ var p = Nn(i, n);
1100
719
  if (typeof a > "u")
1101
720
  a = [];
1102
- else if (at(a, e) >= 0)
721
+ else if (gt(a, e) >= 0)
1103
722
  return "[Circular]";
1104
- function c(I, _, M) {
1105
- if (_ && (a = kn.call(a), a.push(_)), M) {
723
+ function u(x, N, C) {
724
+ if (N && (a = mn.call(a), a.push(N)), C) {
1106
725
  var ae = {
1107
- depth: o.depth
726
+ depth: i.depth
1108
727
  };
1109
- return N(o, "quoteStyle") && (ae.quoteStyle = o.quoteStyle), r(I, ae, n + 1, a);
728
+ return T(i, "quoteStyle") && (ae.quoteStyle = i.quoteStyle), r(x, ae, n + 1, a);
1110
729
  }
1111
- return r(I, o, n + 1, a);
730
+ return r(x, i, n + 1, a);
1112
731
  }
1113
- if (typeof e == "function" && !Mr(e)) {
1114
- var d = Zn(e), y = he(e, c);
1115
- return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + O.call(y, ", ") + " }" : "");
732
+ if (typeof e == "function" && !Fr(e)) {
733
+ var d = xn(e), y = Se(e, u);
734
+ return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + I.call(y, ", ") + " }" : "");
1116
735
  }
1117
- if (nt(e)) {
1118
- var m = Z ? U.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Xe.call(e);
1119
- return typeof e == "object" && !Z ? ie(m) : m;
736
+ if (vt(e)) {
737
+ var h = ee ? L.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : yr.call(e);
738
+ return typeof e == "object" && !ee ? oe(h) : h;
1120
739
  }
1121
- if (oa(e)) {
1122
- for (var g = "<" + Ir.call(String(e.nodeName)), S = e.attributes || [], P = 0; P < S.length; P++)
1123
- g += " " + S[P].name + "=" + tt(Hn(S[P].value), "double", o);
1124
- return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" + Ir.call(String(e.nodeName)) + ">", g;
740
+ if (Tn(e)) {
741
+ for (var g = "<" + Dr.call(String(e.nodeName)), $ = e.attributes || [], E = 0; E < $.length; E++)
742
+ g += " " + $[E].name + "=" + mt(gn($[E].value), "double", i);
743
+ return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" + Dr.call(String(e.nodeName)) + ">", g;
1125
744
  }
1126
- if (Ze(e)) {
745
+ if (hr(e)) {
1127
746
  if (e.length === 0)
1128
747
  return "[]";
1129
- var h = he(e, c);
1130
- return p && !la(h) ? "[" + er(h, p) + "]" : "[ " + O.call(h, ", ") + " ]";
748
+ var m = Se(e, u);
749
+ return p && !Dn(m) ? "[" + mr(m, p) + "]" : "[ " + I.call(m, ", ") + " ]";
1131
750
  }
1132
- if (Vn(e)) {
1133
- var R = he(e, c);
1134
- return !("cause" in Error.prototype) && "cause" in e && !rt.call(e, "cause") ? "{ [" + String(e) + "] " + O.call(Tr.call("[cause]: " + c(e.cause), R), ", ") + " }" : R.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + O.call(R, ", ") + " }";
751
+ if (Sn(e)) {
752
+ var M = Se(e, u);
753
+ return !("cause" in Error.prototype) && "cause" in e && !dt.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(Nr.call("[cause]: " + u(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(M, ", ") + " }";
1135
754
  }
1136
- if (typeof e == "object" && i) {
1137
- if (_r && typeof e[_r] == "function" && Ye)
1138
- return Ye(e, { depth: s - n });
1139
- if (i !== "symbol" && typeof e.inspect == "function")
755
+ if (typeof e == "object" && o) {
756
+ if (Wr && typeof e[Wr] == "function" && dr)
757
+ return dr(e, { depth: s - n });
758
+ if (o !== "symbol" && typeof e.inspect == "function")
1140
759
  return e.inspect();
1141
760
  }
1142
- if (ea(e)) {
1143
- var F = [];
1144
- return Pr && Pr.call(e, function(I, _) {
1145
- F.push(c(_, e, !0) + " => " + c(I, e));
1146
- }), Nr("Map", xe.call(e), F, p);
761
+ if (On(e)) {
762
+ var B = [];
763
+ return Cr && Cr.call(e, function(x, N) {
764
+ B.push(u(N, e, !0) + " => " + u(x, e));
765
+ }), Gr("Map", Ie.call(e), B, p);
1147
766
  }
1148
- if (na(e)) {
767
+ if (Rn(e)) {
1149
768
  var ne = [];
1150
- return $r && $r.call(e, function(I) {
1151
- ne.push(c(I, e));
1152
- }), Nr("Set", Ie.call(e), ne, p);
1153
- }
1154
- if (ra(e))
1155
- return Ge("WeakMap");
1156
- if (aa(e))
1157
- return Ge("WeakSet");
1158
- if (ta(e))
1159
- return Ge("WeakRef");
1160
- if (jn(e))
1161
- return ie(c(Number(e)));
1162
- if (Xn(e))
1163
- return ie(c(Je.call(e)));
1164
- if (Jn(e))
1165
- return ie(Fn.call(e));
1166
- if (Qn(e))
1167
- return ie(c(String(e)));
769
+ return Tr && Tr.call(e, function(x) {
770
+ ne.push(u(x, e));
771
+ }), Gr("Set", Re.call(e), ne, p);
772
+ }
773
+ if (_n(e))
774
+ return Ve("WeakMap");
775
+ if (Cn(e))
776
+ return Ve("WeakSet");
777
+ if (In(e))
778
+ return Ve("WeakRef");
779
+ if (En(e))
780
+ return oe(u(Number(e)));
781
+ if ($n(e))
782
+ return oe(u(pr.call(e)));
783
+ if (An(e))
784
+ return oe(sn.call(e));
785
+ if (bn(e))
786
+ return oe(u(String(e)));
1168
787
  if (typeof window < "u" && e === window)
1169
788
  return "{ [object Window] }";
1170
- if (typeof globalThis < "u" && e === globalThis || typeof yr < "u" && e === yr)
789
+ if (typeof globalThis < "u" && e === globalThis || typeof Ir < "u" && e === Ir)
1171
790
  return "{ [object globalThis] }";
1172
- if (!Kn(e) && !Mr(e)) {
1173
- var z = he(e, c), de = Or ? Or(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", D = !de && $ && Object(e) === e && $ in e ? ur.call(B(e), 8, -1) : L ? "Object" : "", me = de || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", H = me + (D || L ? "[" + O.call(Tr.call([], D || [], L || []), ": ") + "] " : "");
1174
- return z.length === 0 ? H + "{}" : p ? H + "{" + er(z, p) + "}" : H + "{ " + O.call(z, ", ") + " }";
791
+ if (!wn(e) && !Fr(e)) {
792
+ var k = Se(e, u), ge = Ur ? Ur(e) === Object.prototype : e instanceof Object || e.constructor === Object, q = e instanceof Object ? "" : "null prototype", D = !ge && se && Object(e) === e && se in e ? $r.call(U(e), 8, -1) : q ? "Object" : "", we = ge || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = we + (D || q ? "[" + I.call(Nr.call([], D || [], q || []), ": ") + "] " : "");
793
+ return k.length === 0 ? z + "{}" : p ? z + "{" + mr(k, p) + "}" : z + "{ " + I.call(k, ", ") + " }";
1175
794
  }
1176
795
  return String(e);
1177
796
  };
1178
- function tt(r, e, t) {
1179
- var n = (t.quoteStyle || e) === "double" ? '"' : "'";
1180
- return n + r + n;
797
+ function mt(r, e, t) {
798
+ var n = t.quoteStyle || e, a = ht[n];
799
+ return a + r + a;
1181
800
  }
1182
- function Hn(r) {
1183
- return U.call(String(r), /"/g, "&quot;");
801
+ function gn(r) {
802
+ return L.call(String(r), /"/g, "&quot;");
1184
803
  }
1185
- function Ze(r) {
1186
- return B(r) === "[object Array]" && (!$ || !(typeof r == "object" && $ in r));
804
+ function j(r) {
805
+ return !se || !(typeof r == "object" && (se in r || typeof r[se] < "u"));
1187
806
  }
1188
- function Kn(r) {
1189
- return B(r) === "[object Date]" && (!$ || !(typeof r == "object" && $ in r));
807
+ function hr(r) {
808
+ return U(r) === "[object Array]" && j(r);
1190
809
  }
1191
- function Mr(r) {
1192
- return B(r) === "[object RegExp]" && (!$ || !(typeof r == "object" && $ in r));
810
+ function wn(r) {
811
+ return U(r) === "[object Date]" && j(r);
1193
812
  }
1194
- function Vn(r) {
1195
- return B(r) === "[object Error]" && (!$ || !(typeof r == "object" && $ in r));
813
+ function Fr(r) {
814
+ return U(r) === "[object RegExp]" && j(r);
1196
815
  }
1197
- function Qn(r) {
1198
- return B(r) === "[object String]" && (!$ || !(typeof r == "object" && $ in r));
816
+ function Sn(r) {
817
+ return U(r) === "[object Error]" && j(r);
1199
818
  }
1200
- function jn(r) {
1201
- return B(r) === "[object Number]" && (!$ || !(typeof r == "object" && $ in r));
819
+ function bn(r) {
820
+ return U(r) === "[object String]" && j(r);
1202
821
  }
1203
- function Jn(r) {
1204
- return B(r) === "[object Boolean]" && (!$ || !(typeof r == "object" && $ in r));
822
+ function En(r) {
823
+ return U(r) === "[object Number]" && j(r);
1205
824
  }
1206
- function nt(r) {
1207
- if (Z)
825
+ function An(r) {
826
+ return U(r) === "[object Boolean]" && j(r);
827
+ }
828
+ function vt(r) {
829
+ if (ee)
1208
830
  return r && typeof r == "object" && r instanceof Symbol;
1209
831
  if (typeof r == "symbol")
1210
832
  return !0;
1211
- if (!r || typeof r != "object" || !Xe)
833
+ if (!r || typeof r != "object" || !yr)
1212
834
  return !1;
1213
835
  try {
1214
- return Xe.call(r), !0;
836
+ return yr.call(r), !0;
1215
837
  } catch {
1216
838
  }
1217
839
  return !1;
1218
840
  }
1219
- function Xn(r) {
1220
- if (!r || typeof r != "object" || !Je)
841
+ function $n(r) {
842
+ if (!r || typeof r != "object" || !pr)
1221
843
  return !1;
1222
844
  try {
1223
- return Je.call(r), !0;
845
+ return pr.call(r), !0;
1224
846
  } catch {
1225
847
  }
1226
848
  return !1;
1227
849
  }
1228
- var Yn = Object.prototype.hasOwnProperty || function(r) {
850
+ var Pn = Object.prototype.hasOwnProperty || function(r) {
1229
851
  return r in this;
1230
852
  };
1231
- function N(r, e) {
1232
- return Yn.call(r, e);
853
+ function T(r, e) {
854
+ return Pn.call(r, e);
1233
855
  }
1234
- function B(r) {
1235
- return Ln.call(r);
856
+ function U(r) {
857
+ return pn.call(r);
1236
858
  }
1237
- function Zn(r) {
859
+ function xn(r) {
1238
860
  if (r.name)
1239
861
  return r.name;
1240
- var e = qn.call(Wn.call(r), /^function\s*([\w$]+)/);
862
+ var e = dn.call(yn.call(r), /^function\s*([\w$]+)/);
1241
863
  return e ? e[1] : null;
1242
864
  }
1243
- function at(r, e) {
865
+ function gt(r, e) {
1244
866
  if (r.indexOf)
1245
867
  return r.indexOf(e);
1246
868
  for (var t = 0, n = r.length; t < n; t++)
@@ -1248,13 +870,13 @@ function at(r, e) {
1248
870
  return t;
1249
871
  return -1;
1250
872
  }
1251
- function ea(r) {
1252
- if (!xe || !r || typeof r != "object")
873
+ function On(r) {
874
+ if (!Ie || !r || typeof r != "object")
1253
875
  return !1;
1254
876
  try {
1255
- xe.call(r);
877
+ Ie.call(r);
1256
878
  try {
1257
- Ie.call(r);
879
+ Re.call(r);
1258
880
  } catch {
1259
881
  return !0;
1260
882
  }
@@ -1263,13 +885,13 @@ function ea(r) {
1263
885
  }
1264
886
  return !1;
1265
887
  }
1266
- function ra(r) {
1267
- if (!fe || !r || typeof r != "object")
888
+ function _n(r) {
889
+ if (!ue || !r || typeof r != "object")
1268
890
  return !1;
1269
891
  try {
1270
- fe.call(r, fe);
892
+ ue.call(r, ue);
1271
893
  try {
1272
- ue.call(r, ue);
894
+ ce.call(r, ce);
1273
895
  } catch {
1274
896
  return !0;
1275
897
  }
@@ -1278,22 +900,22 @@ function ra(r) {
1278
900
  }
1279
901
  return !1;
1280
902
  }
1281
- function ta(r) {
1282
- if (!xr || !r || typeof r != "object")
903
+ function In(r) {
904
+ if (!Mr || !r || typeof r != "object")
1283
905
  return !1;
1284
906
  try {
1285
- return xr.call(r), !0;
907
+ return Mr.call(r), !0;
1286
908
  } catch {
1287
909
  }
1288
910
  return !1;
1289
911
  }
1290
- function na(r) {
1291
- if (!Ie || !r || typeof r != "object")
912
+ function Rn(r) {
913
+ if (!Re || !r || typeof r != "object")
1292
914
  return !1;
1293
915
  try {
1294
- Ie.call(r);
916
+ Re.call(r);
1295
917
  try {
1296
- xe.call(r);
918
+ Ie.call(r);
1297
919
  } catch {
1298
920
  return !0;
1299
921
  }
@@ -1302,13 +924,13 @@ function na(r) {
1302
924
  }
1303
925
  return !1;
1304
926
  }
1305
- function aa(r) {
1306
- if (!ue || !r || typeof r != "object")
927
+ function Cn(r) {
928
+ if (!ce || !r || typeof r != "object")
1307
929
  return !1;
1308
930
  try {
1309
- ue.call(r, ue);
931
+ ce.call(r, ce);
1310
932
  try {
1311
- fe.call(r, fe);
933
+ ue.call(r, ue);
1312
934
  } catch {
1313
935
  return !0;
1314
936
  }
@@ -1317,18 +939,20 @@ function aa(r) {
1317
939
  }
1318
940
  return !1;
1319
941
  }
1320
- function oa(r) {
942
+ function Tn(r) {
1321
943
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
1322
944
  }
1323
- function ot(r, e) {
945
+ function wt(r, e) {
1324
946
  if (r.length > e.maxStringLength) {
1325
947
  var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
1326
- return ot(ur.call(r, 0, e.maxStringLength), e) + n;
948
+ return wt($r.call(r, 0, e.maxStringLength), e) + n;
1327
949
  }
1328
- var a = U.call(U.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ia);
1329
- return tt(a, "single", e);
950
+ var a = vn[e.quoteStyle || "single"];
951
+ a.lastIndex = 0;
952
+ var i = L.call(L.call(r, a, "\\$1"), /[\x00-\x1f]/g, Mn);
953
+ return mt(i, "single", e);
1330
954
  }
1331
- function ia(r) {
955
+ function Mn(r) {
1332
956
  var e = r.charCodeAt(0), t = {
1333
957
  8: "b",
1334
958
  9: "t",
@@ -1336,179 +960,684 @@ function ia(r) {
1336
960
  12: "f",
1337
961
  13: "r"
1338
962
  }[e];
1339
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Gn.call(e.toString(16));
963
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + hn.call(e.toString(16));
1340
964
  }
1341
- function ie(r) {
965
+ function oe(r) {
1342
966
  return "Object(" + r + ")";
1343
967
  }
1344
- function Ge(r) {
968
+ function Ve(r) {
1345
969
  return r + " { ? }";
1346
970
  }
1347
- function Nr(r, e, t, n) {
1348
- var a = n ? er(t, n) : O.call(t, ", ");
971
+ function Gr(r, e, t, n) {
972
+ var a = n ? mr(t, n) : I.call(t, ", ");
1349
973
  return r + " (" + e + ") {" + a + "}";
1350
974
  }
1351
- function la(r) {
975
+ function Dn(r) {
1352
976
  for (var e = 0; e < r.length; e++)
1353
- if (at(r[e], `
977
+ if (gt(r[e], `
1354
978
  `) >= 0)
1355
979
  return !1;
1356
980
  return !0;
1357
981
  }
1358
- function fa(r, e) {
982
+ function Nn(r, e) {
1359
983
  var t;
1360
984
  if (r.indent === " ")
1361
985
  t = " ";
1362
986
  else if (typeof r.indent == "number" && r.indent > 0)
1363
- t = O.call(Array(r.indent + 1), " ");
987
+ t = I.call(Array(r.indent + 1), " ");
1364
988
  else
1365
989
  return null;
1366
990
  return {
1367
991
  base: t,
1368
- prev: O.call(Array(e + 1), t)
992
+ prev: I.call(Array(e + 1), t)
1369
993
  };
1370
994
  }
1371
- function er(r, e) {
995
+ function mr(r, e) {
1372
996
  if (r.length === 0)
1373
997
  return "";
1374
998
  var t = `
1375
999
  ` + e.prev + e.base;
1376
- return t + O.call(r, "," + t) + `
1000
+ return t + I.call(r, "," + t) + `
1377
1001
  ` + e.prev;
1378
1002
  }
1379
- function he(r, e) {
1380
- var t = Ze(r), n = [];
1003
+ function Se(r, e) {
1004
+ var t = hr(r), n = [];
1381
1005
  if (t) {
1382
1006
  n.length = r.length;
1383
1007
  for (var a = 0; a < r.length; a++)
1384
- n[a] = N(r, a) ? e(r[a], r) : "";
1008
+ n[a] = T(r, a) ? e(r[a], r) : "";
1385
1009
  }
1386
- var o = typeof qe == "function" ? qe(r) : [], i;
1387
- if (Z) {
1388
- i = {};
1389
- for (var f = 0; f < o.length; f++)
1390
- i["$" + o[f]] = o[f];
1010
+ var i = typeof Ke == "function" ? Ke(r) : [], o;
1011
+ if (ee) {
1012
+ o = {};
1013
+ for (var f = 0; f < i.length; f++)
1014
+ o["$" + i[f]] = i[f];
1391
1015
  }
1392
1016
  for (var l in r)
1393
- N(r, l) && (t && String(Number(l)) === l && l < r.length || Z && i["$" + l] instanceof Symbol || (et.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
1394
- if (typeof qe == "function")
1395
- for (var u = 0; u < o.length; u++)
1396
- rt.call(r, o[u]) && n.push("[" + e(o[u]) + "]: " + e(r[o[u]], r));
1017
+ T(r, l) && (t && String(Number(l)) === l && l < r.length || ee && o["$" + l] instanceof Symbol || (yt.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
1018
+ if (typeof Ke == "function")
1019
+ for (var c = 0; c < i.length; c++)
1020
+ dt.call(r, i[c]) && n.push("[" + e(i[c]) + "]: " + e(r[i[c]], r));
1397
1021
  return n;
1398
1022
  }
1399
- var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%", !0), sa = te("WeakMap.prototype.get", !0), pa = te("WeakMap.prototype.set", !0), ya = te("WeakMap.prototype.has", !0), da = te("Map.prototype.get", !0), ma = te("Map.prototype.set", !0), ha = te("Map.prototype.has", !0), cr = function(r, e) {
1400
- for (var t = r, n; (n = t.next) !== null; t = n)
1401
- if (n.key === e)
1402
- return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1403
- r.next, r.next = n, n;
1404
- }, va = function(r, e) {
1405
- var t = cr(r, e);
1406
- return t && t.value;
1407
- }, ga = function(r, e, t) {
1408
- var n = cr(r, e);
1409
- n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
1023
+ var Ln = Le, Un = te, Ue = function(r, e, t) {
1024
+ for (var n = r, a; (a = n.next) != null; n = a)
1025
+ if (a.key === e)
1026
+ return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
1027
+ r.next, r.next = a), a;
1028
+ }, Bn = function(r, e) {
1029
+ if (r) {
1030
+ var t = Ue(r, e);
1031
+ return t && t.value;
1032
+ }
1033
+ }, qn = function(r, e, t) {
1034
+ var n = Ue(r, e);
1035
+ n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1410
1036
  {
1411
1037
  // eslint-disable-line no-param-reassign, no-extra-parens
1412
1038
  key: e,
1413
1039
  next: r.next,
1414
1040
  value: t
1415
1041
  };
1416
- }, wa = function(r, e) {
1417
- return !!cr(r, e);
1418
- }, ba = function() {
1419
- var e, t, n, a = {
1420
- assert: function(o) {
1421
- if (!a.has(o))
1422
- throw new ca("Side channel does not contain " + ua(o));
1042
+ }, Wn = function(r, e) {
1043
+ return r ? !!Ue(r, e) : !1;
1044
+ }, Fn = function(r, e) {
1045
+ if (r)
1046
+ return Ue(r, e, !0);
1047
+ }, Gn = function() {
1048
+ var e, t = {
1049
+ assert: function(n) {
1050
+ if (!t.has(n))
1051
+ throw new Un("Side channel does not contain " + Ln(n));
1423
1052
  },
1424
- get: function(o) {
1425
- if (ve && o && (typeof o == "object" || typeof o == "function")) {
1426
- if (e)
1427
- return sa(e, o);
1428
- } else if (ge) {
1429
- if (t)
1430
- return da(t, o);
1431
- } else if (n)
1432
- return va(n, o);
1053
+ delete: function(n) {
1054
+ var a = e && e.next, i = Fn(e, n);
1055
+ return i && a && a === i && (e = void 0), !!i;
1433
1056
  },
1434
- has: function(o) {
1435
- if (ve && o && (typeof o == "object" || typeof o == "function")) {
1436
- if (e)
1437
- return ya(e, o);
1438
- } else if (ge) {
1439
- if (t)
1440
- return ha(t, o);
1441
- } else if (n)
1442
- return wa(n, o);
1443
- return !1;
1057
+ get: function(n) {
1058
+ return Bn(e, n);
1444
1059
  },
1445
- set: function(o, i) {
1446
- ve && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ve()), pa(e, o, i)) : ge ? (t || (t = new ge()), ma(t, o, i)) : (n || (n = { key: {}, next: null }), ga(n, o, i));
1060
+ has: function(n) {
1061
+ return Wn(e, n);
1062
+ },
1063
+ set: function(n, a) {
1064
+ e || (e = {
1065
+ next: void 0
1066
+ }), qn(
1067
+ /** @type {NonNullable<typeof $o>} */
1068
+ e,
1069
+ n,
1070
+ a
1071
+ );
1447
1072
  }
1448
1073
  };
1074
+ return t;
1075
+ }, St = Object, Hn = Error, jn = EvalError, kn = RangeError, zn = ReferenceError, Kn = SyntaxError, Vn = URIError, Qn = Math.abs, Jn = Math.floor, Xn = Math.max, Yn = Math.min, Zn = Math.pow, ea = Math.round, ra = Number.isNaN || function(e) {
1076
+ return e !== e;
1077
+ }, ta = ra, na = function(e) {
1078
+ return ta(e) || e === 0 ? e : e < 0 ? -1 : 1;
1079
+ }, aa = Object.getOwnPropertyDescriptor, $e = aa;
1080
+ if ($e)
1081
+ try {
1082
+ $e([], "length");
1083
+ } catch {
1084
+ $e = null;
1085
+ }
1086
+ var bt = $e, Pe = Object.defineProperty || !1;
1087
+ if (Pe)
1088
+ try {
1089
+ Pe({}, "a", { value: 1 });
1090
+ } catch {
1091
+ Pe = !1;
1092
+ }
1093
+ var ia = Pe, Qe, Hr;
1094
+ function oa() {
1095
+ return Hr || (Hr = 1, Qe = function() {
1096
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1097
+ return !1;
1098
+ if (typeof Symbol.iterator == "symbol")
1099
+ return !0;
1100
+ var e = {}, t = Symbol("test"), n = Object(t);
1101
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
1102
+ return !1;
1103
+ var a = 42;
1104
+ e[t] = a;
1105
+ for (var i in e)
1106
+ return !1;
1107
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1108
+ return !1;
1109
+ var o = Object.getOwnPropertySymbols(e);
1110
+ if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
1111
+ return !1;
1112
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
1113
+ var f = (
1114
+ /** @type {PropertyDescriptor} */
1115
+ Object.getOwnPropertyDescriptor(e, t)
1116
+ );
1117
+ if (f.value !== a || f.enumerable !== !0)
1118
+ return !1;
1119
+ }
1120
+ return !0;
1121
+ }), Qe;
1122
+ }
1123
+ var Je, jr;
1124
+ function la() {
1125
+ if (jr) return Je;
1126
+ jr = 1;
1127
+ var r = typeof Symbol < "u" && Symbol, e = oa();
1128
+ return Je = function() {
1129
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
1130
+ }, Je;
1131
+ }
1132
+ var Xe, kr;
1133
+ function Et() {
1134
+ return kr || (kr = 1, Xe = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Xe;
1135
+ }
1136
+ var Ye, zr;
1137
+ function At() {
1138
+ if (zr) return Ye;
1139
+ zr = 1;
1140
+ var r = St;
1141
+ return Ye = r.getPrototypeOf || null, Ye;
1142
+ }
1143
+ var fa = "Function.prototype.bind called on incompatible ", ua = Object.prototype.toString, ca = Math.max, sa = "[object Function]", Kr = function(e, t) {
1144
+ for (var n = [], a = 0; a < e.length; a += 1)
1145
+ n[a] = e[a];
1146
+ for (var i = 0; i < t.length; i += 1)
1147
+ n[i + e.length] = t[i];
1148
+ return n;
1149
+ }, pa = function(e, t) {
1150
+ for (var n = [], a = t, i = 0; a < e.length; a += 1, i += 1)
1151
+ n[i] = e[a];
1152
+ return n;
1153
+ }, ya = function(r, e) {
1154
+ for (var t = "", n = 0; n < r.length; n += 1)
1155
+ t += r[n], n + 1 < r.length && (t += e);
1156
+ return t;
1157
+ }, da = function(e) {
1158
+ var t = this;
1159
+ if (typeof t != "function" || ua.apply(t) !== sa)
1160
+ throw new TypeError(fa + t);
1161
+ for (var n = pa(arguments, 1), a, i = function() {
1162
+ if (this instanceof a) {
1163
+ var s = t.apply(
1164
+ this,
1165
+ Kr(n, arguments)
1166
+ );
1167
+ return Object(s) === s ? s : this;
1168
+ }
1169
+ return t.apply(
1170
+ e,
1171
+ Kr(n, arguments)
1172
+ );
1173
+ }, o = ca(0, t.length - n.length), f = [], l = 0; l < o; l++)
1174
+ f[l] = "$" + l;
1175
+ if (a = Function("binder", "return function (" + ya(f, ",") + "){ return binder.apply(this,arguments); }")(i), t.prototype) {
1176
+ var c = function() {
1177
+ };
1178
+ c.prototype = t.prototype, a.prototype = new c(), c.prototype = null;
1179
+ }
1449
1180
  return a;
1450
- }, Sa = String.prototype.replace, Ea = /%20/g, ke = {
1181
+ }, ha = da, Be = Function.prototype.bind || ha, Pr = Function.prototype.call, Ze, Vr;
1182
+ function $t() {
1183
+ return Vr || (Vr = 1, Ze = Function.prototype.apply), Ze;
1184
+ }
1185
+ var ma = typeof Reflect < "u" && Reflect && Reflect.apply, va = Be, ga = $t(), wa = Pr, Sa = ma, ba = Sa || va.call(wa, ga), Ea = Be, Aa = te, $a = Pr, Pa = ba, Pt = function(e) {
1186
+ if (e.length < 1 || typeof e[0] != "function")
1187
+ throw new Aa("a function is required");
1188
+ return Pa(Ea, $a, e);
1189
+ }, er, Qr;
1190
+ function xa() {
1191
+ if (Qr) return er;
1192
+ Qr = 1;
1193
+ var r = Pt, e = bt, t;
1194
+ try {
1195
+ t = /** @type {{ __proto__?: typeof Array.prototype }} */
1196
+ [].__proto__ === Array.prototype;
1197
+ } catch (o) {
1198
+ if (!o || typeof o != "object" || !("code" in o) || o.code !== "ERR_PROTO_ACCESS")
1199
+ throw o;
1200
+ }
1201
+ var n = !!t && e && e(
1202
+ Object.prototype,
1203
+ /** @type {keyof typeof Object.prototype} */
1204
+ "__proto__"
1205
+ ), a = Object, i = a.getPrototypeOf;
1206
+ return er = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
1207
+ /** @type {import('./get')} */
1208
+ function(f) {
1209
+ return i(f == null ? f : a(f));
1210
+ }
1211
+ ) : !1, er;
1212
+ }
1213
+ var rr, Jr;
1214
+ function Oa() {
1215
+ if (Jr) return rr;
1216
+ Jr = 1;
1217
+ var r = Et(), e = At(), t = xa();
1218
+ return rr = r ? function(a) {
1219
+ return r(a);
1220
+ } : e ? function(a) {
1221
+ if (!a || typeof a != "object" && typeof a != "function")
1222
+ throw new TypeError("getProto: not an object");
1223
+ return e(a);
1224
+ } : t ? function(a) {
1225
+ return t(a);
1226
+ } : null, rr;
1227
+ }
1228
+ var tr, Xr;
1229
+ function _a() {
1230
+ if (Xr) return tr;
1231
+ Xr = 1;
1232
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Be;
1233
+ return tr = t.call(r, e), tr;
1234
+ }
1235
+ var v, Ia = St, Ra = Hn, Ca = jn, Ta = kn, Ma = zn, re = Kn, X = te, Da = Vn, Na = Qn, La = Jn, Ua = Xn, Ba = Yn, qa = Zn, Wa = ea, Fa = na, xt = Function, nr = function(r) {
1236
+ try {
1237
+ return xt('"use strict"; return (' + r + ").constructor;")();
1238
+ } catch {
1239
+ }
1240
+ }, de = bt, Ga = ia, ar = function() {
1241
+ throw new X();
1242
+ }, Ha = de ? function() {
1243
+ try {
1244
+ return arguments.callee, ar;
1245
+ } catch {
1246
+ try {
1247
+ return de(arguments, "callee").get;
1248
+ } catch {
1249
+ return ar;
1250
+ }
1251
+ }
1252
+ }() : ar, K = la()(), A = Oa(), ja = At(), ka = Et(), Ot = $t(), he = Pr, Q = {}, za = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
1253
+ __proto__: null,
1254
+ "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1255
+ "%Array%": Array,
1256
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1257
+ "%ArrayIteratorPrototype%": K && A ? A([][Symbol.iterator]()) : v,
1258
+ "%AsyncFromSyncIteratorPrototype%": v,
1259
+ "%AsyncFunction%": Q,
1260
+ "%AsyncGenerator%": Q,
1261
+ "%AsyncGeneratorFunction%": Q,
1262
+ "%AsyncIteratorPrototype%": Q,
1263
+ "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1264
+ "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1265
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
1266
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
1267
+ "%Boolean%": Boolean,
1268
+ "%DataView%": typeof DataView > "u" ? v : DataView,
1269
+ "%Date%": Date,
1270
+ "%decodeURI%": decodeURI,
1271
+ "%decodeURIComponent%": decodeURIComponent,
1272
+ "%encodeURI%": encodeURI,
1273
+ "%encodeURIComponent%": encodeURIComponent,
1274
+ "%Error%": Ra,
1275
+ "%eval%": eval,
1276
+ // eslint-disable-line no-eval
1277
+ "%EvalError%": Ca,
1278
+ "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
1279
+ "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1280
+ "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1281
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1282
+ "%Function%": xt,
1283
+ "%GeneratorFunction%": Q,
1284
+ "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1285
+ "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1286
+ "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1287
+ "%isFinite%": isFinite,
1288
+ "%isNaN%": isNaN,
1289
+ "%IteratorPrototype%": K && A ? A(A([][Symbol.iterator]())) : v,
1290
+ "%JSON%": typeof JSON == "object" ? JSON : v,
1291
+ "%Map%": typeof Map > "u" ? v : Map,
1292
+ "%MapIteratorPrototype%": typeof Map > "u" || !K || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1293
+ "%Math%": Math,
1294
+ "%Number%": Number,
1295
+ "%Object%": Ia,
1296
+ "%Object.getOwnPropertyDescriptor%": de,
1297
+ "%parseFloat%": parseFloat,
1298
+ "%parseInt%": parseInt,
1299
+ "%Promise%": typeof Promise > "u" ? v : Promise,
1300
+ "%Proxy%": typeof Proxy > "u" ? v : Proxy,
1301
+ "%RangeError%": Ta,
1302
+ "%ReferenceError%": Ma,
1303
+ "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1304
+ "%RegExp%": RegExp,
1305
+ "%Set%": typeof Set > "u" ? v : Set,
1306
+ "%SetIteratorPrototype%": typeof Set > "u" || !K || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1307
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1308
+ "%String%": String,
1309
+ "%StringIteratorPrototype%": K && A ? A(""[Symbol.iterator]()) : v,
1310
+ "%Symbol%": K ? Symbol : v,
1311
+ "%SyntaxError%": re,
1312
+ "%ThrowTypeError%": Ha,
1313
+ "%TypedArray%": za,
1314
+ "%TypeError%": X,
1315
+ "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1316
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1317
+ "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1318
+ "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1319
+ "%URIError%": Da,
1320
+ "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1321
+ "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1322
+ "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
1323
+ "%Function.prototype.call%": he,
1324
+ "%Function.prototype.apply%": Ot,
1325
+ "%Object.defineProperty%": Ga,
1326
+ "%Object.getPrototypeOf%": ja,
1327
+ "%Math.abs%": Na,
1328
+ "%Math.floor%": La,
1329
+ "%Math.max%": Ua,
1330
+ "%Math.min%": Ba,
1331
+ "%Math.pow%": qa,
1332
+ "%Math.round%": Wa,
1333
+ "%Math.sign%": Fa,
1334
+ "%Reflect.getPrototypeOf%": ka
1335
+ };
1336
+ if (A)
1337
+ try {
1338
+ null.error;
1339
+ } catch (r) {
1340
+ var Ka = A(A(r));
1341
+ G["%Error.prototype%"] = Ka;
1342
+ }
1343
+ var Va = function r(e) {
1344
+ var t;
1345
+ if (e === "%AsyncFunction%")
1346
+ t = nr("async function () {}");
1347
+ else if (e === "%GeneratorFunction%")
1348
+ t = nr("function* () {}");
1349
+ else if (e === "%AsyncGeneratorFunction%")
1350
+ t = nr("async function* () {}");
1351
+ else if (e === "%AsyncGenerator%") {
1352
+ var n = r("%AsyncGeneratorFunction%");
1353
+ n && (t = n.prototype);
1354
+ } else if (e === "%AsyncIteratorPrototype%") {
1355
+ var a = r("%AsyncGenerator%");
1356
+ a && A && (t = A(a.prototype));
1357
+ }
1358
+ return G[e] = t, t;
1359
+ }, Yr = {
1360
+ __proto__: null,
1361
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1362
+ "%ArrayPrototype%": ["Array", "prototype"],
1363
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1364
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1365
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1366
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1367
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1368
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1369
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1370
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1371
+ "%DataViewPrototype%": ["DataView", "prototype"],
1372
+ "%DatePrototype%": ["Date", "prototype"],
1373
+ "%ErrorPrototype%": ["Error", "prototype"],
1374
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1375
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1376
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1377
+ "%FunctionPrototype%": ["Function", "prototype"],
1378
+ "%Generator%": ["GeneratorFunction", "prototype"],
1379
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1380
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1381
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1382
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1383
+ "%JSONParse%": ["JSON", "parse"],
1384
+ "%JSONStringify%": ["JSON", "stringify"],
1385
+ "%MapPrototype%": ["Map", "prototype"],
1386
+ "%NumberPrototype%": ["Number", "prototype"],
1387
+ "%ObjectPrototype%": ["Object", "prototype"],
1388
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1389
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1390
+ "%PromisePrototype%": ["Promise", "prototype"],
1391
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1392
+ "%Promise_all%": ["Promise", "all"],
1393
+ "%Promise_reject%": ["Promise", "reject"],
1394
+ "%Promise_resolve%": ["Promise", "resolve"],
1395
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1396
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1397
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1398
+ "%SetPrototype%": ["Set", "prototype"],
1399
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1400
+ "%StringPrototype%": ["String", "prototype"],
1401
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1402
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1403
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1404
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1405
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1406
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1407
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1408
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1409
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1410
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1411
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1412
+ }, me = Be, Ce = _a(), Qa = me.call(he, Array.prototype.concat), Ja = me.call(Ot, Array.prototype.splice), Zr = me.call(he, String.prototype.replace), Te = me.call(he, String.prototype.slice), Xa = me.call(he, RegExp.prototype.exec), Ya = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Za = /\\(\\)?/g, ei = function(e) {
1413
+ var t = Te(e, 0, 1), n = Te(e, -1);
1414
+ if (t === "%" && n !== "%")
1415
+ throw new re("invalid intrinsic syntax, expected closing `%`");
1416
+ if (n === "%" && t !== "%")
1417
+ throw new re("invalid intrinsic syntax, expected opening `%`");
1418
+ var a = [];
1419
+ return Zr(e, Ya, function(i, o, f, l) {
1420
+ a[a.length] = f ? Zr(l, Za, "$1") : o || i;
1421
+ }), a;
1422
+ }, ri = function(e, t) {
1423
+ var n = e, a;
1424
+ if (Ce(Yr, n) && (a = Yr[n], n = "%" + a[0] + "%"), Ce(G, n)) {
1425
+ var i = G[n];
1426
+ if (i === Q && (i = Va(n)), typeof i > "u" && !t)
1427
+ throw new X("intrinsic " + e + " exists, but is not available. Please file an issue!");
1428
+ return {
1429
+ alias: a,
1430
+ name: n,
1431
+ value: i
1432
+ };
1433
+ }
1434
+ throw new re("intrinsic " + e + " does not exist!");
1435
+ }, xr = function(e, t) {
1436
+ if (typeof e != "string" || e.length === 0)
1437
+ throw new X("intrinsic name must be a non-empty string");
1438
+ if (arguments.length > 1 && typeof t != "boolean")
1439
+ throw new X('"allowMissing" argument must be a boolean');
1440
+ if (Xa(/^%?[^%]*%?$/, e) === null)
1441
+ throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1442
+ var n = ei(e), a = n.length > 0 ? n[0] : "", i = ri("%" + a + "%", t), o = i.name, f = i.value, l = !1, c = i.alias;
1443
+ c && (a = c[0], Ja(n, Qa([0, 1], c)));
1444
+ for (var s = 1, p = !0; s < n.length; s += 1) {
1445
+ var u = n[s], d = Te(u, 0, 1), y = Te(u, -1);
1446
+ if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
1447
+ throw new re("property names with quotes must have matching quotes");
1448
+ if ((u === "constructor" || !p) && (l = !0), a += "." + u, o = "%" + a + "%", Ce(G, o))
1449
+ f = G[o];
1450
+ else if (f != null) {
1451
+ if (!(u in f)) {
1452
+ if (!t)
1453
+ throw new X("base intrinsic for " + e + " exists, but the property is not available.");
1454
+ return;
1455
+ }
1456
+ if (de && s + 1 >= n.length) {
1457
+ var h = de(f, u);
1458
+ p = !!h, p && "get" in h && !("originalValue" in h.get) ? f = h.get : f = f[u];
1459
+ } else
1460
+ p = Ce(f, u), f = f[u];
1461
+ p && !l && (G[o] = f);
1462
+ }
1463
+ }
1464
+ return f;
1465
+ }, _t = xr, It = Pt, ti = It([_t("%String.prototype.indexOf%")]), Rt = function(e, t) {
1466
+ var n = (
1467
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1468
+ _t(e, !!t)
1469
+ );
1470
+ return typeof n == "function" && ti(e, ".prototype.") > -1 ? It(
1471
+ /** @type {const} */
1472
+ [n]
1473
+ ) : n;
1474
+ }, ni = xr, ve = Rt, ai = Le, ii = te, et = ni("%Map%", !0), oi = ve("Map.prototype.get", !0), li = ve("Map.prototype.set", !0), fi = ve("Map.prototype.has", !0), ui = ve("Map.prototype.delete", !0), ci = ve("Map.prototype.size", !0), Ct = !!et && /** @type {Exclude<import('.'), false>} */
1475
+ function() {
1476
+ var e, t = {
1477
+ assert: function(n) {
1478
+ if (!t.has(n))
1479
+ throw new ii("Side channel does not contain " + ai(n));
1480
+ },
1481
+ delete: function(n) {
1482
+ if (e) {
1483
+ var a = ui(e, n);
1484
+ return ci(e) === 0 && (e = void 0), a;
1485
+ }
1486
+ return !1;
1487
+ },
1488
+ get: function(n) {
1489
+ if (e)
1490
+ return oi(e, n);
1491
+ },
1492
+ has: function(n) {
1493
+ return e ? fi(e, n) : !1;
1494
+ },
1495
+ set: function(n, a) {
1496
+ e || (e = new et()), li(e, n, a);
1497
+ }
1498
+ };
1499
+ return t;
1500
+ }, si = xr, qe = Rt, pi = Le, be = Ct, yi = te, V = si("%WeakMap%", !0), di = qe("WeakMap.prototype.get", !0), hi = qe("WeakMap.prototype.set", !0), mi = qe("WeakMap.prototype.has", !0), vi = qe("WeakMap.prototype.delete", !0), gi = V ? (
1501
+ /** @type {Exclude<import('.'), false>} */
1502
+ function() {
1503
+ var e, t, n = {
1504
+ assert: function(a) {
1505
+ if (!n.has(a))
1506
+ throw new yi("Side channel does not contain " + pi(a));
1507
+ },
1508
+ delete: function(a) {
1509
+ if (V && a && (typeof a == "object" || typeof a == "function")) {
1510
+ if (e)
1511
+ return vi(e, a);
1512
+ } else if (be && t)
1513
+ return t.delete(a);
1514
+ return !1;
1515
+ },
1516
+ get: function(a) {
1517
+ return V && a && (typeof a == "object" || typeof a == "function") && e ? di(e, a) : t && t.get(a);
1518
+ },
1519
+ has: function(a) {
1520
+ return V && a && (typeof a == "object" || typeof a == "function") && e ? mi(e, a) : !!t && t.has(a);
1521
+ },
1522
+ set: function(a, i) {
1523
+ V && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new V()), hi(e, a, i)) : be && (t || (t = be()), t.set(a, i));
1524
+ }
1525
+ };
1526
+ return n;
1527
+ }
1528
+ ) : be, wi = te, Si = Le, bi = Gn, Ei = Ct, Ai = gi, $i = Ai || Ei || bi, Tt = function() {
1529
+ var e, t = {
1530
+ assert: function(n) {
1531
+ if (!t.has(n))
1532
+ throw new wi("Side channel does not contain " + Si(n));
1533
+ },
1534
+ delete: function(n) {
1535
+ return !!e && e.delete(n);
1536
+ },
1537
+ get: function(n) {
1538
+ return e && e.get(n);
1539
+ },
1540
+ has: function(n) {
1541
+ return !!e && e.has(n);
1542
+ },
1543
+ set: function(n, a) {
1544
+ e || (e = $i()), e.set(n, a);
1545
+ }
1546
+ };
1547
+ return t;
1548
+ }, Pi = String.prototype.replace, xi = /%20/g, ir = {
1451
1549
  RFC1738: "RFC1738",
1452
1550
  RFC3986: "RFC3986"
1453
- }, sr = {
1454
- default: ke.RFC3986,
1551
+ }, Or = {
1552
+ default: ir.RFC3986,
1455
1553
  formatters: {
1456
1554
  RFC1738: function(r) {
1457
- return Sa.call(r, Ea, "+");
1555
+ return Pi.call(r, xi, "+");
1458
1556
  },
1459
1557
  RFC3986: function(r) {
1460
1558
  return String(r);
1461
1559
  }
1462
1560
  },
1463
- RFC1738: ke.RFC1738,
1464
- RFC3986: ke.RFC3986
1465
- }, Aa = sr, ze = Object.prototype.hasOwnProperty, W = Array.isArray, T = function() {
1561
+ RFC1738: ir.RFC1738,
1562
+ RFC3986: ir.RFC3986
1563
+ }, Oi = Or, _i = Tt, or = Object.prototype.hasOwnProperty, W = Array.isArray, We = _i(), J = function(e, t) {
1564
+ return We.set(e, t), e;
1565
+ }, F = function(e) {
1566
+ return We.has(e);
1567
+ }, le = function(e) {
1568
+ return We.get(e);
1569
+ }, vr = function(e, t) {
1570
+ We.set(e, t);
1571
+ }, O = function() {
1466
1572
  for (var r = [], e = 0; e < 256; ++e)
1467
- r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1573
+ r[r.length] = "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase();
1468
1574
  return r;
1469
- }(), Pa = function(e) {
1575
+ }(), Ii = function(e) {
1470
1576
  for (; e.length > 1; ) {
1471
1577
  var t = e.pop(), n = t.obj[t.prop];
1472
1578
  if (W(n)) {
1473
- for (var a = [], o = 0; o < n.length; ++o)
1474
- typeof n[o] < "u" && a.push(n[o]);
1579
+ for (var a = [], i = 0; i < n.length; ++i)
1580
+ typeof n[i] < "u" && (a[a.length] = n[i]);
1475
1581
  t.obj[t.prop] = a;
1476
1582
  }
1477
1583
  }
1478
- }, lt = function(e, t) {
1479
- for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
1584
+ }, pe = function(e, t) {
1585
+ for (var n = t && t.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
1480
1586
  typeof e[a] < "u" && (n[a] = e[a]);
1481
1587
  return n;
1482
- }, $a = function r(e, t, n) {
1588
+ }, Ri = function r(e, t, n) {
1483
1589
  if (!t)
1484
1590
  return e;
1485
- if (typeof t != "object") {
1486
- if (W(e))
1487
- e.push(t);
1488
- else if (e && typeof e == "object")
1489
- (n && (n.plainObjects || n.allowPrototypes) || !ze.call(Object.prototype, t)) && (e[t] = !0);
1591
+ if (typeof t != "object" && typeof t != "function") {
1592
+ if (W(e)) {
1593
+ var a = e.length;
1594
+ if (n && typeof n.arrayLimit == "number" && a > n.arrayLimit)
1595
+ return J(pe(e.concat(t), n), a);
1596
+ e[a] = t;
1597
+ } else if (e && typeof e == "object")
1598
+ if (F(e)) {
1599
+ var i = le(e) + 1;
1600
+ e[i] = t, vr(e, i);
1601
+ } else {
1602
+ if (n && n.strictMerge)
1603
+ return [e, t];
1604
+ (n && (n.plainObjects || n.allowPrototypes) || !or.call(Object.prototype, t)) && (e[t] = !0);
1605
+ }
1490
1606
  else
1491
1607
  return [e, t];
1492
1608
  return e;
1493
1609
  }
1494
- if (!e || typeof e != "object")
1495
- return [e].concat(t);
1496
- var a = e;
1497
- return W(e) && !W(t) && (a = lt(e, n)), W(e) && W(t) ? (t.forEach(function(o, i) {
1498
- if (ze.call(e, i)) {
1499
- var f = e[i];
1500
- f && typeof f == "object" && o && typeof o == "object" ? e[i] = r(f, o, n) : e.push(o);
1610
+ if (!e || typeof e != "object") {
1611
+ if (F(t)) {
1612
+ for (var o = Object.keys(t), f = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < o.length; l++) {
1613
+ var c = parseInt(o[l], 10);
1614
+ f[c + 1] = t[o[l]];
1615
+ }
1616
+ return J(f, le(t) + 1);
1617
+ }
1618
+ var s = [e].concat(t);
1619
+ return n && typeof n.arrayLimit == "number" && s.length > n.arrayLimit ? J(pe(s, n), s.length - 1) : s;
1620
+ }
1621
+ var p = e;
1622
+ return W(e) && !W(t) && (p = pe(e, n)), W(e) && W(t) ? (t.forEach(function(u, d) {
1623
+ if (or.call(e, d)) {
1624
+ var y = e[d];
1625
+ y && typeof y == "object" && u && typeof u == "object" ? e[d] = r(y, u, n) : e[e.length] = u;
1501
1626
  } else
1502
- e[i] = o;
1503
- }), e) : Object.keys(t).reduce(function(o, i) {
1504
- var f = t[i];
1505
- return ze.call(o, i) ? o[i] = r(o[i], f, n) : o[i] = f, o;
1506
- }, a);
1507
- }, xa = function(e, t) {
1627
+ e[d] = u;
1628
+ }), e) : Object.keys(t).reduce(function(u, d) {
1629
+ var y = t[d];
1630
+ if (or.call(u, d) ? u[d] = r(u[d], y, n) : u[d] = y, F(t) && !F(u) && J(u, le(t)), F(u)) {
1631
+ var h = parseInt(d, 10);
1632
+ String(h) === d && h >= 0 && h > le(u) && vr(u, h);
1633
+ }
1634
+ return u;
1635
+ }, p);
1636
+ }, Ci = function(e, t) {
1508
1637
  return Object.keys(t).reduce(function(n, a) {
1509
1638
  return n[a] = t[a], n;
1510
1639
  }, e);
1511
- }, Ia = function(r, e, t) {
1640
+ }, Ti = function(r, e, t) {
1512
1641
  var n = r.replace(/\+/g, " ");
1513
1642
  if (t === "iso-8859-1")
1514
1643
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1517,70 +1646,77 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1517
1646
  } catch {
1518
1647
  return n;
1519
1648
  }
1520
- }, He = 1024, Ta = function(e, t, n, a, o) {
1649
+ }, lr = 1024, Mi = function(e, t, n, a, i) {
1521
1650
  if (e.length === 0)
1522
1651
  return e;
1523
- var i = e;
1524
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1525
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
1652
+ var o = e;
1653
+ if (typeof e == "symbol" ? o = Symbol.prototype.toString.call(e) : typeof e != "string" && (o = String(e)), n === "iso-8859-1")
1654
+ return escape(o).replace(/%u[0-9a-f]{4}/gi, function(d) {
1526
1655
  return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
1527
1656
  });
1528
- for (var f = "", l = 0; l < i.length; l += He) {
1529
- for (var u = i.length >= He ? i.slice(l, l + He) : i, s = [], p = 0; p < u.length; ++p) {
1530
- var c = u.charCodeAt(p);
1531
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === Aa.RFC1738 && (c === 40 || c === 41)) {
1532
- s[s.length] = u.charAt(p);
1657
+ for (var f = "", l = 0; l < o.length; l += lr) {
1658
+ for (var c = o.length >= lr ? o.slice(l, l + lr) : o, s = [], p = 0; p < c.length; ++p) {
1659
+ var u = c.charCodeAt(p);
1660
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === Oi.RFC1738 && (u === 40 || u === 41)) {
1661
+ s[s.length] = c.charAt(p);
1533
1662
  continue;
1534
1663
  }
1535
- if (c < 128) {
1536
- s[s.length] = T[c];
1664
+ if (u < 128) {
1665
+ s[s.length] = O[u];
1537
1666
  continue;
1538
1667
  }
1539
- if (c < 2048) {
1540
- s[s.length] = T[192 | c >> 6] + T[128 | c & 63];
1668
+ if (u < 2048) {
1669
+ s[s.length] = O[192 | u >> 6] + O[128 | u & 63];
1541
1670
  continue;
1542
1671
  }
1543
- if (c < 55296 || c >= 57344) {
1544
- s[s.length] = T[224 | c >> 12] + T[128 | c >> 6 & 63] + T[128 | c & 63];
1672
+ if (u < 55296 || u >= 57344) {
1673
+ s[s.length] = O[224 | u >> 12] + O[128 | u >> 6 & 63] + O[128 | u & 63];
1545
1674
  continue;
1546
1675
  }
1547
- p += 1, c = 65536 + ((c & 1023) << 10 | u.charCodeAt(p) & 1023), s[s.length] = T[240 | c >> 18] + T[128 | c >> 12 & 63] + T[128 | c >> 6 & 63] + T[128 | c & 63];
1676
+ p += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(p) & 1023), s[s.length] = O[240 | u >> 18] + O[128 | u >> 12 & 63] + O[128 | u >> 6 & 63] + O[128 | u & 63];
1548
1677
  }
1549
1678
  f += s.join("");
1550
1679
  }
1551
1680
  return f;
1552
- }, Ca = function(e) {
1681
+ }, Di = function(e) {
1553
1682
  for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
1554
- for (var o = t[a], i = o.obj[o.prop], f = Object.keys(i), l = 0; l < f.length; ++l) {
1555
- var u = f[l], s = i[u];
1556
- typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t.push({ obj: i, prop: u }), n.push(s));
1683
+ for (var i = t[a], o = i.obj[i.prop], f = Object.keys(o), l = 0; l < f.length; ++l) {
1684
+ var c = f[l], s = o[c];
1685
+ typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t[t.length] = { obj: o, prop: c }, n[n.length] = s);
1557
1686
  }
1558
- return Pa(t), e;
1559
- }, Oa = function(e) {
1687
+ return Ii(t), e;
1688
+ }, Ni = function(e) {
1560
1689
  return Object.prototype.toString.call(e) === "[object RegExp]";
1561
- }, Ra = function(e) {
1690
+ }, Li = function(e) {
1562
1691
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1563
- }, Da = function(e, t) {
1564
- return [].concat(e, t);
1565
- }, _a = function(e, t) {
1692
+ }, Ui = function(e, t, n, a) {
1693
+ if (F(e)) {
1694
+ var i = le(e) + 1;
1695
+ return e[i] = t, vr(e, i), e;
1696
+ }
1697
+ var o = [].concat(e, t);
1698
+ return o.length > n ? J(pe(o, { plainObjects: a }), o.length - 1) : o;
1699
+ }, Bi = function(e, t) {
1566
1700
  if (W(e)) {
1567
1701
  for (var n = [], a = 0; a < e.length; a += 1)
1568
- n.push(t(e[a]));
1702
+ n[n.length] = t(e[a]);
1569
1703
  return n;
1570
1704
  }
1571
1705
  return t(e);
1572
- }, ft = {
1573
- arrayToObject: lt,
1574
- assign: xa,
1575
- combine: Da,
1576
- compact: Ca,
1577
- decode: Ia,
1578
- encode: Ta,
1579
- isBuffer: Ra,
1580
- isRegExp: Oa,
1581
- maybeMap: _a,
1582
- merge: $a
1583
- }, ut = ba, Ee = ft, ce = sr, Ma = Object.prototype.hasOwnProperty, ct = {
1706
+ }, Mt = {
1707
+ arrayToObject: pe,
1708
+ assign: Ci,
1709
+ combine: Ui,
1710
+ compact: Di,
1711
+ decode: Ti,
1712
+ encode: Mi,
1713
+ isBuffer: Li,
1714
+ isOverflow: F,
1715
+ isRegExp: Ni,
1716
+ markOverflow: J,
1717
+ maybeMap: Bi,
1718
+ merge: Ri
1719
+ }, Dt = Tt, xe = Mt, ye = Or, qi = Object.prototype.hasOwnProperty, Nt = {
1584
1720
  brackets: function(e) {
1585
1721
  return e + "[]";
1586
1722
  },
@@ -1591,156 +1727,158 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1591
1727
  repeat: function(e) {
1592
1728
  return e;
1593
1729
  }
1594
- }, C = Array.isArray, Na = Array.prototype.push, st = function(r, e) {
1595
- Na.apply(r, C(e) ? e : [e]);
1596
- }, Ua = Date.prototype.toISOString, Ur = ce.default, E = {
1730
+ }, _ = Array.isArray, Wi = Array.prototype.push, Lt = function(r, e) {
1731
+ Wi.apply(r, _(e) ? e : [e]);
1732
+ }, Fi = Date.prototype.toISOString, rt = ye.default, b = {
1597
1733
  addQueryPrefix: !1,
1598
1734
  allowDots: !1,
1599
1735
  allowEmptyArrays: !1,
1600
1736
  arrayFormat: "indices",
1601
1737
  charset: "utf-8",
1602
1738
  charsetSentinel: !1,
1739
+ commaRoundTrip: !1,
1603
1740
  delimiter: "&",
1604
1741
  encode: !0,
1605
1742
  encodeDotInKeys: !1,
1606
- encoder: Ee.encode,
1743
+ encoder: xe.encode,
1607
1744
  encodeValuesOnly: !1,
1608
- format: Ur,
1609
- formatter: ce.formatters[Ur],
1745
+ filter: void 0,
1746
+ format: rt,
1747
+ formatter: ye.formatters[rt],
1610
1748
  // deprecated
1611
1749
  indices: !1,
1612
1750
  serializeDate: function(e) {
1613
- return Ua.call(e);
1751
+ return Fi.call(e);
1614
1752
  },
1615
1753
  skipNulls: !1,
1616
1754
  strictNullHandling: !1
1617
- }, Ba = function(e) {
1755
+ }, Gi = function(e) {
1618
1756
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1619
- }, Ke = {}, Fa = function r(e, t, n, a, o, i, f, l, u, s, p, c, d, y, m, g, S, P) {
1620
- for (var h = e, R = P, F = 0, ne = !1; (R = R.get(Ke)) !== void 0 && !ne; ) {
1621
- var z = R.get(e);
1622
- if (F += 1, typeof z < "u") {
1623
- if (z === F)
1757
+ }, fr = {}, Hi = function r(e, t, n, a, i, o, f, l, c, s, p, u, d, y, h, g, $, E) {
1758
+ for (var m = e, M = E, B = 0, ne = !1; (M = M.get(fr)) !== void 0 && !ne; ) {
1759
+ var k = M.get(e);
1760
+ if (B += 1, typeof k < "u") {
1761
+ if (k === B)
1624
1762
  throw new RangeError("Cyclic object value");
1625
1763
  ne = !0;
1626
1764
  }
1627
- typeof R.get(Ke) > "u" && (F = 0);
1628
- }
1629
- if (typeof s == "function" ? h = s(t, h) : h instanceof Date ? h = d(h) : n === "comma" && C(h) && (h = Ee.maybeMap(h, function(De) {
1630
- return De instanceof Date ? d(De) : De;
1631
- })), h === null) {
1632
- if (i)
1633
- return u && !g ? u(t, E.encoder, S, "key", y) : t;
1634
- h = "";
1635
- }
1636
- if (Ba(h) || Ee.isBuffer(h)) {
1637
- if (u) {
1638
- var de = g ? t : u(t, E.encoder, S, "key", y);
1639
- return [m(de) + "=" + m(u(h, E.encoder, S, "value", y))];
1765
+ typeof M.get(fr) > "u" && (B = 0);
1766
+ }
1767
+ if (typeof s == "function" ? m = s(t, m) : m instanceof Date ? m = d(m) : n === "comma" && _(m) && (m = xe.maybeMap(m, function(Ge) {
1768
+ return Ge instanceof Date ? d(Ge) : Ge;
1769
+ })), m === null) {
1770
+ if (o)
1771
+ return c && !g ? c(t, b.encoder, $, "key", y) : t;
1772
+ m = "";
1773
+ }
1774
+ if (Gi(m) || xe.isBuffer(m)) {
1775
+ if (c) {
1776
+ var ge = g ? t : c(t, b.encoder, $, "key", y);
1777
+ return [h(ge) + "=" + h(c(m, b.encoder, $, "value", y))];
1640
1778
  }
1641
- return [m(t) + "=" + m(String(h))];
1779
+ return [h(t) + "=" + h(String(m))];
1642
1780
  }
1643
- var L = [];
1644
- if (typeof h > "u")
1645
- return L;
1781
+ var q = [];
1782
+ if (typeof m > "u")
1783
+ return q;
1646
1784
  var D;
1647
- if (n === "comma" && C(h))
1648
- g && u && (h = Ee.maybeMap(h, u)), D = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1649
- else if (C(s))
1785
+ if (n === "comma" && _(m))
1786
+ g && c && (m = xe.maybeMap(m, c)), D = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
1787
+ else if (_(s))
1650
1788
  D = s;
1651
1789
  else {
1652
- var me = Object.keys(h);
1653
- D = p ? me.sort(p) : me;
1654
- }
1655
- var H = l ? t.replace(/\./g, "%2E") : t, I = a && C(h) && h.length === 1 ? H + "[]" : H;
1656
- if (o && C(h) && h.length === 0)
1657
- return I + "[]";
1658
- for (var _ = 0; _ < D.length; ++_) {
1659
- var M = D[_], ae = typeof M == "object" && typeof M.value < "u" ? M.value : h[M];
1790
+ var we = Object.keys(m);
1791
+ D = p ? we.sort(p) : we;
1792
+ }
1793
+ var z = l ? String(t).replace(/\./g, "%2E") : String(t), x = a && _(m) && m.length === 1 ? z + "[]" : z;
1794
+ if (i && _(m) && m.length === 0)
1795
+ return x + "[]";
1796
+ for (var N = 0; N < D.length; ++N) {
1797
+ var C = D[N], ae = typeof C == "object" && C && typeof C.value < "u" ? C.value : m[C];
1660
1798
  if (!(f && ae === null)) {
1661
- var Re = c && l ? M.replace(/\./g, "%2E") : M, yt = C(h) ? typeof n == "function" ? n(I, Re) : I : I + (c ? "." + Re : "[" + Re + "]");
1662
- P.set(e, F);
1663
- var pr = ut();
1664
- pr.set(Ke, P), st(L, r(
1799
+ var Fe = u && l ? String(C).replace(/\./g, "%2E") : String(C), Bt = _(m) ? typeof n == "function" ? n(x, Fe) : x : x + (u ? "." + Fe : "[" + Fe + "]");
1800
+ E.set(e, B);
1801
+ var _r = Dt();
1802
+ _r.set(fr, E), Lt(q, r(
1665
1803
  ae,
1666
- yt,
1804
+ Bt,
1667
1805
  n,
1668
1806
  a,
1669
- o,
1670
1807
  i,
1808
+ o,
1671
1809
  f,
1672
1810
  l,
1673
- n === "comma" && g && C(h) ? null : u,
1811
+ n === "comma" && g && _(m) ? null : c,
1674
1812
  s,
1675
1813
  p,
1676
- c,
1814
+ u,
1677
1815
  d,
1678
1816
  y,
1679
- m,
1817
+ h,
1680
1818
  g,
1681
- S,
1682
- pr
1819
+ $,
1820
+ _r
1683
1821
  ));
1684
1822
  }
1685
1823
  }
1686
- return L;
1687
- }, La = function(e) {
1824
+ return q;
1825
+ }, ji = function(e) {
1688
1826
  if (!e)
1689
- return E;
1827
+ return b;
1690
1828
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1691
1829
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1692
1830
  if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1693
1831
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1694
1832
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1695
1833
  throw new TypeError("Encoder has to be a function.");
1696
- var t = e.charset || E.charset;
1834
+ var t = e.charset || b.charset;
1697
1835
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1698
1836
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1699
- var n = ce.default;
1837
+ var n = ye.default;
1700
1838
  if (typeof e.format < "u") {
1701
- if (!Ma.call(ce.formatters, e.format))
1839
+ if (!qi.call(ye.formatters, e.format))
1702
1840
  throw new TypeError("Unknown format option provided.");
1703
1841
  n = e.format;
1704
1842
  }
1705
- var a = ce.formatters[n], o = E.filter;
1706
- (typeof e.filter == "function" || C(e.filter)) && (o = e.filter);
1707
- var i;
1708
- if (e.arrayFormat in ct ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = E.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1843
+ var a = ye.formatters[n], i = b.filter;
1844
+ (typeof e.filter == "function" || _(e.filter)) && (i = e.filter);
1845
+ var o;
1846
+ if (e.arrayFormat in Nt ? o = e.arrayFormat : "indices" in e ? o = e.indices ? "indices" : "repeat" : o = b.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1709
1847
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1710
- var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : E.allowDots : !!e.allowDots;
1848
+ var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
1711
1849
  return {
1712
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : E.addQueryPrefix,
1850
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
1713
1851
  allowDots: f,
1714
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : E.allowEmptyArrays,
1715
- arrayFormat: i,
1852
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
1853
+ arrayFormat: o,
1716
1854
  charset: t,
1717
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : E.charsetSentinel,
1718
- commaRoundTrip: e.commaRoundTrip,
1719
- delimiter: typeof e.delimiter > "u" ? E.delimiter : e.delimiter,
1720
- encode: typeof e.encode == "boolean" ? e.encode : E.encode,
1721
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : E.encodeDotInKeys,
1722
- encoder: typeof e.encoder == "function" ? e.encoder : E.encoder,
1723
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : E.encodeValuesOnly,
1724
- filter: o,
1855
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
1856
+ commaRoundTrip: !!e.commaRoundTrip,
1857
+ delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
1858
+ encode: typeof e.encode == "boolean" ? e.encode : b.encode,
1859
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : b.encodeDotInKeys,
1860
+ encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
1861
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
1862
+ filter: i,
1725
1863
  format: n,
1726
1864
  formatter: a,
1727
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : E.serializeDate,
1728
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : E.skipNulls,
1865
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
1866
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
1729
1867
  sort: typeof e.sort == "function" ? e.sort : null,
1730
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : E.strictNullHandling
1868
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
1731
1869
  };
1732
- }, Wa = function(r, e) {
1733
- var t = r, n = La(e), a, o;
1734
- typeof n.filter == "function" ? (o = n.filter, t = o("", t)) : C(n.filter) && (o = n.filter, a = o);
1735
- var i = [];
1870
+ }, ki = function(r, e) {
1871
+ var t = r, n = ji(e), a, i;
1872
+ typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : _(n.filter) && (i = n.filter, a = i);
1873
+ var o = [];
1736
1874
  if (typeof t != "object" || t === null)
1737
1875
  return "";
1738
- var f = ct[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1876
+ var f = Nt[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1739
1877
  a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
1740
- for (var u = ut(), s = 0; s < a.length; ++s) {
1741
- var p = a[s];
1742
- n.skipNulls && t[p] === null || st(i, Fa(
1743
- t[p],
1878
+ for (var c = Dt(), s = 0; s < a.length; ++s) {
1879
+ var p = a[s], u = t[p];
1880
+ n.skipNulls && u === null || Lt(o, Hi(
1881
+ u,
1744
1882
  p,
1745
1883
  f,
1746
1884
  l,
@@ -1757,12 +1895,12 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1757
1895
  n.formatter,
1758
1896
  n.encodeValuesOnly,
1759
1897
  n.charset,
1760
- u
1898
+ c
1761
1899
  ));
1762
1900
  }
1763
- var c = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
1764
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), c.length > 0 ? d + c : "";
1765
- }, ee = ft, rr = Object.prototype.hasOwnProperty, qa = Array.isArray, b = {
1901
+ var d = o.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
1902
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
1903
+ }, R = Mt, Oe = Object.prototype.hasOwnProperty, ur = Array.isArray, S = {
1766
1904
  allowDots: !1,
1767
1905
  allowEmptyArrays: !1,
1768
1906
  allowPrototypes: !1,
@@ -1772,7 +1910,7 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1772
1910
  charsetSentinel: !1,
1773
1911
  comma: !1,
1774
1912
  decodeDotInKeys: !1,
1775
- decoder: ee.decode,
1913
+ decoder: R.decode,
1776
1914
  delimiter: "&",
1777
1915
  depth: 5,
1778
1916
  duplicates: "combine",
@@ -1782,69 +1920,123 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1782
1920
  parseArrays: !0,
1783
1921
  plainObjects: !1,
1784
1922
  strictDepth: !1,
1785
- strictNullHandling: !1
1786
- }, Ga = function(r) {
1923
+ strictMerge: !0,
1924
+ strictNullHandling: !1,
1925
+ throwOnLimitExceeded: !1
1926
+ }, zi = function(r) {
1787
1927
  return r.replace(/&#(\d+);/g, function(e, t) {
1788
1928
  return String.fromCharCode(parseInt(t, 10));
1789
1929
  });
1790
- }, pt = function(r, e) {
1791
- return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1792
- }, ka = "utf8=%26%2310003%3B", za = "utf8=%E2%9C%93", Ha = function(e, t) {
1930
+ }, Ut = function(r, e, t) {
1931
+ if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
1932
+ return r.split(",");
1933
+ if (e.throwOnLimitExceeded && t >= e.arrayLimit)
1934
+ throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1935
+ return r;
1936
+ }, Ki = "utf8=%26%2310003%3B", Vi = "utf8=%E2%9C%93", Qi = function(e, t) {
1793
1937
  var n = { __proto__: null }, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1794
1938
  a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1795
- var o = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = a.split(t.delimiter, o), f = -1, l, u = t.charset;
1939
+ var i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, o = a.split(
1940
+ t.delimiter,
1941
+ t.throwOnLimitExceeded ? i + 1 : i
1942
+ );
1943
+ if (t.throwOnLimitExceeded && o.length > i)
1944
+ throw new RangeError("Parameter limit exceeded. Only " + i + " parameter" + (i === 1 ? "" : "s") + " allowed.");
1945
+ var f = -1, l, c = t.charset;
1796
1946
  if (t.charsetSentinel)
1797
- for (l = 0; l < i.length; ++l)
1798
- i[l].indexOf("utf8=") === 0 && (i[l] === za ? u = "utf-8" : i[l] === ka && (u = "iso-8859-1"), f = l, l = i.length);
1799
- for (l = 0; l < i.length; ++l)
1947
+ for (l = 0; l < o.length; ++l)
1948
+ o[l].indexOf("utf8=") === 0 && (o[l] === Vi ? c = "utf-8" : o[l] === Ki && (c = "iso-8859-1"), f = l, l = o.length);
1949
+ for (l = 0; l < o.length; ++l)
1800
1950
  if (l !== f) {
1801
- var s = i[l], p = s.indexOf("]="), c = p === -1 ? s.indexOf("=") : p + 1, d, y;
1802
- c === -1 ? (d = t.decoder(s, b.decoder, u, "key"), y = t.strictNullHandling ? null : "") : (d = t.decoder(s.slice(0, c), b.decoder, u, "key"), y = ee.maybeMap(
1803
- pt(s.slice(c + 1), t),
1951
+ var s = o[l], p = s.indexOf("]="), u = p === -1 ? s.indexOf("=") : p + 1, d, y;
1952
+ if (u === -1 ? (d = t.decoder(s, S.decoder, c, "key"), y = t.strictNullHandling ? null : "") : (d = t.decoder(s.slice(0, u), S.decoder, c, "key"), d !== null && (y = R.maybeMap(
1953
+ Ut(
1954
+ s.slice(u + 1),
1955
+ t,
1956
+ ur(n[d]) ? n[d].length : 0
1957
+ ),
1804
1958
  function(g) {
1805
- return t.decoder(g, b.decoder, u, "value");
1959
+ return t.decoder(g, S.decoder, c, "value");
1806
1960
  }
1807
- )), y && t.interpretNumericEntities && u === "iso-8859-1" && (y = Ga(y)), s.indexOf("[]=") > -1 && (y = qa(y) ? [y] : y);
1808
- var m = rr.call(n, d);
1809
- m && t.duplicates === "combine" ? n[d] = ee.combine(n[d], y) : (!m || t.duplicates === "last") && (n[d] = y);
1961
+ ))), y && t.interpretNumericEntities && c === "iso-8859-1" && (y = zi(String(y))), s.indexOf("[]=") > -1 && (y = ur(y) ? [y] : y), t.comma && ur(y) && y.length > t.arrayLimit) {
1962
+ if (t.throwOnLimitExceeded)
1963
+ throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1964
+ y = R.combine([], y, t.arrayLimit, t.plainObjects);
1965
+ }
1966
+ if (d !== null) {
1967
+ var h = Oe.call(n, d);
1968
+ h && (t.duplicates === "combine" || s.indexOf("[]=") > -1) ? n[d] = R.combine(
1969
+ n[d],
1970
+ y,
1971
+ t.arrayLimit,
1972
+ t.plainObjects
1973
+ ) : (!h || t.duplicates === "last") && (n[d] = y);
1974
+ }
1810
1975
  }
1811
1976
  return n;
1812
- }, Ka = function(r, e, t, n) {
1813
- for (var a = n ? e : pt(e, t), o = r.length - 1; o >= 0; --o) {
1814
- var i, f = r[o];
1815
- if (f === "[]" && t.parseArrays)
1816
- i = t.allowEmptyArrays && (a === "" || t.strictNullHandling && a === null) ? [] : [].concat(a);
1977
+ }, Ji = function(r, e, t, n) {
1978
+ var a = 0;
1979
+ if (r.length > 0 && r[r.length - 1] === "[]") {
1980
+ var i = r.slice(0, -1).join("");
1981
+ a = Array.isArray(e) && e[i] ? e[i].length : 0;
1982
+ }
1983
+ for (var o = n ? e : Ut(e, t, a), f = r.length - 1; f >= 0; --f) {
1984
+ var l, c = r[f];
1985
+ if (c === "[]" && t.parseArrays)
1986
+ R.isOverflow(o) ? l = o : l = t.allowEmptyArrays && (o === "" || t.strictNullHandling && o === null) ? [] : R.combine(
1987
+ [],
1988
+ o,
1989
+ t.arrayLimit,
1990
+ t.plainObjects
1991
+ );
1817
1992
  else {
1818
- i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1819
- var l = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, u = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, s = parseInt(u, 10);
1820
- !t.parseArrays && u === "" ? i = { 0: a } : !isNaN(s) && f !== u && String(s) === u && s >= 0 && t.parseArrays && s <= t.arrayLimit ? (i = [], i[s] = a) : u !== "__proto__" && (i[u] = a);
1993
+ l = t.plainObjects ? { __proto__: null } : {};
1994
+ var s = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, p = t.decodeDotInKeys ? s.replace(/%2E/g, ".") : s, u = parseInt(p, 10), d = !isNaN(u) && c !== p && String(u) === p && u >= 0 && t.parseArrays;
1995
+ if (!t.parseArrays && p === "")
1996
+ l = { 0: o };
1997
+ else if (d && u < t.arrayLimit)
1998
+ l = [], l[u] = o;
1999
+ else {
2000
+ if (d && t.throwOnLimitExceeded)
2001
+ throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2002
+ d ? (l[u] = o, R.markOverflow(l, u)) : p !== "__proto__" && (l[p] = o);
2003
+ }
1821
2004
  }
1822
- a = i;
2005
+ o = l;
2006
+ }
2007
+ return o;
2008
+ }, Xi = function(e, t) {
2009
+ var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
2010
+ if (t.depth <= 0)
2011
+ return !t.plainObjects && Oe.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
2012
+ var a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, o = a.exec(n), f = o ? n.slice(0, o.index) : n, l = [];
2013
+ if (f) {
2014
+ if (!t.plainObjects && Oe.call(Object.prototype, f) && !t.allowPrototypes)
2015
+ return;
2016
+ l[l.length] = f;
1823
2017
  }
1824
- return a;
1825
- }, Va = function(e, t, n, a) {
2018
+ for (var c = 0; (o = i.exec(n)) !== null && c < t.depth; ) {
2019
+ c += 1;
2020
+ var s = o[1].slice(1, -1);
2021
+ if (!t.plainObjects && Oe.call(Object.prototype, s) && !t.allowPrototypes)
2022
+ return;
2023
+ l[l.length] = o[1];
2024
+ }
2025
+ if (o) {
2026
+ if (t.strictDepth === !0)
2027
+ throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
2028
+ l[l.length] = "[" + n.slice(o.index) + "]";
2029
+ }
2030
+ return l;
2031
+ }, Yi = function(e, t, n, a) {
1826
2032
  if (e) {
1827
- var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, f = /(\[[^[\]]*])/g, l = n.depth > 0 && i.exec(o), u = l ? o.slice(0, l.index) : o, s = [];
1828
- if (u) {
1829
- if (!n.plainObjects && rr.call(Object.prototype, u) && !n.allowPrototypes)
1830
- return;
1831
- s.push(u);
1832
- }
1833
- for (var p = 0; n.depth > 0 && (l = f.exec(o)) !== null && p < n.depth; ) {
1834
- if (p += 1, !n.plainObjects && rr.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1835
- return;
1836
- s.push(l[1]);
1837
- }
1838
- if (l) {
1839
- if (n.strictDepth === !0)
1840
- throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1841
- s.push("[" + o.slice(l.index) + "]");
1842
- }
1843
- return Ka(s, t, n, a);
2033
+ var i = Xi(e, n);
2034
+ if (i)
2035
+ return Ji(i, t, n, a);
1844
2036
  }
1845
- }, Qa = function(e) {
2037
+ }, Zi = function(e) {
1846
2038
  if (!e)
1847
- return b;
2039
+ return S;
1848
2040
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1849
2041
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1850
2042
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
@@ -1853,62 +2045,66 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
1853
2045
  throw new TypeError("Decoder has to be a function.");
1854
2046
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1855
2047
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1856
- var t = typeof e.charset > "u" ? b.charset : e.charset, n = typeof e.duplicates > "u" ? b.duplicates : e.duplicates;
2048
+ if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
2049
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
2050
+ var t = typeof e.charset > "u" ? S.charset : e.charset, n = typeof e.duplicates > "u" ? S.duplicates : e.duplicates;
1857
2051
  if (n !== "combine" && n !== "first" && n !== "last")
1858
2052
  throw new TypeError("The duplicates option must be either combine, first, or last");
1859
- var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
2053
+ var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : S.allowDots : !!e.allowDots;
1860
2054
  return {
1861
2055
  allowDots: a,
1862
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
1863
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : b.allowPrototypes,
1864
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : b.allowSparse,
1865
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : b.arrayLimit,
2056
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : S.allowEmptyArrays,
2057
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : S.allowPrototypes,
2058
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : S.allowSparse,
2059
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : S.arrayLimit,
1866
2060
  charset: t,
1867
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
1868
- comma: typeof e.comma == "boolean" ? e.comma : b.comma,
1869
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : b.decodeDotInKeys,
1870
- decoder: typeof e.decoder == "function" ? e.decoder : b.decoder,
1871
- delimiter: typeof e.delimiter == "string" || ee.isRegExp(e.delimiter) ? e.delimiter : b.delimiter,
2061
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : S.charsetSentinel,
2062
+ comma: typeof e.comma == "boolean" ? e.comma : S.comma,
2063
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : S.decodeDotInKeys,
2064
+ decoder: typeof e.decoder == "function" ? e.decoder : S.decoder,
2065
+ delimiter: typeof e.delimiter == "string" || R.isRegExp(e.delimiter) ? e.delimiter : S.delimiter,
1872
2066
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1873
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : b.depth,
2067
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : S.depth,
1874
2068
  duplicates: n,
1875
2069
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1876
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : b.interpretNumericEntities,
1877
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : b.parameterLimit,
2070
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : S.interpretNumericEntities,
2071
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : S.parameterLimit,
1878
2072
  parseArrays: e.parseArrays !== !1,
1879
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : b.plainObjects,
1880
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : b.strictDepth,
1881
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
2073
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : S.plainObjects,
2074
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : S.strictDepth,
2075
+ strictMerge: typeof e.strictMerge == "boolean" ? !!e.strictMerge : S.strictMerge,
2076
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : S.strictNullHandling,
2077
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1882
2078
  };
1883
- }, ja = function(r, e) {
1884
- var t = Qa(e);
2079
+ }, eo = function(r, e) {
2080
+ var t = Zi(e);
1885
2081
  if (r === "" || r === null || typeof r > "u")
1886
- return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1887
- for (var n = typeof r == "string" ? Ha(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), i = 0; i < o.length; ++i) {
1888
- var f = o[i], l = Va(f, n[f], t, typeof r == "string");
1889
- a = ee.merge(a, l, t);
1890
- }
1891
- return t.allowSparse === !0 ? a : ee.compact(a);
1892
- }, Ja = Wa, Xa = ja, Ya = sr, Za = {
1893
- formats: Ya,
1894
- parse: Xa,
1895
- stringify: Ja
2082
+ return t.plainObjects ? { __proto__: null } : {};
2083
+ for (var n = typeof r == "string" ? Qi(r, t) : r, a = t.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), o = 0; o < i.length; ++o) {
2084
+ var f = i[o], l = Yi(f, n[f], t, typeof r == "string");
2085
+ a = R.merge(a, l, t);
2086
+ }
2087
+ return t.allowSparse === !0 ? a : R.compact(a);
2088
+ }, ro = ki, to = eo, no = Or, ao = {
2089
+ formats: no,
2090
+ parse: to,
2091
+ stringify: ro
1896
2092
  };
1897
- const eo = /* @__PURE__ */ Fr(Za);
1898
- function Br(r) {
2093
+ const io = /* @__PURE__ */ nt(ao);
2094
+ function tt(r) {
1899
2095
  if (!Array.isArray(r)) throw new TypeError("Middleware stack must be an array!");
1900
2096
  for (const e of r)
1901
2097
  if (typeof e != "function") throw new TypeError("Middleware must be composed of functions!");
1902
2098
  return function(e, t) {
1903
2099
  let n = -1;
1904
2100
  return a(0);
1905
- function a(o) {
1906
- if (o <= n) return Promise.reject(new Error("next() called multiple times"));
1907
- n = o;
1908
- let i = r[o];
1909
- if (o === r.length && (i = t), !i) return Promise.resolve();
2101
+ function a(i) {
2102
+ if (i <= n) return Promise.reject(new Error("next() called multiple times"));
2103
+ n = i;
2104
+ let o = r[i];
2105
+ if (i === r.length && (o = t), !o) return Promise.resolve();
1910
2106
  try {
1911
- return Promise.resolve(i(e, a.bind(null, o + 1)));
2107
+ return Promise.resolve(o(e, a.bind(null, i + 1)));
1912
2108
  } catch (f) {
1913
2109
  return Promise.reject(f);
1914
2110
  }
@@ -1926,7 +2122,7 @@ const w = {
1926
2122
  configPending: !1,
1927
2123
  configCb: []
1928
2124
  };
1929
- async function ro(r) {
2125
+ async function oo(r) {
1930
2126
  if (w.config)
1931
2127
  return w.config;
1932
2128
  if (w.configPending)
@@ -1937,12 +2133,12 @@ async function ro(r) {
1937
2133
  const e = await r();
1938
2134
  return w.config = e, w.configCb.forEach((t) => t(e)), w.configCb = [], w.configPending = !1, e;
1939
2135
  }
1940
- class to {
2136
+ class lo {
1941
2137
  constructor(e = {}, t) {
1942
- x(this, "options");
1943
- x(this, "apis", []);
1944
- x(this, "middlewares", []);
1945
- x(this, "defaultMiddlewares", [
2138
+ P(this, "options");
2139
+ P(this, "apis", []);
2140
+ P(this, "middlewares", []);
2141
+ P(this, "defaultMiddlewares", [
1946
2142
  async (e, t) => {
1947
2143
  try {
1948
2144
  await t();
@@ -1951,17 +2147,17 @@ class to {
1951
2147
  }
1952
2148
  }
1953
2149
  ]);
1954
- x(this, "api404");
1955
- x(this, "fnMiddleware");
1956
- x(this, "getId");
1957
- x(this, "extensions", /* @__PURE__ */ new Map());
1958
- x(this, "onDestroyCbs", []);
1959
- x(this, "config");
1960
- x(this, "apiList");
2150
+ P(this, "api404");
2151
+ P(this, "fnMiddleware");
2152
+ P(this, "getId");
2153
+ P(this, "extensions", /* @__PURE__ */ new Map());
2154
+ P(this, "onDestroyCbs", []);
2155
+ P(this, "config");
2156
+ P(this, "apiList");
1961
2157
  this.options = { ...e, baseUrl: e.baseUrl ?? "/" }, this.options.baseUrl = this.options.baseUrl.split("/").map((a) => encodeURIComponent(a)).join("/"), this.middlewares.push(...this.defaultMiddlewares), this.middlewares.push(...e.middlewares || []);
1962
- const n = ((e == null ? void 0 : e.apis) ?? []).sort((a, o) => {
1963
- const i = o.path.substr(-1, 1), f = i === "*" ? 0 : i === "/" ? 0.1 : 0.2, l = a.path.substr(-1, 1), u = l === "*" ? 0 : l === "/" ? 0.1 : 0.2;
1964
- return o.path.split("/").length + f - (a.path.split("/").length + u);
2158
+ const n = ((e == null ? void 0 : e.apis) ?? []).sort((a, i) => {
2159
+ const o = i.path.substr(-1, 1), f = o === "*" ? 0 : o === "/" ? 0.1 : 0.2, l = a.path.substr(-1, 1), c = l === "*" ? 0 : l === "/" ? 0.1 : 0.2;
2160
+ return i.path.split("/").length + f - (a.path.split("/").length + c);
1965
2161
  }).map((a) => ({
1966
2162
  ...a,
1967
2163
  // path: v.path
@@ -1973,55 +2169,55 @@ class to {
1973
2169
  this.apiList = n, this.apis = n.filter((a) => !a.disabled), this.api404 = {
1974
2170
  path: "*",
1975
2171
  method: "all",
1976
- action: (a, o) => {
1977
- throw o.res.status = 404, Error("Not Found");
2172
+ action: (a, i) => {
2173
+ throw i.res.status = 404, Error("Not Found");
1978
2174
  }
1979
- }, this.fnMiddleware = Br(this.middlewares), this.getId = vt({ workerId: e.workId }), this.init(t);
2175
+ }, this.fnMiddleware = tt(this.middlewares), this.getId = Gt({ workerId: e.workId }), this.init(t);
1980
2176
  }
1981
2177
  async init(e) {
1982
- var t, n, a, o;
2178
+ var t, n, a, i;
1983
2179
  try {
1984
2180
  if (this.options.config) {
1985
- const i = await this.options.config();
1986
- this.config = i;
2181
+ const o = await this.options.config();
2182
+ this.config = o;
1987
2183
  }
1988
- await ((n = (t = this.options) == null ? void 0 : t.onInit) == null ? void 0 : n.call(t, this)), w.app = this, w.appPending = !1, w.appCb.forEach((i) => i(this)), await ((o = (a = this.options) == null ? void 0 : a.onReady) == null ? void 0 : o.call(a, this)), e == null || e(null, this);
1989
- } catch (i) {
1990
- e == null || e(i, this);
2184
+ await ((n = (t = this.options) == null ? void 0 : t.onInit) == null ? void 0 : n.call(t, this)), w.app = this, w.appPending = !1, w.appCb.forEach((o) => o(this)), await ((i = (a = this.options) == null ? void 0 : a.onReady) == null ? void 0 : i.call(a, this)), e == null || e(null, this);
2185
+ } catch (o) {
2186
+ e == null || e(o, this);
1991
2187
  }
1992
2188
  }
1993
2189
  /**
1994
2190
  * 调用 API
1995
2191
  */
1996
2192
  async fetchRaw(e, t, n) {
1997
- var c, d;
1998
- const a = (n == null ? void 0 : n.url) ?? e, o = new URL(a, "http://localhost"), i = this.getId(), f = {
2193
+ var u, d;
2194
+ const a = (n == null ? void 0 : n.url) ?? e, i = new URL(a, "http://localhost"), o = this.getId(), f = {
1999
2195
  baseUrl: this.options.baseUrl ?? "",
2000
2196
  headers: (n == null ? void 0 : n.headers) ?? {},
2001
2197
  method: (n == null ? void 0 : n.method) ?? this.options.defaultMethod ?? "post",
2002
2198
  body: (n == null ? void 0 : n.body) ?? t,
2003
2199
  params: {},
2004
- path: o.pathname,
2005
- queryString: n != null && n.query ? "?" + eo.stringify(n.query) : o.search,
2006
- query: (n == null ? void 0 : n.query) ?? Object.fromEntries(o.searchParams),
2200
+ path: i.pathname,
2201
+ queryString: n != null && n.query ? "?" + io.stringify(n.query) : i.search,
2202
+ query: (n == null ? void 0 : n.query) ?? Object.fromEntries(i.searchParams),
2007
2203
  url: a,
2008
- reqId: i,
2009
- requestId: i,
2204
+ reqId: o,
2205
+ requestId: o,
2010
2206
  ip: (n == null ? void 0 : n.ip) ?? "",
2011
2207
  namespace: (n == null ? void 0 : n.namespace) ?? "default"
2012
2208
  };
2013
2209
  let l = this.api404;
2014
2210
  for (let y = 0; y < this.apis.length; y++) {
2015
- const m = this.apis[y];
2016
- if ((m.namespace ?? "default") === f.namespace && (m.method === "all" || m.method === ((d = (c = f.method) == null ? void 0 : c.toLowerCase) == null ? void 0 : d.call(c)))) {
2017
- const P = wt((this.options.baseUrl ?? "") + m.path, { loose: !1, trailing: !1 })(f.path);
2018
- if (P) {
2019
- f.params = P.params, l = m;
2211
+ const h = this.apis[y];
2212
+ if ((h.namespace ?? "default") === f.namespace && (h.method === "all" || h.method === ((d = (u = f.method) == null ? void 0 : u.toLowerCase) == null ? void 0 : d.call(u)))) {
2213
+ const E = jt((this.options.baseUrl ?? "") + h.path, { loose: !1, trailing: !1 })(f.path);
2214
+ if (E) {
2215
+ f.params = E.params, l = h;
2020
2216
  break;
2021
2217
  }
2022
2218
  }
2023
2219
  }
2024
- const u = {
2220
+ const c = {
2025
2221
  body: void 0,
2026
2222
  headers: {},
2027
2223
  status: 200
@@ -2030,34 +2226,34 @@ class to {
2030
2226
  currentAPI: l,
2031
2227
  req: f,
2032
2228
  request: f,
2033
- reqId: i,
2034
- requestId: i,
2035
- res: u,
2036
- response: u,
2229
+ reqId: o,
2230
+ requestId: o,
2231
+ res: c,
2232
+ response: c,
2037
2233
  platform: n == null ? void 0 : n.platform,
2038
2234
  config: this.config,
2039
2235
  meta: l.meta ?? {},
2040
2236
  service: {}
2041
2237
  }, p = async () => {
2042
- var g, S;
2238
+ var g, $;
2043
2239
  let y = f.body;
2044
2240
  if (l.bodySchema)
2045
2241
  if ((g = l.bodySchema) != null && g.parse)
2046
2242
  try {
2047
2243
  y = l.bodySchema.parse(f.body);
2048
- } catch (P) {
2049
- u.status = 400;
2050
- const h = (S = P == null ? void 0 : P.issues) == null ? void 0 : S[0];
2051
- throw h && (h.message = (h.path ?? []).join(".") + " " + h.message), h ? { ...h, code: 0 } : new Error("参数错误");
2244
+ } catch (E) {
2245
+ c.status = 400;
2246
+ const m = ($ = E == null ? void 0 : E.issues) == null ? void 0 : $[0];
2247
+ throw m && (m.message = (m.path ?? []).join(".") + " " + m.message), m ? { ...m, code: 0 } : new Error("参数错误");
2052
2248
  }
2053
2249
  else
2054
- throw u.status = 500, new Error("bodySchema must be ZodType");
2055
- const m = await l.action(y, s);
2056
- m !== void 0 && (u.body = m);
2250
+ throw c.status = 500, new Error("bodySchema must be ZodType");
2251
+ const h = await l.action(y, s);
2252
+ h !== void 0 && (c.body = h);
2057
2253
  };
2058
2254
  if (l.middlewares && l.middlewares.length > 0) {
2059
- const y = Br(l.middlewares), m = async () => await y(s, p);
2060
- n != null && n.noPublicMiddleware ? await m : await this.fnMiddleware(s, m);
2255
+ const y = tt(l.middlewares), h = async () => await y(s, p);
2256
+ n != null && n.noPublicMiddleware ? await h : await this.fnMiddleware(s, h);
2061
2257
  } else
2062
2258
  n != null && n.noPublicMiddleware ? await p() : await this.fnMiddleware(s, p);
2063
2259
  return s.res;
@@ -2070,8 +2266,8 @@ class to {
2070
2266
  const a = {
2071
2267
  ...n ?? {},
2072
2268
  noPublicMiddleware: !0
2073
- }, o = (n == null ? void 0 : n.url) ?? `${this.baseUrl}${e}`;
2074
- return await this.fetch(o, t, a);
2269
+ }, i = (n == null ? void 0 : n.url) ?? `${this.baseUrl}${e}`;
2270
+ return await this.fetch(i, t, a);
2075
2271
  }
2076
2272
  mount(e, t) {
2077
2273
  this.extensions.set(e, t);
@@ -2089,42 +2285,42 @@ class to {
2089
2285
  return this.options.baseUrl ?? "";
2090
2286
  }
2091
2287
  }
2092
- const no = Symbol("soon-api");
2093
- function co(r) {
2288
+ const fo = Symbol("soon-api");
2289
+ function mo(r) {
2094
2290
  const e = { ...r };
2095
- return e._soon_symbol = no, e;
2291
+ return e._soon_symbol = fo, e;
2096
2292
  }
2097
- const ao = Symbol("soon-service");
2098
- function so(r) {
2293
+ const uo = Symbol("soon-service");
2294
+ function vo(r) {
2099
2295
  async function e() {
2100
- var o;
2296
+ var i;
2101
2297
  const t = r.service;
2102
2298
  let n = w.services.get(t);
2103
2299
  if (n)
2104
2300
  return n;
2105
2301
  if (w.servicePending.get(t)) {
2106
- let i = w.serviceCb.get(t);
2107
- return i || (i = [], w.serviceCb.set(t, i)), new Promise((f) => {
2108
- i.push((l) => f(l));
2302
+ let o = w.serviceCb.get(t);
2303
+ return o || (o = [], w.serviceCb.set(t, o)), new Promise((f) => {
2304
+ o.push((l) => f(l));
2109
2305
  });
2110
2306
  }
2111
- return w.servicePending.set(t, !0), await new Promise((i) => {
2112
- w.app ? i(1) : w.appCb.push(() => i(1));
2113
- }), n = await t(w.app), w.services.set(t, n), (o = w.serviceCb.get(t)) == null || o.forEach((i) => i(n)), w.serviceCb.delete(t), w.servicePending.delete(t), n;
2307
+ return w.servicePending.set(t, !0), await new Promise((o) => {
2308
+ w.app ? o(1) : w.appCb.push(() => o(1));
2309
+ }), n = await t(w.app), w.services.set(t, n), (i = w.serviceCb.get(t)) == null || i.forEach((o) => o(n)), w.serviceCb.delete(t), w.servicePending.delete(t), n;
2114
2310
  }
2115
- return e._soon_symbol = ao, e.serviceName = (r == null ? void 0 : r.serviceName) ?? "", e.autoInject = (r == null ? void 0 : r.autoInject) ?? !1, e.enableClient = (r == null ? void 0 : r.enableClient) ?? !1, e;
2311
+ return e._soon_symbol = uo, e.serviceName = (r == null ? void 0 : r.serviceName) ?? "", e.autoInject = (r == null ? void 0 : r.autoInject) ?? !1, e.enableClient = (r == null ? void 0 : r.enableClient) ?? !1, e;
2116
2312
  }
2117
- function po(r) {
2313
+ function go(r) {
2118
2314
  return r;
2119
2315
  }
2120
- function yo(r) {
2316
+ function wo(r) {
2121
2317
  return async function() {
2122
- return await ro(r);
2318
+ return await oo(r);
2123
2319
  };
2124
2320
  }
2125
- async function mo(r) {
2321
+ async function So(r) {
2126
2322
  return await new Promise((e, t) => {
2127
- new to(r, (n, a) => {
2323
+ new lo(r, (n, a) => {
2128
2324
  if (n) {
2129
2325
  t(n);
2130
2326
  return;
@@ -2133,33 +2329,33 @@ async function mo(r) {
2133
2329
  });
2134
2330
  });
2135
2331
  }
2136
- class ho extends Error {
2332
+ class bo extends Error {
2137
2333
  constructor(t, n) {
2138
2334
  super(t);
2139
- x(this, "code");
2335
+ P(this, "code");
2140
2336
  this.code = n;
2141
2337
  }
2142
2338
  }
2143
- class vo extends Error {
2339
+ class Eo extends Error {
2144
2340
  constructor(t, n) {
2145
2341
  super(t);
2146
- x(this, "status");
2342
+ P(this, "status");
2147
2343
  this.status = n;
2148
2344
  }
2149
2345
  }
2150
- function go({
2346
+ function Ao({
2151
2347
  pingTime: r = 0,
2152
2348
  action: e
2153
2349
  }) {
2154
2350
  let t = () => null;
2155
- const n = new Kr((a) => {
2156
- let o;
2157
- r > 0 && (o = setInterval(() => {
2158
- f.closed ? clearInterval(o) : a.next({ event: "ping", message: `: ping
2351
+ const n = new pt((a) => {
2352
+ let i;
2353
+ r > 0 && (i = setInterval(() => {
2354
+ f.closed ? clearInterval(i) : a.next({ event: "ping", message: `: ping
2159
2355
 
2160
2356
  ` });
2161
2357
  }, r));
2162
- const i = [], f = {
2358
+ const o = [], f = {
2163
2359
  send(l) {
2164
2360
  try {
2165
2361
  a.next({
@@ -2169,25 +2365,25 @@ function go({
2169
2365
 
2170
2366
  `
2171
2367
  });
2172
- } catch (u) {
2173
- f.error(u.message);
2368
+ } catch (c) {
2369
+ f.error(c.message);
2174
2370
  }
2175
2371
  },
2176
2372
  error(l) {
2177
2373
  a.next({ event: "error", data: l, message: `event: error
2178
2374
  data: ${l}
2179
2375
 
2180
- ` }), a.complete(), f.closed = !0, i.forEach((u) => u == null ? void 0 : u());
2376
+ ` }), a.complete(), f.closed = !0, o.forEach((c) => c == null ? void 0 : c());
2181
2377
  },
2182
2378
  close() {
2183
2379
  a.next({ event: "close", message: `event: close
2184
2380
  data:
2185
2381
 
2186
- ` }), a.complete(), f.closed = !0, o && clearInterval(o), i.forEach((l) => l == null ? void 0 : l());
2382
+ ` }), a.complete(), f.closed = !0, i && clearInterval(i), o.forEach((l) => l == null ? void 0 : l());
2187
2383
  },
2188
2384
  closed: !1,
2189
2385
  onClosed(l) {
2190
- i.push(l);
2386
+ o.push(l);
2191
2387
  }
2192
2388
  };
2193
2389
  t = () => {
@@ -2196,12 +2392,12 @@ data:
2196
2392
  });
2197
2393
  return n.streamClose = () => t == null ? void 0 : t(), n;
2198
2394
  }
2199
- function oo(r) {
2200
- return r instanceof Kr;
2395
+ function co(r) {
2396
+ return r instanceof pt;
2201
2397
  }
2202
- function wo(r) {
2203
- if (oo(r)) {
2204
- const e = new ht();
2398
+ function $o(r) {
2399
+ if (co(r)) {
2400
+ const e = new Ft();
2205
2401
  return r.subscribe({
2206
2402
  next(t) {
2207
2403
  e.write(t.message);
@@ -2223,19 +2419,19 @@ function wo(r) {
2223
2419
  throw new Error("Not a valid SSE body");
2224
2420
  }
2225
2421
  export {
2226
- ho as BizError,
2227
- Kr as Observable,
2228
- to as SoonApp,
2229
- vo as SoonError,
2230
- mo as createSoonApp,
2231
- co as defineApi,
2232
- yo as defineConfig,
2233
- po as defineMiddleware,
2234
- so as defineService,
2235
- oo as isSSEBody,
2236
- wo as resolveSSEBody,
2237
- no as soonApiSymbol,
2238
- ao as soonServiceSymbol,
2239
- go as useSSE,
2240
- vt as useSoonIdGen
2422
+ bo as BizError,
2423
+ pt as Observable,
2424
+ lo as SoonApp,
2425
+ Eo as SoonError,
2426
+ So as createSoonApp,
2427
+ mo as defineApi,
2428
+ wo as defineConfig,
2429
+ go as defineMiddleware,
2430
+ vo as defineService,
2431
+ co as isSSEBody,
2432
+ $o as resolveSSEBody,
2433
+ fo as soonApiSymbol,
2434
+ uo as soonServiceSymbol,
2435
+ Ao as useSSE,
2436
+ Gt as useSoonIdGen
2241
2437
  };