@opencloud-eu/web-client 7.4.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,68 +1,67 @@
1
- import { t as e } from "./dist-Ciqaw6jy.js";
2
- import { t } from "./urlJoin-_pUL1TUx.js";
3
- import { a as n, n as r, s as i, t as a } from "./toString-Y_fh2BSJ.js";
1
+ import { t as e } from "./urlJoin-_pUL1TUx.js";
2
+ import { a as t, n, s as r, t as i } from "./toString-CVetDRwx.js";
4
3
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
5
- var o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
6
- function c(e, t) {
7
- if (n(e)) return !1;
8
- var r = typeof e;
9
- return r == "number" || r == "symbol" || r == "boolean" || e == null || i(e) ? !0 : s.test(e) || !o.test(e) || t != null && e in Object(t);
4
+ var a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/;
5
+ function s(e, n) {
6
+ if (t(e)) return !1;
7
+ var i = typeof e;
8
+ return i == "number" || i == "symbol" || i == "boolean" || e == null || r(e) ? !0 : o.test(e) || !a.test(e) || n != null && e in Object(n);
10
9
  }
11
10
  //#endregion
12
11
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
13
- var l = "Expected a function";
14
- function u(e, t) {
15
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(l);
16
- var n = function() {
17
- var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
12
+ var c = "Expected a function";
13
+ function l(e, t) {
14
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(c);
15
+ var r = function() {
16
+ var n = arguments, i = t ? t.apply(this, n) : n[0], a = r.cache;
18
17
  if (a.has(i)) return a.get(i);
19
- var o = e.apply(this, r);
20
- return n.cache = a.set(i, o) || a, o;
18
+ var o = e.apply(this, n);
19
+ return r.cache = a.set(i, o) || a, o;
21
20
  };
22
- return n.cache = new (u.Cache || r)(), n;
21
+ return r.cache = new (l.Cache || n)(), r;
23
22
  }
24
- u.Cache = r;
23
+ l.Cache = n;
25
24
  //#endregion
26
25
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
27
- var d = 500;
28
- function f(e) {
29
- var t = u(e, function(e) {
30
- return n.size === d && n.clear(), e;
26
+ var u = 500;
27
+ function d(e) {
28
+ var t = l(e, function(e) {
29
+ return n.size === u && n.clear(), e;
31
30
  }), n = t.cache;
32
31
  return t;
33
32
  }
34
33
  //#endregion
35
34
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
36
- var p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /\\(\\)?/g, h = f(function(e) {
35
+ var f = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, p = /\\(\\)?/g, m = d(function(e) {
37
36
  var t = [];
38
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(p, function(e, n, r, i) {
39
- t.push(r ? i.replace(m, "$1") : n || e);
37
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(f, function(e, n, r, i) {
38
+ t.push(r ? i.replace(p, "$1") : n || e);
40
39
  }), t;
41
40
  });
42
41
  //#endregion
43
42
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
44
- function g(e, t) {
45
- return n(e) ? e : c(e, t) ? [e] : h(a(e));
43
+ function h(e, n) {
44
+ return t(e) ? e : s(e, n) ? [e] : m(i(e));
46
45
  }
47
46
  //#endregion
48
47
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
49
- var _ = 1 / 0;
50
- function ee(e) {
51
- if (typeof e == "string" || i(e)) return e;
48
+ var g = 1 / 0;
49
+ function _(e) {
50
+ if (typeof e == "string" || r(e)) return e;
52
51
  var t = e + "";
53
- return t == "0" && 1 / e == -_ ? "-0" : t;
52
+ return t == "0" && 1 / e == -g ? "-0" : t;
54
53
  }
55
54
  //#endregion
56
55
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
57
- function te(e, t) {
58
- t = g(t, e);
59
- for (var n = 0, r = t.length; e != null && n < r;) e = e[ee(t[n++])];
56
+ function ee(e, t) {
57
+ t = h(t, e);
58
+ for (var n = 0, r = t.length; e != null && n < r;) e = e[_(t[n++])];
60
59
  return n && n == r ? e : void 0;
61
60
  }
62
61
  //#endregion
63
62
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
64
- function ne(e, t, n) {
65
- var r = e == null ? void 0 : te(e, t);
63
+ function te(e, t, n) {
64
+ var r = e == null ? void 0 : ee(e, t);
66
65
  return r === void 0 ? n : r;
67
66
  }
68
67
  //#endregion
@@ -76,68 +75,885 @@ var v = (e, t) => {
76
75
  ].filter(Boolean).join("/"), n.searchParams.append("format", "json");
77
76
  let r = n.href;
78
77
  return { async getCapabilities() {
79
- return ne(await t.get(r), "data.ocs.data", {
78
+ return te(await t.get(r), "data.ocs.data", {
80
79
  capabilities: null,
81
80
  version: null
82
81
  });
83
82
  } };
84
- };
83
+ }, y = {}, b = {};
84
+ b.byteLength = ie, b.toByteArray = oe, b.fromByteArray = le;
85
+ for (var x = [], S = [], C = typeof Uint8Array < "u" ? Uint8Array : Array, w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", T = 0, ne = w.length; T < ne; ++T) x[T] = w[T], S[w.charCodeAt(T)] = T;
86
+ S[45] = 62, S[95] = 63;
87
+ function re(e) {
88
+ var t = e.length;
89
+ if (t % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
90
+ var n = e.indexOf("=");
91
+ n === -1 && (n = t);
92
+ var r = n === t ? 0 : 4 - n % 4;
93
+ return [n, r];
94
+ }
95
+ function ie(e) {
96
+ var t = re(e), n = t[0], r = t[1];
97
+ return (n + r) * 3 / 4 - r;
98
+ }
99
+ function ae(e, t, n) {
100
+ return (t + n) * 3 / 4 - n;
101
+ }
102
+ function oe(e) {
103
+ for (var t, n = re(e), r = n[0], i = n[1], a = new C(ae(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c = 0; c < s; c += 4) t = S[e.charCodeAt(c)] << 18 | S[e.charCodeAt(c + 1)] << 12 | S[e.charCodeAt(c + 2)] << 6 | S[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
104
+ return i === 2 && (t = S[e.charCodeAt(c)] << 2 | S[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = S[e.charCodeAt(c)] << 10 | S[e.charCodeAt(c + 1)] << 4 | S[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
105
+ }
106
+ function se(e) {
107
+ return x[e >> 18 & 63] + x[e >> 12 & 63] + x[e >> 6 & 63] + x[e & 63];
108
+ }
109
+ function ce(e, t, n) {
110
+ for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(se(r));
111
+ return i.join("");
112
+ }
113
+ function le(e) {
114
+ for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(ce(e, o, o + a > s ? s : o + a));
115
+ return r === 1 ? (t = e[n - 1], i.push(x[t >> 2] + x[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(x[t >> 10] + x[t >> 4 & 63] + x[t << 2 & 63] + "=")), i.join("");
116
+ }
117
+ var ue = {};
118
+ ue.read = function(e, t, n, r, i) {
119
+ var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
120
+ for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
121
+ for (o = a & (1 << -u) - 1, a >>= -u, u += r; u > 0; o = o * 256 + e[t + d], d += f, u -= 8);
122
+ if (a === 0) a = 1 - l;
123
+ else if (a === c) return o ? NaN : (p ? -1 : 1) * Infinity;
124
+ else o += 2 ** r, a -= l;
125
+ return (p ? -1 : 1) * o * 2 ** (a - r);
126
+ }, ue.write = function(e, t, n, r, i, a) {
127
+ var o, s, c, l = a * 8 - i - 1, u = (1 << l) - 1, d = u >> 1, f = i === 23 ? 2 ** -24 - 2 ** -77 : 0, p = r ? 0 : a - 1, m = r ? 1 : -1, h = +(t < 0 || t === 0 && 1 / t < 0);
128
+ for (t = Math.abs(t), isNaN(t) || t === Infinity ? (s = +!!isNaN(t), o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (c = 2 ** -o) < 1 && (o--, c *= 2), o + d >= 1 ? t += f / c : t += f * 2 ** (1 - d), t * c >= 2 && (o++, c /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * c - 1) * 2 ** i, o += d) : (s = t * 2 ** (d - 1) * 2 ** i, o = 0)); i >= 8; e[n + p] = s & 255, p += m, s /= 256, i -= 8);
129
+ for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
130
+ e[n + p - m] |= h * 128;
131
+ }, (function(e) {
132
+ let t = b, n = ue, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
133
+ e.Buffer = u, e.SlowBuffer = y, e.INSPECT_MAX_BYTES = 50;
134
+ let i = 2147483647;
135
+ e.kMaxLength = i;
136
+ let { Uint8Array: a, ArrayBuffer: o, SharedArrayBuffer: s } = globalThis;
137
+ u.TYPED_ARRAY_SUPPORT = c(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
138
+ function c() {
139
+ try {
140
+ let e = new a(1), t = { foo: function() {
141
+ return 42;
142
+ } };
143
+ return Object.setPrototypeOf(t, a.prototype), Object.setPrototypeOf(e, t), e.foo() === 42;
144
+ } catch {
145
+ return !1;
146
+ }
147
+ }
148
+ Object.defineProperty(u.prototype, "parent", {
149
+ enumerable: !0,
150
+ get: function() {
151
+ if (u.isBuffer(this)) return this.buffer;
152
+ }
153
+ }), Object.defineProperty(u.prototype, "offset", {
154
+ enumerable: !0,
155
+ get: function() {
156
+ if (u.isBuffer(this)) return this.byteOffset;
157
+ }
158
+ });
159
+ function l(e) {
160
+ if (e > i) throw RangeError("The value \"" + e + "\" is invalid for option \"size\"");
161
+ let t = new a(e);
162
+ return Object.setPrototypeOf(t, u.prototype), t;
163
+ }
164
+ function u(e, t, n) {
165
+ if (typeof e == "number") {
166
+ if (typeof t == "string") throw TypeError("The \"string\" argument must be of type string. Received type number");
167
+ return m(e);
168
+ }
169
+ return d(e, t, n);
170
+ }
171
+ u.poolSize = 8192;
172
+ function d(e, t, n) {
173
+ if (typeof e == "string") return h(e, t);
174
+ if (o.isView(e)) return _(e);
175
+ if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
176
+ if (L(e, o) || e && L(e.buffer, o) || s !== void 0 && (L(e, s) || e && L(e.buffer, s))) return ee(e, t, n);
177
+ if (typeof e == "number") throw TypeError("The \"value\" argument must not be of type number. Received type number");
178
+ let r = e.valueOf && e.valueOf();
179
+ if (r != null && r !== e) return u.from(r, t, n);
180
+ let i = te(e);
181
+ if (i) return i;
182
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function") return u.from(e[Symbol.toPrimitive]("string"), t, n);
183
+ throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
184
+ }
185
+ u.from = function(e, t, n) {
186
+ return d(e, t, n);
187
+ }, Object.setPrototypeOf(u.prototype, a.prototype), Object.setPrototypeOf(u, a);
188
+ function f(e) {
189
+ if (typeof e != "number") throw TypeError("\"size\" argument must be of type number");
190
+ if (e < 0) throw RangeError("The value \"" + e + "\" is invalid for option \"size\"");
191
+ }
192
+ function p(e, t, n) {
193
+ return f(e), e <= 0 || t === void 0 ? l(e) : typeof n == "string" ? l(e).fill(t, n) : l(e).fill(t);
194
+ }
195
+ u.alloc = function(e, t, n) {
196
+ return p(e, t, n);
197
+ };
198
+ function m(e) {
199
+ return f(e), l(e < 0 ? 0 : v(e) | 0);
200
+ }
201
+ u.allocUnsafe = function(e) {
202
+ return m(e);
203
+ }, u.allocUnsafeSlow = function(e) {
204
+ return m(e);
205
+ };
206
+ function h(e, t) {
207
+ if ((typeof t != "string" || t === "") && (t = "utf8"), !u.isEncoding(t)) throw TypeError("Unknown encoding: " + t);
208
+ let n = x(e, t) | 0, r = l(n), i = r.write(e, t);
209
+ return i !== n && (r = r.slice(0, i)), r;
210
+ }
211
+ function g(e) {
212
+ let t = e.length < 0 ? 0 : v(e.length) | 0, n = l(t);
213
+ for (let r = 0; r < t; r += 1) n[r] = e[r] & 255;
214
+ return n;
215
+ }
216
+ function _(e) {
217
+ if (L(e, a)) {
218
+ let t = new a(e);
219
+ return ee(t.buffer, t.byteOffset, t.byteLength);
220
+ }
221
+ return g(e);
222
+ }
223
+ function ee(e, t, n) {
224
+ if (t < 0 || e.byteLength < t) throw RangeError("\"offset\" is outside of buffer bounds");
225
+ if (e.byteLength < t + (n || 0)) throw RangeError("\"length\" is outside of buffer bounds");
226
+ let r;
227
+ return r = t === void 0 && n === void 0 ? new a(e) : n === void 0 ? new a(e, t) : new a(e, t, n), Object.setPrototypeOf(r, u.prototype), r;
228
+ }
229
+ function te(e) {
230
+ if (u.isBuffer(e)) {
231
+ let t = v(e.length) | 0, n = l(t);
232
+ return n.length === 0 || e.copy(n, 0, 0, t), n;
233
+ }
234
+ if (e.length !== void 0) return typeof e.length != "number" || Ee(e.length) ? l(0) : g(e);
235
+ if (e.type === "Buffer" && Array.isArray(e.data)) return g(e.data);
236
+ }
237
+ function v(e) {
238
+ if (e >= i) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + " bytes");
239
+ return e | 0;
240
+ }
241
+ function y(e) {
242
+ return +e != e && (e = 0), u.alloc(+e);
243
+ }
244
+ u.isBuffer = function(e) {
245
+ return e != null && e._isBuffer === !0 && e !== u.prototype;
246
+ }, u.compare = function(e, t) {
247
+ if (L(e, a) && (e = u.from(e, e.offset, e.byteLength)), L(t, a) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(e) || !u.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
248
+ if (e === t) return 0;
249
+ let n = e.length, r = t.length;
250
+ for (let i = 0, a = Math.min(n, r); i < a; ++i) if (e[i] !== t[i]) {
251
+ n = e[i], r = t[i];
252
+ break;
253
+ }
254
+ return n < r ? -1 : +(r < n);
255
+ }, u.isEncoding = function(e) {
256
+ switch (String(e).toLowerCase()) {
257
+ case "hex":
258
+ case "utf8":
259
+ case "utf-8":
260
+ case "ascii":
261
+ case "latin1":
262
+ case "binary":
263
+ case "base64":
264
+ case "ucs2":
265
+ case "ucs-2":
266
+ case "utf16le":
267
+ case "utf-16le": return !0;
268
+ default: return !1;
269
+ }
270
+ }, u.concat = function(e, t) {
271
+ if (!Array.isArray(e)) throw TypeError("\"list\" argument must be an Array of Buffers");
272
+ if (e.length === 0) return u.alloc(0);
273
+ let n;
274
+ if (t === void 0) for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
275
+ let r = u.allocUnsafe(t), i = 0;
276
+ for (n = 0; n < e.length; ++n) {
277
+ let t = e[n];
278
+ if (L(t, a)) i + t.length > r.length ? (u.isBuffer(t) || (t = u.from(t)), t.copy(r, i)) : a.prototype.set.call(r, t, i);
279
+ else if (u.isBuffer(t)) t.copy(r, i);
280
+ else throw TypeError("\"list\" argument must be an Array of Buffers");
281
+ i += t.length;
282
+ }
283
+ return r;
284
+ };
285
+ function x(e, t) {
286
+ if (u.isBuffer(e)) return e.length;
287
+ if (o.isView(e) || L(e, o)) return e.byteLength;
288
+ if (typeof e != "string") throw TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof e);
289
+ let n = e.length, r = arguments.length > 2 && arguments[2] === !0;
290
+ if (!r && n === 0) return 0;
291
+ let i = !1;
292
+ for (;;) switch (t) {
293
+ case "ascii":
294
+ case "latin1":
295
+ case "binary": return n;
296
+ case "utf8":
297
+ case "utf-8": return xe(e).length;
298
+ case "ucs2":
299
+ case "ucs-2":
300
+ case "utf16le":
301
+ case "utf-16le": return n * 2;
302
+ case "hex": return n >>> 1;
303
+ case "base64": return we(e).length;
304
+ default:
305
+ if (i) return r ? -1 : xe(e).length;
306
+ t = ("" + t).toLowerCase(), i = !0;
307
+ }
308
+ }
309
+ u.byteLength = x;
310
+ function S(e, t, n) {
311
+ let r = !1;
312
+ if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, t >>>= 0, n <= t)) return "";
313
+ for (e ||= "utf8";;) switch (e) {
314
+ case "hex": return E(this, t, n);
315
+ case "utf8":
316
+ case "utf-8": return ce(this, t, n);
317
+ case "ascii": return fe(this, t, n);
318
+ case "latin1":
319
+ case "binary": return pe(this, t, n);
320
+ case "base64": return se(this, t, n);
321
+ case "ucs2":
322
+ case "ucs-2":
323
+ case "utf16le":
324
+ case "utf-16le": return D(this, t, n);
325
+ default:
326
+ if (r) throw TypeError("Unknown encoding: " + e);
327
+ e = (e + "").toLowerCase(), r = !0;
328
+ }
329
+ }
330
+ u.prototype._isBuffer = !0;
331
+ function C(e, t, n) {
332
+ let r = e[t];
333
+ e[t] = e[n], e[n] = r;
334
+ }
335
+ u.prototype.swap16 = function() {
336
+ let e = this.length;
337
+ if (e % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits");
338
+ for (let t = 0; t < e; t += 2) C(this, t, t + 1);
339
+ return this;
340
+ }, u.prototype.swap32 = function() {
341
+ let e = this.length;
342
+ if (e % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits");
343
+ for (let t = 0; t < e; t += 4) C(this, t, t + 3), C(this, t + 1, t + 2);
344
+ return this;
345
+ }, u.prototype.swap64 = function() {
346
+ let e = this.length;
347
+ if (e % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits");
348
+ for (let t = 0; t < e; t += 8) C(this, t, t + 7), C(this, t + 1, t + 6), C(this, t + 2, t + 5), C(this, t + 3, t + 4);
349
+ return this;
350
+ }, u.prototype.toString = function() {
351
+ let e = this.length;
352
+ return e === 0 ? "" : arguments.length === 0 ? ce(this, 0, e) : S.apply(this, arguments);
353
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(e) {
354
+ if (!u.isBuffer(e)) throw TypeError("Argument must be a Buffer");
355
+ return this === e || u.compare(this, e) === 0;
356
+ }, u.prototype.inspect = function() {
357
+ let t = "", n = e.INSPECT_MAX_BYTES;
358
+ return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">";
359
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(e, t, n, r, i) {
360
+ if (L(e, a) && (e = u.from(e, e.offset, e.byteLength)), !u.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
361
+ if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw RangeError("out of range index");
362
+ if (r >= i && t >= n) return 0;
363
+ if (r >= i) return -1;
364
+ if (t >= n) return 1;
365
+ if (t >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === e) return 0;
366
+ let o = i - r, s = n - t, c = Math.min(o, s), l = this.slice(r, i), d = e.slice(t, n);
367
+ for (let e = 0; e < c; ++e) if (l[e] !== d[e]) {
368
+ o = l[e], s = d[e];
369
+ break;
370
+ }
371
+ return o < s ? -1 : +(s < o);
372
+ };
373
+ function w(e, t, n, r, i) {
374
+ if (e.length === 0) return -1;
375
+ if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, Ee(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
376
+ if (i) return -1;
377
+ n = e.length - 1;
378
+ } else if (n < 0) {
379
+ if (i) n = 0;
380
+ else return -1;
381
+ }
382
+ if (typeof t == "string" && (t = u.from(t, r)), u.isBuffer(t)) return t.length === 0 ? -1 : T(e, t, n, r, i);
383
+ if (typeof t == "number") return t &= 255, typeof a.prototype.indexOf == "function" ? i ? a.prototype.indexOf.call(e, t, n) : a.prototype.lastIndexOf.call(e, t, n) : T(e, [t], n, r, i);
384
+ throw TypeError("val must be string, number or Buffer");
385
+ }
386
+ function T(e, t, n, r, i) {
387
+ let a = 1, o = e.length, s = t.length;
388
+ if (r !== void 0 && (r = String(r).toLowerCase(), r === "ucs2" || r === "ucs-2" || r === "utf16le" || r === "utf-16le")) {
389
+ if (e.length < 2 || t.length < 2) return -1;
390
+ a = 2, o /= 2, s /= 2, n /= 2;
391
+ }
392
+ function c(e, t) {
393
+ return a === 1 ? e[t] : e.readUInt16BE(t * a);
394
+ }
395
+ let l;
396
+ if (i) {
397
+ let r = -1;
398
+ for (l = n; l < o; l++) if (c(e, l) === c(t, r === -1 ? 0 : l - r)) {
399
+ if (r === -1 && (r = l), l - r + 1 === s) return r * a;
400
+ } else r !== -1 && (l -= l - r), r = -1;
401
+ } else for (n + s > o && (n = o - s), l = n; l >= 0; l--) {
402
+ let n = !0;
403
+ for (let r = 0; r < s; r++) if (c(e, l + r) !== c(t, r)) {
404
+ n = !1;
405
+ break;
406
+ }
407
+ if (n) return l;
408
+ }
409
+ return -1;
410
+ }
411
+ u.prototype.includes = function(e, t, n) {
412
+ return this.indexOf(e, t, n) !== -1;
413
+ }, u.prototype.indexOf = function(e, t, n) {
414
+ return w(this, e, t, n, !0);
415
+ }, u.prototype.lastIndexOf = function(e, t, n) {
416
+ return w(this, e, t, n, !1);
417
+ };
418
+ function ne(e, t, n, r) {
419
+ n = Number(n) || 0;
420
+ let i = e.length - n;
421
+ r ? (r = Number(r), r > i && (r = i)) : r = i;
422
+ let a = t.length;
423
+ r > a / 2 && (r = a / 2);
424
+ let o = 0;
425
+ for (; o < r; ++o) {
426
+ let r = parseInt(t.substr(o * 2, 2), 16);
427
+ if (Ee(r)) return o;
428
+ e[n + o] = r;
429
+ }
430
+ return o;
431
+ }
432
+ function re(e, t, n, r) {
433
+ return Te(xe(t, e.length - n), e, n, r);
434
+ }
435
+ function ie(e, t, n, r) {
436
+ return Te(Se(t), e, n, r);
437
+ }
438
+ function ae(e, t, n, r) {
439
+ return Te(we(t), e, n, r);
440
+ }
441
+ function oe(e, t, n, r) {
442
+ return Te(Ce(t, e.length - n), e, n, r);
443
+ }
444
+ u.prototype.write = function(e, t, n, r) {
445
+ if (t === void 0) r = "utf8", n = this.length, t = 0;
446
+ else if (n === void 0 && typeof t == "string") r = t, n = this.length, t = 0;
447
+ else if (isFinite(t)) t >>>= 0, isFinite(n) ? (n >>>= 0, r === void 0 && (r = "utf8")) : (r = n, n = void 0);
448
+ else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
449
+ let i = this.length - t;
450
+ if ((n === void 0 || n > i) && (n = i), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw RangeError("Attempt to write outside buffer bounds");
451
+ r ||= "utf8";
452
+ let a = !1;
453
+ for (;;) switch (r) {
454
+ case "hex": return ne(this, e, t, n);
455
+ case "utf8":
456
+ case "utf-8": return re(this, e, t, n);
457
+ case "ascii":
458
+ case "latin1":
459
+ case "binary": return ie(this, e, t, n);
460
+ case "base64": return ae(this, e, t, n);
461
+ case "ucs2":
462
+ case "ucs-2":
463
+ case "utf16le":
464
+ case "utf-16le": return oe(this, e, t, n);
465
+ default:
466
+ if (a) throw TypeError("Unknown encoding: " + r);
467
+ r = ("" + r).toLowerCase(), a = !0;
468
+ }
469
+ }, u.prototype.toJSON = function() {
470
+ return {
471
+ type: "Buffer",
472
+ data: Array.prototype.slice.call(this._arr || this, 0)
473
+ };
474
+ };
475
+ function se(e, n, r) {
476
+ return n === 0 && r === e.length ? t.fromByteArray(e) : t.fromByteArray(e.slice(n, r));
477
+ }
478
+ function ce(e, t, n) {
479
+ n = Math.min(e.length, n);
480
+ let r = [], i = t;
481
+ for (; i < n;) {
482
+ let t = e[i], a = null, o = t > 239 ? 4 : t > 223 ? 3 : t > 191 ? 2 : 1;
483
+ if (i + o <= n) {
484
+ let n, r, s, c;
485
+ switch (o) {
486
+ case 1:
487
+ t < 128 && (a = t);
488
+ break;
489
+ case 2:
490
+ n = e[i + 1], (n & 192) == 128 && (c = (t & 31) << 6 | n & 63, c > 127 && (a = c));
491
+ break;
492
+ case 3:
493
+ n = e[i + 1], r = e[i + 2], (n & 192) == 128 && (r & 192) == 128 && (c = (t & 15) << 12 | (n & 63) << 6 | r & 63, c > 2047 && (c < 55296 || c > 57343) && (a = c));
494
+ break;
495
+ case 4: n = e[i + 1], r = e[i + 2], s = e[i + 3], (n & 192) == 128 && (r & 192) == 128 && (s & 192) == 128 && (c = (t & 15) << 18 | (n & 63) << 12 | (r & 63) << 6 | s & 63, c > 65535 && c < 1114112 && (a = c));
496
+ }
497
+ }
498
+ a === null ? (a = 65533, o = 1) : a > 65535 && (a -= 65536, r.push(a >>> 10 & 1023 | 55296), a = 56320 | a & 1023), r.push(a), i += o;
499
+ }
500
+ return de(r);
501
+ }
502
+ let le = 4096;
503
+ function de(e) {
504
+ let t = e.length;
505
+ if (t <= le) return String.fromCharCode.apply(String, e);
506
+ let n = "", r = 0;
507
+ for (; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += le));
508
+ return n;
509
+ }
510
+ function fe(e, t, n) {
511
+ let r = "";
512
+ n = Math.min(e.length, n);
513
+ for (let i = t; i < n; ++i) r += String.fromCharCode(e[i] & 127);
514
+ return r;
515
+ }
516
+ function pe(e, t, n) {
517
+ let r = "";
518
+ n = Math.min(e.length, n);
519
+ for (let i = t; i < n; ++i) r += String.fromCharCode(e[i]);
520
+ return r;
521
+ }
522
+ function E(e, t, n) {
523
+ let r = e.length;
524
+ (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
525
+ let i = "";
526
+ for (let r = t; r < n; ++r) i += De[e[r]];
527
+ return i;
528
+ }
529
+ function D(e, t, n) {
530
+ let r = e.slice(t, n), i = "";
531
+ for (let e = 0; e < r.length - 1; e += 2) i += String.fromCharCode(r[e] + r[e + 1] * 256);
532
+ return i;
533
+ }
534
+ u.prototype.slice = function(e, t) {
535
+ let n = this.length;
536
+ e = ~~e, t = t === void 0 ? n : ~~t, e < 0 ? (e += n, e < 0 && (e = 0)) : e > n && (e = n), t < 0 ? (t += n, t < 0 && (t = 0)) : t > n && (t = n), t < e && (t = e);
537
+ let r = this.subarray(e, t);
538
+ return Object.setPrototypeOf(r, u.prototype), r;
539
+ };
540
+ function O(e, t, n) {
541
+ if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
542
+ if (e + t > n) throw RangeError("Trying to access beyond buffer length");
543
+ }
544
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(e, t, n) {
545
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
546
+ let r = this[e], i = 1, a = 0;
547
+ for (; ++a < t && (i *= 256);) r += this[e + a] * i;
548
+ return r;
549
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(e, t, n) {
550
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
551
+ let r = this[e + --t], i = 1;
552
+ for (; t > 0 && (i *= 256);) r += this[e + --t] * i;
553
+ return r;
554
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(e, t) {
555
+ return e >>>= 0, t || O(e, 1, this.length), this[e];
556
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(e, t) {
557
+ return e >>>= 0, t || O(e, 2, this.length), this[e] | this[e + 1] << 8;
558
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(e, t) {
559
+ return e >>>= 0, t || O(e, 2, this.length), this[e] << 8 | this[e + 1];
560
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(e, t) {
561
+ return e >>>= 0, t || O(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
562
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(e, t) {
563
+ return e >>>= 0, t || O(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
564
+ }, u.prototype.readBigUInt64LE = R(function(e) {
565
+ e >>>= 0, F(e, "offset");
566
+ let t = this[e], n = this[e + 7];
567
+ (t === void 0 || n === void 0) && I(e, this.length - 8);
568
+ let r = t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, i = this[++e] + this[++e] * 256 + this[++e] * 2 ** 16 + n * 2 ** 24;
569
+ return BigInt(r) + (BigInt(i) << BigInt(32));
570
+ }), u.prototype.readBigUInt64BE = R(function(e) {
571
+ e >>>= 0, F(e, "offset");
572
+ let t = this[e], n = this[e + 7];
573
+ (t === void 0 || n === void 0) && I(e, this.length - 8);
574
+ let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n;
575
+ return (BigInt(r) << BigInt(32)) + BigInt(i);
576
+ }), u.prototype.readIntLE = function(e, t, n) {
577
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
578
+ let r = this[e], i = 1, a = 0;
579
+ for (; ++a < t && (i *= 256);) r += this[e + a] * i;
580
+ return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
581
+ }, u.prototype.readIntBE = function(e, t, n) {
582
+ e >>>= 0, t >>>= 0, n || O(e, t, this.length);
583
+ let r = t, i = 1, a = this[e + --r];
584
+ for (; r > 0 && (i *= 256);) a += this[e + --r] * i;
585
+ return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
586
+ }, u.prototype.readInt8 = function(e, t) {
587
+ return e >>>= 0, t || O(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
588
+ }, u.prototype.readInt16LE = function(e, t) {
589
+ e >>>= 0, t || O(e, 2, this.length);
590
+ let n = this[e] | this[e + 1] << 8;
591
+ return n & 32768 ? n | 4294901760 : n;
592
+ }, u.prototype.readInt16BE = function(e, t) {
593
+ e >>>= 0, t || O(e, 2, this.length);
594
+ let n = this[e + 1] | this[e] << 8;
595
+ return n & 32768 ? n | 4294901760 : n;
596
+ }, u.prototype.readInt32LE = function(e, t) {
597
+ return e >>>= 0, t || O(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
598
+ }, u.prototype.readInt32BE = function(e, t) {
599
+ return e >>>= 0, t || O(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
600
+ }, u.prototype.readBigInt64LE = R(function(e) {
601
+ e >>>= 0, F(e, "offset");
602
+ let t = this[e], n = this[e + 7];
603
+ (t === void 0 || n === void 0) && I(e, this.length - 8);
604
+ let r = this[e + 4] + this[e + 5] * 256 + this[e + 6] * 2 ** 16 + (n << 24);
605
+ return (BigInt(r) << BigInt(32)) + BigInt(t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
606
+ }), u.prototype.readBigInt64BE = R(function(e) {
607
+ e >>>= 0, F(e, "offset");
608
+ let t = this[e], n = this[e + 7];
609
+ (t === void 0 || n === void 0) && I(e, this.length - 8);
610
+ let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e];
611
+ return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n);
612
+ }), u.prototype.readFloatLE = function(e, t) {
613
+ return e >>>= 0, t || O(e, 4, this.length), n.read(this, e, !0, 23, 4);
614
+ }, u.prototype.readFloatBE = function(e, t) {
615
+ return e >>>= 0, t || O(e, 4, this.length), n.read(this, e, !1, 23, 4);
616
+ }, u.prototype.readDoubleLE = function(e, t) {
617
+ return e >>>= 0, t || O(e, 8, this.length), n.read(this, e, !0, 52, 8);
618
+ }, u.prototype.readDoubleBE = function(e, t) {
619
+ return e >>>= 0, t || O(e, 8, this.length), n.read(this, e, !1, 52, 8);
620
+ };
621
+ function k(e, t, n, r, i, a) {
622
+ if (!u.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
623
+ if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
624
+ if (n + r > e.length) throw RangeError("Index out of range");
625
+ }
626
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(e, t, n, r) {
627
+ if (e = +e, t >>>= 0, n >>>= 0, !r) {
628
+ let r = 2 ** (8 * n) - 1;
629
+ k(this, e, t, n, r, 0);
630
+ }
631
+ let i = 1, a = 0;
632
+ for (this[t] = e & 255; ++a < n && (i *= 256);) this[t + a] = e / i & 255;
633
+ return t + n;
634
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(e, t, n, r) {
635
+ if (e = +e, t >>>= 0, n >>>= 0, !r) {
636
+ let r = 2 ** (8 * n) - 1;
637
+ k(this, e, t, n, r, 0);
638
+ }
639
+ let i = n - 1, a = 1;
640
+ for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) this[t + i] = e / a & 255;
641
+ return t + n;
642
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(e, t, n) {
643
+ return e = +e, t >>>= 0, n || k(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
644
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(e, t, n) {
645
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
646
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(e, t, n) {
647
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
648
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(e, t, n) {
649
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
650
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(e, t, n) {
651
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
652
+ };
653
+ function me(e, t, n, r, i) {
654
+ ve(t, r, i, e, n, 7);
655
+ let a = Number(t & BigInt(4294967295));
656
+ e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a;
657
+ let o = Number(t >> BigInt(32) & BigInt(4294967295));
658
+ return e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, n;
659
+ }
660
+ function A(e, t, n, r, i) {
661
+ ve(t, r, i, e, n, 7);
662
+ let a = Number(t & BigInt(4294967295));
663
+ e[n + 7] = a, a >>= 8, e[n + 6] = a, a >>= 8, e[n + 5] = a, a >>= 8, e[n + 4] = a;
664
+ let o = Number(t >> BigInt(32) & BigInt(4294967295));
665
+ return e[n + 3] = o, o >>= 8, e[n + 2] = o, o >>= 8, e[n + 1] = o, o >>= 8, e[n] = o, n + 8;
666
+ }
667
+ u.prototype.writeBigUInt64LE = R(function(e, t = 0) {
668
+ return me(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
669
+ }), u.prototype.writeBigUInt64BE = R(function(e, t = 0) {
670
+ return A(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
671
+ }), u.prototype.writeIntLE = function(e, t, n, r) {
672
+ if (e = +e, t >>>= 0, !r) {
673
+ let r = 2 ** (8 * n - 1);
674
+ k(this, e, t, n, r - 1, -r);
675
+ }
676
+ let i = 0, a = 1, o = 0;
677
+ for (this[t] = e & 255; ++i < n && (a *= 256);) e < 0 && o === 0 && this[t + i - 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
678
+ return t + n;
679
+ }, u.prototype.writeIntBE = function(e, t, n, r) {
680
+ if (e = +e, t >>>= 0, !r) {
681
+ let r = 2 ** (8 * n - 1);
682
+ k(this, e, t, n, r - 1, -r);
683
+ }
684
+ let i = n - 1, a = 1, o = 0;
685
+ for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) e < 0 && o === 0 && this[t + i + 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
686
+ return t + n;
687
+ }, u.prototype.writeInt8 = function(e, t, n) {
688
+ return e = +e, t >>>= 0, n || k(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
689
+ }, u.prototype.writeInt16LE = function(e, t, n) {
690
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
691
+ }, u.prototype.writeInt16BE = function(e, t, n) {
692
+ return e = +e, t >>>= 0, n || k(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
693
+ }, u.prototype.writeInt32LE = function(e, t, n) {
694
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
695
+ }, u.prototype.writeInt32BE = function(e, t, n) {
696
+ return e = +e, t >>>= 0, n || k(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
697
+ }, u.prototype.writeBigInt64LE = R(function(e, t = 0) {
698
+ return me(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
699
+ }), u.prototype.writeBigInt64BE = R(function(e, t = 0) {
700
+ return A(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
701
+ });
702
+ function he(e, t, n, r, i, a) {
703
+ if (n + r > e.length || n < 0) throw RangeError("Index out of range");
704
+ }
705
+ function j(e, t, r, i, a) {
706
+ return t = +t, r >>>= 0, a || he(e, t, r, 4), n.write(e, t, r, i, 23, 4), r + 4;
707
+ }
708
+ u.prototype.writeFloatLE = function(e, t, n) {
709
+ return j(this, e, t, !0, n);
710
+ }, u.prototype.writeFloatBE = function(e, t, n) {
711
+ return j(this, e, t, !1, n);
712
+ };
713
+ function M(e, t, r, i, a) {
714
+ return t = +t, r >>>= 0, a || he(e, t, r, 8), n.write(e, t, r, i, 52, 8), r + 8;
715
+ }
716
+ u.prototype.writeDoubleLE = function(e, t, n) {
717
+ return M(this, e, t, !0, n);
718
+ }, u.prototype.writeDoubleBE = function(e, t, n) {
719
+ return M(this, e, t, !1, n);
720
+ }, u.prototype.copy = function(e, t, n, r) {
721
+ if (!u.isBuffer(e)) throw TypeError("argument should be a Buffer");
722
+ if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
723
+ if (t < 0) throw RangeError("targetStart out of bounds");
724
+ if (n < 0 || n >= this.length) throw RangeError("Index out of range");
725
+ if (r < 0) throw RangeError("sourceEnd out of bounds");
726
+ r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n);
727
+ let i = r - n;
728
+ return this === e && typeof a.prototype.copyWithin == "function" ? this.copyWithin(t, n, r) : a.prototype.set.call(e, this.subarray(n, r), t), i;
729
+ }, u.prototype.fill = function(e, t, n, r) {
730
+ if (typeof e == "string") {
731
+ if (typeof t == "string" ? (r = t, t = 0, n = this.length) : typeof n == "string" && (r = n, n = this.length), r !== void 0 && typeof r != "string") throw TypeError("encoding must be a string");
732
+ if (typeof r == "string" && !u.isEncoding(r)) throw TypeError("Unknown encoding: " + r);
733
+ if (e.length === 1) {
734
+ let t = e.charCodeAt(0);
735
+ (r === "utf8" && t < 128 || r === "latin1") && (e = t);
736
+ }
737
+ } else typeof e == "number" ? e &= 255 : typeof e == "boolean" && (e = Number(e));
738
+ if (t < 0 || this.length < t || this.length < n) throw RangeError("Out of range index");
739
+ if (n <= t) return this;
740
+ t >>>= 0, n = n === void 0 ? this.length : n >>> 0, e ||= 0;
741
+ let i;
742
+ if (typeof e == "number") for (i = t; i < n; ++i) this[i] = e;
743
+ else {
744
+ let a = u.isBuffer(e) ? e : u.from(e, r), o = a.length;
745
+ if (o === 0) throw TypeError("The value \"" + e + "\" is invalid for argument \"value\"");
746
+ for (i = 0; i < n - t; ++i) this[i + t] = a[i % o];
747
+ }
748
+ return this;
749
+ };
750
+ let N = {};
751
+ function P(e, t, n) {
752
+ N[e] = class extends n {
753
+ constructor() {
754
+ super(), Object.defineProperty(this, "message", {
755
+ value: t.apply(this, arguments),
756
+ writable: !0,
757
+ configurable: !0
758
+ }), this.name = `${this.name} [${e}]`, this.stack, delete this.name;
759
+ }
760
+ get code() {
761
+ return e;
762
+ }
763
+ set code(e) {
764
+ Object.defineProperty(this, "code", {
765
+ configurable: !0,
766
+ enumerable: !0,
767
+ value: e,
768
+ writable: !0
769
+ });
770
+ }
771
+ toString() {
772
+ return `${this.name} [${e}]: ${this.message}`;
773
+ }
774
+ };
775
+ }
776
+ P("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
777
+ return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
778
+ }, RangeError), P("ERR_INVALID_ARG_TYPE", function(e, t) {
779
+ return `The "${e}" argument must be of type number. Received type ${typeof t}`;
780
+ }, TypeError), P("ERR_OUT_OF_RANGE", function(e, t, n) {
781
+ let r = `The value of "${e}" is out of range.`, i = n;
782
+ return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i = ge(String(n)) : typeof n == "bigint" && (i = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (i = ge(i)), i += "n"), r += ` It must be ${t}. Received ${i}`, r;
783
+ }, RangeError);
784
+ function ge(e) {
785
+ let t = "", n = e.length, r = +(e[0] === "-");
786
+ for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
787
+ return `${e.slice(0, n)}${t}`;
788
+ }
789
+ function _e(e, t, n) {
790
+ F(t, "offset"), (e[t] === void 0 || e[t + n] === void 0) && I(t, e.length - (n + 1));
791
+ }
792
+ function ve(e, t, n, r, i, a) {
793
+ if (e > n || e < t) {
794
+ let r = typeof t == "bigint" ? "n" : "", i;
795
+ throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new N.ERR_OUT_OF_RANGE("value", i, e);
796
+ }
797
+ _e(r, i, a);
798
+ }
799
+ function F(e, t) {
800
+ if (typeof e != "number") throw new N.ERR_INVALID_ARG_TYPE(t, "number", e);
801
+ }
802
+ function I(e, t, n) {
803
+ throw Math.floor(e) === e ? t < 0 ? new N.ERR_BUFFER_OUT_OF_BOUNDS() : new N.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (F(e, n), new N.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
804
+ }
805
+ let ye = /[^+/0-9A-Za-z-_]/g;
806
+ function be(e) {
807
+ if (e = e.split("=")[0], e = e.trim().replace(ye, ""), e.length < 2) return "";
808
+ for (; e.length % 4 != 0;) e += "=";
809
+ return e;
810
+ }
811
+ function xe(e, t) {
812
+ t ||= Infinity;
813
+ let n, r = e.length, i = null, a = [];
814
+ for (let o = 0; o < r; ++o) {
815
+ if (n = e.charCodeAt(o), n > 55295 && n < 57344) {
816
+ if (!i) {
817
+ if (n > 56319) {
818
+ (t -= 3) > -1 && a.push(239, 191, 189);
819
+ continue;
820
+ }
821
+ if (o + 1 === r) {
822
+ (t -= 3) > -1 && a.push(239, 191, 189);
823
+ continue;
824
+ }
825
+ i = n;
826
+ continue;
827
+ }
828
+ if (n < 56320) {
829
+ (t -= 3) > -1 && a.push(239, 191, 189), i = n;
830
+ continue;
831
+ }
832
+ n = (i - 55296 << 10 | n - 56320) + 65536;
833
+ } else i && (t -= 3) > -1 && a.push(239, 191, 189);
834
+ if (i = null, n < 128) {
835
+ if (--t < 0) break;
836
+ a.push(n);
837
+ } else if (n < 2048) {
838
+ if ((t -= 2) < 0) break;
839
+ a.push(n >> 6 | 192, n & 63 | 128);
840
+ } else if (n < 65536) {
841
+ if ((t -= 3) < 0) break;
842
+ a.push(n >> 12 | 224, n >> 6 & 63 | 128, n & 63 | 128);
843
+ } else if (n < 1114112) {
844
+ if ((t -= 4) < 0) break;
845
+ a.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, n & 63 | 128);
846
+ } else throw Error("Invalid code point");
847
+ }
848
+ return a;
849
+ }
850
+ function Se(e) {
851
+ let t = [];
852
+ for (let n = 0; n < e.length; ++n) t.push(e.charCodeAt(n) & 255);
853
+ return t;
854
+ }
855
+ function Ce(e, t) {
856
+ let n, r, i, a = [];
857
+ for (let o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r);
858
+ return a;
859
+ }
860
+ function we(e) {
861
+ return t.toByteArray(be(e));
862
+ }
863
+ function Te(e, t, n, r) {
864
+ let i = 0;
865
+ for (; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
866
+ return i;
867
+ }
868
+ function L(e, t) {
869
+ return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
870
+ }
871
+ function Ee(e) {
872
+ return e !== e;
873
+ }
874
+ let De = (function() {
875
+ let e = "0123456789abcdef", t = Array(256);
876
+ for (let n = 0; n < 16; ++n) {
877
+ let r = n * 16;
878
+ for (let i = 0; i < 16; ++i) t[r + i] = e[n] + e[i];
879
+ }
880
+ return t;
881
+ })();
882
+ function R(e) {
883
+ return typeof BigInt > "u" ? Oe : e;
884
+ }
885
+ function Oe() {
886
+ throw Error("BigInt not supported");
887
+ }
888
+ })(y);
889
+ var de = y.Buffer;
890
+ y.Blob, y.BlobOptions, y.Buffer, y.File, y.FileOptions, y.INSPECT_MAX_BYTES, y.SlowBuffer, y.TranscodeEncoding, y.atob, y.btoa, y.constants, y.isAscii, y.isUtf8, y.kMaxLength, y.kStringMaxLength, y.resolveObjectURL, y.transcode;
85
891
  //#endregion
86
- //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/utils.js
87
- function y(e) {
892
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/utils.js
893
+ function fe(e) {
88
894
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
89
895
  }
90
- var b = (e) => e ? `"${e}" ` : "";
91
- function x(e, t = "") {
92
- if (typeof e != "number") throw TypeError(b(t) + "expected number, got " + typeof e);
93
- if (!Number.isSafeInteger(e) || e < 0) throw RangeError(b(t) + "expected integer >= 0, got " + e);
896
+ var pe = (e) => e ? `"${e}" ` : "";
897
+ function E(e, t = "") {
898
+ if (typeof e != "number") throw TypeError(pe(t) + "expected number, got " + typeof e);
899
+ if (!Number.isSafeInteger(e) || e < 0) throw RangeError(pe(t) + "expected integer >= 0, got " + e);
94
900
  return e;
95
901
  }
96
- function S(e, t, n = "") {
97
- if (y(e) && (t === void 0 || e.length === t)) return e;
98
- t !== void 0 && x(t, "length");
99
- let r = y(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = b(n) + "expected Uint8Array" + i + ", got " + a;
902
+ function D(e, t, n = "") {
903
+ if (fe(e) && (t === void 0 || e.length === t)) return e;
904
+ t !== void 0 && E(t, "length");
905
+ let r = fe(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = pe(n) + "expected Uint8Array" + i + ", got " + a;
100
906
  throw r ? RangeError(o) : TypeError(o);
101
907
  }
102
- function re(e) {
908
+ function O(e) {
103
909
  if (typeof e != "function" || typeof e.create != "function") throw TypeError("expected hash wrapped by utils.createHasher");
104
- if (x(e.outputLen), x(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
910
+ if (E(e.outputLen), E(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
105
911
  }
106
- var ie = (e, t) => {
912
+ var k = (e, t) => {
107
913
  if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError((t === "object" ? "" : `"${t}" `) + "expected object, got type=" + typeof e);
914
+ }, me = (e, t) => {
915
+ k(e, t);
916
+ let n = Object.getPrototypeOf(e);
917
+ if (n !== Object.prototype && n !== null) throw TypeError(`"${t}" expected plain object`);
918
+ if (Object.hasOwn(e, "__proto__")) throw TypeError(`"${t}.__proto__" is not allowed`);
108
919
  };
109
- function C(e, t = !0) {
920
+ function A(e, t = !0) {
110
921
  if (e.destroyed) throw Error("hash was destroyed");
111
922
  if (t && e.finished) throw Error("digest() was already called");
112
923
  }
113
- function ae(e, t) {
114
- S(e, void 0, "output");
924
+ function he(e, t) {
925
+ D(e, void 0, "output");
115
926
  let n = t.outputLen;
116
927
  if (!(e.length >= n)) throw RangeError("\"output\" expected length >= " + n);
117
928
  }
118
- function w(...e) {
929
+ function j(...e) {
119
930
  for (let t = 0; t < e.length; t++) e[t].fill(0);
120
931
  }
121
- function T(e) {
932
+ function M(e) {
122
933
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
123
934
  }
124
- function oe(e) {
935
+ function N(e) {
125
936
  if (typeof e != "string") throw TypeError("string expected");
126
- return new Uint8Array(new TextEncoder().encode(e));
937
+ let t = new TextEncoder().encode(e);
938
+ try {
939
+ return new Uint8Array(t);
940
+ } finally {
941
+ j(t);
942
+ }
127
943
  }
128
- function se(e, t = "") {
129
- return typeof e == "string" ? oe(e) : S(e, void 0, t);
944
+ function P(e, t = "") {
945
+ return typeof e == "string" ? N(e) : D(e, void 0, t);
130
946
  }
131
- function ce(e, t, n = "opts") {
132
- return ie(e, "defaults"), t !== void 0 && ie(t, n), Object.assign(e, t);
947
+ function ge(e, t, n = "opts") {
948
+ return me(e, "defaults"), t !== void 0 && me(t, n), Object.assign(Object.create(null), e, t);
133
949
  }
134
- function le(e, t = {}) {
950
+ function _e(e, t = {}) {
135
951
  if (typeof e != "function") throw TypeError("\"hashCons\" expected function, got type=" + typeof e);
136
- t = ce({}, t, "info");
952
+ t = ge({}, t, "info");
137
953
  let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
138
954
  return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
139
955
  }
140
- var ue = (e) => ({ oid: Uint8Array.from([
956
+ var ve = (e) => ({ oid: Uint8Array.from([
141
957
  6,
142
958
  9,
143
959
  96,
@@ -149,7 +965,7 @@ var ue = (e) => ({ oid: Uint8Array.from([
149
965
  4,
150
966
  2,
151
967
  e
152
- ]) }), de = class {
968
+ ]) }), F = class {
153
969
  oHash;
154
970
  iHash;
155
971
  blockLen;
@@ -158,20 +974,20 @@ var ue = (e) => ({ oid: Uint8Array.from([
158
974
  finished = !1;
159
975
  destroyed = !1;
160
976
  constructor(e, t) {
161
- if (re(e), S(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
977
+ if (O(e), D(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
162
978
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
163
979
  let n = this.blockLen, r = new Uint8Array(n);
164
980
  r.set(t.length > n ? e.create().update(t).digest() : t);
165
981
  for (let e = 0; e < r.length; e++) r[e] ^= 54;
166
982
  this.iHash.update(r), this.oHash = e.create();
167
983
  for (let e = 0; e < r.length; e++) r[e] ^= 106;
168
- this.oHash.update(r), w(r);
984
+ this.oHash.update(r), j(r);
169
985
  }
170
986
  update(e) {
171
- return C(this), this.iHash.update(e), this;
987
+ return A(this), this.iHash.update(e), this;
172
988
  }
173
989
  digestInto(e) {
174
- C(this), ae(e, this), this.finished = !0;
990
+ A(this), he(e, this), this.finished = !0;
175
991
  let t = e.subarray(0, this.outputLen);
176
992
  this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
177
993
  }
@@ -190,33 +1006,43 @@ var ue = (e) => ({ oid: Uint8Array.from([
190
1006
  destroy() {
191
1007
  this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
192
1008
  }
193
- }, fe = /* @__PURE__ */ (() => {
194
- let e = ((e, t, n) => new de(e, t).update(n).digest());
195
- return e.create = (e, t) => new de(e, t), e;
1009
+ }, I = /* @__PURE__ */ (() => {
1010
+ let e = ((e, t, n) => new F(e, t).update(n).digest());
1011
+ return e.create = (e, t) => new F(e, t), e;
196
1012
  })();
197
1013
  //#endregion
198
- //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/pbkdf2.js
199
- function pe(e, t, n, r) {
200
- re(e);
201
- let { c: i, dkLen: a, asyncTick: o } = ce({
1014
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/pbkdf2.js
1015
+ function ye(e, t, n, r) {
1016
+ O(e);
1017
+ let { c: i, dkLen: a, asyncTick: o } = ge({
202
1018
  dkLen: 32,
203
1019
  asyncTick: 10
204
1020
  }, r);
205
- if (x(i, "c"), x(a, "dkLen"), x(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
1021
+ if (E(i, "c"), E(a, "dkLen"), E(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
206
1022
  if (a < 1) throw Error("\"dkLen\" must be >= 1");
207
1023
  if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
208
- let s = se(t, "password"), c = se(n, "salt"), l = new Uint8Array(a), { iHash: u, oHash: d, outputLen: f } = fe.create(e, s);
209
- return {
210
- c: i,
211
- dkLen: a,
212
- asyncTick: o,
213
- DK: l,
214
- outputLen: f,
215
- eng: me(u, d, c, new Uint8Array(f))
216
- };
1024
+ let s = P(t, "password");
1025
+ try {
1026
+ let t = P(n, "salt");
1027
+ try {
1028
+ let n = new Uint8Array(a), { iHash: r, oHash: c, outputLen: l } = I.create(e, s);
1029
+ return {
1030
+ c: i,
1031
+ dkLen: a,
1032
+ asyncTick: o,
1033
+ DK: n,
1034
+ outputLen: l,
1035
+ eng: be(r, c, t, new Uint8Array(l))
1036
+ };
1037
+ } finally {
1038
+ typeof n == "string" && j(t);
1039
+ }
1040
+ } finally {
1041
+ typeof t == "string" && j(s);
1042
+ }
217
1043
  }
218
- function me(e, t, n, r) {
219
- let i = /* @__PURE__ */ new Uint8Array(4), a = T(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
1044
+ function be(e, t, n, r) {
1045
+ let i = /* @__PURE__ */ new Uint8Array(4), a = M(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
220
1046
  return {
221
1047
  u1: (e, n) => {
222
1048
  a.setInt32(0, e, !1), o._cloneInto(s).update(i).digestInto(r), t._cloneInto(s).update(r).digestInto(r), n.set(r.subarray(0, n.length));
@@ -227,11 +1053,11 @@ function me(e, t, n, r) {
227
1053
  for (let e = 0; e < i.length; e++) i[e] ^= r[e];
228
1054
  }
229
1055
  },
230
- output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), w(r), n)
1056
+ output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), j(r), n)
231
1057
  };
232
1058
  }
233
- function he(e, t, n, r) {
234
- let { c: i, dkLen: a, DK: o, outputLen: s, eng: c } = pe(e, t, n, r);
1059
+ function xe(e, t, n, r) {
1060
+ let { c: i, dkLen: a, DK: o, outputLen: s, eng: c } = ye(e, t, n, r);
235
1061
  for (let e = 1, t = 0; t < a; e++, t += s) {
236
1062
  let n = o.subarray(t, t + s);
237
1063
  c.u1(e, n), c.rounds(i, n);
@@ -239,39 +1065,39 @@ function he(e, t, n, r) {
239
1065
  return c.output(o);
240
1066
  }
241
1067
  //#endregion
242
- //#region ../../node_modules/.pnpm/@noble+hashes@2.3.0/node_modules/@noble/hashes/_u64.js
243
- var E = /* @__PURE__ */ BigInt(2 ** 32 - 1), ge = /* @__PURE__ */ BigInt(32);
244
- function _e(e, t = !1) {
1068
+ //#region ../../node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
1069
+ var Se = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ce = /* @__PURE__ */ BigInt(32);
1070
+ function we(e, t = !1) {
245
1071
  return t ? {
246
- h: Number(e & E),
247
- l: Number(e >> ge & E)
1072
+ h: Number(e & Se),
1073
+ l: Number(e >> Ce & Se)
248
1074
  } : {
249
- h: Number(e >> ge & E) | 0,
250
- l: Number(e & E) | 0
1075
+ h: Number(e >> Ce & Se) | 0,
1076
+ l: Number(e & Se) | 0
251
1077
  };
252
1078
  }
253
- function ve(e, t = !1) {
1079
+ function Te(e, t = !1) {
254
1080
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
255
1081
  for (let a = 0; a < n; a++) {
256
- let { h: n, l: o } = _e(e[a], t);
1082
+ let { h: n, l: o } = we(e[a], t);
257
1083
  [r[a], i[a]] = [n, o];
258
1084
  }
259
1085
  return [r, i];
260
1086
  }
261
- var ye = (e) => e / 2 ** 32 | 0, be = (e) => e >>> 0;
262
- function xe(e, t, n, r) {
263
- let i = ye(n), a = be(n);
1087
+ var L = (e) => e / 2 ** 32 | 0, Ee = (e) => e >>> 0;
1088
+ function De(e, t, n, r) {
1089
+ let i = L(n), a = Ee(n);
264
1090
  e.setUint32(t, r ? a : i, r), e.setUint32(t + 4, r ? i : a, r);
265
1091
  }
266
- var Se = (e, t, n) => e >>> n, Ce = (e, t, n) => e << 32 - n | t >>> n, D = (e, t, n) => e >>> n | t << 32 - n, O = (e, t, n) => e << 32 - n | t >>> n, k = (e, t, n) => e << 64 - n | t >>> n - 32, A = (e, t, n) => e >>> n - 32 | t << 64 - n;
267
- function j(e, t, n, r) {
1092
+ var R = (e, t, n) => e >>> n, Oe = (e, t, n) => e << 32 - n | t >>> n, z = (e, t, n) => e >>> n | t << 32 - n, B = (e, t, n) => e << 32 - n | t >>> n, ke = (e, t, n) => e << 64 - n | t >>> n - 32, Ae = (e, t, n) => e >>> n - 32 | t << 64 - n;
1093
+ function V(e, t, n, r) {
268
1094
  let i = (t >>> 0) + (r >>> 0);
269
1095
  return {
270
1096
  h: e + n + (i / 2 ** 32 | 0) | 0,
271
1097
  l: i | 0
272
1098
  };
273
1099
  }
274
- var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Ee = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), De = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Oe = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), ke = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Ae = class {
1100
+ var je = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Me = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, Ne = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), Pe = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, Fe = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), Ie = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, Le = class {
275
1101
  blockLen;
276
1102
  outputLen;
277
1103
  canXOF = !1;
@@ -284,15 +1110,15 @@ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t
284
1110
  pos = 0;
285
1111
  destroyed = !1;
286
1112
  constructor(e, t, n, r) {
287
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = T(this.buffer);
1113
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = M(this.buffer);
288
1114
  }
289
1115
  update(e) {
290
- C(this), S(e);
1116
+ A(this), D(e);
291
1117
  let { view: t, buffer: n, blockLen: r } = this, i = e.length, a = !1;
292
1118
  for (let o = 0; o < i;) {
293
1119
  let s = Math.min(r - this.pos, i - o);
294
1120
  if (s === r) {
295
- let t = T(e);
1121
+ let t = M(e);
296
1122
  for (; r <= i - o; o += r) this.process(t, o);
297
1123
  a = !0;
298
1124
  continue;
@@ -302,10 +1128,10 @@ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t
302
1128
  return this.length += e.length, a && this.roundClean(), this;
303
1129
  }
304
1130
  digestInto(e) {
305
- C(this), ae(e, this), this.finished = !0;
1131
+ A(this), he(e, this), this.finished = !0;
306
1132
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
307
- t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), xe(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
308
- let o = e === t ? n : T(e), s = this.outputLen, c = s / 4, l = this.get();
1133
+ t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), De(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
1134
+ let o = e === t ? n : M(e), s = this.outputLen, c = s / 4, l = this.get();
309
1135
  if (s % 4 || c > l.length) throw Error("invalid outputLen");
310
1136
  for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
311
1137
  }
@@ -322,7 +1148,7 @@ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t
322
1148
  clone() {
323
1149
  return this._cloneInto();
324
1150
  }
325
- }, je = /* @__PURE__ */ Uint32Array.from([
1151
+ }, Re = /* @__PURE__ */ Uint32Array.from([
326
1152
  1779033703,
327
1153
  4089235720,
328
1154
  3144134277,
@@ -339,7 +1165,7 @@ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t
339
1165
  4215389547,
340
1166
  1541459225,
341
1167
  327033209
342
- ]), Me = /* @__PURE__ */ ve((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Ne = Me[0], Pe = Me[1], M = /* @__PURE__ */ new Uint32Array(80), N = /* @__PURE__ */ new Uint32Array(80), Fe = class extends Ae {
1168
+ ]), ze = /* @__PURE__ */ Te((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), Be = ze[0], Ve = ze[1], H = /* @__PURE__ */ new Uint32Array(80), U = /* @__PURE__ */ new Uint32Array(80), He = class extends Le {
343
1169
  Ah = 0;
344
1170
  Al = 0;
345
1171
  Bh = 0;
@@ -387,35 +1213,37 @@ var we = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), Te = (e, t, n, r) => t
387
1213
  return (e ||= new this.constructor()).set(...this.get()), this._cloneIntoMeta(e);
388
1214
  }
389
1215
  process(e, t) {
390
- for (let n = 0; n < 16; n++, t += 4) M[n] = e.getUint32(t), N[n] = e.getUint32(t += 4);
1216
+ for (let n = 0; n < 16; n++, t += 4) H[n] = e.getUint32(t), U[n] = e.getUint32(t += 4);
391
1217
  for (let e = 16; e < 80; e++) {
392
- let t = M[e - 15] | 0, n = N[e - 15] | 0, r = D(t, n, 1) ^ D(t, n, 8) ^ Se(t, n, 7), i = O(t, n, 1) ^ O(t, n, 8) ^ Ce(t, n, 7), a = M[e - 2] | 0, o = N[e - 2] | 0, s = D(a, o, 19) ^ k(a, o, 61) ^ Se(a, o, 6), c = Ee(i, O(a, o, 19) ^ A(a, o, 61) ^ Ce(a, o, 6), N[e - 7], N[e - 16]), l = De(c, r, s, M[e - 7], M[e - 16]);
393
- M[e] = l | 0, N[e] = c | 0;
1218
+ let t = H[e - 15] | 0, n = U[e - 15] | 0, r = z(t, n, 1) ^ z(t, n, 8) ^ R(t, n, 7), i = B(t, n, 1) ^ B(t, n, 8) ^ Oe(t, n, 7), a = H[e - 2] | 0, o = U[e - 2] | 0, s = z(a, o, 19) ^ ke(a, o, 61) ^ R(a, o, 6), c = Ne(i, B(a, o, 19) ^ Ae(a, o, 61) ^ Oe(a, o, 6), U[e - 7], U[e - 16]), l = Pe(c, r, s, H[e - 7], H[e - 16]);
1219
+ H[e] = l | 0, U[e] = c | 0;
394
1220
  }
395
1221
  let { Ah: n, Al: r, Bh: i, Bl: a, Ch: o, Cl: s, Dh: c, Dl: l, Eh: u, El: d, Fh: f, Fl: p, Gh: m, Gl: h, Hh: g, Hl: _ } = this;
396
1222
  for (let e = 0; e < 80; e++) {
397
- let t = D(u, d, 14) ^ D(u, d, 18) ^ k(u, d, 41), ee = O(u, d, 14) ^ O(u, d, 18) ^ A(u, d, 41), te = u & f ^ ~u & m, ne = d & p ^ ~d & h, v = Oe(_, ee, ne, Pe[e], N[e]), y = ke(v, g, t, te, Ne[e], M[e]), b = v | 0, x = D(n, r, 28) ^ k(n, r, 34) ^ k(n, r, 39), S = O(n, r, 28) ^ A(n, r, 34) ^ A(n, r, 39), re = n & i ^ n & o ^ i & o, ie = r & a ^ r & s ^ a & s;
398
- g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = j(c | 0, l | 0, y | 0, b | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
399
- let C = we(b, S, ie);
400
- n = Te(C, y, x, re), r = C | 0;
1223
+ let t = z(u, d, 14) ^ z(u, d, 18) ^ ke(u, d, 41), ee = B(u, d, 14) ^ B(u, d, 18) ^ Ae(u, d, 41), te = u & f ^ ~u & m, v = d & p ^ ~d & h, y = Fe(_, ee, v, Ve[e], U[e]), b = Ie(y, g, t, te, Be[e], H[e]), x = y | 0, S = z(n, r, 28) ^ ke(n, r, 34) ^ ke(n, r, 39), C = B(n, r, 28) ^ Ae(n, r, 34) ^ Ae(n, r, 39), w = n & i ^ n & o ^ i & o, T = r & a ^ r & s ^ a & s;
1224
+ g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = V(c | 0, l | 0, b | 0, x | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
1225
+ let ne = je(x, C, T);
1226
+ n = Me(ne, b, S, w), r = ne | 0;
401
1227
  }
402
- ({h: n, l: r} = j(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = j(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = j(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = j(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = j(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = j(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = j(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = j(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
1228
+ ({h: n, l: r} = V(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = V(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = V(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = V(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = V(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = V(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = V(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = V(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
403
1229
  }
404
1230
  roundClean() {
405
- w(M, N);
1231
+ j(H, U);
406
1232
  }
407
1233
  destroy() {
408
- this.destroyed = !0, w(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1234
+ this.destroyed = !0, j(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
409
1235
  }
410
- }, Ie = class extends Fe {
1236
+ }, Ue = class extends He {
411
1237
  constructor() {
412
- super(64, je);
413
- }
414
- }, Le = /* @__PURE__ */ le(() => new Ie(), /* @__PURE__ */ ue(3)), Re = (t, n, r, i) => e.from(he(Le, t, n, {
415
- c: r,
416
- dkLen: i
417
- })), ze = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
418
- function Be(e, t) {
1238
+ super(64, Re);
1239
+ }
1240
+ }, We = /* @__PURE__ */ _e(() => new Ue(), /* @__PURE__ */ ve(3)), Ge = (e, t, n, r) => de.from(xe(We, e, t, {
1241
+ c: n,
1242
+ dkLen: r
1243
+ })), Ke = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", qe = Ke + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
1244
+ "" + Ke + qe;
1245
+ var Je = /* @__PURE__ */ RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
1246
+ function Ye(e, t) {
419
1247
  let n = [], r = t.exec(e);
420
1248
  for (; r;) {
421
1249
  let i = [];
@@ -426,13 +1254,13 @@ function Be(e, t) {
426
1254
  }
427
1255
  return n;
428
1256
  }
429
- var Ve = function(e) {
430
- return ze.exec(e) != null;
1257
+ var Xe = function(e) {
1258
+ return Je.exec(e) != null;
431
1259
  };
432
- function He(e) {
1260
+ function Ze(e) {
433
1261
  return e !== void 0;
434
1262
  }
435
- var P = [
1263
+ var Qe = [
436
1264
  "hasOwnProperty",
437
1265
  "toString",
438
1266
  "valueOf",
@@ -440,24 +1268,24 @@ var P = [
440
1268
  "__defineSetter__",
441
1269
  "__lookupGetter__",
442
1270
  "__lookupSetter__"
443
- ], Ue = [
1271
+ ], $e = [
444
1272
  "__proto__",
445
1273
  "constructor",
446
1274
  "prototype"
447
- ], We = {
1275
+ ], et = {
448
1276
  allowBooleanAttributes: !1,
449
1277
  unpairedTags: []
450
1278
  };
451
- function Ge(e, t) {
452
- t = Object.assign({}, We, t);
1279
+ function tt(e, t) {
1280
+ t = Object.assign({}, et, t);
453
1281
  let n = [], r = !1, i = !1;
454
1282
  e[0] === "" && (e = e.substr(1));
455
1283
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
456
- if (a += 2, a = qe(e, a), a.err) return a;
1284
+ if (a += 2, a = nt(e, a), a.err) return a;
457
1285
  } else if (e[a] === "<") {
458
1286
  let o = a;
459
1287
  if (a++, e[a] === "!") {
460
- a = Je(e, a);
1288
+ a = rt(e, a);
461
1289
  continue;
462
1290
  }
463
1291
  {
@@ -465,35 +1293,35 @@ function Ge(e, t) {
465
1293
  e[a] === "/" && (s = !0, a++);
466
1294
  let c = "";
467
1295
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
468
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !rt(c)) {
1296
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !ft(c)) {
469
1297
  let t;
470
- return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", F("InvalidTag", t, I(e, a));
1298
+ return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", G("InvalidTag", t, K(e, a));
471
1299
  }
472
- let l = Ze(e, a);
473
- if (l === !1) return F("InvalidAttr", "Attributes for '" + c + "' have open quote.", I(e, a));
1300
+ let l = ot(e, a);
1301
+ if (l === !1) return G("InvalidAttr", "Attributes for '" + c + "' have open quote.", K(e, a));
474
1302
  let u = l.value;
475
1303
  if (a = l.index, u[u.length - 1] === "/") {
476
1304
  let n = a - u.length;
477
1305
  u = u.substring(0, u.length - 1);
478
- let i = $e(u, t);
1306
+ let i = ct(u, t);
479
1307
  if (i === !0) r = !0;
480
- else return F(i.err.code, i.err.msg, I(e, n + i.err.line));
1308
+ else return G(i.err.code, i.err.msg, K(e, n + i.err.line));
481
1309
  } else if (s) {
482
- if (!l.tagClosed) return F("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", I(e, a));
483
- if (u.trim().length > 0) return F("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", I(e, o));
484
- if (n.length === 0) return F("InvalidTag", "Closing tag '" + c + "' has not been opened.", I(e, o));
1310
+ if (!l.tagClosed) return G("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", K(e, a));
1311
+ if (u.trim().length > 0) return G("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", K(e, o));
1312
+ if (n.length === 0) return G("InvalidTag", "Closing tag '" + c + "' has not been opened.", K(e, o));
485
1313
  {
486
1314
  let t = n.pop();
487
1315
  if (c !== t.tagName) {
488
- let n = I(e, t.tagStartPos);
489
- return F("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", I(e, o));
1316
+ let n = K(e, t.tagStartPos);
1317
+ return G("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", K(e, o));
490
1318
  }
491
1319
  n.length == 0 && (i = !0);
492
1320
  }
493
1321
  } else {
494
- let s = $e(u, t);
495
- if (s !== !0) return F(s.err.code, s.err.msg, I(e, a - u.length + s.err.line));
496
- if (i === !0) return F("InvalidXml", "Multiple possible root nodes found.", I(e, a));
1322
+ let s = ct(u, t);
1323
+ if (s !== !0) return G(s.err.code, s.err.msg, K(e, a - u.length + s.err.line));
1324
+ if (i === !0) return G("InvalidXml", "Multiple possible root nodes found.", K(e, a));
497
1325
  t.unpairedTags.indexOf(c) !== -1 || n.push({
498
1326
  tagName: c,
499
1327
  tagStartPos: o
@@ -501,36 +1329,36 @@ function Ge(e, t) {
501
1329
  }
502
1330
  for (a++; a < e.length; a++) if (e[a] === "<") {
503
1331
  if (e[a + 1] === "!") {
504
- a++, a = Je(e, a);
1332
+ a++, a = rt(e, a);
505
1333
  continue;
506
1334
  }
507
1335
  if (e[a + 1] === "?") {
508
- if (a = qe(e, ++a), a.err) return a;
1336
+ if (a = nt(e, ++a), a.err) return a;
509
1337
  } else break;
510
1338
  } else if (e[a] === "&") {
511
- let t = tt(e, a);
512
- if (t == -1) return F("InvalidChar", "char '&' is not expected.", I(e, a));
1339
+ let t = ut(e, a);
1340
+ if (t == -1) return G("InvalidChar", "char '&' is not expected.", K(e, a));
513
1341
  a = t;
514
- } else if (i === !0 && !Ke(e[a])) return F("InvalidXml", "Extra text at the end", I(e, a));
1342
+ } else if (i === !0 && !W(e[a])) return G("InvalidXml", "Extra text at the end", K(e, a));
515
1343
  e[a] === "<" && a--;
516
1344
  }
517
1345
  } else {
518
- if (Ke(e[a])) continue;
519
- return F("InvalidChar", "char '" + e[a] + "' is not expected.", I(e, a));
1346
+ if (W(e[a])) continue;
1347
+ return G("InvalidChar", "char '" + e[a] + "' is not expected.", K(e, a));
520
1348
  }
521
- return r ? n.length == 1 ? F("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", I(e, n[0].tagStartPos)) : n.length > 0 ? F("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
1349
+ return r ? n.length == 1 ? G("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", K(e, n[0].tagStartPos)) : n.length > 0 ? G("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
522
1350
  line: 1,
523
1351
  col: 1
524
- }) : !0 : F("InvalidXml", "Start tag expected.", 1);
1352
+ }) : !0 : G("InvalidXml", "Start tag expected.", 1);
525
1353
  }
526
- function Ke(e) {
1354
+ function W(e) {
527
1355
  return e === " " || e === " " || e === "\n" || e === "\r";
528
1356
  }
529
- function qe(e, t) {
1357
+ function nt(e, t) {
530
1358
  let n = t;
531
1359
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
532
1360
  let r = e.substr(n, t - n);
533
- if (t > 5 && r === "xml") return F("InvalidXml", "XML declaration allowed only at the start of the document.", I(e, t));
1361
+ if (t > 5 && r === "xml") return G("InvalidXml", "XML declaration allowed only at the start of the document.", K(e, t));
534
1362
  if (e[t] == "?" && e[t + 1] == ">") {
535
1363
  t++;
536
1364
  break;
@@ -539,7 +1367,7 @@ function qe(e, t) {
539
1367
  }
540
1368
  return t;
541
1369
  }
542
- function Je(e, t) {
1370
+ function rt(e, t) {
543
1371
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
544
1372
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
545
1373
  t += 2;
@@ -557,11 +1385,11 @@ function Je(e, t) {
557
1385
  }
558
1386
  return t;
559
1387
  }
560
- var Ye = "\"", Xe = "'";
561
- function Ze(e, t) {
1388
+ var it = "\"", at = "'";
1389
+ function ot(e, t) {
562
1390
  let n = "", r = "", i = !1;
563
1391
  for (; t < e.length; t++) {
564
- if (e[t] === Ye || e[t] === Xe) r === "" ? r = e[t] : r !== e[t] || (r = "");
1392
+ if (e[t] === it || e[t] === at) r === "" ? r = e[t] : r !== e[t] || (r = "");
565
1393
  else if (e[t] === ">" && r === "") {
566
1394
  i = !0;
567
1395
  break;
@@ -574,21 +1402,46 @@ function Ze(e, t) {
574
1402
  tagClosed: i
575
1403
  };
576
1404
  }
577
- var Qe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
578
- function $e(e, t) {
579
- let n = Be(e, Qe), r = {};
1405
+ function st(e) {
1406
+ let t = [], n = e.length, r = 0;
1407
+ for (; r < n;) {
1408
+ let i = r;
1409
+ for (; r < n && W(e[r]);) r++;
1410
+ if (r >= n) break;
1411
+ if (e[r] === "=") {
1412
+ r = i + 1;
1413
+ continue;
1414
+ }
1415
+ let a = e.slice(i, r), o = r;
1416
+ for (; r < n && !W(e[r]) && e[r] !== "=";) r++;
1417
+ let s = e.slice(o, r), c, l = r;
1418
+ for (; l < n && W(e[l]);) l++;
1419
+ l < n && e[l] === "=" && (c = e.slice(r, l + 1), r = l + 1);
1420
+ let u, d, f = r;
1421
+ for (; f < n && W(e[f]);) f++;
1422
+ if (f < n && (e[f] === "\"" || e[f] === "'")) {
1423
+ let t = f + 1, n = e.indexOf(e[f], t);
1424
+ n !== -1 && (u = e[f], d = e.slice(t, n), r = n + 1);
1425
+ }
1426
+ let p = { startIndex: i };
1427
+ p[1] = a, p[2] = s, p[3] = c, p[4] = u !== void 0 || void 0, p[5] = u, p[6] = d, t.push(p);
1428
+ }
1429
+ return t;
1430
+ }
1431
+ function ct(e, t) {
1432
+ let n = st(e), r = {};
580
1433
  for (let e = 0; e < n.length; e++) {
581
- if (n[e][1].length === 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", L(n[e]));
582
- if (n[e][3] !== void 0 && n[e][4] === void 0) return F("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", L(n[e]));
583
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return F("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", L(n[e]));
1434
+ if (n[e][1].length === 0) return G("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", pt(n[e]));
1435
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return G("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", pt(n[e]));
1436
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return G("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", pt(n[e]));
584
1437
  let i = n[e][2];
585
- if (!nt(i)) return F("InvalidAttr", "Attribute '" + i + "' is an invalid name.", L(n[e]));
1438
+ if (!dt(i)) return G("InvalidAttr", "Attribute '" + i + "' is an invalid name.", pt(n[e]));
586
1439
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
587
- else return F("InvalidAttr", "Attribute '" + i + "' is repeated.", L(n[e]));
1440
+ else return G("InvalidAttr", "Attribute '" + i + "' is repeated.", pt(n[e]));
588
1441
  }
589
1442
  return !0;
590
1443
  }
591
- function et(e, t) {
1444
+ function lt(e, t) {
592
1445
  let n = /\d/;
593
1446
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
594
1447
  if (e[t] === ";") return t;
@@ -596,9 +1449,9 @@ function et(e, t) {
596
1449
  }
597
1450
  return -1;
598
1451
  }
599
- function tt(e, t) {
1452
+ function ut(e, t) {
600
1453
  if (t++, e[t] === ";") return -1;
601
- if (e[t] === "#") return t++, et(e, t);
1454
+ if (e[t] === "#") return t++, lt(e, t);
602
1455
  let n = 0;
603
1456
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
604
1457
  if (e[t] === ";") break;
@@ -606,7 +1459,7 @@ function tt(e, t) {
606
1459
  }
607
1460
  return t;
608
1461
  }
609
- function F(e, t, n) {
1462
+ function G(e, t, n) {
610
1463
  return { err: {
611
1464
  code: e,
612
1465
  msg: t,
@@ -614,25 +1467,25 @@ function F(e, t, n) {
614
1467
  col: n.col
615
1468
  } };
616
1469
  }
617
- function nt(e) {
618
- return Ve(e);
1470
+ function dt(e) {
1471
+ return Xe(e);
619
1472
  }
620
- function rt(e) {
621
- return Ve(e);
1473
+ function ft(e) {
1474
+ return Xe(e);
622
1475
  }
623
- function I(e, t) {
1476
+ function K(e, t) {
624
1477
  let n = e.substring(0, t).split(/\r?\n/);
625
1478
  return {
626
1479
  line: n.length,
627
1480
  col: n[n.length - 1].length + 1
628
1481
  };
629
1482
  }
630
- function L(e) {
1483
+ function pt(e) {
631
1484
  return e.startIndex + e[1].length;
632
1485
  }
633
1486
  //#endregion
634
- //#region ../../node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/entities.js
635
- var it = {
1487
+ //#region ../../node_modules/.pnpm/@nodable+entities@3.1.0/node_modules/@nodable/entities/src/entities.js
1488
+ var mt = {
636
1489
  cent: "¢",
637
1490
  pound: "£",
638
1491
  curren: "¤",
@@ -648,13 +1501,13 @@ var it = {
648
1501
  won: "₩",
649
1502
  yuan: "¥",
650
1503
  cedil: "¸"
651
- }, at = {
1504
+ }, ht = {
652
1505
  amp: "&",
653
1506
  apos: "'",
654
1507
  gt: ">",
655
1508
  lt: "<",
656
1509
  quot: "\""
657
- }, ot = {
1510
+ }, gt = {
658
1511
  nbsp: "\xA0",
659
1512
  copy: "©",
660
1513
  reg: "®",
@@ -675,17 +1528,17 @@ var it = {
675
1528
  frac12: "½",
676
1529
  frac14: "¼",
677
1530
  frac34: "¾"
678
- }, R = Object.freeze({
1531
+ }, _t = Object.freeze({
679
1532
  ALLOW: "allow",
680
1533
  BLOCK: "block",
681
1534
  THROW: "throw"
682
- }), st = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
683
- function ct(e) {
1535
+ }), vt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1536
+ function yt(e) {
684
1537
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
685
- for (let t of e) if (st.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1538
+ for (let t of e) if (vt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
686
1539
  return e;
687
1540
  }
688
- function z(...e) {
1541
+ function bt(...e) {
689
1542
  let t = Object.create(null);
690
1543
  for (let n of e) if (n) for (let e of Object.keys(n)) {
691
1544
  let r = n[e];
@@ -697,65 +1550,65 @@ function z(...e) {
697
1550
  }
698
1551
  return t;
699
1552
  }
700
- var B = "external", V = "base", H = "all";
701
- function lt(e) {
702
- return !e || e === B ? /* @__PURE__ */ new Set([B]) : e === H ? /* @__PURE__ */ new Set([H]) : e === V ? /* @__PURE__ */ new Set([V]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([B]);
1553
+ var q = "external", xt = "base", St = "all";
1554
+ function Ct(e) {
1555
+ return !e || e === q ? /* @__PURE__ */ new Set([q]) : e === St ? /* @__PURE__ */ new Set([St]) : e === xt ? /* @__PURE__ */ new Set([xt]) : Array.isArray(e) ? new Set(e) : /* @__PURE__ */ new Set([q]);
703
1556
  }
704
- var U = Object.freeze({
1557
+ var J = Object.freeze({
705
1558
  allow: 0,
706
1559
  leave: 1,
707
1560
  remove: 2,
708
1561
  throw: 3
709
- }), ut = /* @__PURE__ */ new Set([
1562
+ }), wt = /* @__PURE__ */ new Set([
710
1563
  9,
711
1564
  10,
712
1565
  13
713
1566
  ]);
714
- function dt(e) {
1567
+ function Tt(e) {
715
1568
  if (!e) return {
716
1569
  xmlVersion: 1,
717
- onLevel: U.allow,
718
- nullLevel: U.remove
1570
+ onLevel: J.allow,
1571
+ nullLevel: J.remove
719
1572
  };
720
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = U[e.onNCR] ?? U.allow, r = U[e.nullNCR] ?? U.remove;
1573
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = J[e.onNCR] ?? J.allow, r = J[e.nullNCR] ?? J.remove;
721
1574
  return {
722
1575
  xmlVersion: t,
723
1576
  onLevel: n,
724
- nullLevel: Math.max(r, U.remove)
1577
+ nullLevel: Math.max(r, J.remove)
725
1578
  };
726
1579
  }
727
- var ft = class {
1580
+ var Et = class {
728
1581
  constructor(e = {}) {
729
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = lt(this._limit.applyLimitsTo ?? B), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = z(at, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
730
- let t = dt(e.ncr);
1582
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = Ct(this._limit.applyLimitsTo ?? q), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = bt(ht, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1583
+ let t = Tt(e.ncr);
731
1584
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
732
1585
  }
733
1586
  _applyRegistrationHook(e, t, n, r) {
734
1587
  if (!e) return !0;
735
1588
  let i = e(t, n);
736
- if (i === R.BLOCK) return !1;
737
- if (i === R.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
1589
+ if (i === _t.BLOCK) return !1;
1590
+ if (i === _t.THROW) throw Error(`[EntityDecoder] Registration of ${r} entity "&${t};" was rejected by hook`);
738
1591
  return !0;
739
1592
  }
740
1593
  setExternalEntities(e) {
741
- if (e) for (let t of Object.keys(e)) ct(t);
1594
+ if (e) for (let t of Object.keys(e)) yt(t);
742
1595
  if (!this._onExternalEntity) {
743
- this._externalMap = z(e);
1596
+ this._externalMap = bt(e);
744
1597
  return;
745
1598
  }
746
- let t = z(e), n = Object.create(null);
1599
+ let t = bt(e), n = Object.create(null);
747
1600
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onExternalEntity, e, r, "external") && (n[e] = r);
748
1601
  this._externalMap = n;
749
1602
  }
750
1603
  addExternalEntity(e, t) {
751
- ct(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
1604
+ yt(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
752
1605
  }
753
1606
  addInputEntities(e) {
754
1607
  if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
755
- this._inputMap = z(e);
1608
+ this._inputMap = bt(e);
756
1609
  return;
757
1610
  }
758
- let t = z(e), n = Object.create(null);
1611
+ let t = bt(e), n = Object.create(null);
759
1612
  for (let [e, r] of Object.entries(t)) this._applyRegistrationHook(this._onInputEntity, e, r, "input") && (n[e] = r);
760
1613
  this._inputMap = n;
761
1614
  }
@@ -785,7 +1638,7 @@ var ft = class {
785
1638
  continue;
786
1639
  }
787
1640
  let u, d;
788
- if (this._removeSet.has(l)) u = "", d === void 0 && (d = B);
1641
+ if (this._removeSet.has(l)) u = "", d === void 0 && (d = q);
789
1642
  else if (this._leaveSet.has(l)) {
790
1643
  a++;
791
1644
  continue;
@@ -795,7 +1648,7 @@ var ft = class {
795
1648
  a++;
796
1649
  continue;
797
1650
  }
798
- u = e, d = V;
1651
+ u = e, d = xt;
799
1652
  } else {
800
1653
  let e = this._resolveName(l);
801
1654
  u = e?.value, d = e?.tier;
@@ -817,31 +1670,31 @@ var ft = class {
817
1670
  return this._postCheck(l, t);
818
1671
  }
819
1672
  _tierCounts(e) {
820
- return this._limitTiers.has(H) ? !0 : this._limitTiers.has(e);
1673
+ return this._limitTiers.has(St) ? !0 : this._limitTiers.has(e);
821
1674
  }
822
1675
  _resolveName(e) {
823
1676
  if (e in this._inputMap) return {
824
1677
  value: this._inputMap[e],
825
- tier: B
1678
+ tier: q
826
1679
  };
827
1680
  if (e in this._externalMap) return {
828
1681
  value: this._externalMap[e],
829
- tier: B
1682
+ tier: q
830
1683
  };
831
1684
  if (e in this._baseMap) return {
832
1685
  value: this._baseMap[e],
833
- tier: V
1686
+ tier: xt
834
1687
  };
835
1688
  }
836
1689
  _classifyNCR(e) {
837
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !ut.has(e) ? U.remove : -1;
1690
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !wt.has(e) ? J.remove : -1;
838
1691
  }
839
1692
  _applyNCRAction(e, t, n) {
840
1693
  switch (e) {
841
- case U.allow: return String.fromCodePoint(n);
842
- case U.remove: return "";
843
- case U.leave: return;
844
- case U.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1694
+ case J.allow: return String.fromCodePoint(n);
1695
+ case J.remove: return "";
1696
+ case J.leave: return;
1697
+ case J.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
845
1698
  default: return String.fromCodePoint(n);
846
1699
  }
847
1700
  }
@@ -849,11 +1702,11 @@ var ft = class {
849
1702
  let t = e.charCodeAt(1), n;
850
1703
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
851
1704
  let r = this._classifyNCR(n);
852
- if (!this._numericAllowed && r < U.remove) return;
1705
+ if (!this._numericAllowed && r < J.remove) return;
853
1706
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
854
1707
  return this._applyNCRAction(i, e, n);
855
1708
  }
856
- }, pt = (e) => P.includes(e) ? "__" + e : e, mt = {
1709
+ }, Dt = (e) => Qe.includes(e) ? "__" + e : e, Ot = {
857
1710
  preserveOrder: !1,
858
1711
  attributeNamePrefix: "@_",
859
1712
  attributesGroupName: !1,
@@ -896,14 +1749,14 @@ var ft = class {
896
1749
  maxNestedTags: 100,
897
1750
  strictReservedNames: !0,
898
1751
  jPath: !0,
899
- onDangerousProperty: pt
1752
+ onDangerousProperty: Dt
900
1753
  };
901
- function ht(e, t) {
1754
+ function kt(e, t) {
902
1755
  if (typeof e != "string") return;
903
1756
  let n = e.toLowerCase();
904
- if (P.some((e) => n === e.toLowerCase()) || Ue.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1757
+ if (Qe.some((e) => n === e.toLowerCase()) || $e.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
905
1758
  }
906
- function gt(e, t) {
1759
+ function At(e, t) {
907
1760
  return typeof e == "boolean" ? {
908
1761
  enabled: e,
909
1762
  maxEntitySize: 1e4,
@@ -924,10 +1777,10 @@ function gt(e, t) {
924
1777
  allowedTags: e.allowedTags ?? null,
925
1778
  tagFilter: e.tagFilter ?? null,
926
1779
  appliesTo: e.appliesTo ?? "all"
927
- } : gt(!0);
1780
+ } : At(!0);
928
1781
  }
929
- var _t = function(e) {
930
- let t = Object.assign({}, mt, e), n = [
1782
+ var jt = function(e) {
1783
+ let t = Object.assign({}, Ot, e), n = [
931
1784
  {
932
1785
  value: t.attributeNamePrefix,
933
1786
  name: "attributeNamePrefix"
@@ -949,9 +1802,9 @@ var _t = function(e) {
949
1802
  name: "commentPropName"
950
1803
  }
951
1804
  ];
952
- for (let { value: e, name: t } of n) e && ht(e, t);
953
- return t.onDangerousProperty === null && (t.onDangerousProperty = pt), t.processEntities = gt(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
954
- }, W = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", G = class {
1805
+ for (let { value: e, name: t } of n) e && kt(e, t);
1806
+ return t.onDangerousProperty === null && (t.onDangerousProperty = Dt), t.processEntities = At(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1807
+ }, Mt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", Y = class {
955
1808
  constructor(e) {
956
1809
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
957
1810
  }
@@ -965,16 +1818,16 @@ var _t = function(e) {
965
1818
  }) : this.child.push({ [e.tagname]: e.child }), this.addStartIndex(t);
966
1819
  }
967
1820
  addStartIndex(e) {
968
- e !== void 0 && (this.child[this.child.length - 1][W] = { startIndex: e });
1821
+ e !== void 0 && (this.child[this.child.length - 1][Mt] = { startIndex: e });
969
1822
  }
970
1823
  addEndIndex(e) {
971
1824
  let t = this.child[this.child.length - 1];
972
- t !== void 0 && t[W] !== void 0 && t[W].endIndex === void 0 && (t[W].endIndex = e);
1825
+ t !== void 0 && t[Mt] !== void 0 && t[Mt].endIndex === void 0 && (t[Mt].endIndex = e);
973
1826
  }
974
1827
  static getMetaDataSymbol() {
975
- return W;
1828
+ return Mt;
976
1829
  }
977
- }, vt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", yt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", bt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", xt = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀", K = (e, t, n = "") => {
1830
+ }, Nt = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Pt = Nt + "\\-\\.\\d·̀-ͯ‿-⁀", Ft = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", It = Ft + "\\-\\.\\d·̀-ͯ҇‿-⁀", Lt = (e, t, n = "") => {
978
1831
  let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
979
1832
  return {
980
1833
  name: RegExp(`^[${e}][${t}]*$`, n),
@@ -983,15 +1836,15 @@ var _t = function(e) {
983
1836
  nmToken: RegExp(`^[${t}]+$`, n),
984
1837
  nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
985
1838
  };
986
- }, St = K(vt, yt), Ct = K(bt, xt, "u"), wt = K(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Tt = (e = "1.0", t = !1) => t ? wt : e === "1.1" ? Ct : St, Et = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Tt(t, n).qName.test(e), Dt = [
1839
+ }, Rt = Lt(Nt, Pt), zt = Lt(Ft, It, "u"), Bt = Lt(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Vt = (e = "1.0", t = !1) => t ? Bt : e === "1.1" ? zt : Rt, Ht = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Vt(t, n).qName.test(e), Ut = [
987
1840
  "name",
988
1841
  "ncName",
989
1842
  "qName",
990
1843
  "nmToken",
991
1844
  "nmTokens"
992
- ], Ot = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
993
- if (!Dt.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Dt.join(", ")}`);
994
- let i = Tt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
1845
+ ], Wt = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
1846
+ if (!Ut.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Ut.join(", ")}`);
1847
+ let i = Vt(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
995
1848
  let t = a.get(e);
996
1849
  if (t !== void 0) return t;
997
1850
  let n = i.test(e);
@@ -1000,7 +1853,7 @@ var _t = function(e) {
1000
1853
  return o.reset = () => {
1001
1854
  a = /* @__PURE__ */ new Map();
1002
1855
  }, o;
1003
- }, kt = class {
1856
+ }, Gt = class {
1004
1857
  constructor(e, t) {
1005
1858
  this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1006
1859
  }
@@ -1022,23 +1875,23 @@ var _t = function(e) {
1022
1875
  continue;
1023
1876
  }
1024
1877
  if (e[t] === "<" && !o) {
1025
- if (a && J(e, "!ENTITY", t)) {
1878
+ if (a && Z(e, "!ENTITY", t)) {
1026
1879
  t += 7;
1027
1880
  let i, a;
1028
1881
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
1029
1882
  if (this.options.enabled !== !1 && this.options.maxEntityCount != null && r >= this.options.maxEntityCount) throw Error(`Entity count (${r + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
1030
1883
  n[i] = a, r++;
1031
1884
  }
1032
- } else if (a && J(e, "!ELEMENT", t)) {
1885
+ } else if (a && Z(e, "!ELEMENT", t)) {
1033
1886
  t += 8;
1034
1887
  let { index: n } = this.readElementExp(e, t + 1);
1035
1888
  t = n;
1036
- } else if (a && J(e, "!ATTLIST", t)) t += 8;
1037
- else if (a && J(e, "!NOTATION", t)) {
1889
+ } else if (a && Z(e, "!ATTLIST", t)) t += 8;
1890
+ else if (a && Z(e, "!NOTATION", t)) {
1038
1891
  t += 9;
1039
1892
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
1040
1893
  t = n;
1041
- } else if (J(e, "!--", t)) o = !0;
1894
+ } else if (Z(e, "!--", t)) o = !0;
1042
1895
  else throw Error("Invalid DOCTYPE");
1043
1896
  i++, c = "";
1044
1897
  } else if (e[t] === ">") {
@@ -1053,11 +1906,11 @@ var _t = function(e) {
1053
1906
  };
1054
1907
  }
1055
1908
  readEntityExp(e, t) {
1056
- t = q(e, t);
1909
+ t = X(e, t);
1057
1910
  let n = t;
1058
1911
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
1059
1912
  let r = e.substring(n, t);
1060
- if (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), !this.suppressValidationErr) {
1913
+ if (Kt(r, { xmlVersion: this.xmlVersion }), t = X(e, t), !this.suppressValidationErr) {
1061
1914
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
1062
1915
  if (e[t] === "%") throw Error("Parameter entities are not supported");
1063
1916
  }
@@ -1070,16 +1923,16 @@ var _t = function(e) {
1070
1923
  ];
1071
1924
  }
1072
1925
  readNotationExp(e, t) {
1073
- t = q(e, t);
1926
+ t = X(e, t);
1074
1927
  let n = t;
1075
1928
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1076
1929
  let r = e.substring(n, t);
1077
- !this.suppressValidationErr && Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t);
1930
+ !this.suppressValidationErr && Kt(r, { xmlVersion: this.xmlVersion }), t = X(e, t);
1078
1931
  let i = e.substring(t, t + 6).toUpperCase();
1079
1932
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
1080
- t += i.length, t = q(e, t);
1933
+ t += i.length, t = X(e, t);
1081
1934
  let a = null, o = null;
1082
- if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = q(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1935
+ if (i === "PUBLIC") [t, a] = this.readIdentifierVal(e, t, "publicIdentifier"), t = X(e, t), (e[t] === "\"" || e[t] === "'") && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"));
1083
1936
  else if (i === "SYSTEM" && ([t, o] = this.readIdentifierVal(e, t, "systemIdentifier"), !this.suppressValidationErr && !o)) throw Error("Missing mandatory system identifier for SYSTEM notation");
1084
1937
  return {
1085
1938
  notationName: r,
@@ -1098,15 +1951,15 @@ var _t = function(e) {
1098
1951
  return t++, [t, r];
1099
1952
  }
1100
1953
  readElementExp(e, t) {
1101
- t = q(e, t);
1954
+ t = X(e, t);
1102
1955
  let n = t;
1103
1956
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1104
1957
  let r = e.substring(n, t);
1105
- if (!this.suppressValidationErr && !Et(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1106
- t = q(e, t);
1958
+ if (!this.suppressValidationErr && !Ht(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
1959
+ t = X(e, t);
1107
1960
  let i = "";
1108
- if (e[t] === "E" && J(e, "MPTY", t)) t += 4;
1109
- else if (e[t] === "A" && J(e, "NY", t)) t += 2;
1961
+ if (e[t] === "E" && Z(e, "MPTY", t)) t += 4;
1962
+ else if (e[t] === "A" && Z(e, "NY", t)) t += 2;
1110
1963
  else if (e[t] === "(") {
1111
1964
  t++;
1112
1965
  let n = t;
@@ -1120,25 +1973,25 @@ var _t = function(e) {
1120
1973
  };
1121
1974
  }
1122
1975
  readAttlistExp(e, t) {
1123
- t = q(e, t);
1976
+ t = X(e, t);
1124
1977
  let n = t;
1125
1978
  for (; t < e.length && !/\s/.test(e[t]);) t++;
1126
1979
  let r = e.substring(n, t);
1127
- for (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1980
+ for (Kt(r, { xmlVersion: this.xmlVersion }), t = X(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
1128
1981
  let i = e.substring(n, t);
1129
- if (!Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1130
- t = q(e, t);
1982
+ if (!Kt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
1983
+ t = X(e, t);
1131
1984
  let a = "";
1132
1985
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
1133
- if (a = "NOTATION", t += 8, t = q(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1986
+ if (a = "NOTATION", t += 8, t = X(e, t), e[t] !== "(") throw Error(`Expected '(', found "${e[t]}"`);
1134
1987
  t++;
1135
1988
  let n = [];
1136
1989
  for (; t < e.length && e[t] !== ")";) {
1137
1990
  let r = t;
1138
1991
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
1139
1992
  let i = e.substring(r, t);
1140
- if (i = i.trim(), !Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1141
- n.push(i), e[t] === "|" && (t++, t = q(e, t));
1993
+ if (i = i.trim(), !Kt(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
1994
+ n.push(i), e[t] === "|" && (t++, t = X(e, t));
1142
1995
  }
1143
1996
  if (e[t] !== ")") throw Error("Unterminated list of notations");
1144
1997
  t++, a += " (" + n.join("|") + ")";
@@ -1156,7 +2009,7 @@ var _t = function(e) {
1156
2009
  "NMTOKENS"
1157
2010
  ].includes(a.toUpperCase())) throw Error(`Invalid attribute type: "${a}"`);
1158
2011
  }
1159
- t = q(e, t);
2012
+ t = X(e, t);
1160
2013
  let o = "";
1161
2014
  return e.substring(t, t + 8).toUpperCase() === "#REQUIRED" ? (o = "#REQUIRED", t += 8) : e.substring(t, t + 7).toUpperCase() === "#IMPLIED" ? (o = "#IMPLIED", t += 7) : [t, o] = this.readIdentifierVal(e, t, "ATTLIST"), {
1162
2015
  elementName: r,
@@ -1166,21 +2019,21 @@ var _t = function(e) {
1166
2019
  index: t
1167
2020
  };
1168
2021
  }
1169
- }, q = (e, t) => {
2022
+ }, X = (e, t) => {
1170
2023
  for (; t < e.length && /\s/.test(e[t]);) t++;
1171
2024
  return t;
1172
2025
  };
1173
- function J(e, t, n) {
2026
+ function Z(e, t, n) {
1174
2027
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
1175
2028
  return !0;
1176
2029
  }
1177
- function Y(e, t) {
1178
- if (Et(e, { xmlVersion: t })) return e;
2030
+ function Kt(e, t) {
2031
+ if (Ht(e, { xmlVersion: t })) return e;
1179
2032
  throw Error(`Invalid entity name ${e}`);
1180
2033
  }
1181
2034
  //#endregion
1182
2035
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
1183
- var At = [
2036
+ var qt = [
1184
2037
  48,
1185
2038
  1632,
1186
2039
  1776,
@@ -1242,28 +2095,28 @@ var At = [
1242
2095
  124144,
1243
2096
  125264,
1244
2097
  130032
1245
- ], X = /* @__PURE__ */ new Map(), jt = 65535, Mt = 1632, Nt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
1246
- for (let e of At) for (let t = 0; t < 10; t++) {
2098
+ ], Jt = /* @__PURE__ */ new Map(), Yt = 65535, Xt = 1632, Zt = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
2099
+ for (let e of qt) for (let t = 0; t < 10; t++) {
1247
2100
  let n = e + t;
1248
- n <= jt ? Nt[n - Mt] = t : X.set(n, t);
2101
+ n <= Yt ? Zt[n - Xt] = t : Jt.set(n, t);
1249
2102
  }
1250
2103
  //#endregion
1251
2104
  //#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
1252
- var Pt = 48, Ft = 57, It = 45, Z = /* @__PURE__ */ new Set([
2105
+ var Qt = 48, $t = 57, en = 45, tn = /* @__PURE__ */ new Set([
1253
2106
  8722,
1254
2107
  65293,
1255
2108
  65123
1256
2109
  ]);
1257
- function Lt(e) {
2110
+ function nn(e) {
1258
2111
  if (typeof e != "string") return e;
1259
2112
  let t = e.length;
1260
2113
  if (t === 0) return e;
1261
2114
  let n = -1;
1262
2115
  for (let r = 0; r < t; r++) {
1263
2116
  let i = e.charCodeAt(r);
1264
- if (!(i >= Pt && i <= Ft || i === It)) {
2117
+ if (!(i >= Qt && i <= $t || i === en)) {
1265
2118
  if (i < 1632) {
1266
- if (Z.has(i)) {
2119
+ if (tn.has(i)) {
1267
2120
  n = r;
1268
2121
  break;
1269
2122
  }
@@ -1274,7 +2127,7 @@ function Lt(e) {
1274
2127
  let t = e.charCodeAt(r + 1);
1275
2128
  if (t >= 56320 && t <= 57343) {
1276
2129
  let e = 65536 + (i - 55296 << 10) + (t - 56320);
1277
- if (X.has(e)) {
2130
+ if (Jt.has(e)) {
1278
2131
  n = r;
1279
2132
  break;
1280
2133
  }
@@ -1282,7 +2135,7 @@ function Lt(e) {
1282
2135
  }
1283
2136
  continue;
1284
2137
  }
1285
- if (Nt[i - 1632] !== 255 || Z.has(i)) {
2138
+ if (Zt[i - 1632] !== 255 || tn.has(i)) {
1286
2139
  n = r;
1287
2140
  break;
1288
2141
  }
@@ -1293,19 +2146,19 @@ function Lt(e) {
1293
2146
  n > 0 && r.push(e.slice(0, n));
1294
2147
  for (let i = n; i < t; i++) {
1295
2148
  let n = e.charCodeAt(i);
1296
- if (n >= Pt && n <= Ft || n === It) {
2149
+ if (n >= Qt && n <= $t || n === en) {
1297
2150
  r.push(e[i]);
1298
2151
  continue;
1299
2152
  }
1300
2153
  if (n < 1632) {
1301
- r.push(Z.has(n) ? "-" : e[i]);
2154
+ r.push(tn.has(n) ? "-" : e[i]);
1302
2155
  continue;
1303
2156
  }
1304
2157
  if (n >= 55296 && n <= 56319) {
1305
2158
  if (i + 1 < t) {
1306
2159
  let t = e.charCodeAt(i + 1);
1307
2160
  if (t >= 56320 && t <= 57343) {
1308
- let e = 65536 + (n - 55296 << 10) + (t - 56320), a = X.get(e);
2161
+ let e = 65536 + (n - 55296 << 10) + (t - 56320), a = Jt.get(e);
1309
2162
  if (a !== void 0) {
1310
2163
  r.push(String.fromCharCode(a + 48)), i++;
1311
2164
  continue;
@@ -1315,18 +2168,18 @@ function Lt(e) {
1315
2168
  r.push(e[i]);
1316
2169
  continue;
1317
2170
  }
1318
- if (Z.has(n)) {
2171
+ if (tn.has(n)) {
1319
2172
  r.push("-");
1320
2173
  continue;
1321
2174
  }
1322
- let a = Nt[n - Mt];
2175
+ let a = Zt[n - Xt];
1323
2176
  r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
1324
2177
  }
1325
2178
  return r.join("");
1326
2179
  }
1327
2180
  //#endregion
1328
2181
  //#region ../../node_modules/.pnpm/strnum@2.4.2/node_modules/strnum/strnum.js
1329
- var Rt = /^[-+]?0x[a-fA-F0-9]+$/, zt = /^0b[01]+$/, Bt = /^0o[0-7]+$/, Vt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Ht = {
2182
+ var rn = /^[-+]?0x[a-fA-F0-9]+$/, an = /^0b[01]+$/, on = /^0o[0-7]+$/, sn = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, cn = {
1330
2183
  hex: !0,
1331
2184
  binary: !1,
1332
2185
  octal: !1,
@@ -1336,20 +2189,20 @@ var Rt = /^[-+]?0x[a-fA-F0-9]+$/, zt = /^0b[01]+$/, Bt = /^0o[0-7]+$/, Vt = /^([
1336
2189
  infinity: "original",
1337
2190
  unicode: !1
1338
2191
  };
1339
- function Ut(e, t = {}) {
1340
- if (t = Object.assign({}, Ht, t), !e || typeof e != "string") return e;
2192
+ function ln(e, t = {}) {
2193
+ if (t = Object.assign({}, cn, t), !e || typeof e != "string") return e;
1341
2194
  let n = e.trim();
1342
2195
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
1343
- if (n === "0" || t.unicode && (n = Lt(n), n === "0")) return 0;
1344
- if (t.hex && Rt.test(n)) return qt(n, 16);
1345
- if (t.binary && zt.test(n)) return qt(n, 2);
1346
- if (t.octal && Bt.test(n)) return qt(n, 8);
1347
- if (!isFinite(n)) return Jt(e, Number(n), t);
1348
- if (n.includes("e") || n.includes("E")) return Gt(e, n, t);
1349
- {
1350
- let r = Vt.exec(n);
2196
+ if (n === "0" || t.unicode && (n = nn(n), n === "0")) return 0;
2197
+ if (t.hex && rn.test(n)) return pn(n, 16);
2198
+ if (t.binary && an.test(n)) return pn(n, 2);
2199
+ if (t.octal && on.test(n)) return pn(n, 8);
2200
+ if (!isFinite(n)) return mn(e, Number(n), t);
2201
+ if (n.includes("e") || n.includes("E")) return dn(e, n, t);
2202
+ {
2203
+ let r = sn.exec(n);
1351
2204
  if (r) {
1352
- let i = r[1] || "", a = r[2], o = Kt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2205
+ let i = r[1] || "", a = r[2], o = fn(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
1353
2206
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
1354
2207
  {
1355
2208
  let r = Number(n), s = String(r);
@@ -1363,17 +2216,17 @@ function Ut(e, t = {}) {
1363
2216
  return e;
1364
2217
  }
1365
2218
  }
1366
- var Wt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
1367
- function Gt(e, t, n) {
2219
+ var un = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2220
+ function dn(e, t, n) {
1368
2221
  if (!n.eNotation) return e;
1369
- let r = t.match(Wt);
2222
+ let r = t.match(un);
1370
2223
  if (r) {
1371
2224
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
1372
2225
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
1373
2226
  }
1374
2227
  return e;
1375
2228
  }
1376
- function Kt(e) {
2229
+ function fn(e) {
1377
2230
  if (e && e.indexOf(".") !== -1) {
1378
2231
  let t = e.length;
1379
2232
  for (; t > 0 && e.charCodeAt(t - 1) === 48;) t--;
@@ -1381,14 +2234,14 @@ function Kt(e) {
1381
2234
  }
1382
2235
  return e;
1383
2236
  }
1384
- function qt(e, t) {
2237
+ function pn(e, t) {
1385
2238
  let n = e.trim();
1386
2239
  if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
1387
2240
  if (Number.parseInt) return Number.parseInt(e, t);
1388
2241
  if (window && window.parseInt) return window.parseInt(e, t);
1389
2242
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
1390
2243
  }
1391
- function Jt(e, t, n) {
2244
+ function mn(e, t, n) {
1392
2245
  let r = t === Infinity;
1393
2246
  switch (n.infinity.toLowerCase()) {
1394
2247
  case "null": return null;
@@ -1398,15 +2251,15 @@ function Jt(e, t, n) {
1398
2251
  }
1399
2252
  }
1400
2253
  //#endregion
1401
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
1402
- function Yt(e) {
2254
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/ignoreAttributes.js
2255
+ function hn(e) {
1403
2256
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
1404
2257
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
1405
2258
  } : () => !1;
1406
2259
  }
1407
2260
  //#endregion
1408
2261
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
1409
- var Xt = class {
2262
+ var gn = class {
1410
2263
  constructor(e, t = {}, n) {
1411
2264
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
1412
2265
  }
@@ -1464,7 +2317,7 @@ var Xt = class {
1464
2317
  toString() {
1465
2318
  return this.pattern;
1466
2319
  }
1467
- }, Zt = class {
2320
+ }, _n = class {
1468
2321
  constructor() {
1469
2322
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
1470
2323
  }
@@ -1522,7 +2375,7 @@ var Xt = class {
1522
2375
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
1523
2376
  return null;
1524
2377
  }
1525
- }, Qt = class {
2378
+ }, vn = class {
1526
2379
  constructor(e) {
1527
2380
  this._matcher = e;
1528
2381
  }
@@ -1579,9 +2432,9 @@ var Xt = class {
1579
2432
  matchesAny(e) {
1580
2433
  return e.matchesAny(this._matcher);
1581
2434
  }
1582
- }, $t = class {
2435
+ }, yn = class {
1583
2436
  constructor(e = {}) {
1584
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Qt(this), this._keptAttrs = [];
2437
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new vn(this), this._keptAttrs = [];
1585
2438
  }
1586
2439
  push(e, t = null, n = null, r = null) {
1587
2440
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -1732,7 +2585,7 @@ var Xt = class {
1732
2585
  readOnly() {
1733
2586
  return this._view;
1734
2587
  }
1735
- }, en = [
2588
+ }, bn = [
1736
2589
  {
1737
2590
  id: "html-script-open",
1738
2591
  description: "<script opening tag",
@@ -1818,7 +2671,7 @@ var Xt = class {
1818
2671
  description: "<form tag — can be used for phishing / credential harvesting injection",
1819
2672
  pattern: /<form[\s>/]/i
1820
2673
  }
1821
- ], tn = [
2674
+ ], xn = [
1822
2675
  {
1823
2676
  id: "xml-cdata-injection",
1824
2677
  description: "CDATA section injection: <![CDATA[ breaks out of text node context",
@@ -1879,7 +2732,7 @@ var Xt = class {
1879
2732
  description: "?> closes an enclosing processing instruction",
1880
2733
  pattern: /\?>/
1881
2734
  }
1882
- ], nn = [
2735
+ ], Sn = [
1883
2736
  {
1884
2737
  id: "svg-script-element",
1885
2738
  description: "<script element inside SVG executes JavaScript",
@@ -1945,7 +2798,7 @@ var Xt = class {
1945
2798
  description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
1946
2799
  pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
1947
2800
  }
1948
- ], rn = [
2801
+ ], Cn = [
1949
2802
  {
1950
2803
  id: "sql-block-comment-open",
1951
2804
  description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
@@ -2021,7 +2874,7 @@ var Xt = class {
2021
2874
  description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
2022
2875
  pattern: /\bINFORMATION_SCHEMA\b/i
2023
2876
  }
2024
- ], an = [
2877
+ ], wn = [
2025
2878
  {
2026
2879
  id: "shell-path-traversal-unix",
2027
2880
  description: "Unix path traversal: ../ — climbing the directory tree",
@@ -2112,7 +2965,7 @@ var Xt = class {
2112
2965
  description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
2113
2966
  pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
2114
2967
  }
2115
- ], on = [
2968
+ ], Tn = [
2116
2969
  {
2117
2970
  id: "redos-nested-quantifier-plus",
2118
2971
  description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
@@ -2153,7 +3006,7 @@ var Xt = class {
2153
3006
  description: "Long alternation with many similar branches — polynomial backtracking risk",
2154
3007
  pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
2155
3008
  }
2156
- ], Q = "[\"'\\s]*:", sn = [
3009
+ ], Q = "[\"'\\s]*:", En = [
2157
3010
  {
2158
3011
  id: "nosql-where-operator",
2159
3012
  description: "$where — executes arbitrary JavaScript server-side in MongoDB",
@@ -2234,7 +3087,7 @@ var Xt = class {
2234
3087
  description: "[\"__proto__\"] — bracket-notation prototype pollution",
2235
3088
  pattern: /\[["']__proto__["']\]/
2236
3089
  }
2237
- ], cn = [
3090
+ ], Dn = [
2238
3091
  {
2239
3092
  id: "log-crlf-injection",
2240
3093
  description: "CRLF injection: literal \\r or \\n embeds fake log lines",
@@ -2295,7 +3148,7 @@ var Xt = class {
2295
3148
  description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
2296
3149
  pattern: /\x1b\[/
2297
3150
  }
2298
- ], ln = [
3151
+ ], On = [
2299
3152
  {
2300
3153
  id: "sql-line-comment",
2301
3154
  description: "SQL line comment: -- followed by whitespace or end of string",
@@ -2311,22 +3164,22 @@ var Xt = class {
2311
3164
  description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
2312
3165
  pattern: /\b0x[0-9a-f]{4,}/i
2313
3166
  }
2314
- ], un = [...rn, ...ln];
2315
- en.label = "HTML", tn.label = "XML", nn.label = "SVG", rn.label = "SQL", un.label = "SQL-STRICT", an.label = "SHELL", on.label = "REDOS", sn.label = "NOSQL", cn.label = "LOG", Object.freeze({
2316
- HTML: en,
2317
- XML: tn,
2318
- SVG: nn,
2319
- SQL: rn,
2320
- "SQL-STRICT": un,
2321
- SHELL: an,
2322
- REDOS: on,
2323
- NOSQL: sn,
2324
- LOG: cn
3167
+ ], kn = [...Cn, ...On];
3168
+ bn.label = "HTML", xn.label = "XML", Sn.label = "SVG", Cn.label = "SQL", kn.label = "SQL-STRICT", wn.label = "SHELL", Tn.label = "REDOS", En.label = "NOSQL", Dn.label = "LOG", Object.freeze({
3169
+ HTML: bn,
3170
+ XML: xn,
3171
+ SVG: Sn,
3172
+ SQL: Cn,
3173
+ "SQL-STRICT": kn,
3174
+ SHELL: wn,
3175
+ REDOS: Tn,
3176
+ NOSQL: En,
3177
+ LOG: Dn
2325
3178
  });
2326
- function dn(e) {
3179
+ function An(e) {
2327
3180
  if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
2328
3181
  }
2329
- function fn(e) {
3182
+ function jn(e) {
2330
3183
  if (!(e instanceof RegExp)) {
2331
3184
  if (Array.isArray(e)) {
2332
3185
  if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
@@ -2338,7 +3191,7 @@ function fn(e) {
2338
3191
  throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
2339
3192
  }
2340
3193
  }
2341
- function pn(e) {
3194
+ function Mn(e) {
2342
3195
  return e instanceof RegExp ? {
2343
3196
  lists: null,
2344
3197
  regex: e
@@ -2350,7 +3203,7 @@ function pn(e) {
2350
3203
  regex: null
2351
3204
  };
2352
3205
  }
2353
- function mn(e, t) {
3206
+ function Nn(e, t) {
2354
3207
  let n = t.label ?? "CUSTOM";
2355
3208
  for (let r of t) if (r.pattern.test(e)) return {
2356
3209
  context: n,
@@ -2360,16 +3213,16 @@ function mn(e, t) {
2360
3213
  };
2361
3214
  return null;
2362
3215
  }
2363
- function hn(e, t) {
2364
- dn(e), fn(t);
2365
- let { lists: n, regex: r } = pn(t);
3216
+ function Pn(e, t) {
3217
+ An(e), jn(t);
3218
+ let { lists: n, regex: r } = Mn(t);
2366
3219
  if (r) return r.test(e);
2367
- for (let t of n) if (mn(e, t) !== null) return !0;
3220
+ for (let t of n) if (Nn(e, t) !== null) return !0;
2368
3221
  return !1;
2369
3222
  }
2370
3223
  //#endregion
2371
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
2372
- function gn(e, t) {
3224
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
3225
+ function Fn(e, t) {
2373
3226
  if (!e) return {};
2374
3227
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
2375
3228
  if (!n) return {};
@@ -2380,7 +3233,7 @@ function gn(e, t) {
2380
3233
  } else r[e] = n[e];
2381
3234
  return r;
2382
3235
  }
2383
- function _n(e) {
3236
+ function In(e) {
2384
3237
  if (!e || typeof e != "string") return;
2385
3238
  let t = e.indexOf(":");
2386
3239
  if (t !== -1 && t > 0) {
@@ -2388,14 +3241,14 @@ function _n(e) {
2388
3241
  if (n !== "xmlns") return n;
2389
3242
  }
2390
3243
  }
2391
- var vn = class {
3244
+ var Ln = class {
2392
3245
  constructor(e, t) {
2393
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Cn, this.parseTextData = yn, this.resolveNameSpace = bn, this.buildAttributesMap = Sn, this.isItStopNode = Dn, this.replaceEntitiesValue = Tn, this.readStopNodeData = jn, this.saveTextToParentTag = En, this.addChild = wn, this.ignoreAttributesFn = Yt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
2394
- let n = { ...at };
3246
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Hn, this.parseTextData = Rn, this.resolveNameSpace = zn, this.buildAttributesMap = Vn, this.isItStopNode = Kn, this.replaceEntitiesValue = Wn, this.readStopNodeData = Xn, this.saveTextToParentTag = Gn, this.addChild = Un, this.ignoreAttributesFn = hn(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
3247
+ let n = { ...ht };
2395
3248
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
2396
- ...ot,
2397
- ...it
2398
- }), this.entityDecoder = new ft({
3249
+ ...gt,
3250
+ ...mt
3251
+ }), this.entityDecoder = new Et({
2399
3252
  namedEntities: {
2400
3253
  ...n,
2401
3254
  ...t
@@ -2406,27 +3259,27 @@ var vn = class {
2406
3259
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
2407
3260
  applyLimitsTo: this.options.processEntities.appliesTo
2408
3261
  },
2409
- onInputEntity: (e, t) => hn(t, [en, tn]) ? R.BLOCK : R.ALLOW
2410
- })), this.matcher = new $t(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new Zt();
3262
+ onInputEntity: (e, t) => Pn(t, [bn, xn]) ? _t.BLOCK : _t.ALLOW
3263
+ })), this.matcher = new yn(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new _n();
2411
3264
  let r = this.options.stopNodes;
2412
3265
  if (r && r.length > 0) {
2413
3266
  for (let e = 0; e < r.length; e++) {
2414
3267
  let t = r[e];
2415
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new Xt(t)) : t instanceof Xt && this.stopNodeExpressionsSet.add(t);
3268
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new gn(t)) : t instanceof gn && this.stopNodeExpressionsSet.add(t);
2416
3269
  }
2417
3270
  this.stopNodeExpressionsSet.seal();
2418
3271
  }
2419
3272
  }
2420
3273
  };
2421
- function yn(e, t, n, r, i, a, o) {
3274
+ function Rn(e, t, n, r, i, a, o) {
2422
3275
  let s = this.options;
2423
3276
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
2424
3277
  o || (e = this.replaceEntitiesValue(e, t, n));
2425
3278
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
2426
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Mn(e, s.parseTagValue, s.numberParseOptions) : e;
3279
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Zn(e, s.parseTagValue, s.numberParseOptions) : e;
2427
3280
  }
2428
3281
  }
2429
- function bn(e) {
3282
+ function zn(e) {
2430
3283
  if (this.options.removeNSPrefix) {
2431
3284
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
2432
3285
  if (t[0] === "xmlns") return "";
@@ -2434,11 +3287,11 @@ function bn(e) {
2434
3287
  }
2435
3288
  return e;
2436
3289
  }
2437
- var xn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2438
- function Sn(e, t, n, r = !1) {
3290
+ var Bn = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
3291
+ function Vn(e, t, n, r = !1) {
2439
3292
  let i = this.options;
2440
3293
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
2441
- let r = Be(e, xn), a = r.length, o = {}, s = Array(a), c = !1, l = {};
3294
+ let r = Ye(e, Bn), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2442
3295
  for (let e = 0; e < a; e++) {
2443
3296
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
2444
3297
  if (t.length && a !== void 0) {
@@ -2453,9 +3306,9 @@ function Sn(e, t, n, r = !1) {
2453
3306
  if (this.ignoreAttributesFn(t, u)) continue;
2454
3307
  let n = i.attributeNamePrefix + t;
2455
3308
  if (t.length) {
2456
- if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Pn(n, i), r[e][4] !== void 0) {
3309
+ if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = $n(n, i), r[e][4] !== void 0) {
2457
3310
  let r = s[e], a = i.attributeValueProcessor(t, r, u);
2458
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Mn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
3311
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Zn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2459
3312
  } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
2460
3313
  }
2461
3314
  }
@@ -2467,11 +3320,11 @@ function Sn(e, t, n, r = !1) {
2467
3320
  return o;
2468
3321
  }
2469
3322
  }
2470
- var Cn = function(e) {
3323
+ var Hn = function(e) {
2471
3324
  e = e.replace(/\r\n?/g, "\n");
2472
- let t = new G("!xml"), n = t, r = "";
3325
+ let t = new Y("!xml"), n = t, r = "";
2473
3326
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.doctypefound = !1;
2474
- let i = this.options, a = new kt(i.processEntities), o = e.length;
3327
+ let i = this.options, a = new Gt(i.processEntities), o = e.length;
2475
3328
  for (let s = 0; s < o; s++) if (e[s] === "<") {
2476
3329
  let c = e.charCodeAt(s + 1);
2477
3330
  if (c === 47) {
@@ -2480,12 +3333,12 @@ var Cn = function(e) {
2480
3333
  let e = o.indexOf(":");
2481
3334
  e !== -1 && (o = o.substr(e + 1));
2482
3335
  }
2483
- o = Nn(i.transformTagName, o, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
3336
+ o = Qn(i.transformTagName, o, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2484
3337
  let c = this.matcher.getCurrentTag();
2485
3338
  if (o && i.unpairedTagsSet.has(o)) throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);
2486
3339
  c && i.unpairedTagsSet.has(c) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop() || t, i.captureMetaData && n && n.addEndIndex(a + 1), r = "", s = a;
2487
3340
  } else if (c === 63) {
2488
- let t = An(e, s, !1, "?>");
3341
+ let t = Yn(e, s, !1, "?>");
2489
3342
  if (!t) throw Error("Pi Tag is not closed.");
2490
3343
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
2491
3344
  let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
@@ -2494,7 +3347,7 @@ var Cn = function(e) {
2494
3347
  this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
2495
3348
  }
2496
3349
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
2497
- let e = new G(t.tagName);
3350
+ let e = new Y(t.tagName);
2498
3351
  e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s), i.captureMetaData && n.addEndIndex(t.closeIndex + 2);
2499
3352
  }
2500
3353
  s = t.closeIndex + 1;
@@ -2516,20 +3369,20 @@ var Cn = function(e) {
2516
3369
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
2517
3370
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
2518
3371
  } else {
2519
- let a = An(e, s, i.removeNSPrefix);
3372
+ let a = Yn(e, s, i.removeNSPrefix);
2520
3373
  if (!a) {
2521
3374
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
2522
3375
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
2523
3376
  }
2524
3377
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
2525
- if ({tagName: c, tagExp: u} = Nn(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
3378
+ if ({tagName: c, tagExp: u} = Qn(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
2526
3379
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
2527
3380
  let p = n;
2528
3381
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
2529
3382
  let m = !1;
2530
3383
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
2531
3384
  let h = null, g;
2532
- g = _n(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && gn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
3385
+ g = In(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Fn(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2533
3386
  let _ = s;
2534
3387
  if (this.isCurrentNodeStopNode) {
2535
3388
  let t = "";
@@ -2540,19 +3393,19 @@ var Cn = function(e) {
2540
3393
  if (!n) throw Error(`Unexpected end of ${l}`);
2541
3394
  s = n.i, t = n.tagContent;
2542
3395
  }
2543
- let r = new G(c);
3396
+ let r = new Y(c);
2544
3397
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(s + 1);
2545
3398
  } else {
2546
3399
  if (m) {
2547
- ({tagName: c, tagExp: u} = Nn(i.transformTagName, c, u, i));
2548
- let e = new G(c);
3400
+ ({tagName: c, tagExp: u} = Qn(i.transformTagName, c, u, i));
3401
+ let e = new Y(c);
2549
3402
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(f + 1), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
2550
3403
  } else if (i.unpairedTagsSet.has(c)) {
2551
- let e = new G(c);
3404
+ let e = new Y(c);
2552
3405
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), i.captureMetaData && n.addEndIndex(a.closeIndex + 1), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
2553
3406
  continue;
2554
3407
  } else {
2555
- let e = new G(c);
3408
+ let e = new Y(c);
2556
3409
  if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
2557
3410
  this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
2558
3411
  }
@@ -2562,12 +3415,12 @@ var Cn = function(e) {
2562
3415
  } else r += e[s];
2563
3416
  return t.child;
2564
3417
  };
2565
- function wn(e, t, n, r) {
3418
+ function Un(e, t, n, r) {
2566
3419
  this.options.captureMetaData || (r = void 0);
2567
3420
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
2568
3421
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
2569
3422
  }
2570
- function Tn(e, t, n) {
3423
+ function Wn(e, t, n) {
2571
3424
  let r = this.options.processEntities;
2572
3425
  if (!r || !r.enabled) return e;
2573
3426
  if (r.allowedTags) {
@@ -2580,13 +3433,13 @@ function Tn(e, t, n) {
2580
3433
  }
2581
3434
  return this.entityDecoder.decode(e);
2582
3435
  }
2583
- function En(e, t, n, r) {
3436
+ function Gn(e, t, n, r) {
2584
3437
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
2585
3438
  }
2586
- function Dn() {
3439
+ function Kn() {
2587
3440
  return this.stopNodeExpressionsSet.size !== 0 && this.matcher.matchesAny(this.stopNodeExpressionsSet);
2588
3441
  }
2589
- function On(e, t, n = ">") {
3442
+ function qn(e, t, n = ">") {
2590
3443
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
2591
3444
  for (let n = t; n < i; n++) {
2592
3445
  let t = e.charCodeAt(n);
@@ -2610,13 +3463,13 @@ function $(e, t, n, r) {
2610
3463
  if (i === -1) throw Error(r);
2611
3464
  return i + t.length - 1;
2612
3465
  }
2613
- function kn(e, t, n, r) {
3466
+ function Jn(e, t, n, r) {
2614
3467
  let i = e.indexOf(t, n);
2615
3468
  if (i === -1) throw Error(r);
2616
3469
  return i;
2617
3470
  }
2618
- function An(e, t, n, r = ">") {
2619
- let i = On(e, t + 1, r);
3471
+ function Yn(e, t, n, r = ">") {
3472
+ let i = qn(e, t + 1, r);
2620
3473
  if (!i) return;
2621
3474
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
2622
3475
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -2633,12 +3486,12 @@ function An(e, t, n, r = ">") {
2633
3486
  rawTagName: u
2634
3487
  };
2635
3488
  }
2636
- function jn(e, t, n) {
3489
+ function Xn(e, t, n) {
2637
3490
  let r = n, i = 1, a = e.length;
2638
3491
  for (; n < a; n++) if (e[n] === "<") {
2639
3492
  let a = e.charCodeAt(n + 1);
2640
3493
  if (a === 47) {
2641
- let a = kn(e, ">", n, `${t} is not closed`);
3494
+ let a = Jn(e, ">", n, `${t} is not closed`);
2642
3495
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
2643
3496
  tagContent: e.substring(r, n),
2644
3497
  i: a
@@ -2648,36 +3501,36 @@ function jn(e, t, n) {
2648
3501
  else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = $(e, "-->", n + 3, "StopNode is not closed.");
2649
3502
  else if (a === 33 && e.charCodeAt(n + 2) === 91) n = $(e, "]]>", n, "StopNode is not closed.") - 2;
2650
3503
  else {
2651
- let r = An(e, n, !1);
3504
+ let r = Yn(e, n, !1);
2652
3505
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
2653
3506
  }
2654
3507
  }
2655
3508
  }
2656
- function Mn(e, t, n) {
3509
+ function Zn(e, t, n) {
2657
3510
  if (t && typeof e == "string") {
2658
3511
  let t = e.trim();
2659
- return t === "true" || t !== "false" && Ut(e, n);
3512
+ return t === "true" || t !== "false" && ln(e, n);
2660
3513
  }
2661
- return He(e) ? e : "";
3514
+ return Ze(e) ? e : "";
2662
3515
  }
2663
- function Nn(e, t, n, r) {
3516
+ function Qn(e, t, n, r) {
2664
3517
  if (e) {
2665
3518
  let r = e(t);
2666
3519
  n === t && (n = r), t = r;
2667
3520
  }
2668
- return t = Pn(t, r), {
3521
+ return t = $n(t, r), {
2669
3522
  tagName: t,
2670
3523
  tagExp: n
2671
3524
  };
2672
3525
  }
2673
- function Pn(e, t) {
2674
- if (Ue.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2675
- return P.includes(e) ? t.onDangerousProperty(e) : e;
3526
+ function $n(e, t) {
3527
+ if ($e.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
3528
+ return Qe.includes(e) ? t.onDangerousProperty(e) : e;
2676
3529
  }
2677
3530
  //#endregion
2678
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
2679
- var Fn = G.getMetaDataSymbol();
2680
- function In(e, t) {
3531
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/node2json.js
3532
+ var er = Y.getMetaDataSymbol();
3533
+ function tr(e, t) {
2681
3534
  if (!e || typeof e != "object") return {};
2682
3535
  if (!t) return e;
2683
3536
  let n = {};
@@ -2687,22 +3540,22 @@ function In(e, t) {
2687
3540
  } else n[r] = e[r];
2688
3541
  return n;
2689
3542
  }
2690
- function Ln(e, t, n, r) {
2691
- return Rn(e, t, n, r);
3543
+ function nr(e, t, n, r) {
3544
+ return rr(e, t, n, r);
2692
3545
  }
2693
- function Rn(e, t, n, r) {
3546
+ function rr(e, t, n, r) {
2694
3547
  let i, a = {};
2695
3548
  for (let o = 0; o < e.length; o++) {
2696
- let s = e[o], c = zn(s);
3549
+ let s = e[o], c = ir(s);
2697
3550
  if (c !== void 0 && c !== t.textNodeName) {
2698
- let e = In(s[":@"] || {}, t.attributeNamePrefix);
3551
+ let e = tr(s[":@"] || {}, t.attributeNamePrefix);
2699
3552
  n.push(c, e);
2700
3553
  }
2701
3554
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
2702
3555
  else if (c === void 0) continue;
2703
3556
  else if (s[c]) {
2704
- let e = Rn(s[c], t, n, r), i = Vn(e, t);
2705
- if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? Bn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[Fn] !== void 0 && typeof e == "object" && e && (e[Fn] = s[Fn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
3557
+ let e = rr(s[c], t, n, r), i = or(e, t);
3558
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? ar(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[er] !== void 0 && typeof e == "object" && e && (e[er] = s[er]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2706
3559
  else {
2707
3560
  let n = t.jPath ? r.toString() : r;
2708
3561
  a[c] = t.isArray(c, n, i) ? [e] : e;
@@ -2712,14 +3565,14 @@ function Rn(e, t, n, r) {
2712
3565
  }
2713
3566
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
2714
3567
  }
2715
- function zn(e) {
3568
+ function ir(e) {
2716
3569
  let t = Object.keys(e);
2717
3570
  for (let e = 0; e < t.length; e++) {
2718
3571
  let n = t[e];
2719
3572
  if (n !== ":@") return n;
2720
3573
  }
2721
3574
  }
2722
- function Bn(e, t, n, r) {
3575
+ function ar(e, t, n, r) {
2723
3576
  if (t) {
2724
3577
  let i = Object.keys(t), a = i.length;
2725
3578
  for (let o = 0; o < a; o++) {
@@ -2728,26 +3581,26 @@ function Bn(e, t, n, r) {
2728
3581
  }
2729
3582
  }
2730
3583
  }
2731
- function Vn(e, t) {
3584
+ function or(e, t) {
2732
3585
  let { textNodeName: n } = t, r = Object.keys(e).length;
2733
3586
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
2734
3587
  }
2735
3588
  //#endregion
2736
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
2737
- var Hn = class {
3589
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.11.2/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
3590
+ var sr = class {
2738
3591
  constructor(e) {
2739
- this.externalEntities = {}, this.options = _t(e);
3592
+ this.externalEntities = {}, this.options = jt(e);
2740
3593
  }
2741
3594
  parse(e, t) {
2742
- if (typeof e != "string" && e.toString) e = e.toString();
3595
+ if (typeof e != "string" && e.toString) e = e instanceof Uint8Array && !(de !== void 0 && de.isBuffer(e)) ? new TextDecoder("utf-8", { ignoreBOM: !0 }).decode(e) : e.toString();
2743
3596
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
2744
3597
  if (t) {
2745
3598
  t === !0 && (t = {});
2746
- let n = Ge(e, t);
3599
+ let n = tt(e, t);
2747
3600
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
2748
3601
  }
2749
- let n = new vn(this.options, this.externalEntities), r = n.parseXml(e);
2750
- return this.options.preserveOrder || r === void 0 ? r : Ln(r, this.options, n.matcher, n.readonlyMatcher);
3602
+ let n = new Ln(this.options, this.externalEntities), r = n.parseXml(e);
3603
+ return this.options.preserveOrder || r === void 0 ? r : nr(r, this.options, n.matcher, n.readonlyMatcher);
2751
3604
  }
2752
3605
  addEntity(e, t) {
2753
3606
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -2756,9 +3609,9 @@ var Hn = class {
2756
3609
  this.externalEntities[e] = t;
2757
3610
  }
2758
3611
  static getMetaDataSymbol() {
2759
- return G.getMetaDataSymbol();
3612
+ return Y.getMetaDataSymbol();
2760
3613
  }
2761
- }, Un = class {
3614
+ }, cr = class {
2762
3615
  axiosClient;
2763
3616
  baseURI;
2764
3617
  xmlParser;
@@ -2768,7 +3621,7 @@ var Hn = class {
2768
3621
  HASH_LENGTH = 32;
2769
3622
  ITERATION_COUNT = 1e4;
2770
3623
  constructor({ axiosClient: e, baseURI: t }) {
2771
- this.axiosClient = e, this.baseURI = t, this.xmlParser = new Hn();
3624
+ this.axiosClient = e, this.baseURI = t, this.xmlParser = new sr();
2772
3625
  }
2773
3626
  async signUrl(e, t) {
2774
3627
  let n = new URL(e);
@@ -2778,20 +3631,20 @@ var Hn = class {
2778
3631
  }
2779
3632
  async getSignKey() {
2780
3633
  if (this.signingKey) return this.signingKey;
2781
- let e = await this.axiosClient.get(t(this.baseURI, "ocs/v1.php/cloud/user/signing-key"), { headers: { "Content-Type": "application/x-www-form-urlencoded" } }), n = this.xmlParser.parse(e.data);
3634
+ let t = await this.axiosClient.get(e(this.baseURI, "ocs/v1.php/cloud/user/signing-key"), { headers: { "Content-Type": "application/x-www-form-urlencoded" } }), n = this.xmlParser.parse(t.data);
2782
3635
  return this.signingKey = n.ocs.data["signing-key"], this.signingKey;
2783
3636
  }
2784
3637
  async createHashedKey(e) {
2785
- return Re(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
3638
+ return Ge(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
2786
3639
  }
2787
- }, Wn = (e, t) => {
3640
+ }, lr = (e, t) => {
2788
3641
  let n = new URL(e);
2789
3642
  n.pathname = [
2790
3643
  ...n.pathname.split("/"),
2791
3644
  "ocs",
2792
3645
  "v1.php"
2793
3646
  ].filter(Boolean).join("/");
2794
- let r = n.href, i = v(r, t), a = new Un({
3647
+ let r = n.href, i = v(r, t), a = new cr({
2795
3648
  baseURI: e,
2796
3649
  axiosClient: t
2797
3650
  });
@@ -2801,4 +3654,4 @@ var Hn = class {
2801
3654
  };
2802
3655
  };
2803
3656
  //#endregion
2804
- export { Ot as a, Xt as i, Hn as n, v as o, $t as r, Wn as t };
3657
+ export { Wt as a, gn as i, sr as n, v as o, yn as r, lr as t };