@harbour-enterprises/superdoc 1.0.0-alpha.65 → 1.0.0-alpha.66

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