lr-chatbot 0.28.1 → 0.29.2

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