xyvcard-itsm-flow 0.0.7 → 0.0.8

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 (50) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/common--K4gGsNT.mjs +85 -0
  3. package/dist/{edit-BZbho2xr.mjs → edit-B621RtNS.mjs} +1 -1
  4. package/dist/{edit-DA920KWc.mjs → edit-CoRzQ2SK.mjs} +1 -1
  5. package/dist/{edit-DxK8SrUd.mjs → edit-Czk64Yon.mjs} +1 -1
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
  9. package/dist/{el-message-D28AReoi.mjs → el-message-FfNjxLv_.mjs} +26 -26
  10. package/dist/index-B5vmtcUk.mjs +528 -0
  11. package/dist/index-BCP5cBN6.mjs +486 -0
  12. package/dist/{index-Dimzx0Lh.mjs → index-BJl7xHYx.mjs} +119 -124
  13. package/dist/{index-BwhWFAEK.mjs → index-BlBkHqXR.mjs} +75 -89
  14. package/dist/index-CRHpl0qA.mjs +501 -0
  15. package/dist/index-CVbpEq7V.mjs +442 -0
  16. package/dist/{index-CXarOLFt.mjs → index-CdzhLCkX.mjs} +119 -124
  17. package/dist/index-DX1PURJy.mjs +624 -0
  18. package/dist/index-DY7ZV5kq.mjs +567 -0
  19. package/dist/index-Dld6YbIV.mjs +484 -0
  20. package/dist/index.mjs +764 -771
  21. package/dist/style.css +1 -1
  22. package/dts/api/dict.d.ts +9 -0
  23. package/dts/api/index.d.ts +4 -1
  24. package/dts/api/itsm-flow-acceptance/index.d.ts +4 -10
  25. package/dts/api/itsm-flow-acceptance/types.d.ts +17 -38
  26. package/dts/api/itsm-flow-entrust/index.d.ts +3 -0
  27. package/dts/api/itsm-flow-entrust/types.d.ts +2 -2
  28. package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
  29. package/dts/api/itsm-flow-reckoning/index.d.ts +4 -10
  30. package/dts/api/itsm-flow-reckoning/types.d.ts +19 -31
  31. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
  32. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
  33. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
  34. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
  35. package/dts/index.d.ts +4 -0
  36. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -17
  37. package/dts/utils/common.d.ts +2 -2
  38. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
  39. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +4 -4
  40. package/package.json +1 -1
  41. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +0 -589
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +0 -688
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +0 -656
  45. package/dist/index-BZGkoyv9.mjs +0 -68
  46. package/dist/index-CMOEnYG7.mjs +0 -21
  47. package/dist/index-Clg5YSzX.mjs +0 -598
  48. package/dist/index-CwnMo6nD.mjs +0 -1651
  49. package/dist/index-DDwNGNtf.mjs +0 -558
  50. package/dist/index-qOQQkVw8.mjs +0 -345
