xyvcard-goods 0.0.18 → 0.0.19

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.
@@ -0,0 +1,1288 @@
1
+ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function Ur(r) {
3
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
+ }
5
+ function Wr(r) {
6
+ if (r.__esModule) return r;
7
+ var e = r.default;
8
+ if (typeof e == "function") {
9
+ var t = function n() {
10
+ return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
11
+ };
12
+ t.prototype = e.prototype;
13
+ } else t = {};
14
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
15
+ var o = Object.getOwnPropertyDescriptor(r, n);
16
+ Object.defineProperty(t, n, o.get ? o : {
17
+ enumerable: !0,
18
+ get: function() {
19
+ return r[n];
20
+ }
21
+ });
22
+ }), t;
23
+ }
24
+ var Lr = Error, Gr = EvalError, kr = RangeError, zr = ReferenceError, mr = SyntaxError, ae = TypeError, Hr = URIError, Kr = function() {
25
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
26
+ return !1;
27
+ if (typeof Symbol.iterator == "symbol")
28
+ return !0;
29
+ var e = {}, t = Symbol("test"), n = Object(t);
30
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
31
+ return !1;
32
+ var o = 42;
33
+ e[t] = o;
34
+ for (t in e)
35
+ return !1;
36
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
37
+ return !1;
38
+ var a = Object.getOwnPropertySymbols(e);
39
+ if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
40
+ return !1;
41
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
42
+ var i = Object.getOwnPropertyDescriptor(e, t);
43
+ if (i.value !== o || i.enumerable !== !0)
44
+ return !1;
45
+ }
46
+ return !0;
47
+ }, Ve = typeof Symbol < "u" && Symbol, qr = Kr, Qr = function() {
48
+ return typeof Ve != "function" || typeof Symbol != "function" || typeof Ve("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : qr();
49
+ }, we = {
50
+ __proto__: null,
51
+ foo: {}
52
+ }, Vr = Object, Jr = function() {
53
+ return { __proto__: we }.foo === we.foo && !(we instanceof Vr);
54
+ }, jr = "Function.prototype.bind called on incompatible ", Yr = Object.prototype.toString, Xr = Math.max, Zr = "[object Function]", Je = function(e, t) {
55
+ for (var n = [], o = 0; o < e.length; o += 1)
56
+ n[o] = e[o];
57
+ for (var a = 0; a < t.length; a += 1)
58
+ n[a + e.length] = t[a];
59
+ return n;
60
+ }, et = function(e, t) {
61
+ for (var n = [], o = t, a = 0; o < e.length; o += 1, a += 1)
62
+ n[a] = e[o];
63
+ return n;
64
+ }, rt = function(r, e) {
65
+ for (var t = "", n = 0; n < r.length; n += 1)
66
+ t += r[n], n + 1 < r.length && (t += e);
67
+ return t;
68
+ }, tt = function(e) {
69
+ var t = this;
70
+ if (typeof t != "function" || Yr.apply(t) !== Zr)
71
+ throw new TypeError(jr + t);
72
+ for (var n = et(arguments, 1), o, a = function() {
73
+ if (this instanceof o) {
74
+ var c = t.apply(
75
+ this,
76
+ Je(n, arguments)
77
+ );
78
+ return Object(c) === c ? c : this;
79
+ }
80
+ return t.apply(
81
+ e,
82
+ Je(n, arguments)
83
+ );
84
+ }, i = Xr(0, t.length - n.length), f = [], l = 0; l < i; l++)
85
+ f[l] = "$" + l;
86
+ if (o = Function("binder", "return function (" + rt(f, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
87
+ var p = function() {
88
+ };
89
+ p.prototype = t.prototype, o.prototype = new p(), p.prototype = null;
90
+ }
91
+ return o;
92
+ }, nt = tt, Le = Function.prototype.bind || nt, at = Function.prototype.call, ot = Object.prototype.hasOwnProperty, it = Le, lt = it.call(at, ot), y, ft = Lr, ut = Gr, ct = kr, pt = zr, Q = mr, q = ae, yt = Hr, hr = Function, Ae = function(r) {
93
+ try {
94
+ return hr('"use strict"; return (' + r + ").constructor;")();
95
+ } catch {
96
+ }
97
+ }, W = Object.getOwnPropertyDescriptor;
98
+ if (W)
99
+ try {
100
+ W({}, "");
101
+ } catch {
102
+ W = null;
103
+ }
104
+ var Ee = function() {
105
+ throw new q();
106
+ }, st = W ? function() {
107
+ try {
108
+ return arguments.callee, Ee;
109
+ } catch {
110
+ try {
111
+ return W(arguments, "callee").get;
112
+ } catch {
113
+ return Ee;
114
+ }
115
+ }
116
+ }() : Ee, z = Qr(), dt = Jr(), b = Object.getPrototypeOf || (dt ? function(r) {
117
+ return r.__proto__;
118
+ } : null), K = {}, vt = typeof Uint8Array > "u" || !b ? y : b(Uint8Array), L = {
119
+ __proto__: null,
120
+ "%AggregateError%": typeof AggregateError > "u" ? y : AggregateError,
121
+ "%Array%": Array,
122
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? y : ArrayBuffer,
123
+ "%ArrayIteratorPrototype%": z && b ? b([][Symbol.iterator]()) : y,
124
+ "%AsyncFromSyncIteratorPrototype%": y,
125
+ "%AsyncFunction%": K,
126
+ "%AsyncGenerator%": K,
127
+ "%AsyncGeneratorFunction%": K,
128
+ "%AsyncIteratorPrototype%": K,
129
+ "%Atomics%": typeof Atomics > "u" ? y : Atomics,
130
+ "%BigInt%": typeof BigInt > "u" ? y : BigInt,
131
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? y : BigInt64Array,
132
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? y : BigUint64Array,
133
+ "%Boolean%": Boolean,
134
+ "%DataView%": typeof DataView > "u" ? y : DataView,
135
+ "%Date%": Date,
136
+ "%decodeURI%": decodeURI,
137
+ "%decodeURIComponent%": decodeURIComponent,
138
+ "%encodeURI%": encodeURI,
139
+ "%encodeURIComponent%": encodeURIComponent,
140
+ "%Error%": ft,
141
+ "%eval%": eval,
142
+ // eslint-disable-line no-eval
143
+ "%EvalError%": ut,
144
+ "%Float32Array%": typeof Float32Array > "u" ? y : Float32Array,
145
+ "%Float64Array%": typeof Float64Array > "u" ? y : Float64Array,
146
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? y : FinalizationRegistry,
147
+ "%Function%": hr,
148
+ "%GeneratorFunction%": K,
149
+ "%Int8Array%": typeof Int8Array > "u" ? y : Int8Array,
150
+ "%Int16Array%": typeof Int16Array > "u" ? y : Int16Array,
151
+ "%Int32Array%": typeof Int32Array > "u" ? y : Int32Array,
152
+ "%isFinite%": isFinite,
153
+ "%isNaN%": isNaN,
154
+ "%IteratorPrototype%": z && b ? b(b([][Symbol.iterator]())) : y,
155
+ "%JSON%": typeof JSON == "object" ? JSON : y,
156
+ "%Map%": typeof Map > "u" ? y : Map,
157
+ "%MapIteratorPrototype%": typeof Map > "u" || !z || !b ? y : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
158
+ "%Math%": Math,
159
+ "%Number%": Number,
160
+ "%Object%": Object,
161
+ "%parseFloat%": parseFloat,
162
+ "%parseInt%": parseInt,
163
+ "%Promise%": typeof Promise > "u" ? y : Promise,
164
+ "%Proxy%": typeof Proxy > "u" ? y : Proxy,
165
+ "%RangeError%": ct,
166
+ "%ReferenceError%": pt,
167
+ "%Reflect%": typeof Reflect > "u" ? y : Reflect,
168
+ "%RegExp%": RegExp,
169
+ "%Set%": typeof Set > "u" ? y : Set,
170
+ "%SetIteratorPrototype%": typeof Set > "u" || !z || !b ? y : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
171
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? y : SharedArrayBuffer,
172
+ "%String%": String,
173
+ "%StringIteratorPrototype%": z && b ? b(""[Symbol.iterator]()) : y,
174
+ "%Symbol%": z ? Symbol : y,
175
+ "%SyntaxError%": Q,
176
+ "%ThrowTypeError%": st,
177
+ "%TypedArray%": vt,
178
+ "%TypeError%": q,
179
+ "%Uint8Array%": typeof Uint8Array > "u" ? y : Uint8Array,
180
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? y : Uint8ClampedArray,
181
+ "%Uint16Array%": typeof Uint16Array > "u" ? y : Uint16Array,
182
+ "%Uint32Array%": typeof Uint32Array > "u" ? y : Uint32Array,
183
+ "%URIError%": yt,
184
+ "%WeakMap%": typeof WeakMap > "u" ? y : WeakMap,
185
+ "%WeakRef%": typeof WeakRef > "u" ? y : WeakRef,
186
+ "%WeakSet%": typeof WeakSet > "u" ? y : WeakSet
187
+ };
188
+ if (b)
189
+ try {
190
+ null.error;
191
+ } catch (r) {
192
+ var gt = b(b(r));
193
+ L["%Error.prototype%"] = gt;
194
+ }
195
+ var mt = function r(e) {
196
+ var t;
197
+ if (e === "%AsyncFunction%")
198
+ t = Ae("async function () {}");
199
+ else if (e === "%GeneratorFunction%")
200
+ t = Ae("function* () {}");
201
+ else if (e === "%AsyncGeneratorFunction%")
202
+ t = Ae("async function* () {}");
203
+ else if (e === "%AsyncGenerator%") {
204
+ var n = r("%AsyncGeneratorFunction%");
205
+ n && (t = n.prototype);
206
+ } else if (e === "%AsyncIteratorPrototype%") {
207
+ var o = r("%AsyncGenerator%");
208
+ o && b && (t = b(o.prototype));
209
+ }
210
+ return L[e] = t, t;
211
+ }, je = {
212
+ __proto__: null,
213
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
214
+ "%ArrayPrototype%": ["Array", "prototype"],
215
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
216
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
217
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
218
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
219
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
220
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
221
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
222
+ "%BooleanPrototype%": ["Boolean", "prototype"],
223
+ "%DataViewPrototype%": ["DataView", "prototype"],
224
+ "%DatePrototype%": ["Date", "prototype"],
225
+ "%ErrorPrototype%": ["Error", "prototype"],
226
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
227
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
228
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
229
+ "%FunctionPrototype%": ["Function", "prototype"],
230
+ "%Generator%": ["GeneratorFunction", "prototype"],
231
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
232
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
233
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
234
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
235
+ "%JSONParse%": ["JSON", "parse"],
236
+ "%JSONStringify%": ["JSON", "stringify"],
237
+ "%MapPrototype%": ["Map", "prototype"],
238
+ "%NumberPrototype%": ["Number", "prototype"],
239
+ "%ObjectPrototype%": ["Object", "prototype"],
240
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
241
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
242
+ "%PromisePrototype%": ["Promise", "prototype"],
243
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
244
+ "%Promise_all%": ["Promise", "all"],
245
+ "%Promise_reject%": ["Promise", "reject"],
246
+ "%Promise_resolve%": ["Promise", "resolve"],
247
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
248
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
249
+ "%RegExpPrototype%": ["RegExp", "prototype"],
250
+ "%SetPrototype%": ["Set", "prototype"],
251
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
252
+ "%StringPrototype%": ["String", "prototype"],
253
+ "%SymbolPrototype%": ["Symbol", "prototype"],
254
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
255
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
256
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
257
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
258
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
259
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
260
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
261
+ "%URIErrorPrototype%": ["URIError", "prototype"],
262
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
263
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
264
+ }, oe = Le, ve = lt, ht = oe.call(Function.call, Array.prototype.concat), bt = oe.call(Function.apply, Array.prototype.splice), Ye = oe.call(Function.call, String.prototype.replace), ge = oe.call(Function.call, String.prototype.slice), St = oe.call(Function.call, RegExp.prototype.exec), wt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, At = /\\(\\)?/g, Et = function(e) {
265
+ var t = ge(e, 0, 1), n = ge(e, -1);
266
+ if (t === "%" && n !== "%")
267
+ throw new Q("invalid intrinsic syntax, expected closing `%`");
268
+ if (n === "%" && t !== "%")
269
+ throw new Q("invalid intrinsic syntax, expected opening `%`");
270
+ var o = [];
271
+ return Ye(e, wt, function(a, i, f, l) {
272
+ o[o.length] = f ? Ye(l, At, "$1") : i || a;
273
+ }), o;
274
+ }, Ot = function(e, t) {
275
+ var n = e, o;
276
+ if (ve(je, n) && (o = je[n], n = "%" + o[0] + "%"), ve(L, n)) {
277
+ var a = L[n];
278
+ if (a === K && (a = mt(n)), typeof a > "u" && !t)
279
+ throw new q("intrinsic " + e + " exists, but is not available. Please file an issue!");
280
+ return {
281
+ alias: o,
282
+ name: n,
283
+ value: a
284
+ };
285
+ }
286
+ throw new Q("intrinsic " + e + " does not exist!");
287
+ }, j = function(e, t) {
288
+ if (typeof e != "string" || e.length === 0)
289
+ throw new q("intrinsic name must be a non-empty string");
290
+ if (arguments.length > 1 && typeof t != "boolean")
291
+ throw new q('"allowMissing" argument must be a boolean');
292
+ if (St(/^%?[^%]*%?$/, e) === null)
293
+ throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
294
+ var n = Et(e), o = n.length > 0 ? n[0] : "", a = Ot("%" + o + "%", t), i = a.name, f = a.value, l = !1, p = a.alias;
295
+ p && (o = p[0], bt(n, ht([0, 1], p)));
296
+ for (var c = 1, s = !0; c < n.length; c += 1) {
297
+ var u = n[c], v = ge(u, 0, 1), g = ge(u, -1);
298
+ if ((v === '"' || v === "'" || v === "`" || g === '"' || g === "'" || g === "`") && v !== g)
299
+ throw new Q("property names with quotes must have matching quotes");
300
+ if ((u === "constructor" || !s) && (l = !0), o += "." + u, i = "%" + o + "%", ve(L, i))
301
+ f = L[i];
302
+ else if (f != null) {
303
+ if (!(u in f)) {
304
+ if (!t)
305
+ throw new q("base intrinsic for " + e + " exists, but the property is not available.");
306
+ return;
307
+ }
308
+ if (W && c + 1 >= n.length) {
309
+ var S = W(f, u);
310
+ s = !!S, s && "get" in S && !("originalValue" in S.get) ? f = S.get : f = f[u];
311
+ } else
312
+ s = ve(f, u), f = f[u];
313
+ s && !l && (L[i] = f);
314
+ }
315
+ }
316
+ return f;
317
+ }, br = { exports: {} }, pe = Object.defineProperty || !1;
318
+ if (pe)
319
+ try {
320
+ pe({}, "a", { value: 1 });
321
+ } catch {
322
+ pe = !1;
323
+ }
324
+ var Sr = pe, Pt = Object.getOwnPropertyDescriptor, ye = Pt;
325
+ if (ye)
326
+ try {
327
+ ye([], "length");
328
+ } catch {
329
+ ye = null;
330
+ }
331
+ var $t = ye, Xe = Sr, It = mr, H = ae, Ze = $t, Ft = function(e, t, n) {
332
+ if (!e || typeof e != "object" && typeof e != "function")
333
+ throw new H("`obj` must be an object or a function`");
334
+ if (typeof t != "string" && typeof t != "symbol")
335
+ throw new H("`property` must be a string or a symbol`");
336
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
337
+ throw new H("`nonEnumerable`, if provided, must be a boolean or null");
338
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
339
+ throw new H("`nonWritable`, if provided, must be a boolean or null");
340
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
341
+ throw new H("`nonConfigurable`, if provided, must be a boolean or null");
342
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
343
+ throw new H("`loose`, if provided, must be a boolean");
344
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, l = !!Ze && Ze(e, t);
345
+ if (Xe)
346
+ Xe(e, t, {
347
+ configurable: i === null && l ? l.configurable : !i,
348
+ enumerable: o === null && l ? l.enumerable : !o,
349
+ value: n,
350
+ writable: a === null && l ? l.writable : !a
351
+ });
352
+ else if (f || !o && !a && !i)
353
+ e[t] = n;
354
+ else
355
+ throw new It("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
356
+ }, Te = Sr, wr = function() {
357
+ return !!Te;
358
+ };
359
+ wr.hasArrayLengthDefineBug = function() {
360
+ if (!Te)
361
+ return null;
362
+ try {
363
+ return Te([], "length", { value: 1 }).length !== 1;
364
+ } catch {
365
+ return !0;
366
+ }
367
+ };
368
+ var Dt = wr, xt = j, se = xt("%Object.getOwnPropertyDescriptor%", !0);
369
+ if (se)
370
+ try {
371
+ se([], "length");
372
+ } catch {
373
+ se = null;
374
+ }
375
+ var Rt = se, _t = j, er = Ft, Tt = Dt(), rr = Rt, tr = ae, Nt = _t("%Math.floor%"), Mt = function(e, t) {
376
+ if (typeof e != "function")
377
+ throw new tr("`fn` is not a function");
378
+ if (typeof t != "number" || t < 0 || t > 4294967295 || Nt(t) !== t)
379
+ throw new tr("`length` must be a positive 32-bit integer");
380
+ var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
381
+ if ("length" in e && rr) {
382
+ var i = rr(e, "length");
383
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
384
+ }
385
+ return (o || a || !n) && (Tt ? er(
386
+ /** @type {Parameters<define>[0]} */
387
+ e,
388
+ "length",
389
+ t,
390
+ !0,
391
+ !0
392
+ ) : er(
393
+ /** @type {Parameters<define>[0]} */
394
+ e,
395
+ "length",
396
+ t
397
+ )), e;
398
+ }, Oe, nr;
399
+ function Bt() {
400
+ if (nr) return Oe;
401
+ nr = 1;
402
+ var r = j, e = r("%Object.defineProperty%", !0) || !1;
403
+ if (e)
404
+ try {
405
+ e({}, "a", { value: 1 });
406
+ } catch {
407
+ e = !1;
408
+ }
409
+ return Oe = e, Oe;
410
+ }
411
+ (function(r) {
412
+ var e = Le, t = j, n = Mt, o = ae, a = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), f = t("%Reflect.apply%", !0) || e.call(i, a), l = Bt(), p = t("%Math.max%");
413
+ r.exports = function(u) {
414
+ if (typeof u != "function")
415
+ throw new o("a function is required");
416
+ var v = f(e, i, arguments);
417
+ return n(
418
+ v,
419
+ 1 + p(0, u.length - (arguments.length - 1)),
420
+ !0
421
+ );
422
+ };
423
+ var c = function() {
424
+ return f(e, a, arguments);
425
+ };
426
+ l ? l(r.exports, "apply", { value: c }) : r.exports.apply = c;
427
+ })(br);
428
+ var Ct = br.exports, Ar = j, Er = Ct, Ut = Er(Ar("String.prototype.indexOf")), Wt = function(e, t) {
429
+ var n = Ar(e, !!t);
430
+ return typeof n == "function" && Ut(e, ".prototype.") > -1 ? Er(n) : n;
431
+ };
432
+ const Lt = {}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
433
+ __proto__: null,
434
+ default: Lt
435
+ }, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ Wr(Gt);
436
+ var Ge = typeof Map == "function" && Map.prototype, Pe = Object.getOwnPropertyDescriptor && Ge ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = Ge && Pe && typeof Pe.get == "function" ? Pe.get : null, ar = Ge && Map.prototype.forEach, ke = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && ke ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, he = ke && $e && typeof $e.get == "function" ? $e.get : null, or = ke && Set.prototype.forEach, zt = typeof WeakMap == "function" && WeakMap.prototype, re = zt ? WeakMap.prototype.has : null, Ht = typeof WeakSet == "function" && WeakSet.prototype, te = Ht ? WeakSet.prototype.has : null, Kt = typeof WeakRef == "function" && WeakRef.prototype, ir = Kt ? WeakRef.prototype.deref : null, qt = Boolean.prototype.valueOf, Qt = Object.prototype.toString, Vt = Function.prototype.toString, Jt = String.prototype.match, ze = String.prototype.slice, N = String.prototype.replace, jt = String.prototype.toUpperCase, lr = String.prototype.toLowerCase, Or = RegExp.prototype.test, fr = Array.prototype.concat, $ = Array.prototype.join, Yt = Array.prototype.slice, ur = Math.floor, Ne = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ie = Object.getOwnPropertySymbols, Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", w = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Pr = Object.prototype.propertyIsEnumerable, cr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
437
+ return r.__proto__;
438
+ } : null);
439
+ function pr(r, e) {
440
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Or.call(/e/, e))
441
+ return e;
442
+ var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
443
+ if (typeof r == "number") {
444
+ var n = r < 0 ? -ur(-r) : ur(r);
445
+ if (n !== r) {
446
+ var o = String(n), a = ze.call(e, o.length + 1);
447
+ return N.call(o, t, "$&_") + "." + N.call(N.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
448
+ }
449
+ }
450
+ return N.call(e, t, "$&_");
451
+ }
452
+ var Be = kt, yr = Be.custom, sr = Ir(yr) ? yr : null, Xt = function r(e, t, n, o) {
453
+ var a = t || {};
454
+ if (T(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
455
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
456
+ if (T(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
457
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
458
+ var i = T(a, "customInspect") ? a.customInspect : !0;
459
+ if (typeof i != "boolean" && i !== "symbol")
460
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
461
+ if (T(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
462
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
463
+ if (T(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
464
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
465
+ var f = a.numericSeparator;
466
+ if (typeof e > "u")
467
+ return "undefined";
468
+ if (e === null)
469
+ return "null";
470
+ if (typeof e == "boolean")
471
+ return e ? "true" : "false";
472
+ if (typeof e == "string")
473
+ return Dr(e, a);
474
+ if (typeof e == "number") {
475
+ if (e === 0)
476
+ return 1 / 0 / e > 0 ? "0" : "-0";
477
+ var l = String(e);
478
+ return f ? pr(e, l) : l;
479
+ }
480
+ if (typeof e == "bigint") {
481
+ var p = String(e) + "n";
482
+ return f ? pr(e, p) : p;
483
+ }
484
+ var c = typeof a.depth > "u" ? 5 : a.depth;
485
+ if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
486
+ return Ce(e) ? "[Array]" : "[Object]";
487
+ var s = mn(a, n);
488
+ if (typeof o > "u")
489
+ o = [];
490
+ else if (Fr(o, e) >= 0)
491
+ return "[Circular]";
492
+ function u(E, R, _) {
493
+ if (R && (o = Yt.call(o), o.push(R)), _) {
494
+ var Z = {
495
+ depth: a.depth
496
+ };
497
+ return T(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), r(E, Z, n + 1, o);
498
+ }
499
+ return r(E, a, n + 1, o);
500
+ }
501
+ if (typeof e == "function" && !dr(e)) {
502
+ var v = fn(e), g = fe(e, u);
503
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (g.length > 0 ? " { " + $.call(g, ", ") + " }" : "");
504
+ }
505
+ if (Ir(e)) {
506
+ var S = V ? N.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Me.call(e);
507
+ return typeof e == "object" && !V ? ee(S) : S;
508
+ }
509
+ if (dn(e)) {
510
+ for (var A = "<" + lr.call(String(e.nodeName)), I = e.attributes || [], F = 0; F < I.length; F++)
511
+ A += " " + I[F].name + "=" + $r(Zt(I[F].value), "double", a);
512
+ return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + lr.call(String(e.nodeName)) + ">", A;
513
+ }
514
+ if (Ce(e)) {
515
+ if (e.length === 0)
516
+ return "[]";
517
+ var d = fe(e, u);
518
+ return s && !gn(d) ? "[" + Ue(d, s) + "]" : "[ " + $.call(d, ", ") + " ]";
519
+ }
520
+ if (rn(e)) {
521
+ var D = fe(e, u);
522
+ return !("cause" in Error.prototype) && "cause" in e && !Pr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(fr.call("[cause]: " + u(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(D, ", ") + " }";
523
+ }
524
+ if (typeof e == "object" && i) {
525
+ if (sr && typeof e[sr] == "function" && Be)
526
+ return Be(e, { depth: c - n });
527
+ if (i !== "symbol" && typeof e.inspect == "function")
528
+ return e.inspect();
529
+ }
530
+ if (un(e)) {
531
+ var B = [];
532
+ return ar && ar.call(e, function(E, R) {
533
+ B.push(u(R, e, !0) + " => " + u(E, e));
534
+ }), vr("Map", me.call(e), B, s);
535
+ }
536
+ if (yn(e)) {
537
+ var X = [];
538
+ return or && or.call(e, function(E) {
539
+ X.push(u(E, e));
540
+ }), vr("Set", he.call(e), X, s);
541
+ }
542
+ if (cn(e))
543
+ return Fe("WeakMap");
544
+ if (sn(e))
545
+ return Fe("WeakSet");
546
+ if (pn(e))
547
+ return Fe("WeakRef");
548
+ if (nn(e))
549
+ return ee(u(Number(e)));
550
+ if (on(e))
551
+ return ee(u(Ne.call(e)));
552
+ if (an(e))
553
+ return ee(qt.call(e));
554
+ if (tn(e))
555
+ return ee(u(String(e)));
556
+ if (typeof window < "u" && e === window)
557
+ return "{ [object Window] }";
558
+ if (typeof globalThis < "u" && e === globalThis || typeof Qe < "u" && e === Qe)
559
+ return "{ [object globalThis] }";
560
+ if (!en(e) && !dr(e)) {
561
+ var G = fe(e, u), ie = cr ? cr(e) === Object.prototype : e instanceof Object || e.constructor === Object, C = e instanceof Object ? "" : "null prototype", x = !ie && w && Object(e) === e && w in e ? ze.call(M(e), 8, -1) : C ? "Object" : "", le = ie || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = le + (x || C ? "[" + $.call(fr.call([], x || [], C || []), ": ") + "] " : "");
562
+ return G.length === 0 ? k + "{}" : s ? k + "{" + Ue(G, s) + "}" : k + "{ " + $.call(G, ", ") + " }";
563
+ }
564
+ return String(e);
565
+ };
566
+ function $r(r, e, t) {
567
+ var n = (t.quoteStyle || e) === "double" ? '"' : "'";
568
+ return n + r + n;
569
+ }
570
+ function Zt(r) {
571
+ return N.call(String(r), /"/g, "&quot;");
572
+ }
573
+ function Ce(r) {
574
+ return M(r) === "[object Array]" && (!w || !(typeof r == "object" && w in r));
575
+ }
576
+ function en(r) {
577
+ return M(r) === "[object Date]" && (!w || !(typeof r == "object" && w in r));
578
+ }
579
+ function dr(r) {
580
+ return M(r) === "[object RegExp]" && (!w || !(typeof r == "object" && w in r));
581
+ }
582
+ function rn(r) {
583
+ return M(r) === "[object Error]" && (!w || !(typeof r == "object" && w in r));
584
+ }
585
+ function tn(r) {
586
+ return M(r) === "[object String]" && (!w || !(typeof r == "object" && w in r));
587
+ }
588
+ function nn(r) {
589
+ return M(r) === "[object Number]" && (!w || !(typeof r == "object" && w in r));
590
+ }
591
+ function an(r) {
592
+ return M(r) === "[object Boolean]" && (!w || !(typeof r == "object" && w in r));
593
+ }
594
+ function Ir(r) {
595
+ if (V)
596
+ return r && typeof r == "object" && r instanceof Symbol;
597
+ if (typeof r == "symbol")
598
+ return !0;
599
+ if (!r || typeof r != "object" || !Me)
600
+ return !1;
601
+ try {
602
+ return Me.call(r), !0;
603
+ } catch {
604
+ }
605
+ return !1;
606
+ }
607
+ function on(r) {
608
+ if (!r || typeof r != "object" || !Ne)
609
+ return !1;
610
+ try {
611
+ return Ne.call(r), !0;
612
+ } catch {
613
+ }
614
+ return !1;
615
+ }
616
+ var ln = Object.prototype.hasOwnProperty || function(r) {
617
+ return r in this;
618
+ };
619
+ function T(r, e) {
620
+ return ln.call(r, e);
621
+ }
622
+ function M(r) {
623
+ return Qt.call(r);
624
+ }
625
+ function fn(r) {
626
+ if (r.name)
627
+ return r.name;
628
+ var e = Jt.call(Vt.call(r), /^function\s*([\w$]+)/);
629
+ return e ? e[1] : null;
630
+ }
631
+ function Fr(r, e) {
632
+ if (r.indexOf)
633
+ return r.indexOf(e);
634
+ for (var t = 0, n = r.length; t < n; t++)
635
+ if (r[t] === e)
636
+ return t;
637
+ return -1;
638
+ }
639
+ function un(r) {
640
+ if (!me || !r || typeof r != "object")
641
+ return !1;
642
+ try {
643
+ me.call(r);
644
+ try {
645
+ he.call(r);
646
+ } catch {
647
+ return !0;
648
+ }
649
+ return r instanceof Map;
650
+ } catch {
651
+ }
652
+ return !1;
653
+ }
654
+ function cn(r) {
655
+ if (!re || !r || typeof r != "object")
656
+ return !1;
657
+ try {
658
+ re.call(r, re);
659
+ try {
660
+ te.call(r, te);
661
+ } catch {
662
+ return !0;
663
+ }
664
+ return r instanceof WeakMap;
665
+ } catch {
666
+ }
667
+ return !1;
668
+ }
669
+ function pn(r) {
670
+ if (!ir || !r || typeof r != "object")
671
+ return !1;
672
+ try {
673
+ return ir.call(r), !0;
674
+ } catch {
675
+ }
676
+ return !1;
677
+ }
678
+ function yn(r) {
679
+ if (!he || !r || typeof r != "object")
680
+ return !1;
681
+ try {
682
+ he.call(r);
683
+ try {
684
+ me.call(r);
685
+ } catch {
686
+ return !0;
687
+ }
688
+ return r instanceof Set;
689
+ } catch {
690
+ }
691
+ return !1;
692
+ }
693
+ function sn(r) {
694
+ if (!te || !r || typeof r != "object")
695
+ return !1;
696
+ try {
697
+ te.call(r, te);
698
+ try {
699
+ re.call(r, re);
700
+ } catch {
701
+ return !0;
702
+ }
703
+ return r instanceof WeakSet;
704
+ } catch {
705
+ }
706
+ return !1;
707
+ }
708
+ function dn(r) {
709
+ return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
710
+ }
711
+ function Dr(r, e) {
712
+ if (r.length > e.maxStringLength) {
713
+ var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
714
+ return Dr(ze.call(r, 0, e.maxStringLength), e) + n;
715
+ }
716
+ var o = N.call(N.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, vn);
717
+ return $r(o, "single", e);
718
+ }
719
+ function vn(r) {
720
+ var e = r.charCodeAt(0), t = {
721
+ 8: "b",
722
+ 9: "t",
723
+ 10: "n",
724
+ 12: "f",
725
+ 13: "r"
726
+ }[e];
727
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + jt.call(e.toString(16));
728
+ }
729
+ function ee(r) {
730
+ return "Object(" + r + ")";
731
+ }
732
+ function Fe(r) {
733
+ return r + " { ? }";
734
+ }
735
+ function vr(r, e, t, n) {
736
+ var o = n ? Ue(t, n) : $.call(t, ", ");
737
+ return r + " (" + e + ") {" + o + "}";
738
+ }
739
+ function gn(r) {
740
+ for (var e = 0; e < r.length; e++)
741
+ if (Fr(r[e], `
742
+ `) >= 0)
743
+ return !1;
744
+ return !0;
745
+ }
746
+ function mn(r, e) {
747
+ var t;
748
+ if (r.indent === " ")
749
+ t = " ";
750
+ else if (typeof r.indent == "number" && r.indent > 0)
751
+ t = $.call(Array(r.indent + 1), " ");
752
+ else
753
+ return null;
754
+ return {
755
+ base: t,
756
+ prev: $.call(Array(e + 1), t)
757
+ };
758
+ }
759
+ function Ue(r, e) {
760
+ if (r.length === 0)
761
+ return "";
762
+ var t = `
763
+ ` + e.prev + e.base;
764
+ return t + $.call(r, "," + t) + `
765
+ ` + e.prev;
766
+ }
767
+ function fe(r, e) {
768
+ var t = Ce(r), n = [];
769
+ if (t) {
770
+ n.length = r.length;
771
+ for (var o = 0; o < r.length; o++)
772
+ n[o] = T(r, o) ? e(r[o], r) : "";
773
+ }
774
+ var a = typeof Ie == "function" ? Ie(r) : [], i;
775
+ if (V) {
776
+ i = {};
777
+ for (var f = 0; f < a.length; f++)
778
+ i["$" + a[f]] = a[f];
779
+ }
780
+ for (var l in r)
781
+ T(r, l) && (t && String(Number(l)) === l && l < r.length || V && i["$" + l] instanceof Symbol || (Or.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
782
+ if (typeof Ie == "function")
783
+ for (var p = 0; p < a.length; p++)
784
+ Pr.call(r, a[p]) && n.push("[" + e(a[p]) + "]: " + e(r[a[p]], r));
785
+ return n;
786
+ }
787
+ var xr = j, Y = Wt, hn = Xt, bn = ae, ue = xr("%WeakMap%", !0), ce = xr("%Map%", !0), Sn = Y("WeakMap.prototype.get", !0), wn = Y("WeakMap.prototype.set", !0), An = Y("WeakMap.prototype.has", !0), En = Y("Map.prototype.get", !0), On = Y("Map.prototype.set", !0), Pn = Y("Map.prototype.has", !0), He = function(r, e) {
788
+ for (var t = r, n; (n = t.next) !== null; t = n)
789
+ if (n.key === e)
790
+ return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
791
+ r.next, r.next = n, n;
792
+ }, $n = function(r, e) {
793
+ var t = He(r, e);
794
+ return t && t.value;
795
+ }, In = function(r, e, t) {
796
+ var n = He(r, e);
797
+ n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
798
+ {
799
+ // eslint-disable-line no-param-reassign, no-extra-parens
800
+ key: e,
801
+ next: r.next,
802
+ value: t
803
+ };
804
+ }, Fn = function(r, e) {
805
+ return !!He(r, e);
806
+ }, Dn = function() {
807
+ var e, t, n, o = {
808
+ assert: function(a) {
809
+ if (!o.has(a))
810
+ throw new bn("Side channel does not contain " + hn(a));
811
+ },
812
+ get: function(a) {
813
+ if (ue && a && (typeof a == "object" || typeof a == "function")) {
814
+ if (e)
815
+ return Sn(e, a);
816
+ } else if (ce) {
817
+ if (t)
818
+ return En(t, a);
819
+ } else if (n)
820
+ return $n(n, a);
821
+ },
822
+ has: function(a) {
823
+ if (ue && a && (typeof a == "object" || typeof a == "function")) {
824
+ if (e)
825
+ return An(e, a);
826
+ } else if (ce) {
827
+ if (t)
828
+ return Pn(t, a);
829
+ } else if (n)
830
+ return Fn(n, a);
831
+ return !1;
832
+ },
833
+ set: function(a, i) {
834
+ ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new ue()), wn(e, a, i)) : ce ? (t || (t = new ce()), On(t, a, i)) : (n || (n = { key: {}, next: null }), In(n, a, i));
835
+ }
836
+ };
837
+ return o;
838
+ }, xn = String.prototype.replace, Rn = /%20/g, De = {
839
+ RFC1738: "RFC1738",
840
+ RFC3986: "RFC3986"
841
+ }, Ke = {
842
+ default: De.RFC3986,
843
+ formatters: {
844
+ RFC1738: function(r) {
845
+ return xn.call(r, Rn, "+");
846
+ },
847
+ RFC3986: function(r) {
848
+ return String(r);
849
+ }
850
+ },
851
+ RFC1738: De.RFC1738,
852
+ RFC3986: De.RFC3986
853
+ }, _n = Ke, xe = Object.prototype.hasOwnProperty, U = Array.isArray, O = function() {
854
+ for (var r = [], e = 0; e < 256; ++e)
855
+ r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
856
+ return r;
857
+ }(), Tn = function(e) {
858
+ for (; e.length > 1; ) {
859
+ var t = e.pop(), n = t.obj[t.prop];
860
+ if (U(n)) {
861
+ for (var o = [], a = 0; a < n.length; ++a)
862
+ typeof n[a] < "u" && o.push(n[a]);
863
+ t.obj[t.prop] = o;
864
+ }
865
+ }
866
+ }, Rr = function(e, t) {
867
+ for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
868
+ typeof e[o] < "u" && (n[o] = e[o]);
869
+ return n;
870
+ }, Nn = function r(e, t, n) {
871
+ if (!t)
872
+ return e;
873
+ if (typeof t != "object") {
874
+ if (U(e))
875
+ e.push(t);
876
+ else if (e && typeof e == "object")
877
+ (n && (n.plainObjects || n.allowPrototypes) || !xe.call(Object.prototype, t)) && (e[t] = !0);
878
+ else
879
+ return [e, t];
880
+ return e;
881
+ }
882
+ if (!e || typeof e != "object")
883
+ return [e].concat(t);
884
+ var o = e;
885
+ return U(e) && !U(t) && (o = Rr(e, n)), U(e) && U(t) ? (t.forEach(function(a, i) {
886
+ if (xe.call(e, i)) {
887
+ var f = e[i];
888
+ f && typeof f == "object" && a && typeof a == "object" ? e[i] = r(f, a, n) : e.push(a);
889
+ } else
890
+ e[i] = a;
891
+ }), e) : Object.keys(t).reduce(function(a, i) {
892
+ var f = t[i];
893
+ return xe.call(a, i) ? a[i] = r(a[i], f, n) : a[i] = f, a;
894
+ }, o);
895
+ }, Mn = function(e, t) {
896
+ return Object.keys(t).reduce(function(n, o) {
897
+ return n[o] = t[o], n;
898
+ }, e);
899
+ }, Bn = function(r, e, t) {
900
+ var n = r.replace(/\+/g, " ");
901
+ if (t === "iso-8859-1")
902
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
903
+ try {
904
+ return decodeURIComponent(n);
905
+ } catch {
906
+ return n;
907
+ }
908
+ }, Re = 1024, Cn = function(e, t, n, o, a) {
909
+ if (e.length === 0)
910
+ return e;
911
+ var i = e;
912
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
913
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
914
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
915
+ });
916
+ for (var f = "", l = 0; l < i.length; l += Re) {
917
+ for (var p = i.length >= Re ? i.slice(l, l + Re) : i, c = [], s = 0; s < p.length; ++s) {
918
+ var u = p.charCodeAt(s);
919
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === _n.RFC1738 && (u === 40 || u === 41)) {
920
+ c[c.length] = p.charAt(s);
921
+ continue;
922
+ }
923
+ if (u < 128) {
924
+ c[c.length] = O[u];
925
+ continue;
926
+ }
927
+ if (u < 2048) {
928
+ c[c.length] = O[192 | u >> 6] + O[128 | u & 63];
929
+ continue;
930
+ }
931
+ if (u < 55296 || u >= 57344) {
932
+ c[c.length] = O[224 | u >> 12] + O[128 | u >> 6 & 63] + O[128 | u & 63];
933
+ continue;
934
+ }
935
+ s += 1, u = 65536 + ((u & 1023) << 10 | p.charCodeAt(s) & 1023), c[c.length] = O[240 | u >> 18] + O[128 | u >> 12 & 63] + O[128 | u >> 6 & 63] + O[128 | u & 63];
936
+ }
937
+ f += c.join("");
938
+ }
939
+ return f;
940
+ }, Un = function(e) {
941
+ for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
942
+ for (var a = t[o], i = a.obj[a.prop], f = Object.keys(i), l = 0; l < f.length; ++l) {
943
+ var p = f[l], c = i[p];
944
+ typeof c == "object" && c !== null && n.indexOf(c) === -1 && (t.push({ obj: i, prop: p }), n.push(c));
945
+ }
946
+ return Tn(t), e;
947
+ }, Wn = function(e) {
948
+ return Object.prototype.toString.call(e) === "[object RegExp]";
949
+ }, Ln = function(e) {
950
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
951
+ }, Gn = function(e, t) {
952
+ return [].concat(e, t);
953
+ }, kn = function(e, t) {
954
+ if (U(e)) {
955
+ for (var n = [], o = 0; o < e.length; o += 1)
956
+ n.push(t(e[o]));
957
+ return n;
958
+ }
959
+ return t(e);
960
+ }, _r = {
961
+ arrayToObject: Rr,
962
+ assign: Mn,
963
+ combine: Gn,
964
+ compact: Un,
965
+ decode: Bn,
966
+ encode: Cn,
967
+ isBuffer: Ln,
968
+ isRegExp: Wn,
969
+ maybeMap: kn,
970
+ merge: Nn
971
+ }, Tr = Dn, de = _r, ne = Ke, zn = Object.prototype.hasOwnProperty, Nr = {
972
+ brackets: function(e) {
973
+ return e + "[]";
974
+ },
975
+ comma: "comma",
976
+ indices: function(e, t) {
977
+ return e + "[" + t + "]";
978
+ },
979
+ repeat: function(e) {
980
+ return e;
981
+ }
982
+ }, P = Array.isArray, Hn = Array.prototype.push, Mr = function(r, e) {
983
+ Hn.apply(r, P(e) ? e : [e]);
984
+ }, Kn = Date.prototype.toISOString, gr = ne.default, h = {
985
+ addQueryPrefix: !1,
986
+ allowDots: !1,
987
+ allowEmptyArrays: !1,
988
+ arrayFormat: "indices",
989
+ charset: "utf-8",
990
+ charsetSentinel: !1,
991
+ delimiter: "&",
992
+ encode: !0,
993
+ encodeDotInKeys: !1,
994
+ encoder: de.encode,
995
+ encodeValuesOnly: !1,
996
+ format: gr,
997
+ formatter: ne.formatters[gr],
998
+ // deprecated
999
+ indices: !1,
1000
+ serializeDate: function(e) {
1001
+ return Kn.call(e);
1002
+ },
1003
+ skipNulls: !1,
1004
+ strictNullHandling: !1
1005
+ }, qn = function(e) {
1006
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1007
+ }, _e = {}, Qn = function r(e, t, n, o, a, i, f, l, p, c, s, u, v, g, S, A, I, F) {
1008
+ for (var d = e, D = F, B = 0, X = !1; (D = D.get(_e)) !== void 0 && !X; ) {
1009
+ var G = D.get(e);
1010
+ if (B += 1, typeof G < "u") {
1011
+ if (G === B)
1012
+ throw new RangeError("Cyclic object value");
1013
+ X = !0;
1014
+ }
1015
+ typeof D.get(_e) > "u" && (B = 0);
1016
+ }
1017
+ if (typeof c == "function" ? d = c(t, d) : d instanceof Date ? d = v(d) : n === "comma" && P(d) && (d = de.maybeMap(d, function(Se) {
1018
+ return Se instanceof Date ? v(Se) : Se;
1019
+ })), d === null) {
1020
+ if (i)
1021
+ return p && !A ? p(t, h.encoder, I, "key", g) : t;
1022
+ d = "";
1023
+ }
1024
+ if (qn(d) || de.isBuffer(d)) {
1025
+ if (p) {
1026
+ var ie = A ? t : p(t, h.encoder, I, "key", g);
1027
+ return [S(ie) + "=" + S(p(d, h.encoder, I, "value", g))];
1028
+ }
1029
+ return [S(t) + "=" + S(String(d))];
1030
+ }
1031
+ var C = [];
1032
+ if (typeof d > "u")
1033
+ return C;
1034
+ var x;
1035
+ if (n === "comma" && P(d))
1036
+ A && p && (d = de.maybeMap(d, p)), x = [{ value: d.length > 0 ? d.join(",") || null : void 0 }];
1037
+ else if (P(c))
1038
+ x = c;
1039
+ else {
1040
+ var le = Object.keys(d);
1041
+ x = s ? le.sort(s) : le;
1042
+ }
1043
+ var k = l ? t.replace(/\./g, "%2E") : t, E = o && P(d) && d.length === 1 ? k + "[]" : k;
1044
+ if (a && P(d) && d.length === 0)
1045
+ return E + "[]";
1046
+ for (var R = 0; R < x.length; ++R) {
1047
+ var _ = x[R], Z = typeof _ == "object" && typeof _.value < "u" ? _.value : d[_];
1048
+ if (!(f && Z === null)) {
1049
+ var be = u && l ? _.replace(/\./g, "%2E") : _, Cr = P(d) ? typeof n == "function" ? n(E, be) : E : E + (u ? "." + be : "[" + be + "]");
1050
+ F.set(e, B);
1051
+ var qe = Tr();
1052
+ qe.set(_e, F), Mr(C, r(
1053
+ Z,
1054
+ Cr,
1055
+ n,
1056
+ o,
1057
+ a,
1058
+ i,
1059
+ f,
1060
+ l,
1061
+ n === "comma" && A && P(d) ? null : p,
1062
+ c,
1063
+ s,
1064
+ u,
1065
+ v,
1066
+ g,
1067
+ S,
1068
+ A,
1069
+ I,
1070
+ qe
1071
+ ));
1072
+ }
1073
+ }
1074
+ return C;
1075
+ }, Vn = function(e) {
1076
+ if (!e)
1077
+ return h;
1078
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1079
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1080
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1081
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1082
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1083
+ throw new TypeError("Encoder has to be a function.");
1084
+ var t = e.charset || h.charset;
1085
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1086
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1087
+ var n = ne.default;
1088
+ if (typeof e.format < "u") {
1089
+ if (!zn.call(ne.formatters, e.format))
1090
+ throw new TypeError("Unknown format option provided.");
1091
+ n = e.format;
1092
+ }
1093
+ var o = ne.formatters[n], a = h.filter;
1094
+ (typeof e.filter == "function" || P(e.filter)) && (a = e.filter);
1095
+ var i;
1096
+ if (e.arrayFormat in Nr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1097
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1098
+ var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
1099
+ return {
1100
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : h.addQueryPrefix,
1101
+ allowDots: f,
1102
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
1103
+ arrayFormat: i,
1104
+ charset: t,
1105
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
1106
+ commaRoundTrip: e.commaRoundTrip,
1107
+ delimiter: typeof e.delimiter > "u" ? h.delimiter : e.delimiter,
1108
+ encode: typeof e.encode == "boolean" ? e.encode : h.encode,
1109
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : h.encodeDotInKeys,
1110
+ encoder: typeof e.encoder == "function" ? e.encoder : h.encoder,
1111
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : h.encodeValuesOnly,
1112
+ filter: a,
1113
+ format: n,
1114
+ formatter: o,
1115
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : h.serializeDate,
1116
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : h.skipNulls,
1117
+ sort: typeof e.sort == "function" ? e.sort : null,
1118
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
1119
+ };
1120
+ }, Jn = function(r, e) {
1121
+ var t = r, n = Vn(e), o, a;
1122
+ typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : P(n.filter) && (a = n.filter, o = a);
1123
+ var i = [];
1124
+ if (typeof t != "object" || t === null)
1125
+ return "";
1126
+ var f = Nr[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1127
+ o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1128
+ for (var p = Tr(), c = 0; c < o.length; ++c) {
1129
+ var s = o[c];
1130
+ n.skipNulls && t[s] === null || Mr(i, Qn(
1131
+ t[s],
1132
+ s,
1133
+ f,
1134
+ l,
1135
+ n.allowEmptyArrays,
1136
+ n.strictNullHandling,
1137
+ n.skipNulls,
1138
+ n.encodeDotInKeys,
1139
+ n.encode ? n.encoder : null,
1140
+ n.filter,
1141
+ n.sort,
1142
+ n.allowDots,
1143
+ n.serializeDate,
1144
+ n.format,
1145
+ n.formatter,
1146
+ n.encodeValuesOnly,
1147
+ n.charset,
1148
+ p
1149
+ ));
1150
+ }
1151
+ var u = i.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1152
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), u.length > 0 ? v + u : "";
1153
+ }, J = _r, We = Object.prototype.hasOwnProperty, jn = Array.isArray, m = {
1154
+ allowDots: !1,
1155
+ allowEmptyArrays: !1,
1156
+ allowPrototypes: !1,
1157
+ allowSparse: !1,
1158
+ arrayLimit: 20,
1159
+ charset: "utf-8",
1160
+ charsetSentinel: !1,
1161
+ comma: !1,
1162
+ decodeDotInKeys: !1,
1163
+ decoder: J.decode,
1164
+ delimiter: "&",
1165
+ depth: 5,
1166
+ duplicates: "combine",
1167
+ ignoreQueryPrefix: !1,
1168
+ interpretNumericEntities: !1,
1169
+ parameterLimit: 1e3,
1170
+ parseArrays: !0,
1171
+ plainObjects: !1,
1172
+ strictDepth: !1,
1173
+ strictNullHandling: !1
1174
+ }, Yn = function(r) {
1175
+ return r.replace(/&#(\d+);/g, function(e, t) {
1176
+ return String.fromCharCode(parseInt(t, 10));
1177
+ });
1178
+ }, Br = function(r, e) {
1179
+ return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1180
+ }, Xn = "utf8=%26%2310003%3B", Zn = "utf8=%E2%9C%93", ea = function(e, t) {
1181
+ var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1182
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1183
+ var a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(t.delimiter, a), f = -1, l, p = t.charset;
1184
+ if (t.charsetSentinel)
1185
+ for (l = 0; l < i.length; ++l)
1186
+ i[l].indexOf("utf8=") === 0 && (i[l] === Zn ? p = "utf-8" : i[l] === Xn && (p = "iso-8859-1"), f = l, l = i.length);
1187
+ for (l = 0; l < i.length; ++l)
1188
+ if (l !== f) {
1189
+ var c = i[l], s = c.indexOf("]="), u = s === -1 ? c.indexOf("=") : s + 1, v, g;
1190
+ u === -1 ? (v = t.decoder(c, m.decoder, p, "key"), g = t.strictNullHandling ? null : "") : (v = t.decoder(c.slice(0, u), m.decoder, p, "key"), g = J.maybeMap(
1191
+ Br(c.slice(u + 1), t),
1192
+ function(A) {
1193
+ return t.decoder(A, m.decoder, p, "value");
1194
+ }
1195
+ )), g && t.interpretNumericEntities && p === "iso-8859-1" && (g = Yn(g)), c.indexOf("[]=") > -1 && (g = jn(g) ? [g] : g);
1196
+ var S = We.call(n, v);
1197
+ S && t.duplicates === "combine" ? n[v] = J.combine(n[v], g) : (!S || t.duplicates === "last") && (n[v] = g);
1198
+ }
1199
+ return n;
1200
+ }, ra = function(r, e, t, n) {
1201
+ for (var o = n ? e : Br(e, t), a = r.length - 1; a >= 0; --a) {
1202
+ var i, f = r[a];
1203
+ if (f === "[]" && t.parseArrays)
1204
+ i = t.allowEmptyArrays && (o === "" || t.strictNullHandling && o === null) ? [] : [].concat(o);
1205
+ else {
1206
+ i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1207
+ var l = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, p = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, c = parseInt(p, 10);
1208
+ !t.parseArrays && p === "" ? i = { 0: o } : !isNaN(c) && f !== p && String(c) === p && c >= 0 && t.parseArrays && c <= t.arrayLimit ? (i = [], i[c] = o) : p !== "__proto__" && (i[p] = o);
1209
+ }
1210
+ o = i;
1211
+ }
1212
+ return o;
1213
+ }, ta = function(e, t, n, o) {
1214
+ if (e) {
1215
+ var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, f = /(\[[^[\]]*])/g, l = n.depth > 0 && i.exec(a), p = l ? a.slice(0, l.index) : a, c = [];
1216
+ if (p) {
1217
+ if (!n.plainObjects && We.call(Object.prototype, p) && !n.allowPrototypes)
1218
+ return;
1219
+ c.push(p);
1220
+ }
1221
+ for (var s = 0; n.depth > 0 && (l = f.exec(a)) !== null && s < n.depth; ) {
1222
+ if (s += 1, !n.plainObjects && We.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1223
+ return;
1224
+ c.push(l[1]);
1225
+ }
1226
+ if (l) {
1227
+ if (n.strictDepth === !0)
1228
+ throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1229
+ c.push("[" + a.slice(l.index) + "]");
1230
+ }
1231
+ return ra(c, t, n, o);
1232
+ }
1233
+ }, na = function(e) {
1234
+ if (!e)
1235
+ return m;
1236
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1237
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1238
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1239
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1240
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1241
+ throw new TypeError("Decoder has to be a function.");
1242
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1243
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1244
+ var t = typeof e.charset > "u" ? m.charset : e.charset, n = typeof e.duplicates > "u" ? m.duplicates : e.duplicates;
1245
+ if (n !== "combine" && n !== "first" && n !== "last")
1246
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1247
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1248
+ return {
1249
+ allowDots: o,
1250
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : m.allowEmptyArrays,
1251
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : m.allowPrototypes,
1252
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : m.allowSparse,
1253
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : m.arrayLimit,
1254
+ charset: t,
1255
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : m.charsetSentinel,
1256
+ comma: typeof e.comma == "boolean" ? e.comma : m.comma,
1257
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
1258
+ decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
1259
+ delimiter: typeof e.delimiter == "string" || J.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
1260
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1261
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
1262
+ duplicates: n,
1263
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1264
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : m.interpretNumericEntities,
1265
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : m.parameterLimit,
1266
+ parseArrays: e.parseArrays !== !1,
1267
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : m.plainObjects,
1268
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : m.strictDepth,
1269
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
1270
+ };
1271
+ }, aa = function(r, e) {
1272
+ var t = na(e);
1273
+ if (r === "" || r === null || typeof r > "u")
1274
+ return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1275
+ for (var n = typeof r == "string" ? ea(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1276
+ var f = a[i], l = ta(f, n[f], t, typeof r == "string");
1277
+ o = J.merge(o, l, t);
1278
+ }
1279
+ return t.allowSparse === !0 ? o : J.compact(o);
1280
+ }, oa = Jn, ia = aa, la = Ke, fa = {
1281
+ formats: la,
1282
+ parse: ia,
1283
+ stringify: oa
1284
+ };
1285
+ const ua = /* @__PURE__ */ Ur(fa);
1286
+ export {
1287
+ ua as q
1288
+ };