@@ -1,1651 +0,0 @@
1
- import { g as kt, c as wr, a as Ht } from "./_commonjsHelpers-BVfed4GL.mjs";
2
- var C = TypeError;
3
- const zt = {}, jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
- __proto__: null,
5
- default: zt
6
- }, Symbol.toStringTag, { value: "Module" })), Vt = /* @__PURE__ */ kt(jt);
7
- var hr = typeof Map == "function" && Map.prototype, Te = Object.getOwnPropertyDescriptor && hr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ee = hr && Te && typeof Te.get == "function" ? Te.get : null, Er = hr && Map.prototype.forEach, gr = typeof Set == "function" && Set.prototype, Ce = Object.getOwnPropertyDescriptor && gr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, $e = gr && Ce && typeof Ce.get == "function" ? Ce.get : null, $r = gr && Set.prototype.forEach, Kt = typeof WeakMap == "function" && WeakMap.prototype, fe = Kt ? WeakMap.prototype.has : null, Jt = typeof WeakSet == "function" && WeakSet.prototype, le = Jt ? WeakSet.prototype.has : null, Qt = typeof WeakRef == "function" && WeakRef.prototype, Or = Qt ? WeakRef.prototype.deref : null, Yt = Boolean.prototype.valueOf, Xt = Object.prototype.toString, Zt = Function.prototype.toString, en = String.prototype.match, mr = String.prototype.slice, T = String.prototype.replace, rn = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, at = RegExp.prototype.test, Rr = Array.prototype.concat, F = Array.prototype.join, tn = Array.prototype.slice, Fr = Math.floor, yr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, ur = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, re = typeof Symbol == "function" && typeof Symbol.iterator == "object", E = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === re || !0) ? Symbol.toStringTag : null, it = Object.prototype.propertyIsEnumerable, xr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
8
- return r.__proto__;
9
- } : null);
10
- function _r(r, e) {
11
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || at.call(/e/, e))
12
- return e;
13
- var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
14
- if (typeof r == "number") {
15
- var t = r < 0 ? -Fr(-r) : Fr(r);
16
- if (t !== r) {
17
- var o = String(t), a = mr.call(e, o.length + 1);
18
- return T.call(o, n, "$&_") + "." + T.call(T.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
19
- }
20
- }
21
- return T.call(e, n, "$&_");
22
- }
23
- var cr = Vt, Dr = cr.custom, Nr = pt(Dr) ? Dr : null, ft = {
24
- __proto__: null,
25
- double: '"',
26
- single: "'"
27
- }, nn = {
28
- __proto__: null,
29
- double: /(["\\])/g,
30
- single: /(['\\])/g
31
- }, xe = function r(e, n, t, o) {
32
- var a = n || {};
33
- if (_(a, "quoteStyle") && !_(ft, a.quoteStyle))
34
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
35
- if (_(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
36
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
37
- var i = _(a, "customInspect") ? a.customInspect : !0;
38
- if (typeof i != "boolean" && i !== "symbol")
39
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
40
- if (_(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
41
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
42
- if (_(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
43
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
44
- var f = a.numericSeparator;
45
- if (typeof e > "u")
46
- return "undefined";
47
- if (e === null)
48
- return "null";
49
- if (typeof e == "boolean")
50
- return e ? "true" : "false";
51
- if (typeof e == "string")
52
- return ut(e, a);
53
- if (typeof e == "number") {
54
- if (e === 0)
55
- return 1 / 0 / e > 0 ? "0" : "-0";
56
- var p = String(e);
57
- return f ? _r(e, p) : p;
58
- }
59
- if (typeof e == "bigint") {
60
- var y = String(e) + "n";
61
- return f ? _r(e, y) : y;
62
- }
63
- var u = typeof a.depth > "u" ? 5 : a.depth;
64
- if (typeof t > "u" && (t = 0), t >= u && u > 0 && typeof e == "object")
65
- return sr(e) ? "[Array]" : "[Object]";
66
- var c = Pn(a, t);
67
- if (typeof o > "u")
68
- o = [];
69
- else if (yt(o, e) >= 0)
70
- return "[Circular]";
71
- function l(O, B, x) {
72
- if (B && (o = tn.call(o), o.push(B)), x) {
73
- var ae = {
74
- depth: a.depth
75
- };
76
- return _(a, "quoteStyle") && (ae.quoteStyle = a.quoteStyle), r(O, ae, t + 1, o);
77
- }
78
- return r(O, a, t + 1, o);
79
- }
80
- if (typeof e == "function" && !Mr(e)) {
81
- var h = sn(e), d = Ae(e, l);
82
- return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (d.length > 0 ? " { " + F.call(d, ", ") + " }" : "");
83
- }
84
- if (pt(e)) {
85
- var m = re ? T.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : ur.call(e);
86
- return typeof e == "object" && !re ? ie(m) : m;
87
- }
88
- if (An(e)) {
89
- for (var w = "<" + Ir.call(String(e.nodeName)), $ = e.attributes || [], D = 0; D < $.length; D++)
90
- w += " " + $[D].name + "=" + lt(on($[D].value), "double", a);
91
- return w += ">", e.childNodes && e.childNodes.length && (w += "..."), w += "</" + Ir.call(String(e.nodeName)) + ">", w;
92
- }
93
- if (sr(e)) {
94
- if (e.length === 0)
95
- return "[]";
96
- var g = Ae(e, l);
97
- return c && !bn(g) ? "[" + dr(g, c) + "]" : "[ " + F.call(g, ", ") + " ]";
98
- }
99
- if (fn(e)) {
100
- var N = Ae(e, l);
101
- return !("cause" in Error.prototype) && "cause" in e && !it.call(e, "cause") ? "{ [" + String(e) + "] " + F.call(Rr.call("[cause]: " + l(e.cause), N), ", ") + " }" : N.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + F.call(N, ", ") + " }";
102
- }
103
- if (typeof e == "object" && i) {
104
- if (Nr && typeof e[Nr] == "function" && cr)
105
- return cr(e, { depth: u - t });
106
- if (i !== "symbol" && typeof e.inspect == "function")
107
- return e.inspect();
108
- }
109
- if (dn(e)) {
110
- var W = [];
111
- return Er && Er.call(e, function(O, B) {
112
- W.push(l(B, e, !0) + " => " + l(O, e));
113
- }), Br("Map", Ee.call(e), W, c);
114
- }
115
- if (gn(e)) {
116
- var oe = [];
117
- return $r && $r.call(e, function(O) {
118
- oe.push(l(O, e));
119
- }), Br("Set", $e.call(e), oe, c);
120
- }
121
- if (vn(e))
122
- return We("WeakMap");
123
- if (mn(e))
124
- return We("WeakSet");
125
- if (hn(e))
126
- return We("WeakRef");
127
- if (pn(e))
128
- return ie(l(Number(e)));
129
- if (un(e))
130
- return ie(l(yr.call(e)));
131
- if (yn(e))
132
- return ie(Yt.call(e));
133
- if (ln(e))
134
- return ie(l(String(e)));
135
- if (typeof window < "u" && e === window)
136
- return "{ [object Window] }";
137
- if (typeof globalThis < "u" && e === globalThis || typeof wr < "u" && e === wr)
138
- return "{ [object globalThis] }";
139
- if (!an(e) && !Mr(e)) {
140
- var j = Ae(e, l), ge = xr ? xr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", M = !ge && E && Object(e) === e && E in e ? mr.call(U(e), 8, -1) : G ? "Object" : "", me = ge || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = me + (M || G ? "[" + F.call(Rr.call([], M || [], G || []), ": ") + "] " : "");
141
- return j.length === 0 ? V + "{}" : c ? V + "{" + dr(j, c) + "}" : V + "{ " + F.call(j, ", ") + " }";
142
- }
143
- return String(e);
144
- };
145
- function lt(r, e, n) {
146
- var t = n.quoteStyle || e, o = ft[t];
147
- return o + r + o;
148
- }
149
- function on(r) {
150
- return T.call(String(r), /"/g, "&quot;");
151
- }
152
- function sr(r) {
153
- return U(r) === "[object Array]" && (!E || !(typeof r == "object" && E in r));
154
- }
155
- function an(r) {
156
- return U(r) === "[object Date]" && (!E || !(typeof r == "object" && E in r));
157
- }
158
- function Mr(r) {
159
- return U(r) === "[object RegExp]" && (!E || !(typeof r == "object" && E in r));
160
- }
161
- function fn(r) {
162
- return U(r) === "[object Error]" && (!E || !(typeof r == "object" && E in r));
163
- }
164
- function ln(r) {
165
- return U(r) === "[object String]" && (!E || !(typeof r == "object" && E in r));
166
- }
167
- function pn(r) {
168
- return U(r) === "[object Number]" && (!E || !(typeof r == "object" && E in r));
169
- }
170
- function yn(r) {
171
- return U(r) === "[object Boolean]" && (!E || !(typeof r == "object" && E in r));
172
- }
173
- function pt(r) {
174
- if (re)
175
- return r && typeof r == "object" && r instanceof Symbol;
176
- if (typeof r == "symbol")
177
- return !0;
178
- if (!r || typeof r != "object" || !ur)
179
- return !1;
180
- try {
181
- return ur.call(r), !0;
182
- } catch {
183
- }
184
- return !1;
185
- }
186
- function un(r) {
187
- if (!r || typeof r != "object" || !yr)
188
- return !1;
189
- try {
190
- return yr.call(r), !0;
191
- } catch {
192
- }
193
- return !1;
194
- }
195
- var cn = Object.prototype.hasOwnProperty || function(r) {
196
- return r in this;
197
- };
198
- function _(r, e) {
199
- return cn.call(r, e);
200
- }
201
- function U(r) {
202
- return Xt.call(r);
203
- }
204
- function sn(r) {
205
- if (r.name)
206
- return r.name;
207
- var e = en.call(Zt.call(r), /^function\s*([\w$]+)/);
208
- return e ? e[1] : null;
209
- }
210
- function yt(r, e) {
211
- if (r.indexOf)
212
- return r.indexOf(e);
213
- for (var n = 0, t = r.length; n < t; n++)
214
- if (r[n] === e)
215
- return n;
216
- return -1;
217
- }
218
- function dn(r) {
219
- if (!Ee || !r || typeof r != "object")
220
- return !1;
221
- try {
222
- Ee.call(r);
223
- try {
224
- $e.call(r);
225
- } catch {
226
- return !0;
227
- }
228
- return r instanceof Map;
229
- } catch {
230
- }
231
- return !1;
232
- }
233
- function vn(r) {
234
- if (!fe || !r || typeof r != "object")
235
- return !1;
236
- try {
237
- fe.call(r, fe);
238
- try {
239
- le.call(r, le);
240
- } catch {
241
- return !0;
242
- }
243
- return r instanceof WeakMap;
244
- } catch {
245
- }
246
- return !1;
247
- }
248
- function hn(r) {
249
- if (!Or || !r || typeof r != "object")
250
- return !1;
251
- try {
252
- return Or.call(r), !0;
253
- } catch {
254
- }
255
- return !1;
256
- }
257
- function gn(r) {
258
- if (!$e || !r || typeof r != "object")
259
- return !1;
260
- try {
261
- $e.call(r);
262
- try {
263
- Ee.call(r);
264
- } catch {
265
- return !0;
266
- }
267
- return r instanceof Set;
268
- } catch {
269
- }
270
- return !1;
271
- }
272
- function mn(r) {
273
- if (!le || !r || typeof r != "object")
274
- return !1;
275
- try {
276
- le.call(r, le);
277
- try {
278
- fe.call(r, fe);
279
- } catch {
280
- return !0;
281
- }
282
- return r instanceof WeakSet;
283
- } catch {
284
- }
285
- return !1;
286
- }
287
- function An(r) {
288
- return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
289
- }
290
- function ut(r, e) {
291
- if (r.length > e.maxStringLength) {
292
- var n = r.length - e.maxStringLength, t = "... " + n + " more character" + (n > 1 ? "s" : "");
293
- return ut(mr.call(r, 0, e.maxStringLength), e) + t;
294
- }
295
- var o = nn[e.quoteStyle || "single"];
296
- o.lastIndex = 0;
297
- var a = T.call(T.call(r, o, "\\$1"), /[\x00-\x1f]/g, Sn);
298
- return lt(a, "single", e);
299
- }
300
- function Sn(r) {
301
- var e = r.charCodeAt(0), n = {
302
- 8: "b",
303
- 9: "t",
304
- 10: "n",
305
- 12: "f",
306
- 13: "r"
307
- }[e];
308
- return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + rn.call(e.toString(16));
309
- }
310
- function ie(r) {
311
- return "Object(" + r + ")";
312
- }
313
- function We(r) {
314
- return r + " { ? }";
315
- }
316
- function Br(r, e, n, t) {
317
- var o = t ? dr(n, t) : F.call(n, ", ");
318
- return r + " (" + e + ") {" + o + "}";
319
- }
320
- function bn(r) {
321
- for (var e = 0; e < r.length; e++)
322
- if (yt(r[e], `
323
- `) >= 0)
324
- return !1;
325
- return !0;
326
- }
327
- function Pn(r, e) {
328
- var n;
329
- if (r.indent === " ")
330
- n = " ";
331
- else if (typeof r.indent == "number" && r.indent > 0)
332
- n = F.call(Array(r.indent + 1), " ");
333
- else
334
- return null;
335
- return {
336
- base: n,
337
- prev: F.call(Array(e + 1), n)
338
- };
339
- }
340
- function dr(r, e) {
341
- if (r.length === 0)
342
- return "";
343
- var n = `
344
- ` + e.prev + e.base;
345
- return n + F.call(r, "," + n) + `
346
- ` + e.prev;
347
- }
348
- function Ae(r, e) {
349
- var n = sr(r), t = [];
350
- if (n) {
351
- t.length = r.length;
352
- for (var o = 0; o < r.length; o++)
353
- t[o] = _(r, o) ? e(r[o], r) : "";
354
- }
355
- var a = typeof Ue == "function" ? Ue(r) : [], i;
356
- if (re) {
357
- i = {};
358
- for (var f = 0; f < a.length; f++)
359
- i["$" + a[f]] = a[f];
360
- }
361
- for (var p in r)
362
- _(r, p) && (n && String(Number(p)) === p && p < r.length || re && i["$" + p] instanceof Symbol || (at.call(/[^\w$]/, p) ? t.push(e(p, r) + ": " + e(r[p], r)) : t.push(p + ": " + e(r[p], r))));
363
- if (typeof Ue == "function")
364
- for (var y = 0; y < a.length; y++)
365
- it.call(r, a[y]) && t.push("[" + e(a[y]) + "]: " + e(r[a[y]], r));
366
- return t;
367
- }
368
- var wn = xe, En = C, _e = function(r, e, n) {
369
- for (var t = r, o; (o = t.next) != null; t = o)
370
- if (o.key === e)
371
- return t.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
372
- r.next, r.next = o), o;
373
- }, $n = function(r, e) {
374
- if (r) {
375
- var n = _e(r, e);
376
- return n && n.value;
377
- }
378
- }, On = function(r, e, n) {
379
- var t = _e(r, e);
380
- t ? t.value = n : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
381
- {
382
- // eslint-disable-line no-param-reassign, no-extra-parens
383
- key: e,
384
- next: r.next,
385
- value: n
386
- };
387
- }, In = function(r, e) {
388
- return r ? !!_e(r, e) : !1;
389
- }, Rn = function(r, e) {
390
- if (r)
391
- return _e(r, e, !0);
392
- }, Fn = function() {
393
- var e, n = {
394
- assert: function(t) {
395
- if (!n.has(t))
396
- throw new En("Side channel does not contain " + wn(t));
397
- },
398
- delete: function(t) {
399
- var o = e && e.next, a = Rn(e, t);
400
- return a && o && o === a && (e = void 0), !!a;
401
- },
402
- get: function(t) {
403
- return $n(e, t);
404
- },
405
- has: function(t) {
406
- return In(e, t);
407
- },
408
- set: function(t, o) {
409
- e || (e = {
410
- next: void 0
411
- }), On(
412
- /** @type {NonNullable<typeof $o>} */
413
- e,
414
- t,
415
- o
416
- );
417
- }
418
- };
419
- return n;
420
- }, ct = Error, st = EvalError, dt = RangeError, vt = ReferenceError, ht = SyntaxError, gt = URIError, xn = Object.getOwnPropertyDescriptor, be = xn;
421
- if (be)
422
- try {
423
- be([], "length");
424
- } catch {
425
- be = null;
426
- }
427
- var De = be, Pe = Object.defineProperty || !1;
428
- if (Pe)
429
- try {
430
- Pe({}, "a", { value: 1 });
431
- } catch {
432
- Pe = !1;
433
- }
434
- var mt = Pe, Ge, Tr;
435
- function _n() {
436
- return Tr || (Tr = 1, Ge = function() {
437
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
438
- return !1;
439
- if (typeof Symbol.iterator == "symbol")
440
- return !0;
441
- var e = {}, n = Symbol("test"), t = Object(n);
442
- if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
443
- return !1;
444
- var o = 42;
445
- e[n] = o;
446
- for (var a in e)
447
- return !1;
448
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
449
- return !1;
450
- var i = Object.getOwnPropertySymbols(e);
451
- if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
452
- return !1;
453
- if (typeof Object.getOwnPropertyDescriptor == "function") {
454
- var f = (
455
- /** @type {PropertyDescriptor} */
456
- Object.getOwnPropertyDescriptor(e, n)
457
- );
458
- if (f.value !== o || f.enumerable !== !0)
459
- return !1;
460
- }
461
- return !0;
462
- }), Ge;
463
- }
464
- var qe, Cr;
465
- function At() {
466
- if (Cr) return qe;
467
- Cr = 1;
468
- var r = typeof Symbol < "u" && Symbol, e = _n();
469
- return qe = function() {
470
- return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
471
- }, qe;
472
- }
473
- var Le, Ur;
474
- function Dn() {
475
- if (Ur) return Le;
476
- Ur = 1;
477
- var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, t = "[object Function]", o = function(p, y) {
478
- for (var u = [], c = 0; c < p.length; c += 1)
479
- u[c] = p[c];
480
- for (var l = 0; l < y.length; l += 1)
481
- u[l + p.length] = y[l];
482
- return u;
483
- }, a = function(p, y) {
484
- for (var u = [], c = y, l = 0; c < p.length; c += 1, l += 1)
485
- u[l] = p[c];
486
- return u;
487
- }, i = function(f, p) {
488
- for (var y = "", u = 0; u < f.length; u += 1)
489
- y += f[u], u + 1 < f.length && (y += p);
490
- return y;
491
- };
492
- return Le = function(p) {
493
- var y = this;
494
- if (typeof y != "function" || e.apply(y) !== t)
495
- throw new TypeError(r + y);
496
- for (var u = a(arguments, 1), c, l = function() {
497
- if (this instanceof c) {
498
- var $ = y.apply(
499
- this,
500
- o(u, arguments)
501
- );
502
- return Object($) === $ ? $ : this;
503
- }
504
- return y.apply(
505
- p,
506
- o(u, arguments)
507
- );
508
- }, h = n(0, y.length - u.length), d = [], m = 0; m < h; m++)
509
- d[m] = "$" + m;
510
- if (c = Function("binder", "return function (" + i(d, ",") + "){ return binder.apply(this,arguments); }")(l), y.prototype) {
511
- var w = function() {
512
- };
513
- w.prototype = y.prototype, c.prototype = new w(), w.prototype = null;
514
- }
515
- return c;
516
- }, Le;
517
- }
518
- var ke, Wr;
519
- function z() {
520
- if (Wr) return ke;
521
- Wr = 1;
522
- var r = Dn();
523
- return ke = Function.prototype.bind || r, ke;
524
- }
525
- var He, Gr;
526
- function Ar() {
527
- return Gr || (Gr = 1, He = Function.prototype.call), He;
528
- }
529
- var ze, qr;
530
- function St() {
531
- return qr || (qr = 1, ze = Function.prototype.apply), ze;
532
- }
533
- var je, Lr;
534
- function Nn() {
535
- return Lr || (Lr = 1, je = typeof Reflect == "function" && Reflect.apply), je;
536
- }
537
- var Ve, kr;
538
- function Mn() {
539
- if (kr) return Ve;
540
- kr = 1;
541
- var r = z(), e = St(), n = Ar(), t = Nn();
542
- return Ve = t || r.call(n, e), Ve;
543
- }
544
- var Ke, Hr;
545
- function Bn() {
546
- if (Hr) return Ke;
547
- Hr = 1;
548
- var r = z(), e = C, n = Ar(), t = Mn();
549
- return Ke = function(a) {
550
- if (a.length < 1 || typeof a[0] != "function")
551
- throw new e("a function is required");
552
- return t(r, n, a);
553
- }, Ke;
554
- }
555
- var Je, zr;
556
- function Tn() {
557
- if (zr) return Je;
558
- zr = 1;
559
- var r = Bn(), e = De, n = (
560
- /** @type {{ __proto__?: typeof Array.prototype }} */
561
- [].__proto__ === Array.prototype
562
- ), t = n && e && e(
563
- Object.prototype,
564
- /** @type {keyof typeof Object.prototype} */
565
- "__proto__"
566
- ), o = Object, a = o.getPrototypeOf;
567
- return Je = t && typeof t.get == "function" ? r([t.get]) : typeof a == "function" ? (
568
- /** @type {import('./get')} */
569
- function(f) {
570
- return a(f == null ? f : o(f));
571
- }
572
- ) : !1, Je;
573
- }
574
- var Qe, jr;
575
- function bt() {
576
- if (jr) return Qe;
577
- jr = 1;
578
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = z();
579
- return Qe = n.call(r, e), Qe;
580
- }
581
- var v, Cn = ct, Un = st, Wn = dt, Gn = vt, te = ht, Z = C, qn = gt, Pt = Function, Ye = function(r) {
582
- try {
583
- return Pt('"use strict"; return (' + r + ").constructor;")();
584
- } catch {
585
- }
586
- }, ye = De, Ln = mt, Xe = function() {
587
- throw new Z();
588
- }, kn = ye ? function() {
589
- try {
590
- return arguments.callee, Xe;
591
- } catch {
592
- try {
593
- return ye(arguments, "callee").get;
594
- } catch {
595
- return Xe;
596
- }
597
- }
598
- }() : Xe, K = At()(), Hn = Tn(), b = typeof Reflect == "function" && Reflect.getPrototypeOf || Object.getPrototypeOf || Hn, wt = St(), ce = Ar(), Y = {}, zn = typeof Uint8Array > "u" || !b ? v : b(Uint8Array), L = {
599
- __proto__: null,
600
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
601
- "%Array%": Array,
602
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
603
- "%ArrayIteratorPrototype%": K && b ? b([][Symbol.iterator]()) : v,
604
- "%AsyncFromSyncIteratorPrototype%": v,
605
- "%AsyncFunction%": Y,
606
- "%AsyncGenerator%": Y,
607
- "%AsyncGeneratorFunction%": Y,
608
- "%AsyncIteratorPrototype%": Y,
609
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
610
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
611
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
612
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
613
- "%Boolean%": Boolean,
614
- "%DataView%": typeof DataView > "u" ? v : DataView,
615
- "%Date%": Date,
616
- "%decodeURI%": decodeURI,
617
- "%decodeURIComponent%": decodeURIComponent,
618
- "%encodeURI%": encodeURI,
619
- "%encodeURIComponent%": encodeURIComponent,
620
- "%Error%": Cn,
621
- "%eval%": eval,
622
- // eslint-disable-line no-eval
623
- "%EvalError%": Un,
624
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
625
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
626
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
627
- "%Function%": Pt,
628
- "%GeneratorFunction%": Y,
629
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
630
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
631
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
632
- "%isFinite%": isFinite,
633
- "%isNaN%": isNaN,
634
- "%IteratorPrototype%": K && b ? b(b([][Symbol.iterator]())) : v,
635
- "%JSON%": typeof JSON == "object" ? JSON : v,
636
- "%Map%": typeof Map > "u" ? v : Map,
637
- "%MapIteratorPrototype%": typeof Map > "u" || !K || !b ? v : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
638
- "%Math%": Math,
639
- "%Number%": Number,
640
- "%Object%": Object,
641
- "%Object.getOwnPropertyDescriptor%": ye,
642
- "%parseFloat%": parseFloat,
643
- "%parseInt%": parseInt,
644
- "%Promise%": typeof Promise > "u" ? v : Promise,
645
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
646
- "%RangeError%": Wn,
647
- "%ReferenceError%": Gn,
648
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
649
- "%RegExp%": RegExp,
650
- "%Set%": typeof Set > "u" ? v : Set,
651
- "%SetIteratorPrototype%": typeof Set > "u" || !K || !b ? v : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
652
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
653
- "%String%": String,
654
- "%StringIteratorPrototype%": K && b ? b(""[Symbol.iterator]()) : v,
655
- "%Symbol%": K ? Symbol : v,
656
- "%SyntaxError%": te,
657
- "%ThrowTypeError%": kn,
658
- "%TypedArray%": zn,
659
- "%TypeError%": Z,
660
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
661
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
662
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
663
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
664
- "%URIError%": qn,
665
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
666
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
667
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
668
- "%Function.prototype.call%": ce,
669
- "%Function.prototype.apply%": wt,
670
- "%Object.defineProperty%": Ln
671
- };
672
- if (b)
673
- try {
674
- null.error;
675
- } catch (r) {
676
- var jn = b(b(r));
677
- L["%Error.prototype%"] = jn;
678
- }
679
- var Vn = function r(e) {
680
- var n;
681
- if (e === "%AsyncFunction%")
682
- n = Ye("async function () {}");
683
- else if (e === "%GeneratorFunction%")
684
- n = Ye("function* () {}");
685
- else if (e === "%AsyncGeneratorFunction%")
686
- n = Ye("async function* () {}");
687
- else if (e === "%AsyncGenerator%") {
688
- var t = r("%AsyncGeneratorFunction%");
689
- t && (n = t.prototype);
690
- } else if (e === "%AsyncIteratorPrototype%") {
691
- var o = r("%AsyncGenerator%");
692
- o && b && (n = b(o.prototype));
693
- }
694
- return L[e] = n, n;
695
- }, Vr = {
696
- __proto__: null,
697
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
698
- "%ArrayPrototype%": ["Array", "prototype"],
699
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
700
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
701
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
702
- "%ArrayProto_values%": ["Array", "prototype", "values"],
703
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
704
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
705
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
706
- "%BooleanPrototype%": ["Boolean", "prototype"],
707
- "%DataViewPrototype%": ["DataView", "prototype"],
708
- "%DatePrototype%": ["Date", "prototype"],
709
- "%ErrorPrototype%": ["Error", "prototype"],
710
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
711
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
712
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
713
- "%FunctionPrototype%": ["Function", "prototype"],
714
- "%Generator%": ["GeneratorFunction", "prototype"],
715
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
716
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
717
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
718
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
719
- "%JSONParse%": ["JSON", "parse"],
720
- "%JSONStringify%": ["JSON", "stringify"],
721
- "%MapPrototype%": ["Map", "prototype"],
722
- "%NumberPrototype%": ["Number", "prototype"],
723
- "%ObjectPrototype%": ["Object", "prototype"],
724
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
725
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
726
- "%PromisePrototype%": ["Promise", "prototype"],
727
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
728
- "%Promise_all%": ["Promise", "all"],
729
- "%Promise_reject%": ["Promise", "reject"],
730
- "%Promise_resolve%": ["Promise", "resolve"],
731
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
732
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
733
- "%RegExpPrototype%": ["RegExp", "prototype"],
734
- "%SetPrototype%": ["Set", "prototype"],
735
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
736
- "%StringPrototype%": ["String", "prototype"],
737
- "%SymbolPrototype%": ["Symbol", "prototype"],
738
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
739
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
740
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
741
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
742
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
743
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
744
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
745
- "%URIErrorPrototype%": ["URIError", "prototype"],
746
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
747
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
748
- }, se = z(), Oe = bt(), Kn = se.call(ce, Array.prototype.concat), Jn = se.call(wt, Array.prototype.splice), Kr = se.call(ce, String.prototype.replace), Ie = se.call(ce, String.prototype.slice), Qn = se.call(ce, RegExp.prototype.exec), Yn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xn = /\\(\\)?/g, Zn = function(e) {
749
- var n = Ie(e, 0, 1), t = Ie(e, -1);
750
- if (n === "%" && t !== "%")
751
- throw new te("invalid intrinsic syntax, expected closing `%`");
752
- if (t === "%" && n !== "%")
753
- throw new te("invalid intrinsic syntax, expected opening `%`");
754
- var o = [];
755
- return Kr(e, Yn, function(a, i, f, p) {
756
- o[o.length] = f ? Kr(p, Xn, "$1") : i || a;
757
- }), o;
758
- }, eo = function(e, n) {
759
- var t = e, o;
760
- if (Oe(Vr, t) && (o = Vr[t], t = "%" + o[0] + "%"), Oe(L, t)) {
761
- var a = L[t];
762
- if (a === Y && (a = Vn(t)), typeof a > "u" && !n)
763
- throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
764
- return {
765
- alias: o,
766
- name: t,
767
- value: a
768
- };
769
- }
770
- throw new te("intrinsic " + e + " does not exist!");
771
- }, Et = function(e, n) {
772
- if (typeof e != "string" || e.length === 0)
773
- throw new Z("intrinsic name must be a non-empty string");
774
- if (arguments.length > 1 && typeof n != "boolean")
775
- throw new Z('"allowMissing" argument must be a boolean');
776
- if (Qn(/^%?[^%]*%?$/, e) === null)
777
- throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
778
- var t = Zn(e), o = t.length > 0 ? t[0] : "", a = eo("%" + o + "%", n), i = a.name, f = a.value, p = !1, y = a.alias;
779
- y && (o = y[0], Jn(t, Kn([0, 1], y)));
780
- for (var u = 1, c = !0; u < t.length; u += 1) {
781
- var l = t[u], h = Ie(l, 0, 1), d = Ie(l, -1);
782
- if ((h === '"' || h === "'" || h === "`" || d === '"' || d === "'" || d === "`") && h !== d)
783
- throw new te("property names with quotes must have matching quotes");
784
- if ((l === "constructor" || !c) && (p = !0), o += "." + l, i = "%" + o + "%", Oe(L, i))
785
- f = L[i];
786
- else if (f != null) {
787
- if (!(l in f)) {
788
- if (!n)
789
- throw new Z("base intrinsic for " + e + " exists, but the property is not available.");
790
- return;
791
- }
792
- if (ye && u + 1 >= t.length) {
793
- var m = ye(f, l);
794
- c = !!m, c && "get" in m && !("originalValue" in m.get) ? f = m.get : f = f[l];
795
- } else
796
- c = Oe(f, l), f = f[l];
797
- c && !p && (L[i] = f);
798
- }
799
- }
800
- return f;
801
- }, $t = Object, ro = Math.abs, to = Math.floor, no = Math.max, oo = Math.min, ao = Math.pow, io = Math.round, fo = Number.isNaN || function(e) {
802
- return e !== e;
803
- }, lo = fo, po = function(e) {
804
- return lo(e) || e === 0 ? e : e < 0 ? -1 : 1;
805
- }, Ze, Jr;
806
- function Ot() {
807
- return Jr || (Jr = 1, Ze = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ze;
808
- }
809
- var er, Qr;
810
- function It() {
811
- if (Qr) return er;
812
- Qr = 1;
813
- var r = $t;
814
- return er = r.getPrototypeOf || null, er;
815
- }
816
- var Sr = Function.prototype.call, rr, Yr;
817
- function Rt() {
818
- return Yr || (Yr = 1, rr = Function.prototype.apply), rr;
819
- }
820
- var yo = typeof Reflect < "u" && Reflect && Reflect.apply, uo = z(), co = Rt(), so = Sr, vo = yo, ho = vo || uo.call(so, co), go = z(), mo = C, Ao = Sr, So = ho, Ft = function(e) {
821
- if (e.length < 1 || typeof e[0] != "function")
822
- throw new mo("a function is required");
823
- return So(go, Ao, e);
824
- }, tr, Xr;
825
- function bo() {
826
- if (Xr) return tr;
827
- Xr = 1;
828
- var r = Ft, e = De, n;
829
- try {
830
- n = /** @type {{ __proto__?: typeof Array.prototype }} */
831
- [].__proto__ === Array.prototype;
832
- } catch (i) {
833
- if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
834
- throw i;
835
- }
836
- var t = !!n && e && e(
837
- Object.prototype,
838
- /** @type {keyof typeof Object.prototype} */
839
- "__proto__"
840
- ), o = Object, a = o.getPrototypeOf;
841
- return tr = t && typeof t.get == "function" ? r([t.get]) : typeof a == "function" ? (
842
- /** @type {import('./get')} */
843
- function(f) {
844
- return a(f == null ? f : o(f));
845
- }
846
- ) : !1, tr;
847
- }
848
- var nr, Zr;
849
- function Po() {
850
- if (Zr) return nr;
851
- Zr = 1;
852
- var r = Ot(), e = It(), n = bo();
853
- return nr = r ? function(o) {
854
- return r(o);
855
- } : e ? function(o) {
856
- if (!o || typeof o != "object" && typeof o != "function")
857
- throw new TypeError("getProto: not an object");
858
- return e(o);
859
- } : n ? function(o) {
860
- return n(o);
861
- } : null, nr;
862
- }
863
- var s, wo = $t, Eo = ct, $o = st, Oo = dt, Io = vt, ne = ht, ee = C, Ro = gt, Fo = ro, xo = to, _o = no, Do = oo, No = ao, Mo = io, Bo = po, xt = Function, or = function(r) {
864
- try {
865
- return xt('"use strict"; return (' + r + ").constructor;")();
866
- } catch {
867
- }
868
- }, ue = De, To = mt, ar = function() {
869
- throw new ee();
870
- }, Co = ue ? function() {
871
- try {
872
- return arguments.callee, ar;
873
- } catch {
874
- try {
875
- return ue(arguments, "callee").get;
876
- } catch {
877
- return ar;
878
- }
879
- }
880
- }() : ar, J = At()(), P = Po(), Uo = It(), Wo = Ot(), _t = Rt(), de = Sr, X = {}, Go = typeof Uint8Array > "u" || !P ? s : P(Uint8Array), k = {
881
- __proto__: null,
882
- "%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
883
- "%Array%": Array,
884
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
885
- "%ArrayIteratorPrototype%": J && P ? P([][Symbol.iterator]()) : s,
886
- "%AsyncFromSyncIteratorPrototype%": s,
887
- "%AsyncFunction%": X,
888
- "%AsyncGenerator%": X,
889
- "%AsyncGeneratorFunction%": X,
890
- "%AsyncIteratorPrototype%": X,
891
- "%Atomics%": typeof Atomics > "u" ? s : Atomics,
892
- "%BigInt%": typeof BigInt > "u" ? s : BigInt,
893
- "%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array,
894
- "%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array,
895
- "%Boolean%": Boolean,
896
- "%DataView%": typeof DataView > "u" ? s : DataView,
897
- "%Date%": Date,
898
- "%decodeURI%": decodeURI,
899
- "%decodeURIComponent%": decodeURIComponent,
900
- "%encodeURI%": encodeURI,
901
- "%encodeURIComponent%": encodeURIComponent,
902
- "%Error%": Eo,
903
- "%eval%": eval,
904
- // eslint-disable-line no-eval
905
- "%EvalError%": $o,
906
- "%Float16Array%": typeof Float16Array > "u" ? s : Float16Array,
907
- "%Float32Array%": typeof Float32Array > "u" ? s : Float32Array,
908
- "%Float64Array%": typeof Float64Array > "u" ? s : Float64Array,
909
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry,
910
- "%Function%": xt,
911
- "%GeneratorFunction%": X,
912
- "%Int8Array%": typeof Int8Array > "u" ? s : Int8Array,
913
- "%Int16Array%": typeof Int16Array > "u" ? s : Int16Array,
914
- "%Int32Array%": typeof Int32Array > "u" ? s : Int32Array,
915
- "%isFinite%": isFinite,
916
- "%isNaN%": isNaN,
917
- "%IteratorPrototype%": J && P ? P(P([][Symbol.iterator]())) : s,
918
- "%JSON%": typeof JSON == "object" ? JSON : s,
919
- "%Map%": typeof Map > "u" ? s : Map,
920
- "%MapIteratorPrototype%": typeof Map > "u" || !J || !P ? s : P((/* @__PURE__ */ new Map())[Symbol.iterator]()),
921
- "%Math%": Math,
922
- "%Number%": Number,
923
- "%Object%": wo,
924
- "%Object.getOwnPropertyDescriptor%": ue,
925
- "%parseFloat%": parseFloat,
926
- "%parseInt%": parseInt,
927
- "%Promise%": typeof Promise > "u" ? s : Promise,
928
- "%Proxy%": typeof Proxy > "u" ? s : Proxy,
929
- "%RangeError%": Oo,
930
- "%ReferenceError%": Io,
931
- "%Reflect%": typeof Reflect > "u" ? s : Reflect,
932
- "%RegExp%": RegExp,
933
- "%Set%": typeof Set > "u" ? s : Set,
934
- "%SetIteratorPrototype%": typeof Set > "u" || !J || !P ? s : P((/* @__PURE__ */ new Set())[Symbol.iterator]()),
935
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer,
936
- "%String%": String,
937
- "%StringIteratorPrototype%": J && P ? P(""[Symbol.iterator]()) : s,
938
- "%Symbol%": J ? Symbol : s,
939
- "%SyntaxError%": ne,
940
- "%ThrowTypeError%": Co,
941
- "%TypedArray%": Go,
942
- "%TypeError%": ee,
943
- "%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
944
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
945
- "%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array,
946
- "%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array,
947
- "%URIError%": Ro,
948
- "%WeakMap%": typeof WeakMap > "u" ? s : WeakMap,
949
- "%WeakRef%": typeof WeakRef > "u" ? s : WeakRef,
950
- "%WeakSet%": typeof WeakSet > "u" ? s : WeakSet,
951
- "%Function.prototype.call%": de,
952
- "%Function.prototype.apply%": _t,
953
- "%Object.defineProperty%": To,
954
- "%Object.getPrototypeOf%": Uo,
955
- "%Math.abs%": Fo,
956
- "%Math.floor%": xo,
957
- "%Math.max%": _o,
958
- "%Math.min%": Do,
959
- "%Math.pow%": No,
960
- "%Math.round%": Mo,
961
- "%Math.sign%": Bo,
962
- "%Reflect.getPrototypeOf%": Wo
963
- };
964
- if (P)
965
- try {
966
- null.error;
967
- } catch (r) {
968
- var qo = P(P(r));
969
- k["%Error.prototype%"] = qo;
970
- }
971
- var Lo = function r(e) {
972
- var n;
973
- if (e === "%AsyncFunction%")
974
- n = or("async function () {}");
975
- else if (e === "%GeneratorFunction%")
976
- n = or("function* () {}");
977
- else if (e === "%AsyncGeneratorFunction%")
978
- n = or("async function* () {}");
979
- else if (e === "%AsyncGenerator%") {
980
- var t = r("%AsyncGeneratorFunction%");
981
- t && (n = t.prototype);
982
- } else if (e === "%AsyncIteratorPrototype%") {
983
- var o = r("%AsyncGenerator%");
984
- o && P && (n = P(o.prototype));
985
- }
986
- return k[e] = n, n;
987
- }, et = {
988
- __proto__: null,
989
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
990
- "%ArrayPrototype%": ["Array", "prototype"],
991
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
992
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
993
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
994
- "%ArrayProto_values%": ["Array", "prototype", "values"],
995
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
996
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
997
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
998
- "%BooleanPrototype%": ["Boolean", "prototype"],
999
- "%DataViewPrototype%": ["DataView", "prototype"],
1000
- "%DatePrototype%": ["Date", "prototype"],
1001
- "%ErrorPrototype%": ["Error", "prototype"],
1002
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
1003
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1004
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1005
- "%FunctionPrototype%": ["Function", "prototype"],
1006
- "%Generator%": ["GeneratorFunction", "prototype"],
1007
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1008
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1009
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1010
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1011
- "%JSONParse%": ["JSON", "parse"],
1012
- "%JSONStringify%": ["JSON", "stringify"],
1013
- "%MapPrototype%": ["Map", "prototype"],
1014
- "%NumberPrototype%": ["Number", "prototype"],
1015
- "%ObjectPrototype%": ["Object", "prototype"],
1016
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
1017
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1018
- "%PromisePrototype%": ["Promise", "prototype"],
1019
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
1020
- "%Promise_all%": ["Promise", "all"],
1021
- "%Promise_reject%": ["Promise", "reject"],
1022
- "%Promise_resolve%": ["Promise", "resolve"],
1023
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
1024
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1025
- "%RegExpPrototype%": ["RegExp", "prototype"],
1026
- "%SetPrototype%": ["Set", "prototype"],
1027
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1028
- "%StringPrototype%": ["String", "prototype"],
1029
- "%SymbolPrototype%": ["Symbol", "prototype"],
1030
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1031
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1032
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
1033
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1034
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1035
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1036
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1037
- "%URIErrorPrototype%": ["URIError", "prototype"],
1038
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
1039
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
1040
- }, ve = z(), Re = bt(), ko = ve.call(de, Array.prototype.concat), Ho = ve.call(_t, Array.prototype.splice), rt = ve.call(de, String.prototype.replace), Fe = ve.call(de, String.prototype.slice), zo = ve.call(de, RegExp.prototype.exec), jo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Vo = /\\(\\)?/g, Ko = function(e) {
1041
- var n = Fe(e, 0, 1), t = Fe(e, -1);
1042
- if (n === "%" && t !== "%")
1043
- throw new ne("invalid intrinsic syntax, expected closing `%`");
1044
- if (t === "%" && n !== "%")
1045
- throw new ne("invalid intrinsic syntax, expected opening `%`");
1046
- var o = [];
1047
- return rt(e, jo, function(a, i, f, p) {
1048
- o[o.length] = f ? rt(p, Vo, "$1") : i || a;
1049
- }), o;
1050
- }, Jo = function(e, n) {
1051
- var t = e, o;
1052
- if (Re(et, t) && (o = et[t], t = "%" + o[0] + "%"), Re(k, t)) {
1053
- var a = k[t];
1054
- if (a === X && (a = Lo(t)), typeof a > "u" && !n)
1055
- throw new ee("intrinsic " + e + " exists, but is not available. Please file an issue!");
1056
- return {
1057
- alias: o,
1058
- name: t,
1059
- value: a
1060
- };
1061
- }
1062
- throw new ne("intrinsic " + e + " does not exist!");
1063
- }, Qo = function(e, n) {
1064
- if (typeof e != "string" || e.length === 0)
1065
- throw new ee("intrinsic name must be a non-empty string");
1066
- if (arguments.length > 1 && typeof n != "boolean")
1067
- throw new ee('"allowMissing" argument must be a boolean');
1068
- if (zo(/^%?[^%]*%?$/, e) === null)
1069
- throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1070
- var t = Ko(e), o = t.length > 0 ? t[0] : "", a = Jo("%" + o + "%", n), i = a.name, f = a.value, p = !1, y = a.alias;
1071
- y && (o = y[0], Ho(t, ko([0, 1], y)));
1072
- for (var u = 1, c = !0; u < t.length; u += 1) {
1073
- var l = t[u], h = Fe(l, 0, 1), d = Fe(l, -1);
1074
- if ((h === '"' || h === "'" || h === "`" || d === '"' || d === "'" || d === "`") && h !== d)
1075
- throw new ne("property names with quotes must have matching quotes");
1076
- if ((l === "constructor" || !c) && (p = !0), o += "." + l, i = "%" + o + "%", Re(k, i))
1077
- f = k[i];
1078
- else if (f != null) {
1079
- if (!(l in f)) {
1080
- if (!n)
1081
- throw new ee("base intrinsic for " + e + " exists, but the property is not available.");
1082
- return;
1083
- }
1084
- if (ue && u + 1 >= t.length) {
1085
- var m = ue(f, l);
1086
- c = !!m, c && "get" in m && !("originalValue" in m.get) ? f = m.get : f = f[l];
1087
- } else
1088
- c = Re(f, l), f = f[l];
1089
- c && !p && (k[i] = f);
1090
- }
1091
- }
1092
- return f;
1093
- }, Dt = Qo, Nt = Ft, Yo = Nt([Dt("%String.prototype.indexOf%")]), Mt = function(e, n) {
1094
- var t = (
1095
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1096
- Dt(e, !!n)
1097
- );
1098
- return typeof t == "function" && Yo(e, ".prototype.") > -1 ? Nt(
1099
- /** @type {const} */
1100
- [t]
1101
- ) : t;
1102
- }, Xo = Et, he = Mt, Zo = xe, ea = C, tt = Xo("%Map%", !0), ra = he("Map.prototype.get", !0), ta = he("Map.prototype.set", !0), na = he("Map.prototype.has", !0), oa = he("Map.prototype.delete", !0), aa = he("Map.prototype.size", !0), Bt = !!tt && /** @type {Exclude<import('.'), false>} */
1103
- function() {
1104
- var e, n = {
1105
- assert: function(t) {
1106
- if (!n.has(t))
1107
- throw new ea("Side channel does not contain " + Zo(t));
1108
- },
1109
- delete: function(t) {
1110
- if (e) {
1111
- var o = oa(e, t);
1112
- return aa(e) === 0 && (e = void 0), o;
1113
- }
1114
- return !1;
1115
- },
1116
- get: function(t) {
1117
- if (e)
1118
- return ra(e, t);
1119
- },
1120
- has: function(t) {
1121
- return e ? na(e, t) : !1;
1122
- },
1123
- set: function(t, o) {
1124
- e || (e = new tt()), ta(e, t, o);
1125
- }
1126
- };
1127
- return n;
1128
- }, ia = Et, Ne = Mt, fa = xe, Se = Bt, la = C, Q = ia("%WeakMap%", !0), pa = Ne("WeakMap.prototype.get", !0), ya = Ne("WeakMap.prototype.set", !0), ua = Ne("WeakMap.prototype.has", !0), ca = Ne("WeakMap.prototype.delete", !0), sa = Q ? (
1129
- /** @type {Exclude<import('.'), false>} */
1130
- function() {
1131
- var e, n, t = {
1132
- assert: function(o) {
1133
- if (!t.has(o))
1134
- throw new la("Side channel does not contain " + fa(o));
1135
- },
1136
- delete: function(o) {
1137
- if (Q && o && (typeof o == "object" || typeof o == "function")) {
1138
- if (e)
1139
- return ca(e, o);
1140
- } else if (Se && n)
1141
- return n.delete(o);
1142
- return !1;
1143
- },
1144
- get: function(o) {
1145
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? pa(e, o) : n && n.get(o);
1146
- },
1147
- has: function(o) {
1148
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? ua(e, o) : !!n && n.has(o);
1149
- },
1150
- set: function(o, a) {
1151
- Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), ya(e, o, a)) : Se && (n || (n = Se()), n.set(o, a));
1152
- }
1153
- };
1154
- return t;
1155
- }
1156
- ) : Se, da = C, va = xe, ha = Fn, ga = Bt, ma = sa, Aa = ma || ga || ha, Sa = function() {
1157
- var e, n = {
1158
- assert: function(t) {
1159
- if (!n.has(t))
1160
- throw new da("Side channel does not contain " + va(t));
1161
- },
1162
- delete: function(t) {
1163
- return !!e && e.delete(t);
1164
- },
1165
- get: function(t) {
1166
- return e && e.get(t);
1167
- },
1168
- has: function(t) {
1169
- return !!e && e.has(t);
1170
- },
1171
- set: function(t, o) {
1172
- e || (e = Aa()), e.set(t, o);
1173
- }
1174
- };
1175
- return n;
1176
- }, ba = String.prototype.replace, Pa = /%20/g, ir = {
1177
- RFC1738: "RFC1738",
1178
- RFC3986: "RFC3986"
1179
- }, br = {
1180
- default: ir.RFC3986,
1181
- formatters: {
1182
- RFC1738: function(r) {
1183
- return ba.call(r, Pa, "+");
1184
- },
1185
- RFC3986: function(r) {
1186
- return String(r);
1187
- }
1188
- },
1189
- RFC1738: ir.RFC1738,
1190
- RFC3986: ir.RFC3986
1191
- }, wa = br, fr = Object.prototype.hasOwnProperty, q = Array.isArray, I = function() {
1192
- for (var r = [], e = 0; e < 256; ++e)
1193
- r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1194
- return r;
1195
- }(), Ea = function(e) {
1196
- for (; e.length > 1; ) {
1197
- var n = e.pop(), t = n.obj[n.prop];
1198
- if (q(t)) {
1199
- for (var o = [], a = 0; a < t.length; ++a)
1200
- typeof t[a] < "u" && o.push(t[a]);
1201
- n.obj[n.prop] = o;
1202
- }
1203
- }
1204
- }, Tt = function(e, n) {
1205
- for (var t = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1206
- typeof e[o] < "u" && (t[o] = e[o]);
1207
- return t;
1208
- }, $a = function r(e, n, t) {
1209
- if (!n)
1210
- return e;
1211
- if (typeof n != "object" && typeof n != "function") {
1212
- if (q(e))
1213
- e.push(n);
1214
- else if (e && typeof e == "object")
1215
- (t && (t.plainObjects || t.allowPrototypes) || !fr.call(Object.prototype, n)) && (e[n] = !0);
1216
- else
1217
- return [e, n];
1218
- return e;
1219
- }
1220
- if (!e || typeof e != "object")
1221
- return [e].concat(n);
1222
- var o = e;
1223
- return q(e) && !q(n) && (o = Tt(e, t)), q(e) && q(n) ? (n.forEach(function(a, i) {
1224
- if (fr.call(e, i)) {
1225
- var f = e[i];
1226
- f && typeof f == "object" && a && typeof a == "object" ? e[i] = r(f, a, t) : e.push(a);
1227
- } else
1228
- e[i] = a;
1229
- }), e) : Object.keys(n).reduce(function(a, i) {
1230
- var f = n[i];
1231
- return fr.call(a, i) ? a[i] = r(a[i], f, t) : a[i] = f, a;
1232
- }, o);
1233
- }, Oa = function(e, n) {
1234
- return Object.keys(n).reduce(function(t, o) {
1235
- return t[o] = n[o], t;
1236
- }, e);
1237
- }, Ia = function(r, e, n) {
1238
- var t = r.replace(/\+/g, " ");
1239
- if (n === "iso-8859-1")
1240
- return t.replace(/%[0-9a-f]{2}/gi, unescape);
1241
- try {
1242
- return decodeURIComponent(t);
1243
- } catch {
1244
- return t;
1245
- }
1246
- }, lr = 1024, Ra = function(e, n, t, o, a) {
1247
- if (e.length === 0)
1248
- return e;
1249
- var i = e;
1250
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), t === "iso-8859-1")
1251
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(h) {
1252
- return "%26%23" + parseInt(h.slice(2), 16) + "%3B";
1253
- });
1254
- for (var f = "", p = 0; p < i.length; p += lr) {
1255
- for (var y = i.length >= lr ? i.slice(p, p + lr) : i, u = [], c = 0; c < y.length; ++c) {
1256
- var l = y.charCodeAt(c);
1257
- if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === wa.RFC1738 && (l === 40 || l === 41)) {
1258
- u[u.length] = y.charAt(c);
1259
- continue;
1260
- }
1261
- if (l < 128) {
1262
- u[u.length] = I[l];
1263
- continue;
1264
- }
1265
- if (l < 2048) {
1266
- u[u.length] = I[192 | l >> 6] + I[128 | l & 63];
1267
- continue;
1268
- }
1269
- if (l < 55296 || l >= 57344) {
1270
- u[u.length] = I[224 | l >> 12] + I[128 | l >> 6 & 63] + I[128 | l & 63];
1271
- continue;
1272
- }
1273
- c += 1, l = 65536 + ((l & 1023) << 10 | y.charCodeAt(c) & 1023), u[u.length] = I[240 | l >> 18] + I[128 | l >> 12 & 63] + I[128 | l >> 6 & 63] + I[128 | l & 63];
1274
- }
1275
- f += u.join("");
1276
- }
1277
- return f;
1278
- }, Fa = function(e) {
1279
- for (var n = [{ obj: { o: e }, prop: "o" }], t = [], o = 0; o < n.length; ++o)
1280
- for (var a = n[o], i = a.obj[a.prop], f = Object.keys(i), p = 0; p < f.length; ++p) {
1281
- var y = f[p], u = i[y];
1282
- typeof u == "object" && u !== null && t.indexOf(u) === -1 && (n.push({ obj: i, prop: y }), t.push(u));
1283
- }
1284
- return Ea(n), e;
1285
- }, xa = function(e) {
1286
- return Object.prototype.toString.call(e) === "[object RegExp]";
1287
- }, _a = function(e) {
1288
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1289
- }, Da = function(e, n) {
1290
- return [].concat(e, n);
1291
- }, Na = function(e, n) {
1292
- if (q(e)) {
1293
- for (var t = [], o = 0; o < e.length; o += 1)
1294
- t.push(n(e[o]));
1295
- return t;
1296
- }
1297
- return n(e);
1298
- }, Ct = {
1299
- arrayToObject: Tt,
1300
- assign: Oa,
1301
- combine: Da,
1302
- compact: Fa,
1303
- decode: Ia,
1304
- encode: Ra,
1305
- isBuffer: _a,
1306
- isRegExp: xa,
1307
- maybeMap: Na,
1308
- merge: $a
1309
- }, Ut = Sa, we = Ct, pe = br, Ma = Object.prototype.hasOwnProperty, Wt = {
1310
- brackets: function(e) {
1311
- return e + "[]";
1312
- },
1313
- comma: "comma",
1314
- indices: function(e, n) {
1315
- return e + "[" + n + "]";
1316
- },
1317
- repeat: function(e) {
1318
- return e;
1319
- }
1320
- }, R = Array.isArray, Ba = Array.prototype.push, Gt = function(r, e) {
1321
- Ba.apply(r, R(e) ? e : [e]);
1322
- }, Ta = Date.prototype.toISOString, nt = pe.default, S = {
1323
- addQueryPrefix: !1,
1324
- allowDots: !1,
1325
- allowEmptyArrays: !1,
1326
- arrayFormat: "indices",
1327
- charset: "utf-8",
1328
- charsetSentinel: !1,
1329
- commaRoundTrip: !1,
1330
- delimiter: "&",
1331
- encode: !0,
1332
- encodeDotInKeys: !1,
1333
- encoder: we.encode,
1334
- encodeValuesOnly: !1,
1335
- filter: void 0,
1336
- format: nt,
1337
- formatter: pe.formatters[nt],
1338
- // deprecated
1339
- indices: !1,
1340
- serializeDate: function(e) {
1341
- return Ta.call(e);
1342
- },
1343
- skipNulls: !1,
1344
- strictNullHandling: !1
1345
- }, Ca = function(e) {
1346
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1347
- }, pr = {}, Ua = function r(e, n, t, o, a, i, f, p, y, u, c, l, h, d, m, w, $, D) {
1348
- for (var g = e, N = D, W = 0, oe = !1; (N = N.get(pr)) !== void 0 && !oe; ) {
1349
- var j = N.get(e);
1350
- if (W += 1, typeof j < "u") {
1351
- if (j === W)
1352
- throw new RangeError("Cyclic object value");
1353
- oe = !0;
1354
- }
1355
- typeof N.get(pr) > "u" && (W = 0);
1356
- }
1357
- if (typeof u == "function" ? g = u(n, g) : g instanceof Date ? g = h(g) : t === "comma" && R(g) && (g = we.maybeMap(g, function(Be) {
1358
- return Be instanceof Date ? h(Be) : Be;
1359
- })), g === null) {
1360
- if (i)
1361
- return y && !w ? y(n, S.encoder, $, "key", d) : n;
1362
- g = "";
1363
- }
1364
- if (Ca(g) || we.isBuffer(g)) {
1365
- if (y) {
1366
- var ge = w ? n : y(n, S.encoder, $, "key", d);
1367
- return [m(ge) + "=" + m(y(g, S.encoder, $, "value", d))];
1368
- }
1369
- return [m(n) + "=" + m(String(g))];
1370
- }
1371
- var G = [];
1372
- if (typeof g > "u")
1373
- return G;
1374
- var M;
1375
- if (t === "comma" && R(g))
1376
- w && y && (g = we.maybeMap(g, y)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
1377
- else if (R(u))
1378
- M = u;
1379
- else {
1380
- var me = Object.keys(g);
1381
- M = c ? me.sort(c) : me;
1382
- }
1383
- var V = p ? String(n).replace(/\./g, "%2E") : String(n), O = o && R(g) && g.length === 1 ? V + "[]" : V;
1384
- if (a && R(g) && g.length === 0)
1385
- return O + "[]";
1386
- for (var B = 0; B < M.length; ++B) {
1387
- var x = M[B], ae = typeof x == "object" && x && typeof x.value < "u" ? x.value : g[x];
1388
- if (!(f && ae === null)) {
1389
- var Me = l && p ? String(x).replace(/\./g, "%2E") : String(x), Lt = R(g) ? typeof t == "function" ? t(O, Me) : O : O + (l ? "." + Me : "[" + Me + "]");
1390
- D.set(e, W);
1391
- var Pr = Ut();
1392
- Pr.set(pr, D), Gt(G, r(
1393
- ae,
1394
- Lt,
1395
- t,
1396
- o,
1397
- a,
1398
- i,
1399
- f,
1400
- p,
1401
- t === "comma" && w && R(g) ? null : y,
1402
- u,
1403
- c,
1404
- l,
1405
- h,
1406
- d,
1407
- m,
1408
- w,
1409
- $,
1410
- Pr
1411
- ));
1412
- }
1413
- }
1414
- return G;
1415
- }, Wa = function(e) {
1416
- if (!e)
1417
- return S;
1418
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1419
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1420
- if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1421
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1422
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1423
- throw new TypeError("Encoder has to be a function.");
1424
- var n = e.charset || S.charset;
1425
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1426
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1427
- var t = pe.default;
1428
- if (typeof e.format < "u") {
1429
- if (!Ma.call(pe.formatters, e.format))
1430
- throw new TypeError("Unknown format option provided.");
1431
- t = e.format;
1432
- }
1433
- var o = pe.formatters[t], a = S.filter;
1434
- (typeof e.filter == "function" || R(e.filter)) && (a = e.filter);
1435
- var i;
1436
- if (e.arrayFormat in Wt ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = S.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1437
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1438
- var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : S.allowDots : !!e.allowDots;
1439
- return {
1440
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : S.addQueryPrefix,
1441
- allowDots: f,
1442
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : S.allowEmptyArrays,
1443
- arrayFormat: i,
1444
- charset: n,
1445
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : S.charsetSentinel,
1446
- commaRoundTrip: !!e.commaRoundTrip,
1447
- delimiter: typeof e.delimiter > "u" ? S.delimiter : e.delimiter,
1448
- encode: typeof e.encode == "boolean" ? e.encode : S.encode,
1449
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : S.encodeDotInKeys,
1450
- encoder: typeof e.encoder == "function" ? e.encoder : S.encoder,
1451
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : S.encodeValuesOnly,
1452
- filter: a,
1453
- format: t,
1454
- formatter: o,
1455
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : S.serializeDate,
1456
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : S.skipNulls,
1457
- sort: typeof e.sort == "function" ? e.sort : null,
1458
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : S.strictNullHandling
1459
- };
1460
- }, Ga = function(r, e) {
1461
- var n = r, t = Wa(e), o, a;
1462
- typeof t.filter == "function" ? (a = t.filter, n = a("", n)) : R(t.filter) && (a = t.filter, o = a);
1463
- var i = [];
1464
- if (typeof n != "object" || n === null)
1465
- return "";
1466
- var f = Wt[t.arrayFormat], p = f === "comma" && t.commaRoundTrip;
1467
- o || (o = Object.keys(n)), t.sort && o.sort(t.sort);
1468
- for (var y = Ut(), u = 0; u < o.length; ++u) {
1469
- var c = o[u], l = n[c];
1470
- t.skipNulls && l === null || Gt(i, Ua(
1471
- l,
1472
- c,
1473
- f,
1474
- p,
1475
- t.allowEmptyArrays,
1476
- t.strictNullHandling,
1477
- t.skipNulls,
1478
- t.encodeDotInKeys,
1479
- t.encode ? t.encoder : null,
1480
- t.filter,
1481
- t.sort,
1482
- t.allowDots,
1483
- t.serializeDate,
1484
- t.format,
1485
- t.formatter,
1486
- t.encodeValuesOnly,
1487
- t.charset,
1488
- y
1489
- ));
1490
- }
1491
- var h = i.join(t.delimiter), d = t.addQueryPrefix === !0 ? "?" : "";
1492
- return t.charsetSentinel && (t.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), h.length > 0 ? d + h : "";
1493
- }, H = Ct, vr = Object.prototype.hasOwnProperty, ot = Array.isArray, A = {
1494
- allowDots: !1,
1495
- allowEmptyArrays: !1,
1496
- allowPrototypes: !1,
1497
- allowSparse: !1,
1498
- arrayLimit: 20,
1499
- charset: "utf-8",
1500
- charsetSentinel: !1,
1501
- comma: !1,
1502
- decodeDotInKeys: !1,
1503
- decoder: H.decode,
1504
- delimiter: "&",
1505
- depth: 5,
1506
- duplicates: "combine",
1507
- ignoreQueryPrefix: !1,
1508
- interpretNumericEntities: !1,
1509
- parameterLimit: 1e3,
1510
- parseArrays: !0,
1511
- plainObjects: !1,
1512
- strictDepth: !1,
1513
- strictNullHandling: !1,
1514
- throwOnLimitExceeded: !1
1515
- }, qa = function(r) {
1516
- return r.replace(/&#(\d+);/g, function(e, n) {
1517
- return String.fromCharCode(parseInt(n, 10));
1518
- });
1519
- }, qt = function(r, e, n) {
1520
- if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
1521
- return r.split(",");
1522
- if (e.throwOnLimitExceeded && n >= e.arrayLimit)
1523
- throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1524
- return r;
1525
- }, La = "utf8=%26%2310003%3B", ka = "utf8=%E2%9C%93", Ha = function(e, n) {
1526
- var t = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1527
- o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1528
- var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
1529
- n.delimiter,
1530
- n.throwOnLimitExceeded ? a + 1 : a
1531
- );
1532
- if (n.throwOnLimitExceeded && i.length > a)
1533
- throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
1534
- var f = -1, p, y = n.charset;
1535
- if (n.charsetSentinel)
1536
- for (p = 0; p < i.length; ++p)
1537
- i[p].indexOf("utf8=") === 0 && (i[p] === ka ? y = "utf-8" : i[p] === La && (y = "iso-8859-1"), f = p, p = i.length);
1538
- for (p = 0; p < i.length; ++p)
1539
- if (p !== f) {
1540
- var u = i[p], c = u.indexOf("]="), l = c === -1 ? u.indexOf("=") : c + 1, h, d;
1541
- l === -1 ? (h = n.decoder(u, A.decoder, y, "key"), d = n.strictNullHandling ? null : "") : (h = n.decoder(u.slice(0, l), A.decoder, y, "key"), d = H.maybeMap(
1542
- qt(
1543
- u.slice(l + 1),
1544
- n,
1545
- ot(t[h]) ? t[h].length : 0
1546
- ),
1547
- function(w) {
1548
- return n.decoder(w, A.decoder, y, "value");
1549
- }
1550
- )), d && n.interpretNumericEntities && y === "iso-8859-1" && (d = qa(String(d))), u.indexOf("[]=") > -1 && (d = ot(d) ? [d] : d);
1551
- var m = vr.call(t, h);
1552
- m && n.duplicates === "combine" ? t[h] = H.combine(t[h], d) : (!m || n.duplicates === "last") && (t[h] = d);
1553
- }
1554
- return t;
1555
- }, za = function(r, e, n, t) {
1556
- var o = 0;
1557
- if (r.length > 0 && r[r.length - 1] === "[]") {
1558
- var a = r.slice(0, -1).join("");
1559
- o = Array.isArray(e) && e[a] ? e[a].length : 0;
1560
- }
1561
- for (var i = t ? e : qt(e, n, o), f = r.length - 1; f >= 0; --f) {
1562
- var p, y = r[f];
1563
- if (y === "[]" && n.parseArrays)
1564
- p = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : H.combine([], i);
1565
- else {
1566
- p = n.plainObjects ? { __proto__: null } : {};
1567
- var u = y.charAt(0) === "[" && y.charAt(y.length - 1) === "]" ? y.slice(1, -1) : y, c = n.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, l = parseInt(c, 10);
1568
- !n.parseArrays && c === "" ? p = { 0: i } : !isNaN(l) && y !== c && String(l) === c && l >= 0 && n.parseArrays && l <= n.arrayLimit ? (p = [], p[l] = i) : c !== "__proto__" && (p[c] = i);
1569
- }
1570
- i = p;
1571
- }
1572
- return i;
1573
- }, ja = function(e, n, t, o) {
1574
- if (e) {
1575
- var a = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, f = /(\[[^[\]]*])/g, p = t.depth > 0 && i.exec(a), y = p ? a.slice(0, p.index) : a, u = [];
1576
- if (y) {
1577
- if (!t.plainObjects && vr.call(Object.prototype, y) && !t.allowPrototypes)
1578
- return;
1579
- u.push(y);
1580
- }
1581
- for (var c = 0; t.depth > 0 && (p = f.exec(a)) !== null && c < t.depth; ) {
1582
- if (c += 1, !t.plainObjects && vr.call(Object.prototype, p[1].slice(1, -1)) && !t.allowPrototypes)
1583
- return;
1584
- u.push(p[1]);
1585
- }
1586
- if (p) {
1587
- if (t.strictDepth === !0)
1588
- throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
1589
- u.push("[" + a.slice(p.index) + "]");
1590
- }
1591
- return za(u, n, t, o);
1592
- }
1593
- }, Va = function(e) {
1594
- if (!e)
1595
- return A;
1596
- if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1597
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1598
- if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1599
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1600
- if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1601
- throw new TypeError("Decoder has to be a function.");
1602
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1603
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1604
- if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1605
- throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1606
- var n = typeof e.charset > "u" ? A.charset : e.charset, t = typeof e.duplicates > "u" ? A.duplicates : e.duplicates;
1607
- if (t !== "combine" && t !== "first" && t !== "last")
1608
- throw new TypeError("The duplicates option must be either combine, first, or last");
1609
- var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : A.allowDots : !!e.allowDots;
1610
- return {
1611
- allowDots: o,
1612
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
1613
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
1614
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
1615
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
1616
- charset: n,
1617
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
1618
- comma: typeof e.comma == "boolean" ? e.comma : A.comma,
1619
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
1620
- decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
1621
- delimiter: typeof e.delimiter == "string" || H.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
1622
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1623
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : A.depth,
1624
- duplicates: t,
1625
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1626
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
1627
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
1628
- parseArrays: e.parseArrays !== !1,
1629
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
1630
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
1631
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
1632
- throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1633
- };
1634
- }, Ka = function(r, e) {
1635
- var n = Va(e);
1636
- if (r === "" || r === null || typeof r > "u")
1637
- return n.plainObjects ? { __proto__: null } : {};
1638
- for (var t = typeof r == "string" ? Ha(r, n) : r, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(t), i = 0; i < a.length; ++i) {
1639
- var f = a[i], p = ja(f, t[f], n, typeof r == "string");
1640
- o = H.merge(o, p, n);
1641
- }
1642
- return n.allowSparse === !0 ? o : H.compact(o);
1643
- }, Ja = Ga, Qa = Ka, Ya = br, Xa = {
1644
- formats: Ya,
1645
- parse: Qa,
1646
- stringify: Ja
1647
- };
1648
- const ei = /* @__PURE__ */ Ht(Xa);
1649
- export {
1650
- ei as q
1651
- };