@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/api-services/es5.js +1520 -1526
  2. package/api-services/index.js +1223 -1237
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +313 -310
  5. package/api-services/modules/app-manage/index.js +292 -292
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +313 -310
  8. package/api-services/modules/authentication/index.js +292 -292
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +308 -305
  11. package/api-services/modules/bems/index.js +287 -287
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +313 -310
  14. package/api-services/modules/contract/index.js +292 -292
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1153 -1159
  17. package/api-services/modules/duty-manage/index.js +958 -972
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1153 -1162
  20. package/api-services/modules/enterpriseright/index.js +957 -975
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1518 -1527
  23. package/api-services/modules/file/es5.js +250 -247
  24. package/api-services/modules/file/index.js +209 -209
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +188 -185
  27. package/api-services/modules/gateway-edge/index.js +184 -184
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1221 -1239
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1168 -1177
  32. package/api-services/modules/iot/index.js +968 -986
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +314 -311
  35. package/api-services/modules/justauth/index.js +293 -293
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +313 -310
  38. package/api-services/modules/knowledge/index.js +292 -292
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +313 -310
  41. package/api-services/modules/link/index.js +292 -292
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1153 -1162
  44. package/api-services/modules/permission/index.js +957 -975
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +312 -309
  47. package/api-services/modules/platformManage/index.js +287 -287
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1135 -1141
  50. package/api-services/modules/portal/index.js +941 -955
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1247 -1232
  53. package/api-services/modules/space-manage/index.js +1042 -1024
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +262 -259
  56. package/api-services/modules/super-admin/index.js +244 -244
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +315 -312
  59. package/api-services/modules/supplier/index.js +292 -292
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1164 -1173
  62. package/api-services/modules/supplychain-manage/index.js +967 -985
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +313 -310
  65. package/api-services/modules/systemConfiguration/index.js +292 -292
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +313 -310
  68. package/api-services/modules/tool/index.js +292 -292
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +311 -308
  71. package/api-services/src/create-service/index.js +291 -291
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +4357 -124
  74. package/common-info/getPermissionMethod/es5.js +4209 -0
  75. package/common-info/getPermissionMethod/index.d.ts +26 -0
  76. package/common-info/getPermissionMethod/index.js +3328 -0
  77. package/common-info/getPermissionMethod/index.js.gz +0 -0
  78. package/common-info/index.d.ts +2 -0
  79. package/common-info/index.js +3414 -63
  80. package/common-info/index.js.gz +0 -0
  81. package/common-info/type.d.ts +0 -2
  82. package/create-api-service/es5.js +1142 -1150
  83. package/create-api-service/index.d.ts +6 -6
  84. package/create-api-service/index.js +948 -965
  85. package/create-api-service/index.js.gz +0 -0
  86. package/directive/auth/es5.js +63 -44
  87. package/directive/auth/index.js +42 -33
  88. package/directive/auth/index.js.gz +0 -0
  89. package/esm-map.json +7 -1
  90. package/hooks/use-get-auth/es5.js +13 -17
  91. package/hooks/use-get-auth/index.js +10 -13
  92. package/package.json +3 -3
  93. package/hooks/use-get-auth/apis.d.ts +0 -1
@@ -1,11 +1,3342 @@
1
- import { getConfig as c } from "@das-fed/upf-utils/config";
2
- import { getAccessToken as u } from "@das-fed/upf-utils/token-tools";
3
- import { getTokenFromQuery as g, getProjectInfoFromQuery as l } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
4
- const j = (e) => {
1
+ import { getConfig as we } from "@das-fed/upf-utils/config";
2
+ import { getAccessToken as Vr } from "@das-fed/upf-utils/token-tools";
3
+ import { getTokenFromQuery as Zn, getProjectInfoFromQuery as Yn } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
4
+ import { curringHttp as eo } from "@das-fed/upf-utils/curring-http";
5
+ import { getI18nBridge as Kr } from "@das-fed/upf-utils/i18n-bridge";
6
+ import { getToken as to, getQuery as ro, login as no, getTokenParams as oo, real_uri as ao } from "@das-fed/upf-utils/create-api-service/sso";
7
+ import kt from "dayjs";
8
+ import io from "dayjs/plugin/utc";
9
+ import so from "dayjs/plugin/timezone";
10
+ import { getProjectInfo as co, getInstanceInfo as lo } from "@das-fed/upf-utils/common-info";
11
+ import { getValidAccessToken as uo } from "@das-fed/upf-utils/create-api-service/check-token";
12
+ function Qr(e, t) {
13
+ return function() {
14
+ return e.apply(t, arguments);
15
+ };
16
+ }
17
+ const { toString: fo } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: qe, toStringTag: Xr } = Symbol, ze = /* @__PURE__ */ ((e) => (t) => {
18
+ const n = fo.call(t);
19
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
20
+ })(/* @__PURE__ */ Object.create(null)), $ = (e) => (e = e.toLowerCase(), (t) => ze(t) === e), He = (e) => (t) => typeof t === e, { isArray: ce } = Array, ve = He("undefined");
21
+ function po(e) {
22
+ return e !== null && !ve(e) && e.constructor !== null && !ve(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
23
+ }
24
+ const Zr = $("ArrayBuffer");
25
+ function yo(e) {
26
+ let t;
27
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Zr(e.buffer), t;
28
+ }
29
+ const ho = He("string"), _ = He("function"), Yr = He("number"), We = (e) => e !== null && typeof e == "object", mo = (e) => e === !0 || e === !1, xe = (e) => {
30
+ if (ze(e) !== "object")
31
+ return !1;
32
+ const t = jt(e);
33
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Xr in e) && !(qe in e);
34
+ }, go = $("Date"), vo = $("File"), So = $("Blob"), wo = $("FileList"), bo = (e) => We(e) && _(e.pipe), Eo = (e) => {
35
+ let t;
36
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ze(e)) === "formdata" || // detect form-data instance
37
+ t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
38
+ }, Oo = $("URLSearchParams"), [Ao, Ro, Po, Co] = ["ReadableStream", "Request", "Response", "Headers"].map($), Io = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
+ function be(e, t, { allOwnKeys: n = !1 } = {}) {
40
+ if (e === null || typeof e > "u")
41
+ return;
42
+ let r, o;
43
+ if (typeof e != "object" && (e = [e]), ce(e))
44
+ for (r = 0, o = e.length; r < o; r++)
45
+ t.call(null, e[r], r, e);
46
+ else {
47
+ const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
48
+ let s;
49
+ for (r = 0; r < i; r++)
50
+ s = a[r], t.call(null, e[s], s, e);
51
+ }
52
+ }
53
+ function en(e, t) {
54
+ t = t.toLowerCase();
55
+ const n = Object.keys(e);
56
+ let r = n.length, o;
57
+ for (; r-- > 0; )
58
+ if (o = n[r], t === o.toLowerCase())
59
+ return o;
60
+ return null;
61
+ }
62
+ const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, tn = (e) => !ve(e) && e !== K;
63
+ function Ct() {
64
+ const { caseless: e } = tn(this) && this || {}, t = {}, n = (r, o) => {
65
+ const a = e && en(t, o) || o;
66
+ xe(t[a]) && xe(r) ? t[a] = Ct(t[a], r) : xe(r) ? t[a] = Ct({}, r) : ce(r) ? t[a] = r.slice() : t[a] = r;
67
+ };
68
+ for (let r = 0, o = arguments.length; r < o; r++)
69
+ arguments[r] && be(arguments[r], n);
70
+ return t;
71
+ }
72
+ const To = (e, t, n, { allOwnKeys: r } = {}) => (be(t, (o, a) => {
73
+ n && _(o) ? e[a] = Qr(o, n) : e[a] = o;
74
+ }, { allOwnKeys: r }), e), xo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), No = (e, t, n, r) => {
75
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
76
+ value: t.prototype
77
+ }), n && Object.assign(e.prototype, n);
78
+ }, _o = (e, t, n, r) => {
79
+ let o, a, i;
80
+ const s = {};
81
+ if (t = t || {}, e == null) return t;
82
+ do {
83
+ for (o = Object.getOwnPropertyNames(e), a = o.length; a-- > 0; )
84
+ i = o[a], (!r || r(i, e, t)) && !s[i] && (t[i] = e[i], s[i] = !0);
85
+ e = n !== !1 && jt(e);
86
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
87
+ return t;
88
+ }, Fo = (e, t, n) => {
89
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
90
+ const r = e.indexOf(t, n);
91
+ return r !== -1 && r === n;
92
+ }, Do = (e) => {
93
+ if (!e) return null;
94
+ if (ce(e)) return e;
95
+ let t = e.length;
96
+ if (!Yr(t)) return null;
97
+ const n = new Array(t);
98
+ for (; t-- > 0; )
99
+ n[t] = e[t];
100
+ return n;
101
+ }, $o = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && jt(Uint8Array)), Lo = (e, t) => {
102
+ const r = (e && e[qe]).call(e);
103
+ let o;
104
+ for (; (o = r.next()) && !o.done; ) {
105
+ const a = o.value;
106
+ t.call(e, a[0], a[1]);
107
+ }
108
+ }, Uo = (e, t) => {
109
+ let n;
110
+ const r = [];
111
+ for (; (n = e.exec(t)) !== null; )
112
+ r.push(n);
113
+ return r;
114
+ }, Mo = $("HTMLFormElement"), Bo = (e) => e.toLowerCase().replace(
115
+ /[-_\s]([a-z\d])(\w*)/g,
116
+ function(n, r, o) {
117
+ return r.toUpperCase() + o;
118
+ }
119
+ ), Yt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ko = $("RegExp"), rn = (e, t) => {
120
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
121
+ be(n, (o, a) => {
122
+ let i;
123
+ (i = t(o, a, e)) !== !1 && (r[a] = i || o);
124
+ }), Object.defineProperties(e, r);
125
+ }, jo = (e) => {
126
+ rn(e, (t, n) => {
127
+ if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
128
+ return !1;
129
+ const r = e[n];
130
+ if (_(r)) {
131
+ if (t.enumerable = !1, "writable" in t) {
132
+ t.writable = !1;
133
+ return;
134
+ }
135
+ t.set || (t.set = () => {
136
+ throw Error("Can not rewrite read-only method '" + n + "'");
137
+ });
138
+ }
139
+ });
140
+ }, qo = (e, t) => {
141
+ const n = {}, r = (o) => {
142
+ o.forEach((a) => {
143
+ n[a] = !0;
144
+ });
145
+ };
146
+ return ce(e) ? r(e) : r(String(e).split(t)), n;
147
+ }, zo = () => {
148
+ }, Ho = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
149
+ function Wo(e) {
150
+ return !!(e && _(e.append) && e[Xr] === "FormData" && e[qe]);
151
+ }
152
+ const Jo = (e) => {
153
+ const t = new Array(10), n = (r, o) => {
154
+ if (We(r)) {
155
+ if (t.indexOf(r) >= 0)
156
+ return;
157
+ if (!("toJSON" in r)) {
158
+ t[o] = r;
159
+ const a = ce(r) ? [] : {};
160
+ return be(r, (i, s) => {
161
+ const c = n(i, o + 1);
162
+ !ve(c) && (a[s] = c);
163
+ }), t[o] = void 0, a;
164
+ }
165
+ }
166
+ return r;
167
+ };
168
+ return n(e, 0);
169
+ }, Go = $("AsyncFunction"), Vo = (e) => e && (We(e) || _(e)) && _(e.then) && _(e.catch), nn = ((e, t) => e ? setImmediate : t ? ((n, r) => (K.addEventListener("message", ({ source: o, data: a }) => {
170
+ o === K && a === n && r.length && r.shift()();
171
+ }, !1), (o) => {
172
+ r.push(o), K.postMessage(n, "*");
173
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
174
+ typeof setImmediate == "function",
175
+ _(K.postMessage)
176
+ ), Ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || nn, Qo = (e) => e != null && _(e[qe]), p = {
177
+ isArray: ce,
178
+ isArrayBuffer: Zr,
179
+ isBuffer: po,
180
+ isFormData: Eo,
181
+ isArrayBufferView: yo,
182
+ isString: ho,
183
+ isNumber: Yr,
184
+ isBoolean: mo,
185
+ isObject: We,
186
+ isPlainObject: xe,
187
+ isReadableStream: Ao,
188
+ isRequest: Ro,
189
+ isResponse: Po,
190
+ isHeaders: Co,
191
+ isUndefined: ve,
192
+ isDate: go,
193
+ isFile: vo,
194
+ isBlob: So,
195
+ isRegExp: ko,
196
+ isFunction: _,
197
+ isStream: bo,
198
+ isURLSearchParams: Oo,
199
+ isTypedArray: $o,
200
+ isFileList: wo,
201
+ forEach: be,
202
+ merge: Ct,
203
+ extend: To,
204
+ trim: Io,
205
+ stripBOM: xo,
206
+ inherits: No,
207
+ toFlatObject: _o,
208
+ kindOf: ze,
209
+ kindOfTest: $,
210
+ endsWith: Fo,
211
+ toArray: Do,
212
+ forEachEntry: Lo,
213
+ matchAll: Uo,
214
+ isHTMLForm: Mo,
215
+ hasOwnProperty: Yt,
216
+ hasOwnProp: Yt,
217
+ // an alias to avoid ESLint no-prototype-builtins detection
218
+ reduceDescriptors: rn,
219
+ freezeMethods: jo,
220
+ toObjectSet: qo,
221
+ toCamelCase: Bo,
222
+ noop: zo,
223
+ toFiniteNumber: Ho,
224
+ findKey: en,
225
+ global: K,
226
+ isContextDefined: tn,
227
+ isSpecCompliantForm: Wo,
228
+ toJSONObject: Jo,
229
+ isAsyncFn: Go,
230
+ isThenable: Vo,
231
+ setImmediate: nn,
232
+ asap: Ko,
233
+ isIterable: Qo
234
+ };
235
+ function S(e, t, n, r, o) {
236
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
237
+ }
238
+ p.inherits(S, Error, {
239
+ toJSON: function() {
240
+ return {
241
+ // Standard
242
+ message: this.message,
243
+ name: this.name,
244
+ // Microsoft
245
+ description: this.description,
246
+ number: this.number,
247
+ // Mozilla
248
+ fileName: this.fileName,
249
+ lineNumber: this.lineNumber,
250
+ columnNumber: this.columnNumber,
251
+ stack: this.stack,
252
+ // Axios
253
+ config: p.toJSONObject(this.config),
254
+ code: this.code,
255
+ status: this.status
256
+ };
257
+ }
258
+ });
259
+ const on = S.prototype, an = {};
260
+ [
261
+ "ERR_BAD_OPTION_VALUE",
262
+ "ERR_BAD_OPTION",
263
+ "ECONNABORTED",
264
+ "ETIMEDOUT",
265
+ "ERR_NETWORK",
266
+ "ERR_FR_TOO_MANY_REDIRECTS",
267
+ "ERR_DEPRECATED",
268
+ "ERR_BAD_RESPONSE",
269
+ "ERR_BAD_REQUEST",
270
+ "ERR_CANCELED",
271
+ "ERR_NOT_SUPPORT",
272
+ "ERR_INVALID_URL"
273
+ // eslint-disable-next-line func-names
274
+ ].forEach((e) => {
275
+ an[e] = { value: e };
276
+ });
277
+ Object.defineProperties(S, an);
278
+ Object.defineProperty(on, "isAxiosError", { value: !0 });
279
+ S.from = (e, t, n, r, o, a) => {
280
+ const i = Object.create(on);
281
+ return p.toFlatObject(e, i, function(c) {
282
+ return c !== Error.prototype;
283
+ }, (s) => s !== "isAxiosError"), S.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
284
+ };
285
+ const Xo = null;
286
+ function It(e) {
287
+ return p.isPlainObject(e) || p.isArray(e);
288
+ }
289
+ function sn(e) {
290
+ return p.endsWith(e, "[]") ? e.slice(0, -2) : e;
291
+ }
292
+ function er(e, t, n) {
293
+ return e ? e.concat(t).map(function(o, a) {
294
+ return o = sn(o), !n && a ? "[" + o + "]" : o;
295
+ }).join(n ? "." : "") : t;
296
+ }
297
+ function Zo(e) {
298
+ return p.isArray(e) && !e.some(It);
299
+ }
300
+ const Yo = p.toFlatObject(p, {}, null, function(t) {
301
+ return /^is[A-Z]/.test(t);
302
+ });
303
+ function Je(e, t, n) {
304
+ if (!p.isObject(e))
305
+ throw new TypeError("target must be an object");
306
+ t = t || new FormData(), n = p.toFlatObject(n, {
307
+ metaTokens: !0,
308
+ dots: !1,
309
+ indexes: !1
310
+ }, !1, function(m, h) {
311
+ return !p.isUndefined(h[m]);
312
+ });
313
+ const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(t);
314
+ if (!p.isFunction(o))
315
+ throw new TypeError("visitor must be a function");
316
+ function u(y) {
317
+ if (y === null) return "";
318
+ if (p.isDate(y))
319
+ return y.toISOString();
320
+ if (p.isBoolean(y))
321
+ return y.toString();
322
+ if (!c && p.isBlob(y))
323
+ throw new S("Blob is not supported. Use a Buffer instead.");
324
+ return p.isArrayBuffer(y) || p.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
325
+ }
326
+ function l(y, m, h) {
327
+ let w = y;
328
+ if (y && !h && typeof y == "object") {
329
+ if (p.endsWith(m, "{}"))
330
+ m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
331
+ else if (p.isArray(y) && Zo(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (w = p.toArray(y)))
332
+ return m = sn(m), w.forEach(function(g, O) {
333
+ !(p.isUndefined(g) || g === null) && t.append(
334
+ // eslint-disable-next-line no-nested-ternary
335
+ i === !0 ? er([m], O, a) : i === null ? m : m + "[]",
336
+ u(g)
337
+ );
338
+ }), !1;
339
+ }
340
+ return It(y) ? !0 : (t.append(er(h, m, a), u(y)), !1);
341
+ }
342
+ const f = [], d = Object.assign(Yo, {
343
+ defaultVisitor: l,
344
+ convertValue: u,
345
+ isVisitable: It
346
+ });
347
+ function v(y, m) {
348
+ if (!p.isUndefined(y)) {
349
+ if (f.indexOf(y) !== -1)
350
+ throw Error("Circular reference detected in " + m.join("."));
351
+ f.push(y), p.forEach(y, function(w, E) {
352
+ (!(p.isUndefined(w) || w === null) && o.call(
353
+ t,
354
+ w,
355
+ p.isString(E) ? E.trim() : E,
356
+ m,
357
+ d
358
+ )) === !0 && v(w, m ? m.concat(E) : [E]);
359
+ }), f.pop();
360
+ }
361
+ }
362
+ if (!p.isObject(e))
363
+ throw new TypeError("data must be an object");
364
+ return v(e), t;
365
+ }
366
+ function tr(e) {
367
+ const t = {
368
+ "!": "%21",
369
+ "'": "%27",
370
+ "(": "%28",
371
+ ")": "%29",
372
+ "~": "%7E",
373
+ "%20": "+",
374
+ "%00": "\0"
375
+ };
376
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
377
+ return t[r];
378
+ });
379
+ }
380
+ function qt(e, t) {
381
+ this._pairs = [], e && Je(e, this, t);
382
+ }
383
+ const cn = qt.prototype;
384
+ cn.append = function(t, n) {
385
+ this._pairs.push([t, n]);
386
+ };
387
+ cn.toString = function(t) {
388
+ const n = t ? function(r) {
389
+ return t.call(this, r, tr);
390
+ } : tr;
391
+ return this._pairs.map(function(o) {
392
+ return n(o[0]) + "=" + n(o[1]);
393
+ }, "").join("&");
394
+ };
395
+ function ea(e) {
396
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
397
+ }
398
+ function ln(e, t, n) {
399
+ if (!t)
400
+ return e;
401
+ const r = n && n.encode || ea;
402
+ p.isFunction(n) && (n = {
403
+ serialize: n
404
+ });
405
+ const o = n && n.serialize;
406
+ let a;
407
+ if (o ? a = o(t, n) : a = p.isURLSearchParams(t) ? t.toString() : new qt(t, n).toString(r), a) {
408
+ const i = e.indexOf("#");
409
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
410
+ }
411
+ return e;
412
+ }
413
+ class rr {
414
+ constructor() {
415
+ this.handlers = [];
416
+ }
417
+ /**
418
+ * Add a new interceptor to the stack
419
+ *
420
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
421
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
422
+ *
423
+ * @return {Number} An ID used to remove interceptor later
424
+ */
425
+ use(t, n, r) {
426
+ return this.handlers.push({
427
+ fulfilled: t,
428
+ rejected: n,
429
+ synchronous: r ? r.synchronous : !1,
430
+ runWhen: r ? r.runWhen : null
431
+ }), this.handlers.length - 1;
432
+ }
433
+ /**
434
+ * Remove an interceptor from the stack
435
+ *
436
+ * @param {Number} id The ID that was returned by `use`
437
+ *
438
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
439
+ */
440
+ eject(t) {
441
+ this.handlers[t] && (this.handlers[t] = null);
442
+ }
443
+ /**
444
+ * Clear all interceptors from the stack
445
+ *
446
+ * @returns {void}
447
+ */
448
+ clear() {
449
+ this.handlers && (this.handlers = []);
450
+ }
451
+ /**
452
+ * Iterate over all the registered interceptors
453
+ *
454
+ * This method is particularly useful for skipping over any
455
+ * interceptors that may have become `null` calling `eject`.
456
+ *
457
+ * @param {Function} fn The function to call for each interceptor
458
+ *
459
+ * @returns {void}
460
+ */
461
+ forEach(t) {
462
+ p.forEach(this.handlers, function(r) {
463
+ r !== null && t(r);
464
+ });
465
+ }
466
+ }
467
+ const un = {
468
+ silentJSONParsing: !0,
469
+ forcedJSONParsing: !0,
470
+ clarifyTimeoutError: !1
471
+ }, ta = typeof URLSearchParams < "u" ? URLSearchParams : qt, ra = typeof FormData < "u" ? FormData : null, na = typeof Blob < "u" ? Blob : null, oa = {
472
+ isBrowser: !0,
473
+ classes: {
474
+ URLSearchParams: ta,
475
+ FormData: ra,
476
+ Blob: na
477
+ },
478
+ protocols: ["http", "https", "file", "blob", "url", "data"]
479
+ }, zt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0, aa = zt && (!Tt || ["ReactNative", "NativeScript", "NS"].indexOf(Tt.product) < 0), ia = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
480
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", sa = zt && window.location.href || "http://localhost", ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
+ __proto__: null,
482
+ hasBrowserEnv: zt,
483
+ hasStandardBrowserEnv: aa,
484
+ hasStandardBrowserWebWorkerEnv: ia,
485
+ navigator: Tt,
486
+ origin: sa
487
+ }, Symbol.toStringTag, { value: "Module" })), T = {
488
+ ...ca,
489
+ ...oa
490
+ };
491
+ function la(e, t) {
492
+ return Je(e, new T.classes.URLSearchParams(), Object.assign({
493
+ visitor: function(n, r, o, a) {
494
+ return T.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
495
+ }
496
+ }, t));
497
+ }
498
+ function ua(e) {
499
+ return p.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
500
+ }
501
+ function fa(e) {
502
+ const t = {}, n = Object.keys(e);
503
+ let r;
504
+ const o = n.length;
505
+ let a;
506
+ for (r = 0; r < o; r++)
507
+ a = n[r], t[a] = e[a];
508
+ return t;
509
+ }
510
+ function fn(e) {
511
+ function t(n, r, o, a) {
512
+ let i = n[a++];
513
+ if (i === "__proto__") return !0;
514
+ const s = Number.isFinite(+i), c = a >= n.length;
515
+ return i = !i && p.isArray(o) ? o.length : i, c ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && p.isArray(o[i]) && (o[i] = fa(o[i])), !s);
516
+ }
517
+ if (p.isFormData(e) && p.isFunction(e.entries)) {
518
+ const n = {};
519
+ return p.forEachEntry(e, (r, o) => {
520
+ t(ua(r), o, n, 0);
521
+ }), n;
522
+ }
523
+ return null;
524
+ }
525
+ function pa(e, t, n) {
526
+ if (p.isString(e))
527
+ try {
528
+ return (t || JSON.parse)(e), p.trim(e);
529
+ } catch (r) {
530
+ if (r.name !== "SyntaxError")
531
+ throw r;
532
+ }
533
+ return (n || JSON.stringify)(e);
534
+ }
535
+ const Ee = {
536
+ transitional: un,
537
+ adapter: ["xhr", "http", "fetch"],
538
+ transformRequest: [function(t, n) {
539
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = p.isObject(t);
540
+ if (a && p.isHTMLForm(t) && (t = new FormData(t)), p.isFormData(t))
541
+ return o ? JSON.stringify(fn(t)) : t;
542
+ if (p.isArrayBuffer(t) || p.isBuffer(t) || p.isStream(t) || p.isFile(t) || p.isBlob(t) || p.isReadableStream(t))
543
+ return t;
544
+ if (p.isArrayBufferView(t))
545
+ return t.buffer;
546
+ if (p.isURLSearchParams(t))
547
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
548
+ let s;
549
+ if (a) {
550
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
551
+ return la(t, this.formSerializer).toString();
552
+ if ((s = p.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
553
+ const c = this.env && this.env.FormData;
554
+ return Je(
555
+ s ? { "files[]": t } : t,
556
+ c && new c(),
557
+ this.formSerializer
558
+ );
559
+ }
560
+ }
561
+ return a || o ? (n.setContentType("application/json", !1), pa(t)) : t;
562
+ }],
563
+ transformResponse: [function(t) {
564
+ const n = this.transitional || Ee.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
565
+ if (p.isResponse(t) || p.isReadableStream(t))
566
+ return t;
567
+ if (t && p.isString(t) && (r && !this.responseType || o)) {
568
+ const i = !(n && n.silentJSONParsing) && o;
569
+ try {
570
+ return JSON.parse(t);
571
+ } catch (s) {
572
+ if (i)
573
+ throw s.name === "SyntaxError" ? S.from(s, S.ERR_BAD_RESPONSE, this, null, this.response) : s;
574
+ }
575
+ }
576
+ return t;
577
+ }],
578
+ /**
579
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
580
+ * timeout is not created.
581
+ */
582
+ timeout: 0,
583
+ xsrfCookieName: "XSRF-TOKEN",
584
+ xsrfHeaderName: "X-XSRF-TOKEN",
585
+ maxContentLength: -1,
586
+ maxBodyLength: -1,
587
+ env: {
588
+ FormData: T.classes.FormData,
589
+ Blob: T.classes.Blob
590
+ },
591
+ validateStatus: function(t) {
592
+ return t >= 200 && t < 300;
593
+ },
594
+ headers: {
595
+ common: {
596
+ Accept: "application/json, text/plain, */*",
597
+ "Content-Type": void 0
598
+ }
599
+ }
600
+ };
601
+ p.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
602
+ Ee.headers[e] = {};
603
+ });
604
+ const da = p.toObjectSet([
605
+ "age",
606
+ "authorization",
607
+ "content-length",
608
+ "content-type",
609
+ "etag",
610
+ "expires",
611
+ "from",
612
+ "host",
613
+ "if-modified-since",
614
+ "if-unmodified-since",
615
+ "last-modified",
616
+ "location",
617
+ "max-forwards",
618
+ "proxy-authorization",
619
+ "referer",
620
+ "retry-after",
621
+ "user-agent"
622
+ ]), ya = (e) => {
623
+ const t = {};
624
+ let n, r, o;
625
+ return e && e.split(`
626
+ `).forEach(function(i) {
627
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && da[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
628
+ }), t;
629
+ }, nr = Symbol("internals");
630
+ function pe(e) {
631
+ return e && String(e).trim().toLowerCase();
632
+ }
633
+ function Ne(e) {
634
+ return e === !1 || e == null ? e : p.isArray(e) ? e.map(Ne) : String(e);
635
+ }
636
+ function ha(e) {
637
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
638
+ let r;
639
+ for (; r = n.exec(e); )
640
+ t[r[1]] = r[2];
641
+ return t;
642
+ }
643
+ const ma = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
644
+ function tt(e, t, n, r, o) {
645
+ if (p.isFunction(r))
646
+ return r.call(this, t, n);
647
+ if (o && (t = n), !!p.isString(t)) {
648
+ if (p.isString(r))
649
+ return t.indexOf(r) !== -1;
650
+ if (p.isRegExp(r))
651
+ return r.test(t);
652
+ }
653
+ }
654
+ function ga(e) {
655
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
656
+ }
657
+ function va(e, t) {
658
+ const n = p.toCamelCase(" " + t);
659
+ ["get", "set", "has"].forEach((r) => {
660
+ Object.defineProperty(e, r + n, {
661
+ value: function(o, a, i) {
662
+ return this[r].call(this, t, o, a, i);
663
+ },
664
+ configurable: !0
665
+ });
666
+ });
667
+ }
668
+ class F {
669
+ constructor(t) {
670
+ t && this.set(t);
671
+ }
672
+ set(t, n, r) {
673
+ const o = this;
674
+ function a(s, c, u) {
675
+ const l = pe(c);
676
+ if (!l)
677
+ throw new Error("header name must be a non-empty string");
678
+ const f = p.findKey(o, l);
679
+ (!f || o[f] === void 0 || u === !0 || u === void 0 && o[f] !== !1) && (o[f || c] = Ne(s));
680
+ }
681
+ const i = (s, c) => p.forEach(s, (u, l) => a(u, l, c));
682
+ if (p.isPlainObject(t) || t instanceof this.constructor)
683
+ i(t, n);
684
+ else if (p.isString(t) && (t = t.trim()) && !ma(t))
685
+ i(ya(t), n);
686
+ else if (p.isObject(t) && p.isIterable(t)) {
687
+ let s = {}, c, u;
688
+ for (const l of t) {
689
+ if (!p.isArray(l))
690
+ throw TypeError("Object iterator must return a key-value pair");
691
+ s[u = l[0]] = (c = s[u]) ? p.isArray(c) ? [...c, l[1]] : [c, l[1]] : l[1];
692
+ }
693
+ i(s, n);
694
+ } else
695
+ t != null && a(n, t, r);
696
+ return this;
697
+ }
698
+ get(t, n) {
699
+ if (t = pe(t), t) {
700
+ const r = p.findKey(this, t);
701
+ if (r) {
702
+ const o = this[r];
703
+ if (!n)
704
+ return o;
705
+ if (n === !0)
706
+ return ha(o);
707
+ if (p.isFunction(n))
708
+ return n.call(this, o, r);
709
+ if (p.isRegExp(n))
710
+ return n.exec(o);
711
+ throw new TypeError("parser must be boolean|regexp|function");
712
+ }
713
+ }
714
+ }
715
+ has(t, n) {
716
+ if (t = pe(t), t) {
717
+ const r = p.findKey(this, t);
718
+ return !!(r && this[r] !== void 0 && (!n || tt(this, this[r], r, n)));
719
+ }
720
+ return !1;
721
+ }
722
+ delete(t, n) {
723
+ const r = this;
724
+ let o = !1;
725
+ function a(i) {
726
+ if (i = pe(i), i) {
727
+ const s = p.findKey(r, i);
728
+ s && (!n || tt(r, r[s], s, n)) && (delete r[s], o = !0);
729
+ }
730
+ }
731
+ return p.isArray(t) ? t.forEach(a) : a(t), o;
732
+ }
733
+ clear(t) {
734
+ const n = Object.keys(this);
735
+ let r = n.length, o = !1;
736
+ for (; r--; ) {
737
+ const a = n[r];
738
+ (!t || tt(this, this[a], a, t, !0)) && (delete this[a], o = !0);
739
+ }
740
+ return o;
741
+ }
742
+ normalize(t) {
743
+ const n = this, r = {};
744
+ return p.forEach(this, (o, a) => {
745
+ const i = p.findKey(r, a);
746
+ if (i) {
747
+ n[i] = Ne(o), delete n[a];
748
+ return;
749
+ }
750
+ const s = t ? ga(a) : String(a).trim();
751
+ s !== a && delete n[a], n[s] = Ne(o), r[s] = !0;
752
+ }), this;
753
+ }
754
+ concat(...t) {
755
+ return this.constructor.concat(this, ...t);
756
+ }
757
+ toJSON(t) {
758
+ const n = /* @__PURE__ */ Object.create(null);
759
+ return p.forEach(this, (r, o) => {
760
+ r != null && r !== !1 && (n[o] = t && p.isArray(r) ? r.join(", ") : r);
761
+ }), n;
762
+ }
763
+ [Symbol.iterator]() {
764
+ return Object.entries(this.toJSON())[Symbol.iterator]();
765
+ }
766
+ toString() {
767
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
768
+ `);
769
+ }
770
+ getSetCookie() {
771
+ return this.get("set-cookie") || [];
772
+ }
773
+ get [Symbol.toStringTag]() {
774
+ return "AxiosHeaders";
775
+ }
776
+ static from(t) {
777
+ return t instanceof this ? t : new this(t);
778
+ }
779
+ static concat(t, ...n) {
780
+ const r = new this(t);
781
+ return n.forEach((o) => r.set(o)), r;
782
+ }
783
+ static accessor(t) {
784
+ const r = (this[nr] = this[nr] = {
785
+ accessors: {}
786
+ }).accessors, o = this.prototype;
787
+ function a(i) {
788
+ const s = pe(i);
789
+ r[s] || (va(o, i), r[s] = !0);
790
+ }
791
+ return p.isArray(t) ? t.forEach(a) : a(t), this;
792
+ }
793
+ }
794
+ F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
795
+ p.reduceDescriptors(F.prototype, ({ value: e }, t) => {
796
+ let n = t[0].toUpperCase() + t.slice(1);
797
+ return {
798
+ get: () => e,
799
+ set(r) {
800
+ this[n] = r;
801
+ }
802
+ };
803
+ });
804
+ p.freezeMethods(F);
805
+ function rt(e, t) {
806
+ const n = this || Ee, r = t || n, o = F.from(r.headers);
807
+ let a = r.data;
808
+ return p.forEach(e, function(s) {
809
+ a = s.call(n, a, o.normalize(), t ? t.status : void 0);
810
+ }), o.normalize(), a;
811
+ }
812
+ function pn(e) {
813
+ return !!(e && e.__CANCEL__);
814
+ }
815
+ function le(e, t, n) {
816
+ S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
817
+ }
818
+ p.inherits(le, S, {
819
+ __CANCEL__: !0
820
+ });
821
+ function dn(e, t, n) {
822
+ const r = n.config.validateStatus;
823
+ !n.status || !r || r(n.status) ? e(n) : t(new S(
824
+ "Request failed with status code " + n.status,
825
+ [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
826
+ n.config,
827
+ n.request,
828
+ n
829
+ ));
830
+ }
831
+ function Sa(e) {
832
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
833
+ return t && t[1] || "";
834
+ }
835
+ function wa(e, t) {
836
+ e = e || 10;
837
+ const n = new Array(e), r = new Array(e);
838
+ let o = 0, a = 0, i;
839
+ return t = t !== void 0 ? t : 1e3, function(c) {
840
+ const u = Date.now(), l = r[a];
841
+ i || (i = u), n[o] = c, r[o] = u;
842
+ let f = a, d = 0;
843
+ for (; f !== o; )
844
+ d += n[f++], f = f % e;
845
+ if (o = (o + 1) % e, o === a && (a = (a + 1) % e), u - i < t)
846
+ return;
847
+ const v = l && u - l;
848
+ return v ? Math.round(d * 1e3 / v) : void 0;
849
+ };
850
+ }
851
+ function ba(e, t) {
852
+ let n = 0, r = 1e3 / t, o, a;
853
+ const i = (u, l = Date.now()) => {
854
+ n = l, o = null, a && (clearTimeout(a), a = null), e.apply(null, u);
855
+ };
856
+ return [(...u) => {
857
+ const l = Date.now(), f = l - n;
858
+ f >= r ? i(u, l) : (o = u, a || (a = setTimeout(() => {
859
+ a = null, i(o);
860
+ }, r - f)));
861
+ }, () => o && i(o)];
862
+ }
863
+ const Le = (e, t, n = 3) => {
864
+ let r = 0;
865
+ const o = wa(50, 250);
866
+ return ba((a) => {
867
+ const i = a.loaded, s = a.lengthComputable ? a.total : void 0, c = i - r, u = o(c), l = i <= s;
868
+ r = i;
869
+ const f = {
870
+ loaded: i,
871
+ total: s,
872
+ progress: s ? i / s : void 0,
873
+ bytes: c,
874
+ rate: u || void 0,
875
+ estimated: u && s && l ? (s - i) / u : void 0,
876
+ event: a,
877
+ lengthComputable: s != null,
878
+ [t ? "download" : "upload"]: !0
879
+ };
880
+ e(f);
881
+ }, n);
882
+ }, or = (e, t) => {
883
+ const n = e != null;
884
+ return [(r) => t[0]({
885
+ lengthComputable: n,
886
+ total: e,
887
+ loaded: r
888
+ }), t[1]];
889
+ }, ar = (e) => (...t) => p.asap(() => e(...t)), Ea = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
890
+ new URL(T.origin),
891
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
892
+ ) : () => !0, Oa = T.hasStandardBrowserEnv ? (
893
+ // Standard browser envs support document.cookie
894
+ {
895
+ write(e, t, n, r, o, a) {
896
+ const i = [e + "=" + encodeURIComponent(t)];
897
+ p.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), p.isString(r) && i.push("path=" + r), p.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
898
+ },
899
+ read(e) {
900
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
901
+ return t ? decodeURIComponent(t[3]) : null;
902
+ },
903
+ remove(e) {
904
+ this.write(e, "", Date.now() - 864e5);
905
+ }
906
+ }
907
+ ) : (
908
+ // Non-standard browser env (web workers, react-native) lack needed support.
909
+ {
910
+ write() {
911
+ },
912
+ read() {
913
+ return null;
914
+ },
915
+ remove() {
916
+ }
917
+ }
918
+ );
919
+ function Aa(e) {
920
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
921
+ }
922
+ function Ra(e, t) {
923
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
924
+ }
925
+ function yn(e, t, n) {
926
+ let r = !Aa(t);
927
+ return e && (r || n == !1) ? Ra(e, t) : t;
928
+ }
929
+ const ir = (e) => e instanceof F ? { ...e } : e;
930
+ function Z(e, t) {
931
+ t = t || {};
932
+ const n = {};
933
+ function r(u, l, f, d) {
934
+ return p.isPlainObject(u) && p.isPlainObject(l) ? p.merge.call({ caseless: d }, u, l) : p.isPlainObject(l) ? p.merge({}, l) : p.isArray(l) ? l.slice() : l;
935
+ }
936
+ function o(u, l, f, d) {
937
+ if (p.isUndefined(l)) {
938
+ if (!p.isUndefined(u))
939
+ return r(void 0, u, f, d);
940
+ } else return r(u, l, f, d);
941
+ }
942
+ function a(u, l) {
943
+ if (!p.isUndefined(l))
944
+ return r(void 0, l);
945
+ }
946
+ function i(u, l) {
947
+ if (p.isUndefined(l)) {
948
+ if (!p.isUndefined(u))
949
+ return r(void 0, u);
950
+ } else return r(void 0, l);
951
+ }
952
+ function s(u, l, f) {
953
+ if (f in t)
954
+ return r(u, l);
955
+ if (f in e)
956
+ return r(void 0, u);
957
+ }
958
+ const c = {
959
+ url: a,
960
+ method: a,
961
+ data: a,
962
+ baseURL: i,
963
+ transformRequest: i,
964
+ transformResponse: i,
965
+ paramsSerializer: i,
966
+ timeout: i,
967
+ timeoutMessage: i,
968
+ withCredentials: i,
969
+ withXSRFToken: i,
970
+ adapter: i,
971
+ responseType: i,
972
+ xsrfCookieName: i,
973
+ xsrfHeaderName: i,
974
+ onUploadProgress: i,
975
+ onDownloadProgress: i,
976
+ decompress: i,
977
+ maxContentLength: i,
978
+ maxBodyLength: i,
979
+ beforeRedirect: i,
980
+ transport: i,
981
+ httpAgent: i,
982
+ httpsAgent: i,
983
+ cancelToken: i,
984
+ socketPath: i,
985
+ responseEncoding: i,
986
+ validateStatus: s,
987
+ headers: (u, l, f) => o(ir(u), ir(l), f, !0)
988
+ };
989
+ return p.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
990
+ const f = c[l] || o, d = f(e[l], t[l], l);
991
+ p.isUndefined(d) && f !== s || (n[l] = d);
992
+ }), n;
993
+ }
994
+ const hn = (e) => {
995
+ const t = Z({}, e);
996
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = t;
997
+ t.headers = i = F.from(i), t.url = ln(yn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && i.set(
998
+ "Authorization",
999
+ "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
1000
+ );
1001
+ let c;
1002
+ if (p.isFormData(n)) {
1003
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1004
+ i.setContentType(void 0);
1005
+ else if ((c = i.getContentType()) !== !1) {
1006
+ const [u, ...l] = c ? c.split(";").map((f) => f.trim()).filter(Boolean) : [];
1007
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1008
+ }
1009
+ }
1010
+ if (T.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(t)), r || r !== !1 && Ea(t.url))) {
1011
+ const u = o && a && Oa.read(a);
1012
+ u && i.set(o, u);
1013
+ }
1014
+ return t;
1015
+ }, Pa = typeof XMLHttpRequest < "u", Ca = Pa && function(e) {
1016
+ return new Promise(function(n, r) {
1017
+ const o = hn(e);
1018
+ let a = o.data;
1019
+ const i = F.from(o.headers).normalize();
1020
+ let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, l, f, d, v, y;
1021
+ function m() {
1022
+ v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1023
+ }
1024
+ let h = new XMLHttpRequest();
1025
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1026
+ function w() {
1027
+ if (!h)
1028
+ return;
1029
+ const g = F.from(
1030
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1031
+ ), A = {
1032
+ data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1033
+ status: h.status,
1034
+ statusText: h.statusText,
1035
+ headers: g,
1036
+ config: e,
1037
+ request: h
1038
+ };
1039
+ dn(function(N) {
1040
+ n(N), m();
1041
+ }, function(N) {
1042
+ r(N), m();
1043
+ }, A), h = null;
1044
+ }
1045
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1046
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1047
+ }, h.onabort = function() {
1048
+ h && (r(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
1049
+ }, h.onerror = function() {
1050
+ r(new S("Network Error", S.ERR_NETWORK, e, h)), h = null;
1051
+ }, h.ontimeout = function() {
1052
+ let O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1053
+ const A = o.transitional || un;
1054
+ o.timeoutErrorMessage && (O = o.timeoutErrorMessage), r(new S(
1055
+ O,
1056
+ A.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
1057
+ e,
1058
+ h
1059
+ )), h = null;
1060
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(O, A) {
1061
+ h.setRequestHeader(A, O);
1062
+ }), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Le(u, !0), h.addEventListener("progress", d)), c && h.upload && ([f, v] = Le(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
1063
+ h && (r(!g || g.type ? new le(null, e, h) : g), h.abort(), h = null);
1064
+ }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1065
+ const E = Sa(o.url);
1066
+ if (E && T.protocols.indexOf(E) === -1) {
1067
+ r(new S("Unsupported protocol " + E + ":", S.ERR_BAD_REQUEST, e));
1068
+ return;
1069
+ }
1070
+ h.send(a || null);
1071
+ });
1072
+ }, Ia = (e, t) => {
1073
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1074
+ if (t || n) {
1075
+ let r = new AbortController(), o;
1076
+ const a = function(u) {
1077
+ if (!o) {
1078
+ o = !0, s();
1079
+ const l = u instanceof Error ? u : this.reason;
1080
+ r.abort(l instanceof S ? l : new le(l instanceof Error ? l.message : l));
1081
+ }
1082
+ };
1083
+ let i = t && setTimeout(() => {
1084
+ i = null, a(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
1085
+ }, t);
1086
+ const s = () => {
1087
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1088
+ u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
1089
+ }), e = null);
1090
+ };
1091
+ e.forEach((u) => u.addEventListener("abort", a));
1092
+ const { signal: c } = r;
1093
+ return c.unsubscribe = () => p.asap(s), c;
1094
+ }
1095
+ }, Ta = function* (e, t) {
1096
+ let n = e.byteLength;
1097
+ if (n < t) {
1098
+ yield e;
1099
+ return;
1100
+ }
1101
+ let r = 0, o;
1102
+ for (; r < n; )
1103
+ o = r + t, yield e.slice(r, o), r = o;
1104
+ }, xa = async function* (e, t) {
1105
+ for await (const n of Na(e))
1106
+ yield* Ta(n, t);
1107
+ }, Na = async function* (e) {
1108
+ if (e[Symbol.asyncIterator]) {
1109
+ yield* e;
1110
+ return;
1111
+ }
1112
+ const t = e.getReader();
1113
+ try {
1114
+ for (; ; ) {
1115
+ const { done: n, value: r } = await t.read();
1116
+ if (n)
1117
+ break;
1118
+ yield r;
1119
+ }
1120
+ } finally {
1121
+ await t.cancel();
1122
+ }
1123
+ }, sr = (e, t, n, r) => {
1124
+ const o = xa(e, t);
1125
+ let a = 0, i, s = (c) => {
1126
+ i || (i = !0, r && r(c));
1127
+ };
1128
+ return new ReadableStream({
1129
+ async pull(c) {
1130
+ try {
1131
+ const { done: u, value: l } = await o.next();
1132
+ if (u) {
1133
+ s(), c.close();
1134
+ return;
1135
+ }
1136
+ let f = l.byteLength;
1137
+ if (n) {
1138
+ let d = a += f;
1139
+ n(d);
1140
+ }
1141
+ c.enqueue(new Uint8Array(l));
1142
+ } catch (u) {
1143
+ throw s(u), u;
1144
+ }
1145
+ },
1146
+ cancel(c) {
1147
+ return s(c), o.return();
1148
+ }
1149
+ }, {
1150
+ highWaterMark: 2
1151
+ });
1152
+ }, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", mn = Ge && typeof ReadableStream == "function", _a = Ge && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), gn = (e, ...t) => {
1153
+ try {
1154
+ return !!e(...t);
1155
+ } catch {
1156
+ return !1;
1157
+ }
1158
+ }, Fa = mn && gn(() => {
1159
+ let e = !1;
1160
+ const t = new Request(T.origin, {
1161
+ body: new ReadableStream(),
1162
+ method: "POST",
1163
+ get duplex() {
1164
+ return e = !0, "half";
1165
+ }
1166
+ }).headers.has("Content-Type");
1167
+ return e && !t;
1168
+ }), cr = 64 * 1024, xt = mn && gn(() => p.isReadableStream(new Response("").body)), Ue = {
1169
+ stream: xt && ((e) => e.body)
1170
+ };
1171
+ Ge && ((e) => {
1172
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1173
+ !Ue[t] && (Ue[t] = p.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1174
+ throw new S(`Response type '${t}' is not supported`, S.ERR_NOT_SUPPORT, r);
1175
+ });
1176
+ });
1177
+ })(new Response());
1178
+ const Da = async (e) => {
1179
+ if (e == null)
1180
+ return 0;
1181
+ if (p.isBlob(e))
1182
+ return e.size;
1183
+ if (p.isSpecCompliantForm(e))
1184
+ return (await new Request(T.origin, {
1185
+ method: "POST",
1186
+ body: e
1187
+ }).arrayBuffer()).byteLength;
1188
+ if (p.isArrayBufferView(e) || p.isArrayBuffer(e))
1189
+ return e.byteLength;
1190
+ if (p.isURLSearchParams(e) && (e = e + ""), p.isString(e))
1191
+ return (await _a(e)).byteLength;
1192
+ }, $a = async (e, t) => {
1193
+ const n = p.toFiniteNumber(e.getContentLength());
1194
+ return n ?? Da(t);
1195
+ }, La = Ge && (async (e) => {
1196
+ let {
1197
+ url: t,
1198
+ method: n,
1199
+ data: r,
1200
+ signal: o,
1201
+ cancelToken: a,
1202
+ timeout: i,
1203
+ onDownloadProgress: s,
1204
+ onUploadProgress: c,
1205
+ responseType: u,
1206
+ headers: l,
1207
+ withCredentials: f = "same-origin",
1208
+ fetchOptions: d
1209
+ } = hn(e);
1210
+ u = u ? (u + "").toLowerCase() : "text";
1211
+ let v = Ia([o, a && a.toAbortSignal()], i), y;
1212
+ const m = v && v.unsubscribe && (() => {
1213
+ v.unsubscribe();
1214
+ });
1215
+ let h;
1216
+ try {
1217
+ if (c && Fa && n !== "get" && n !== "head" && (h = await $a(l, r)) !== 0) {
1218
+ let A = new Request(t, {
1219
+ method: "POST",
1220
+ body: r,
1221
+ duplex: "half"
1222
+ }), x;
1223
+ if (p.isFormData(r) && (x = A.headers.get("content-type")) && l.setContentType(x), A.body) {
1224
+ const [N, j] = or(
1225
+ h,
1226
+ Le(ar(c))
1227
+ );
1228
+ r = sr(A.body, cr, N, j);
1229
+ }
1230
+ }
1231
+ p.isString(f) || (f = f ? "include" : "omit");
1232
+ const w = "credentials" in Request.prototype;
1233
+ y = new Request(t, {
1234
+ ...d,
1235
+ signal: v,
1236
+ method: n.toUpperCase(),
1237
+ headers: l.normalize().toJSON(),
1238
+ body: r,
1239
+ duplex: "half",
1240
+ credentials: w ? f : void 0
1241
+ });
1242
+ let E = await fetch(y, d);
1243
+ const g = xt && (u === "stream" || u === "response");
1244
+ if (xt && (s || g && m)) {
1245
+ const A = {};
1246
+ ["status", "statusText", "headers"].forEach((L) => {
1247
+ A[L] = E[L];
1248
+ });
1249
+ const x = p.toFiniteNumber(E.headers.get("content-length")), [N, j] = s && or(
1250
+ x,
1251
+ Le(ar(s), !0)
1252
+ ) || [];
1253
+ E = new Response(
1254
+ sr(E.body, cr, N, () => {
1255
+ j && j(), m && m();
1256
+ }),
1257
+ A
1258
+ );
1259
+ }
1260
+ u = u || "text";
1261
+ let O = await Ue[p.findKey(Ue, u) || "text"](E, e);
1262
+ return !g && m && m(), await new Promise((A, x) => {
1263
+ dn(A, x, {
1264
+ data: O,
1265
+ headers: F.from(E.headers),
1266
+ status: E.status,
1267
+ statusText: E.statusText,
1268
+ config: e,
1269
+ request: y
1270
+ });
1271
+ });
1272
+ } catch (w) {
1273
+ throw m && m(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1274
+ new S("Network Error", S.ERR_NETWORK, e, y),
1275
+ {
1276
+ cause: w.cause || w
1277
+ }
1278
+ ) : S.from(w, w && w.code, e, y);
1279
+ }
1280
+ }), Nt = {
1281
+ http: Xo,
1282
+ xhr: Ca,
1283
+ fetch: La
1284
+ };
1285
+ p.forEach(Nt, (e, t) => {
1286
+ if (e) {
1287
+ try {
1288
+ Object.defineProperty(e, "name", { value: t });
1289
+ } catch {
1290
+ }
1291
+ Object.defineProperty(e, "adapterName", { value: t });
1292
+ }
1293
+ });
1294
+ const lr = (e) => `- ${e}`, Ua = (e) => p.isFunction(e) || e === null || e === !1, vn = {
1295
+ getAdapter: (e) => {
1296
+ e = p.isArray(e) ? e : [e];
1297
+ const { length: t } = e;
1298
+ let n, r;
1299
+ const o = {};
1300
+ for (let a = 0; a < t; a++) {
1301
+ n = e[a];
1302
+ let i;
1303
+ if (r = n, !Ua(n) && (r = Nt[(i = String(n)).toLowerCase()], r === void 0))
1304
+ throw new S(`Unknown adapter '${i}'`);
1305
+ if (r)
1306
+ break;
1307
+ o[i || "#" + a] = r;
1308
+ }
1309
+ if (!r) {
1310
+ const a = Object.entries(o).map(
1311
+ ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1312
+ );
1313
+ let i = t ? a.length > 1 ? `since :
1314
+ ` + a.map(lr).join(`
1315
+ `) : " " + lr(a[0]) : "as no adapter specified";
1316
+ throw new S(
1317
+ "There is no suitable adapter to dispatch the request " + i,
1318
+ "ERR_NOT_SUPPORT"
1319
+ );
1320
+ }
1321
+ return r;
1322
+ },
1323
+ adapters: Nt
1324
+ };
1325
+ function nt(e) {
1326
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1327
+ throw new le(null, e);
1328
+ }
1329
+ function ur(e) {
1330
+ return nt(e), e.headers = F.from(e.headers), e.data = rt.call(
1331
+ e,
1332
+ e.transformRequest
1333
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), vn.getAdapter(e.adapter || Ee.adapter)(e).then(function(r) {
1334
+ return nt(e), r.data = rt.call(
1335
+ e,
1336
+ e.transformResponse,
1337
+ r
1338
+ ), r.headers = F.from(r.headers), r;
1339
+ }, function(r) {
1340
+ return pn(r) || (nt(e), r && r.response && (r.response.data = rt.call(
1341
+ e,
1342
+ e.transformResponse,
1343
+ r.response
1344
+ ), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
1345
+ });
1346
+ }
1347
+ const Sn = "1.10.0", Ve = {};
1348
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1349
+ Ve[e] = function(r) {
1350
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1351
+ };
1352
+ });
1353
+ const fr = {};
1354
+ Ve.transitional = function(t, n, r) {
1355
+ function o(a, i) {
1356
+ return "[Axios v" + Sn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1357
+ }
1358
+ return (a, i, s) => {
1359
+ if (t === !1)
1360
+ throw new S(
1361
+ o(i, " has been removed" + (n ? " in " + n : "")),
1362
+ S.ERR_DEPRECATED
1363
+ );
1364
+ return n && !fr[i] && (fr[i] = !0), t ? t(a, i, s) : !0;
1365
+ };
1366
+ };
1367
+ Ve.spelling = function(t) {
1368
+ return (n, r) => !0;
1369
+ };
1370
+ function Ma(e, t, n) {
1371
+ if (typeof e != "object")
1372
+ throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
1373
+ const r = Object.keys(e);
1374
+ let o = r.length;
1375
+ for (; o-- > 0; ) {
1376
+ const a = r[o], i = t[a];
1377
+ if (i) {
1378
+ const s = e[a], c = s === void 0 || i(s, a, e);
1379
+ if (c !== !0)
1380
+ throw new S("option " + a + " must be " + c, S.ERR_BAD_OPTION_VALUE);
1381
+ continue;
1382
+ }
1383
+ if (n !== !0)
1384
+ throw new S("Unknown option " + a, S.ERR_BAD_OPTION);
1385
+ }
1386
+ }
1387
+ const _e = {
1388
+ assertOptions: Ma,
1389
+ validators: Ve
1390
+ }, U = _e.validators;
1391
+ class Q {
1392
+ constructor(t) {
1393
+ this.defaults = t || {}, this.interceptors = {
1394
+ request: new rr(),
1395
+ response: new rr()
1396
+ };
1397
+ }
1398
+ /**
1399
+ * Dispatch a request
1400
+ *
1401
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1402
+ * @param {?Object} config
1403
+ *
1404
+ * @returns {Promise} The Promise to be fulfilled
1405
+ */
1406
+ async request(t, n) {
1407
+ try {
1408
+ return await this._request(t, n);
1409
+ } catch (r) {
1410
+ if (r instanceof Error) {
1411
+ let o = {};
1412
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1413
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1414
+ try {
1415
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1416
+ ` + a) : r.stack = a;
1417
+ } catch {
1418
+ }
1419
+ }
1420
+ throw r;
1421
+ }
1422
+ }
1423
+ _request(t, n) {
1424
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Z(this.defaults, n);
1425
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1426
+ r !== void 0 && _e.assertOptions(r, {
1427
+ silentJSONParsing: U.transitional(U.boolean),
1428
+ forcedJSONParsing: U.transitional(U.boolean),
1429
+ clarifyTimeoutError: U.transitional(U.boolean)
1430
+ }, !1), o != null && (p.isFunction(o) ? n.paramsSerializer = {
1431
+ serialize: o
1432
+ } : _e.assertOptions(o, {
1433
+ encode: U.function,
1434
+ serialize: U.function
1435
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), _e.assertOptions(n, {
1436
+ baseUrl: U.spelling("baseURL"),
1437
+ withXsrfToken: U.spelling("withXSRFToken")
1438
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1439
+ let i = a && p.merge(
1440
+ a.common,
1441
+ a[n.method]
1442
+ );
1443
+ a && p.forEach(
1444
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1445
+ (y) => {
1446
+ delete a[y];
1447
+ }
1448
+ ), n.headers = F.concat(i, a);
1449
+ const s = [];
1450
+ let c = !0;
1451
+ this.interceptors.request.forEach(function(m) {
1452
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (c = c && m.synchronous, s.unshift(m.fulfilled, m.rejected));
1453
+ });
1454
+ const u = [];
1455
+ this.interceptors.response.forEach(function(m) {
1456
+ u.push(m.fulfilled, m.rejected);
1457
+ });
1458
+ let l, f = 0, d;
1459
+ if (!c) {
1460
+ const y = [ur.bind(this), void 0];
1461
+ for (y.unshift.apply(y, s), y.push.apply(y, u), d = y.length, l = Promise.resolve(n); f < d; )
1462
+ l = l.then(y[f++], y[f++]);
1463
+ return l;
1464
+ }
1465
+ d = s.length;
1466
+ let v = n;
1467
+ for (f = 0; f < d; ) {
1468
+ const y = s[f++], m = s[f++];
1469
+ try {
1470
+ v = y(v);
1471
+ } catch (h) {
1472
+ m.call(this, h);
1473
+ break;
1474
+ }
1475
+ }
1476
+ try {
1477
+ l = ur.call(this, v);
1478
+ } catch (y) {
1479
+ return Promise.reject(y);
1480
+ }
1481
+ for (f = 0, d = u.length; f < d; )
1482
+ l = l.then(u[f++], u[f++]);
1483
+ return l;
1484
+ }
1485
+ getUri(t) {
1486
+ t = Z(this.defaults, t);
1487
+ const n = yn(t.baseURL, t.url, t.allowAbsoluteUrls);
1488
+ return ln(n, t.params, t.paramsSerializer);
1489
+ }
1490
+ }
1491
+ p.forEach(["delete", "get", "head", "options"], function(t) {
1492
+ Q.prototype[t] = function(n, r) {
1493
+ return this.request(Z(r || {}, {
1494
+ method: t,
1495
+ url: n,
1496
+ data: (r || {}).data
1497
+ }));
1498
+ };
1499
+ });
1500
+ p.forEach(["post", "put", "patch"], function(t) {
1501
+ function n(r) {
1502
+ return function(a, i, s) {
1503
+ return this.request(Z(s || {}, {
1504
+ method: t,
1505
+ headers: r ? {
1506
+ "Content-Type": "multipart/form-data"
1507
+ } : {},
1508
+ url: a,
1509
+ data: i
1510
+ }));
1511
+ };
1512
+ }
1513
+ Q.prototype[t] = n(), Q.prototype[t + "Form"] = n(!0);
1514
+ });
1515
+ class Ht {
1516
+ constructor(t) {
1517
+ if (typeof t != "function")
1518
+ throw new TypeError("executor must be a function.");
1519
+ let n;
1520
+ this.promise = new Promise(function(a) {
1521
+ n = a;
1522
+ });
1523
+ const r = this;
1524
+ this.promise.then((o) => {
1525
+ if (!r._listeners) return;
1526
+ let a = r._listeners.length;
1527
+ for (; a-- > 0; )
1528
+ r._listeners[a](o);
1529
+ r._listeners = null;
1530
+ }), this.promise.then = (o) => {
1531
+ let a;
1532
+ const i = new Promise((s) => {
1533
+ r.subscribe(s), a = s;
1534
+ }).then(o);
1535
+ return i.cancel = function() {
1536
+ r.unsubscribe(a);
1537
+ }, i;
1538
+ }, t(function(a, i, s) {
1539
+ r.reason || (r.reason = new le(a, i, s), n(r.reason));
1540
+ });
1541
+ }
1542
+ /**
1543
+ * Throws a `CanceledError` if cancellation has been requested.
1544
+ */
1545
+ throwIfRequested() {
1546
+ if (this.reason)
1547
+ throw this.reason;
1548
+ }
1549
+ /**
1550
+ * Subscribe to the cancel signal
1551
+ */
1552
+ subscribe(t) {
1553
+ if (this.reason) {
1554
+ t(this.reason);
1555
+ return;
1556
+ }
1557
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1558
+ }
1559
+ /**
1560
+ * Unsubscribe from the cancel signal
1561
+ */
1562
+ unsubscribe(t) {
1563
+ if (!this._listeners)
1564
+ return;
1565
+ const n = this._listeners.indexOf(t);
1566
+ n !== -1 && this._listeners.splice(n, 1);
1567
+ }
1568
+ toAbortSignal() {
1569
+ const t = new AbortController(), n = (r) => {
1570
+ t.abort(r);
1571
+ };
1572
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1573
+ }
1574
+ /**
1575
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1576
+ * cancels the `CancelToken`.
1577
+ */
1578
+ static source() {
1579
+ let t;
1580
+ return {
1581
+ token: new Ht(function(o) {
1582
+ t = o;
1583
+ }),
1584
+ cancel: t
1585
+ };
1586
+ }
1587
+ }
1588
+ function Ba(e) {
1589
+ return function(n) {
1590
+ return e.apply(null, n);
1591
+ };
1592
+ }
1593
+ function ka(e) {
1594
+ return p.isObject(e) && e.isAxiosError === !0;
1595
+ }
1596
+ const _t = {
1597
+ Continue: 100,
1598
+ SwitchingProtocols: 101,
1599
+ Processing: 102,
1600
+ EarlyHints: 103,
1601
+ Ok: 200,
1602
+ Created: 201,
1603
+ Accepted: 202,
1604
+ NonAuthoritativeInformation: 203,
1605
+ NoContent: 204,
1606
+ ResetContent: 205,
1607
+ PartialContent: 206,
1608
+ MultiStatus: 207,
1609
+ AlreadyReported: 208,
1610
+ ImUsed: 226,
1611
+ MultipleChoices: 300,
1612
+ MovedPermanently: 301,
1613
+ Found: 302,
1614
+ SeeOther: 303,
1615
+ NotModified: 304,
1616
+ UseProxy: 305,
1617
+ Unused: 306,
1618
+ TemporaryRedirect: 307,
1619
+ PermanentRedirect: 308,
1620
+ BadRequest: 400,
1621
+ Unauthorized: 401,
1622
+ PaymentRequired: 402,
1623
+ Forbidden: 403,
1624
+ NotFound: 404,
1625
+ MethodNotAllowed: 405,
1626
+ NotAcceptable: 406,
1627
+ ProxyAuthenticationRequired: 407,
1628
+ RequestTimeout: 408,
1629
+ Conflict: 409,
1630
+ Gone: 410,
1631
+ LengthRequired: 411,
1632
+ PreconditionFailed: 412,
1633
+ PayloadTooLarge: 413,
1634
+ UriTooLong: 414,
1635
+ UnsupportedMediaType: 415,
1636
+ RangeNotSatisfiable: 416,
1637
+ ExpectationFailed: 417,
1638
+ ImATeapot: 418,
1639
+ MisdirectedRequest: 421,
1640
+ UnprocessableEntity: 422,
1641
+ Locked: 423,
1642
+ FailedDependency: 424,
1643
+ TooEarly: 425,
1644
+ UpgradeRequired: 426,
1645
+ PreconditionRequired: 428,
1646
+ TooManyRequests: 429,
1647
+ RequestHeaderFieldsTooLarge: 431,
1648
+ UnavailableForLegalReasons: 451,
1649
+ InternalServerError: 500,
1650
+ NotImplemented: 501,
1651
+ BadGateway: 502,
1652
+ ServiceUnavailable: 503,
1653
+ GatewayTimeout: 504,
1654
+ HttpVersionNotSupported: 505,
1655
+ VariantAlsoNegotiates: 506,
1656
+ InsufficientStorage: 507,
1657
+ LoopDetected: 508,
1658
+ NotExtended: 510,
1659
+ NetworkAuthenticationRequired: 511
1660
+ };
1661
+ Object.entries(_t).forEach(([e, t]) => {
1662
+ _t[t] = e;
1663
+ });
1664
+ function wn(e) {
1665
+ const t = new Q(e), n = Qr(Q.prototype.request, t);
1666
+ return p.extend(n, Q.prototype, t, { allOwnKeys: !0 }), p.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1667
+ return wn(Z(e, o));
1668
+ }, n;
1669
+ }
1670
+ const P = wn(Ee);
1671
+ P.Axios = Q;
1672
+ P.CanceledError = le;
1673
+ P.CancelToken = Ht;
1674
+ P.isCancel = pn;
1675
+ P.VERSION = Sn;
1676
+ P.toFormData = Je;
1677
+ P.AxiosError = S;
1678
+ P.Cancel = P.CanceledError;
1679
+ P.all = function(t) {
1680
+ return Promise.all(t);
1681
+ };
1682
+ P.spread = Ba;
1683
+ P.isAxiosError = ka;
1684
+ P.mergeConfig = Z;
1685
+ P.AxiosHeaders = F;
1686
+ P.formToJSON = (e) => fn(p.isHTMLForm(e) ? new FormData(e) : e);
1687
+ P.getAdapter = vn.getAdapter;
1688
+ P.HttpStatusCode = _t;
1689
+ P.default = P;
1690
+ var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1691
+ function ja(e) {
1692
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1693
+ }
1694
+ function qa(e) {
1695
+ if (e.__esModule) return e;
1696
+ var t = e.default;
1697
+ if (typeof t == "function") {
1698
+ var n = function r() {
1699
+ return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
1700
+ };
1701
+ n.prototype = t.prototype;
1702
+ } else n = {};
1703
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
1704
+ var o = Object.getOwnPropertyDescriptor(e, r);
1705
+ Object.defineProperty(n, r, o.get ? o : {
1706
+ enumerable: !0,
1707
+ get: function() {
1708
+ return e[r];
1709
+ }
1710
+ });
1711
+ }), n;
1712
+ }
1713
+ var ue = TypeError;
1714
+ const za = {}, Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1715
+ __proto__: null,
1716
+ default: za
1717
+ }, Symbol.toStringTag, { value: "Module" })), Wa = /* @__PURE__ */ qa(Ha);
1718
+ var Wt = typeof Map == "function" && Map.prototype, ot = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Me = Wt && ot && typeof ot.get == "function" ? ot.get : null, dr = Wt && Map.prototype.forEach, Jt = typeof Set == "function" && Set.prototype, at = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Be = Jt && at && typeof at.get == "function" ? at.get : null, yr = Jt && Set.prototype.forEach, Ja = typeof WeakMap == "function" && WeakMap.prototype, ye = Ja ? WeakMap.prototype.has : null, Ga = typeof WeakSet == "function" && WeakSet.prototype, he = Ga ? WeakSet.prototype.has : null, Va = typeof WeakRef == "function" && WeakRef.prototype, hr = Va ? WeakRef.prototype.deref : null, Ka = Boolean.prototype.valueOf, Qa = Object.prototype.toString, Xa = Function.prototype.toString, Za = String.prototype.match, Gt = String.prototype.slice, J = String.prototype.replace, Ya = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, bn = RegExp.prototype.test, gr = Array.prototype.concat, k = Array.prototype.join, ei = Array.prototype.slice, vr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, it = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, En = Object.prototype.propertyIsEnumerable, Sr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
1719
+ return e.__proto__;
1720
+ } : null);
1721
+ function wr(e, t) {
1722
+ if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || bn.call(/e/, t))
1723
+ return t;
1724
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1725
+ if (typeof e == "number") {
1726
+ var r = e < 0 ? -vr(-e) : vr(e);
1727
+ if (r !== e) {
1728
+ var o = String(r), a = Gt.call(t, o.length + 1);
1729
+ return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1730
+ }
1731
+ }
1732
+ return J.call(t, n, "$&_");
1733
+ }
1734
+ var $t = Wa, br = $t.custom, Er = Rn(br) ? br : null, On = {
1735
+ __proto__: null,
1736
+ double: '"',
1737
+ single: "'"
1738
+ }, ti = {
1739
+ __proto__: null,
1740
+ double: /(["\\])/g,
1741
+ single: /(['\\])/g
1742
+ }, Ke = function e(t, n, r, o) {
1743
+ var a = n || {};
1744
+ if (z(a, "quoteStyle") && !z(On, a.quoteStyle))
1745
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1746
+ if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1747
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1748
+ var i = z(a, "customInspect") ? a.customInspect : !0;
1749
+ if (typeof i != "boolean" && i !== "symbol")
1750
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1751
+ if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1752
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1753
+ if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1754
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1755
+ var s = a.numericSeparator;
1756
+ if (typeof t > "u")
1757
+ return "undefined";
1758
+ if (t === null)
1759
+ return "null";
1760
+ if (typeof t == "boolean")
1761
+ return t ? "true" : "false";
1762
+ if (typeof t == "string")
1763
+ return Cn(t, a);
1764
+ if (typeof t == "number") {
1765
+ if (t === 0)
1766
+ return 1 / 0 / t > 0 ? "0" : "-0";
1767
+ var c = String(t);
1768
+ return s ? wr(t, c) : c;
1769
+ }
1770
+ if (typeof t == "bigint") {
1771
+ var u = String(t) + "n";
1772
+ return s ? wr(t, u) : u;
1773
+ }
1774
+ var l = typeof a.depth > "u" ? 5 : a.depth;
1775
+ if (typeof r > "u" && (r = 0), r >= l && l > 0 && typeof t == "object")
1776
+ return Lt(t) ? "[Array]" : "[Object]";
1777
+ var f = Si(a, r);
1778
+ if (typeof o > "u")
1779
+ o = [];
1780
+ else if (Pn(o, t) >= 0)
1781
+ return "[Circular]";
1782
+ function d(D, W, q) {
1783
+ if (W && (o = ei.call(o), o.push(W)), q) {
1784
+ var fe = {
1785
+ depth: a.depth
1786
+ };
1787
+ return z(a, "quoteStyle") && (fe.quoteStyle = a.quoteStyle), e(D, fe, r + 1, o);
1788
+ }
1789
+ return e(D, a, r + 1, o);
1790
+ }
1791
+ if (typeof t == "function" && !Or(t)) {
1792
+ var v = ui(t), y = Ce(t, d);
1793
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
1794
+ }
1795
+ if (Rn(t)) {
1796
+ var m = ie ? J.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(t);
1797
+ return typeof t == "object" && !ie ? de(m) : m;
1798
+ }
1799
+ if (mi(t)) {
1800
+ for (var h = "<" + mr.call(String(t.nodeName)), w = t.attributes || [], E = 0; E < w.length; E++)
1801
+ h += " " + w[E].name + "=" + An(ri(w[E].value), "double", a);
1802
+ return h += ">", t.childNodes && t.childNodes.length && (h += "..."), h += "</" + mr.call(String(t.nodeName)) + ">", h;
1803
+ }
1804
+ if (Lt(t)) {
1805
+ if (t.length === 0)
1806
+ return "[]";
1807
+ var g = Ce(t, d);
1808
+ return f && !vi(g) ? "[" + Ut(g, f) + "]" : "[ " + k.call(g, ", ") + " ]";
1809
+ }
1810
+ if (oi(t)) {
1811
+ var O = Ce(t, d);
1812
+ return !("cause" in Error.prototype) && "cause" in t && !En.call(t, "cause") ? "{ [" + String(t) + "] " + k.call(gr.call("[cause]: " + d(t.cause), O), ", ") + " }" : O.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + k.call(O, ", ") + " }";
1813
+ }
1814
+ if (typeof t == "object" && i) {
1815
+ if (Er && typeof t[Er] == "function" && $t)
1816
+ return $t(t, { depth: l - r });
1817
+ if (i !== "symbol" && typeof t.inspect == "function")
1818
+ return t.inspect();
1819
+ }
1820
+ if (fi(t)) {
1821
+ var A = [];
1822
+ return dr && dr.call(t, function(D, W) {
1823
+ A.push(d(W, t, !0) + " => " + d(D, t));
1824
+ }), Ar("Map", Me.call(t), A, f);
1825
+ }
1826
+ if (yi(t)) {
1827
+ var x = [];
1828
+ return yr && yr.call(t, function(D) {
1829
+ x.push(d(D, t));
1830
+ }), Ar("Set", Be.call(t), x, f);
1831
+ }
1832
+ if (pi(t))
1833
+ return st("WeakMap");
1834
+ if (hi(t))
1835
+ return st("WeakSet");
1836
+ if (di(t))
1837
+ return st("WeakRef");
1838
+ if (ii(t))
1839
+ return de(d(Number(t)));
1840
+ if (ci(t))
1841
+ return de(d(Ft.call(t)));
1842
+ if (si(t))
1843
+ return de(Ka.call(t));
1844
+ if (ai(t))
1845
+ return de(d(String(t)));
1846
+ if (typeof window < "u" && t === window)
1847
+ return "{ [object Window] }";
1848
+ if (typeof globalThis < "u" && t === globalThis || typeof pr < "u" && t === pr)
1849
+ return "{ [object globalThis] }";
1850
+ if (!ni(t) && !Or(t)) {
1851
+ var N = Ce(t, d), j = Sr ? Sr(t) === Object.prototype : t instanceof Object || t.constructor === Object, L = t instanceof Object ? "" : "null prototype", H = !j && me && Object(t) === t && me in t ? Gt.call(G(t), 8, -1) : L ? "Object" : "", Pe = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", te = Pe + (H || L ? "[" + k.call(gr.call([], H || [], L || []), ": ") + "] " : "");
1852
+ return N.length === 0 ? te + "{}" : f ? te + "{" + Ut(N, f) + "}" : te + "{ " + k.call(N, ", ") + " }";
1853
+ }
1854
+ return String(t);
1855
+ };
1856
+ function An(e, t, n) {
1857
+ var r = n.quoteStyle || t, o = On[r];
1858
+ return o + e + o;
1859
+ }
1860
+ function ri(e) {
1861
+ return J.call(String(e), /"/g, "&quot;");
1862
+ }
1863
+ function ee(e) {
1864
+ return !me || !(typeof e == "object" && (me in e || typeof e[me] < "u"));
1865
+ }
1866
+ function Lt(e) {
1867
+ return G(e) === "[object Array]" && ee(e);
1868
+ }
1869
+ function ni(e) {
1870
+ return G(e) === "[object Date]" && ee(e);
1871
+ }
1872
+ function Or(e) {
1873
+ return G(e) === "[object RegExp]" && ee(e);
1874
+ }
1875
+ function oi(e) {
1876
+ return G(e) === "[object Error]" && ee(e);
1877
+ }
1878
+ function ai(e) {
1879
+ return G(e) === "[object String]" && ee(e);
1880
+ }
1881
+ function ii(e) {
1882
+ return G(e) === "[object Number]" && ee(e);
1883
+ }
1884
+ function si(e) {
1885
+ return G(e) === "[object Boolean]" && ee(e);
1886
+ }
1887
+ function Rn(e) {
1888
+ if (ie)
1889
+ return e && typeof e == "object" && e instanceof Symbol;
1890
+ if (typeof e == "symbol")
1891
+ return !0;
1892
+ if (!e || typeof e != "object" || !Dt)
1893
+ return !1;
1894
+ try {
1895
+ return Dt.call(e), !0;
1896
+ } catch {
1897
+ }
1898
+ return !1;
1899
+ }
1900
+ function ci(e) {
1901
+ if (!e || typeof e != "object" || !Ft)
1902
+ return !1;
1903
+ try {
1904
+ return Ft.call(e), !0;
1905
+ } catch {
1906
+ }
1907
+ return !1;
1908
+ }
1909
+ var li = Object.prototype.hasOwnProperty || function(e) {
1910
+ return e in this;
1911
+ };
1912
+ function z(e, t) {
1913
+ return li.call(e, t);
1914
+ }
1915
+ function G(e) {
1916
+ return Qa.call(e);
1917
+ }
1918
+ function ui(e) {
1919
+ if (e.name)
1920
+ return e.name;
1921
+ var t = Za.call(Xa.call(e), /^function\s*([\w$]+)/);
1922
+ return t ? t[1] : null;
1923
+ }
1924
+ function Pn(e, t) {
1925
+ if (e.indexOf)
1926
+ return e.indexOf(t);
1927
+ for (var n = 0, r = e.length; n < r; n++)
1928
+ if (e[n] === t)
1929
+ return n;
1930
+ return -1;
1931
+ }
1932
+ function fi(e) {
1933
+ if (!Me || !e || typeof e != "object")
1934
+ return !1;
1935
+ try {
1936
+ Me.call(e);
1937
+ try {
1938
+ Be.call(e);
1939
+ } catch {
1940
+ return !0;
1941
+ }
1942
+ return e instanceof Map;
1943
+ } catch {
1944
+ }
1945
+ return !1;
1946
+ }
1947
+ function pi(e) {
1948
+ if (!ye || !e || typeof e != "object")
1949
+ return !1;
1950
+ try {
1951
+ ye.call(e, ye);
1952
+ try {
1953
+ he.call(e, he);
1954
+ } catch {
1955
+ return !0;
1956
+ }
1957
+ return e instanceof WeakMap;
1958
+ } catch {
1959
+ }
1960
+ return !1;
1961
+ }
1962
+ function di(e) {
1963
+ if (!hr || !e || typeof e != "object")
1964
+ return !1;
1965
+ try {
1966
+ return hr.call(e), !0;
1967
+ } catch {
1968
+ }
1969
+ return !1;
1970
+ }
1971
+ function yi(e) {
1972
+ if (!Be || !e || typeof e != "object")
1973
+ return !1;
1974
+ try {
1975
+ Be.call(e);
1976
+ try {
1977
+ Me.call(e);
1978
+ } catch {
1979
+ return !0;
1980
+ }
1981
+ return e instanceof Set;
1982
+ } catch {
1983
+ }
1984
+ return !1;
1985
+ }
1986
+ function hi(e) {
1987
+ if (!he || !e || typeof e != "object")
1988
+ return !1;
1989
+ try {
1990
+ he.call(e, he);
1991
+ try {
1992
+ ye.call(e, ye);
1993
+ } catch {
1994
+ return !0;
1995
+ }
1996
+ return e instanceof WeakSet;
1997
+ } catch {
1998
+ }
1999
+ return !1;
2000
+ }
2001
+ function mi(e) {
2002
+ return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
2003
+ }
2004
+ function Cn(e, t) {
2005
+ if (e.length > t.maxStringLength) {
2006
+ var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2007
+ return Cn(Gt.call(e, 0, t.maxStringLength), t) + r;
2008
+ }
2009
+ var o = ti[t.quoteStyle || "single"];
2010
+ o.lastIndex = 0;
2011
+ var a = J.call(J.call(e, o, "\\$1"), /[\x00-\x1f]/g, gi);
2012
+ return An(a, "single", t);
2013
+ }
2014
+ function gi(e) {
2015
+ var t = e.charCodeAt(0), n = {
2016
+ 8: "b",
2017
+ 9: "t",
2018
+ 10: "n",
2019
+ 12: "f",
2020
+ 13: "r"
2021
+ }[t];
2022
+ return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Ya.call(t.toString(16));
2023
+ }
2024
+ function de(e) {
2025
+ return "Object(" + e + ")";
2026
+ }
2027
+ function st(e) {
2028
+ return e + " { ? }";
2029
+ }
2030
+ function Ar(e, t, n, r) {
2031
+ var o = r ? Ut(n, r) : k.call(n, ", ");
2032
+ return e + " (" + t + ") {" + o + "}";
2033
+ }
2034
+ function vi(e) {
2035
+ for (var t = 0; t < e.length; t++)
2036
+ if (Pn(e[t], `
2037
+ `) >= 0)
2038
+ return !1;
2039
+ return !0;
2040
+ }
2041
+ function Si(e, t) {
2042
+ var n;
2043
+ if (e.indent === " ")
2044
+ n = " ";
2045
+ else if (typeof e.indent == "number" && e.indent > 0)
2046
+ n = k.call(Array(e.indent + 1), " ");
2047
+ else
2048
+ return null;
2049
+ return {
2050
+ base: n,
2051
+ prev: k.call(Array(t + 1), n)
2052
+ };
2053
+ }
2054
+ function Ut(e, t) {
2055
+ if (e.length === 0)
2056
+ return "";
2057
+ var n = `
2058
+ ` + t.prev + t.base;
2059
+ return n + k.call(e, "," + n) + `
2060
+ ` + t.prev;
2061
+ }
2062
+ function Ce(e, t) {
2063
+ var n = Lt(e), r = [];
2064
+ if (n) {
2065
+ r.length = e.length;
2066
+ for (var o = 0; o < e.length; o++)
2067
+ r[o] = z(e, o) ? t(e[o], e) : "";
2068
+ }
2069
+ var a = typeof it == "function" ? it(e) : [], i;
2070
+ if (ie) {
2071
+ i = {};
2072
+ for (var s = 0; s < a.length; s++)
2073
+ i["$" + a[s]] = a[s];
2074
+ }
2075
+ for (var c in e)
2076
+ z(e, c) && (n && String(Number(c)) === c && c < e.length || ie && i["$" + c] instanceof Symbol || (bn.call(/[^\w$]/, c) ? r.push(t(c, e) + ": " + t(e[c], e)) : r.push(c + ": " + t(e[c], e))));
2077
+ if (typeof it == "function")
2078
+ for (var u = 0; u < a.length; u++)
2079
+ En.call(e, a[u]) && r.push("[" + t(a[u]) + "]: " + t(e[a[u]], e));
2080
+ return r;
2081
+ }
2082
+ var wi = Ke, bi = ue, Qe = function(e, t, n) {
2083
+ for (var r = e, o; (o = r.next) != null; r = o)
2084
+ if (o.key === t)
2085
+ return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
2086
+ e.next, e.next = o), o;
2087
+ }, Ei = function(e, t) {
2088
+ if (e) {
2089
+ var n = Qe(e, t);
2090
+ return n && n.value;
2091
+ }
2092
+ }, Oi = function(e, t, n) {
2093
+ var r = Qe(e, t);
2094
+ r ? r.value = n : e.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
2095
+ {
2096
+ // eslint-disable-line no-param-reassign, no-extra-parens
2097
+ key: t,
2098
+ next: e.next,
2099
+ value: n
2100
+ };
2101
+ }, Ai = function(e, t) {
2102
+ return e ? !!Qe(e, t) : !1;
2103
+ }, Ri = function(e, t) {
2104
+ if (e)
2105
+ return Qe(e, t, !0);
2106
+ }, Pi = function() {
2107
+ var t, n = {
2108
+ assert: function(r) {
2109
+ if (!n.has(r))
2110
+ throw new bi("Side channel does not contain " + wi(r));
2111
+ },
2112
+ delete: function(r) {
2113
+ var o = t && t.next, a = Ri(t, r);
2114
+ return a && o && o === a && (t = void 0), !!a;
2115
+ },
2116
+ get: function(r) {
2117
+ return Ei(t, r);
2118
+ },
2119
+ has: function(r) {
2120
+ return Ai(t, r);
2121
+ },
2122
+ set: function(r, o) {
2123
+ t || (t = {
2124
+ next: void 0
2125
+ }), Oi(
2126
+ /** @type {NonNullable<typeof $o>} */
2127
+ t,
2128
+ r,
2129
+ o
2130
+ );
2131
+ }
2132
+ };
2133
+ return n;
2134
+ }, In = Object, Ci = Error, Ii = EvalError, Ti = RangeError, xi = ReferenceError, Ni = SyntaxError, _i = URIError, Fi = Math.abs, Di = Math.floor, $i = Math.max, Li = Math.min, Ui = Math.pow, Mi = Math.round, Bi = Number.isNaN || function(t) {
2135
+ return t !== t;
2136
+ }, ki = Bi, ji = function(t) {
2137
+ return ki(t) || t === 0 ? t : t < 0 ? -1 : 1;
2138
+ }, qi = Object.getOwnPropertyDescriptor, Fe = qi;
2139
+ if (Fe)
2140
+ try {
2141
+ Fe([], "length");
2142
+ } catch {
2143
+ Fe = null;
2144
+ }
2145
+ var Tn = Fe, De = Object.defineProperty || !1;
2146
+ if (De)
2147
+ try {
2148
+ De({}, "a", { value: 1 });
2149
+ } catch {
2150
+ De = !1;
2151
+ }
2152
+ var zi = De, ct, Rr;
2153
+ function Hi() {
2154
+ return Rr || (Rr = 1, ct = function() {
2155
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2156
+ return !1;
2157
+ if (typeof Symbol.iterator == "symbol")
2158
+ return !0;
2159
+ var t = {}, n = Symbol("test"), r = Object(n);
2160
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
2161
+ return !1;
2162
+ var o = 42;
2163
+ t[n] = o;
2164
+ for (var a in t)
2165
+ return !1;
2166
+ if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
2167
+ return !1;
2168
+ var i = Object.getOwnPropertySymbols(t);
2169
+ if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(t, n))
2170
+ return !1;
2171
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
2172
+ var s = (
2173
+ /** @type {PropertyDescriptor} */
2174
+ Object.getOwnPropertyDescriptor(t, n)
2175
+ );
2176
+ if (s.value !== o || s.enumerable !== !0)
2177
+ return !1;
2178
+ }
2179
+ return !0;
2180
+ }), ct;
2181
+ }
2182
+ var lt, Pr;
2183
+ function Wi() {
2184
+ if (Pr) return lt;
2185
+ Pr = 1;
2186
+ var e = typeof Symbol < "u" && Symbol, t = Hi();
2187
+ return lt = function() {
2188
+ return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
2189
+ }, lt;
2190
+ }
2191
+ var ut, Cr;
2192
+ function xn() {
2193
+ return Cr || (Cr = 1, ut = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ut;
2194
+ }
2195
+ var ft, Ir;
2196
+ function Nn() {
2197
+ if (Ir) return ft;
2198
+ Ir = 1;
2199
+ var e = In;
2200
+ return ft = e.getPrototypeOf || null, ft;
2201
+ }
2202
+ var pt, Tr;
2203
+ function Ji() {
2204
+ if (Tr) return pt;
2205
+ Tr = 1;
2206
+ var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(c, u) {
2207
+ for (var l = [], f = 0; f < c.length; f += 1)
2208
+ l[f] = c[f];
2209
+ for (var d = 0; d < u.length; d += 1)
2210
+ l[d + c.length] = u[d];
2211
+ return l;
2212
+ }, a = function(c, u) {
2213
+ for (var l = [], f = u, d = 0; f < c.length; f += 1, d += 1)
2214
+ l[d] = c[f];
2215
+ return l;
2216
+ }, i = function(s, c) {
2217
+ for (var u = "", l = 0; l < s.length; l += 1)
2218
+ u += s[l], l + 1 < s.length && (u += c);
2219
+ return u;
2220
+ };
2221
+ return pt = function(c) {
2222
+ var u = this;
2223
+ if (typeof u != "function" || t.apply(u) !== r)
2224
+ throw new TypeError(e + u);
2225
+ for (var l = a(arguments, 1), f, d = function() {
2226
+ if (this instanceof f) {
2227
+ var w = u.apply(
2228
+ this,
2229
+ o(l, arguments)
2230
+ );
2231
+ return Object(w) === w ? w : this;
2232
+ }
2233
+ return u.apply(
2234
+ c,
2235
+ o(l, arguments)
2236
+ );
2237
+ }, v = n(0, u.length - l.length), y = [], m = 0; m < v; m++)
2238
+ y[m] = "$" + m;
2239
+ if (f = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), u.prototype) {
2240
+ var h = function() {
2241
+ };
2242
+ h.prototype = u.prototype, f.prototype = new h(), h.prototype = null;
2243
+ }
2244
+ return f;
2245
+ }, pt;
2246
+ }
2247
+ var dt, xr;
2248
+ function Xe() {
2249
+ if (xr) return dt;
2250
+ xr = 1;
2251
+ var e = Ji();
2252
+ return dt = Function.prototype.bind || e, dt;
2253
+ }
2254
+ var yt, Nr;
2255
+ function Vt() {
2256
+ return Nr || (Nr = 1, yt = Function.prototype.call), yt;
2257
+ }
2258
+ var ht, _r;
2259
+ function _n() {
2260
+ return _r || (_r = 1, ht = Function.prototype.apply), ht;
2261
+ }
2262
+ var Gi = typeof Reflect < "u" && Reflect && Reflect.apply, Vi = Xe(), Ki = _n(), Qi = Vt(), Xi = Gi, Zi = Xi || Vi.call(Qi, Ki), Yi = Xe(), es = ue, ts = Vt(), rs = Zi, Fn = function(t) {
2263
+ if (t.length < 1 || typeof t[0] != "function")
2264
+ throw new es("a function is required");
2265
+ return rs(Yi, ts, t);
2266
+ }, mt, Fr;
2267
+ function ns() {
2268
+ if (Fr) return mt;
2269
+ Fr = 1;
2270
+ var e = Fn, t = Tn, n;
2271
+ try {
2272
+ n = /** @type {{ __proto__?: typeof Array.prototype }} */
2273
+ [].__proto__ === Array.prototype;
2274
+ } catch (i) {
2275
+ if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
2276
+ throw i;
2277
+ }
2278
+ var r = !!n && t && t(
2279
+ Object.prototype,
2280
+ /** @type {keyof typeof Object.prototype} */
2281
+ "__proto__"
2282
+ ), o = Object, a = o.getPrototypeOf;
2283
+ return mt = r && typeof r.get == "function" ? e([r.get]) : typeof a == "function" ? (
2284
+ /** @type {import('./get')} */
2285
+ function(s) {
2286
+ return a(s == null ? s : o(s));
2287
+ }
2288
+ ) : !1, mt;
2289
+ }
2290
+ var gt, Dr;
2291
+ function os() {
2292
+ if (Dr) return gt;
2293
+ Dr = 1;
2294
+ var e = xn(), t = Nn(), n = ns();
2295
+ return gt = e ? function(o) {
2296
+ return e(o);
2297
+ } : t ? function(o) {
2298
+ if (!o || typeof o != "object" && typeof o != "function")
2299
+ throw new TypeError("getProto: not an object");
2300
+ return t(o);
2301
+ } : n ? function(o) {
2302
+ return n(o);
2303
+ } : null, gt;
2304
+ }
2305
+ var vt, $r;
2306
+ function as() {
2307
+ if ($r) return vt;
2308
+ $r = 1;
2309
+ var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, n = Xe();
2310
+ return vt = n.call(e, t), vt;
2311
+ }
2312
+ var b, is = In, ss = Ci, cs = Ii, ls = Ti, us = xi, se = Ni, ae = ue, fs = _i, ps = Fi, ds = Di, ys = $i, hs = Li, ms = Ui, gs = Mi, vs = ji, Dn = Function, St = function(e) {
2313
+ try {
2314
+ return Dn('"use strict"; return (' + e + ").constructor;")();
2315
+ } catch {
2316
+ }
2317
+ }, Se = Tn, Ss = zi, wt = function() {
2318
+ throw new ae();
2319
+ }, ws = Se ? function() {
2320
+ try {
2321
+ return arguments.callee, wt;
2322
+ } catch {
2323
+ try {
2324
+ return Se(arguments, "callee").get;
2325
+ } catch {
2326
+ return wt;
2327
+ }
2328
+ }
2329
+ }() : wt, re = Wi()(), I = os(), bs = Nn(), Es = xn(), $n = _n(), Oe = Vt(), oe = {}, Os = typeof Uint8Array > "u" || !I ? b : I(Uint8Array), X = {
2330
+ __proto__: null,
2331
+ "%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
2332
+ "%Array%": Array,
2333
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? b : ArrayBuffer,
2334
+ "%ArrayIteratorPrototype%": re && I ? I([][Symbol.iterator]()) : b,
2335
+ "%AsyncFromSyncIteratorPrototype%": b,
2336
+ "%AsyncFunction%": oe,
2337
+ "%AsyncGenerator%": oe,
2338
+ "%AsyncGeneratorFunction%": oe,
2339
+ "%AsyncIteratorPrototype%": oe,
2340
+ "%Atomics%": typeof Atomics > "u" ? b : Atomics,
2341
+ "%BigInt%": typeof BigInt > "u" ? b : BigInt,
2342
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? b : BigInt64Array,
2343
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? b : BigUint64Array,
2344
+ "%Boolean%": Boolean,
2345
+ "%DataView%": typeof DataView > "u" ? b : DataView,
2346
+ "%Date%": Date,
2347
+ "%decodeURI%": decodeURI,
2348
+ "%decodeURIComponent%": decodeURIComponent,
2349
+ "%encodeURI%": encodeURI,
2350
+ "%encodeURIComponent%": encodeURIComponent,
2351
+ "%Error%": ss,
2352
+ "%eval%": eval,
2353
+ // eslint-disable-line no-eval
2354
+ "%EvalError%": cs,
2355
+ "%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
2356
+ "%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
2357
+ "%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
2358
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
2359
+ "%Function%": Dn,
2360
+ "%GeneratorFunction%": oe,
2361
+ "%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
2362
+ "%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
2363
+ "%Int32Array%": typeof Int32Array > "u" ? b : Int32Array,
2364
+ "%isFinite%": isFinite,
2365
+ "%isNaN%": isNaN,
2366
+ "%IteratorPrototype%": re && I ? I(I([][Symbol.iterator]())) : b,
2367
+ "%JSON%": typeof JSON == "object" ? JSON : b,
2368
+ "%Map%": typeof Map > "u" ? b : Map,
2369
+ "%MapIteratorPrototype%": typeof Map > "u" || !re || !I ? b : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2370
+ "%Math%": Math,
2371
+ "%Number%": Number,
2372
+ "%Object%": is,
2373
+ "%Object.getOwnPropertyDescriptor%": Se,
2374
+ "%parseFloat%": parseFloat,
2375
+ "%parseInt%": parseInt,
2376
+ "%Promise%": typeof Promise > "u" ? b : Promise,
2377
+ "%Proxy%": typeof Proxy > "u" ? b : Proxy,
2378
+ "%RangeError%": ls,
2379
+ "%ReferenceError%": us,
2380
+ "%Reflect%": typeof Reflect > "u" ? b : Reflect,
2381
+ "%RegExp%": RegExp,
2382
+ "%Set%": typeof Set > "u" ? b : Set,
2383
+ "%SetIteratorPrototype%": typeof Set > "u" || !re || !I ? b : I((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2384
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? b : SharedArrayBuffer,
2385
+ "%String%": String,
2386
+ "%StringIteratorPrototype%": re && I ? I(""[Symbol.iterator]()) : b,
2387
+ "%Symbol%": re ? Symbol : b,
2388
+ "%SyntaxError%": se,
2389
+ "%ThrowTypeError%": ws,
2390
+ "%TypedArray%": Os,
2391
+ "%TypeError%": ae,
2392
+ "%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
2393
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
2394
+ "%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
2395
+ "%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
2396
+ "%URIError%": fs,
2397
+ "%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
2398
+ "%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
2399
+ "%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
2400
+ "%Function.prototype.call%": Oe,
2401
+ "%Function.prototype.apply%": $n,
2402
+ "%Object.defineProperty%": Ss,
2403
+ "%Object.getPrototypeOf%": bs,
2404
+ "%Math.abs%": ps,
2405
+ "%Math.floor%": ds,
2406
+ "%Math.max%": ys,
2407
+ "%Math.min%": hs,
2408
+ "%Math.pow%": ms,
2409
+ "%Math.round%": gs,
2410
+ "%Math.sign%": vs,
2411
+ "%Reflect.getPrototypeOf%": Es
2412
+ };
2413
+ if (I)
2414
+ try {
2415
+ null.error;
2416
+ } catch (e) {
2417
+ var As = I(I(e));
2418
+ X["%Error.prototype%"] = As;
2419
+ }
2420
+ var Rs = function e(t) {
2421
+ var n;
2422
+ if (t === "%AsyncFunction%")
2423
+ n = St("async function () {}");
2424
+ else if (t === "%GeneratorFunction%")
2425
+ n = St("function* () {}");
2426
+ else if (t === "%AsyncGeneratorFunction%")
2427
+ n = St("async function* () {}");
2428
+ else if (t === "%AsyncGenerator%") {
2429
+ var r = e("%AsyncGeneratorFunction%");
2430
+ r && (n = r.prototype);
2431
+ } else if (t === "%AsyncIteratorPrototype%") {
2432
+ var o = e("%AsyncGenerator%");
2433
+ o && I && (n = I(o.prototype));
2434
+ }
2435
+ return X[t] = n, n;
2436
+ }, Lr = {
2437
+ __proto__: null,
2438
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2439
+ "%ArrayPrototype%": ["Array", "prototype"],
2440
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
2441
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
2442
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
2443
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
2444
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
2445
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
2446
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
2447
+ "%BooleanPrototype%": ["Boolean", "prototype"],
2448
+ "%DataViewPrototype%": ["DataView", "prototype"],
2449
+ "%DatePrototype%": ["Date", "prototype"],
2450
+ "%ErrorPrototype%": ["Error", "prototype"],
2451
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
2452
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
2453
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
2454
+ "%FunctionPrototype%": ["Function", "prototype"],
2455
+ "%Generator%": ["GeneratorFunction", "prototype"],
2456
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
2457
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
2458
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
2459
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
2460
+ "%JSONParse%": ["JSON", "parse"],
2461
+ "%JSONStringify%": ["JSON", "stringify"],
2462
+ "%MapPrototype%": ["Map", "prototype"],
2463
+ "%NumberPrototype%": ["Number", "prototype"],
2464
+ "%ObjectPrototype%": ["Object", "prototype"],
2465
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
2466
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
2467
+ "%PromisePrototype%": ["Promise", "prototype"],
2468
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
2469
+ "%Promise_all%": ["Promise", "all"],
2470
+ "%Promise_reject%": ["Promise", "reject"],
2471
+ "%Promise_resolve%": ["Promise", "resolve"],
2472
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
2473
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
2474
+ "%RegExpPrototype%": ["RegExp", "prototype"],
2475
+ "%SetPrototype%": ["Set", "prototype"],
2476
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
2477
+ "%StringPrototype%": ["String", "prototype"],
2478
+ "%SymbolPrototype%": ["Symbol", "prototype"],
2479
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
2480
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
2481
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
2482
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
2483
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
2484
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
2485
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
2486
+ "%URIErrorPrototype%": ["URIError", "prototype"],
2487
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
2488
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
2489
+ }, Ae = Xe(), ke = as(), Ps = Ae.call(Oe, Array.prototype.concat), Cs = Ae.call($n, Array.prototype.splice), Ur = Ae.call(Oe, String.prototype.replace), je = Ae.call(Oe, String.prototype.slice), Is = Ae.call(Oe, RegExp.prototype.exec), Ts = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, xs = /\\(\\)?/g, Ns = function(t) {
2490
+ var n = je(t, 0, 1), r = je(t, -1);
2491
+ if (n === "%" && r !== "%")
2492
+ throw new se("invalid intrinsic syntax, expected closing `%`");
2493
+ if (r === "%" && n !== "%")
2494
+ throw new se("invalid intrinsic syntax, expected opening `%`");
2495
+ var o = [];
2496
+ return Ur(t, Ts, function(a, i, s, c) {
2497
+ o[o.length] = s ? Ur(c, xs, "$1") : i || a;
2498
+ }), o;
2499
+ }, _s = function(t, n) {
2500
+ var r = t, o;
2501
+ if (ke(Lr, r) && (o = Lr[r], r = "%" + o[0] + "%"), ke(X, r)) {
2502
+ var a = X[r];
2503
+ if (a === oe && (a = Rs(r)), typeof a > "u" && !n)
2504
+ throw new ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
2505
+ return {
2506
+ alias: o,
2507
+ name: r,
2508
+ value: a
2509
+ };
2510
+ }
2511
+ throw new se("intrinsic " + t + " does not exist!");
2512
+ }, Kt = function(t, n) {
2513
+ if (typeof t != "string" || t.length === 0)
2514
+ throw new ae("intrinsic name must be a non-empty string");
2515
+ if (arguments.length > 1 && typeof n != "boolean")
2516
+ throw new ae('"allowMissing" argument must be a boolean');
2517
+ if (Is(/^%?[^%]*%?$/, t) === null)
2518
+ throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2519
+ var r = Ns(t), o = r.length > 0 ? r[0] : "", a = _s("%" + o + "%", n), i = a.name, s = a.value, c = !1, u = a.alias;
2520
+ u && (o = u[0], Cs(r, Ps([0, 1], u)));
2521
+ for (var l = 1, f = !0; l < r.length; l += 1) {
2522
+ var d = r[l], v = je(d, 0, 1), y = je(d, -1);
2523
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2524
+ throw new se("property names with quotes must have matching quotes");
2525
+ if ((d === "constructor" || !f) && (c = !0), o += "." + d, i = "%" + o + "%", ke(X, i))
2526
+ s = X[i];
2527
+ else if (s != null) {
2528
+ if (!(d in s)) {
2529
+ if (!n)
2530
+ throw new ae("base intrinsic for " + t + " exists, but the property is not available.");
2531
+ return;
2532
+ }
2533
+ if (Se && l + 1 >= r.length) {
2534
+ var m = Se(s, d);
2535
+ f = !!m, f && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2536
+ } else
2537
+ f = ke(s, d), s = s[d];
2538
+ f && !c && (X[i] = s);
2539
+ }
2540
+ }
2541
+ return s;
2542
+ }, Ln = Kt, Un = Fn, Fs = Un([Ln("%String.prototype.indexOf%")]), Mn = function(t, n) {
2543
+ var r = (
2544
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2545
+ Ln(t, !!n)
2546
+ );
2547
+ return typeof r == "function" && Fs(t, ".prototype.") > -1 ? Un(
2548
+ /** @type {const} */
2549
+ [r]
2550
+ ) : r;
2551
+ }, Ds = Kt, Re = Mn, $s = Ke, Ls = ue, Mr = Ds("%Map%", !0), Us = Re("Map.prototype.get", !0), Ms = Re("Map.prototype.set", !0), Bs = Re("Map.prototype.has", !0), ks = Re("Map.prototype.delete", !0), js = Re("Map.prototype.size", !0), Bn = !!Mr && /** @type {Exclude<import('.'), false>} */
2552
+ function() {
2553
+ var t, n = {
2554
+ assert: function(r) {
2555
+ if (!n.has(r))
2556
+ throw new Ls("Side channel does not contain " + $s(r));
2557
+ },
2558
+ delete: function(r) {
2559
+ if (t) {
2560
+ var o = ks(t, r);
2561
+ return js(t) === 0 && (t = void 0), o;
2562
+ }
2563
+ return !1;
2564
+ },
2565
+ get: function(r) {
2566
+ if (t)
2567
+ return Us(t, r);
2568
+ },
2569
+ has: function(r) {
2570
+ return t ? Bs(t, r) : !1;
2571
+ },
2572
+ set: function(r, o) {
2573
+ t || (t = new Mr()), Ms(t, r, o);
2574
+ }
2575
+ };
2576
+ return n;
2577
+ }, qs = Kt, Ze = Mn, zs = Ke, Ie = Bn, Hs = ue, ne = qs("%WeakMap%", !0), Ws = Ze("WeakMap.prototype.get", !0), Js = Ze("WeakMap.prototype.set", !0), Gs = Ze("WeakMap.prototype.has", !0), Vs = Ze("WeakMap.prototype.delete", !0), Ks = ne ? (
2578
+ /** @type {Exclude<import('.'), false>} */
2579
+ function() {
2580
+ var t, n, r = {
2581
+ assert: function(o) {
2582
+ if (!r.has(o))
2583
+ throw new Hs("Side channel does not contain " + zs(o));
2584
+ },
2585
+ delete: function(o) {
2586
+ if (ne && o && (typeof o == "object" || typeof o == "function")) {
2587
+ if (t)
2588
+ return Vs(t, o);
2589
+ } else if (Ie && n)
2590
+ return n.delete(o);
2591
+ return !1;
2592
+ },
2593
+ get: function(o) {
2594
+ return ne && o && (typeof o == "object" || typeof o == "function") && t ? Ws(t, o) : n && n.get(o);
2595
+ },
2596
+ has: function(o) {
2597
+ return ne && o && (typeof o == "object" || typeof o == "function") && t ? Gs(t, o) : !!n && n.has(o);
2598
+ },
2599
+ set: function(o, a) {
2600
+ ne && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new ne()), Js(t, o, a)) : Ie && (n || (n = Ie()), n.set(o, a));
2601
+ }
2602
+ };
2603
+ return r;
2604
+ }
2605
+ ) : Ie, Qs = ue, Xs = Ke, Zs = Pi, Ys = Bn, ec = Ks, tc = ec || Ys || Zs, rc = function() {
2606
+ var t, n = {
2607
+ assert: function(r) {
2608
+ if (!n.has(r))
2609
+ throw new Qs("Side channel does not contain " + Xs(r));
2610
+ },
2611
+ delete: function(r) {
2612
+ return !!t && t.delete(r);
2613
+ },
2614
+ get: function(r) {
2615
+ return t && t.get(r);
2616
+ },
2617
+ has: function(r) {
2618
+ return !!t && t.has(r);
2619
+ },
2620
+ set: function(r, o) {
2621
+ t || (t = tc()), t.set(r, o);
2622
+ }
2623
+ };
2624
+ return n;
2625
+ }, nc = String.prototype.replace, oc = /%20/g, bt = {
2626
+ RFC1738: "RFC1738",
2627
+ RFC3986: "RFC3986"
2628
+ }, Qt = {
2629
+ default: bt.RFC3986,
2630
+ formatters: {
2631
+ RFC1738: function(e) {
2632
+ return nc.call(e, oc, "+");
2633
+ },
2634
+ RFC3986: function(e) {
2635
+ return String(e);
2636
+ }
2637
+ },
2638
+ RFC1738: bt.RFC1738,
2639
+ RFC3986: bt.RFC3986
2640
+ }, ac = Qt, Et = Object.prototype.hasOwnProperty, V = Array.isArray, M = function() {
2641
+ for (var e = [], t = 0; t < 256; ++t)
2642
+ e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
2643
+ return e;
2644
+ }(), ic = function(t) {
2645
+ for (; t.length > 1; ) {
2646
+ var n = t.pop(), r = n.obj[n.prop];
2647
+ if (V(r)) {
2648
+ for (var o = [], a = 0; a < r.length; ++a)
2649
+ typeof r[a] < "u" && o.push(r[a]);
2650
+ n.obj[n.prop] = o;
2651
+ }
2652
+ }
2653
+ }, kn = function(t, n) {
2654
+ for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < t.length; ++o)
2655
+ typeof t[o] < "u" && (r[o] = t[o]);
2656
+ return r;
2657
+ }, sc = function e(t, n, r) {
2658
+ if (!n)
2659
+ return t;
2660
+ if (typeof n != "object" && typeof n != "function") {
2661
+ if (V(t))
2662
+ t.push(n);
2663
+ else if (t && typeof t == "object")
2664
+ (r && (r.plainObjects || r.allowPrototypes) || !Et.call(Object.prototype, n)) && (t[n] = !0);
2665
+ else
2666
+ return [t, n];
2667
+ return t;
2668
+ }
2669
+ if (!t || typeof t != "object")
2670
+ return [t].concat(n);
2671
+ var o = t;
2672
+ return V(t) && !V(n) && (o = kn(t, r)), V(t) && V(n) ? (n.forEach(function(a, i) {
2673
+ if (Et.call(t, i)) {
2674
+ var s = t[i];
2675
+ s && typeof s == "object" && a && typeof a == "object" ? t[i] = e(s, a, r) : t.push(a);
2676
+ } else
2677
+ t[i] = a;
2678
+ }), t) : Object.keys(n).reduce(function(a, i) {
2679
+ var s = n[i];
2680
+ return Et.call(a, i) ? a[i] = e(a[i], s, r) : a[i] = s, a;
2681
+ }, o);
2682
+ }, cc = function(t, n) {
2683
+ return Object.keys(n).reduce(function(r, o) {
2684
+ return r[o] = n[o], r;
2685
+ }, t);
2686
+ }, lc = function(e, t, n) {
2687
+ var r = e.replace(/\+/g, " ");
2688
+ if (n === "iso-8859-1")
2689
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2690
+ try {
2691
+ return decodeURIComponent(r);
2692
+ } catch {
2693
+ return r;
2694
+ }
2695
+ }, Ot = 1024, uc = function(t, n, r, o, a) {
2696
+ if (t.length === 0)
2697
+ return t;
2698
+ var i = t;
2699
+ if (typeof t == "symbol" ? i = Symbol.prototype.toString.call(t) : typeof t != "string" && (i = String(t)), r === "iso-8859-1")
2700
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
2701
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
2702
+ });
2703
+ for (var s = "", c = 0; c < i.length; c += Ot) {
2704
+ for (var u = i.length >= Ot ? i.slice(c, c + Ot) : i, l = [], f = 0; f < u.length; ++f) {
2705
+ var d = u.charCodeAt(f);
2706
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === ac.RFC1738 && (d === 40 || d === 41)) {
2707
+ l[l.length] = u.charAt(f);
2708
+ continue;
2709
+ }
2710
+ if (d < 128) {
2711
+ l[l.length] = M[d];
2712
+ continue;
2713
+ }
2714
+ if (d < 2048) {
2715
+ l[l.length] = M[192 | d >> 6] + M[128 | d & 63];
2716
+ continue;
2717
+ }
2718
+ if (d < 55296 || d >= 57344) {
2719
+ l[l.length] = M[224 | d >> 12] + M[128 | d >> 6 & 63] + M[128 | d & 63];
2720
+ continue;
2721
+ }
2722
+ f += 1, d = 65536 + ((d & 1023) << 10 | u.charCodeAt(f) & 1023), l[l.length] = M[240 | d >> 18] + M[128 | d >> 12 & 63] + M[128 | d >> 6 & 63] + M[128 | d & 63];
2723
+ }
2724
+ s += l.join("");
2725
+ }
2726
+ return s;
2727
+ }, fc = function(t) {
2728
+ for (var n = [{ obj: { o: t }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2729
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
2730
+ var u = s[c], l = i[u];
2731
+ typeof l == "object" && l !== null && r.indexOf(l) === -1 && (n.push({ obj: i, prop: u }), r.push(l));
2732
+ }
2733
+ return ic(n), t;
2734
+ }, pc = function(t) {
2735
+ return Object.prototype.toString.call(t) === "[object RegExp]";
2736
+ }, dc = function(t) {
2737
+ return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
2738
+ }, yc = function(t, n) {
2739
+ return [].concat(t, n);
2740
+ }, hc = function(t, n) {
2741
+ if (V(t)) {
2742
+ for (var r = [], o = 0; o < t.length; o += 1)
2743
+ r.push(n(t[o]));
2744
+ return r;
2745
+ }
2746
+ return n(t);
2747
+ }, jn = {
2748
+ arrayToObject: kn,
2749
+ assign: cc,
2750
+ combine: yc,
2751
+ compact: fc,
2752
+ decode: lc,
2753
+ encode: uc,
2754
+ isBuffer: dc,
2755
+ isRegExp: pc,
2756
+ maybeMap: hc,
2757
+ merge: sc
2758
+ }, qn = rc, $e = jn, ge = Qt, mc = Object.prototype.hasOwnProperty, zn = {
2759
+ brackets: function(t) {
2760
+ return t + "[]";
2761
+ },
2762
+ comma: "comma",
2763
+ indices: function(t, n) {
2764
+ return t + "[" + n + "]";
2765
+ },
2766
+ repeat: function(t) {
2767
+ return t;
2768
+ }
2769
+ }, B = Array.isArray, gc = Array.prototype.push, Hn = function(e, t) {
2770
+ gc.apply(e, B(t) ? t : [t]);
2771
+ }, vc = Date.prototype.toISOString, Br = ge.default, C = {
2772
+ addQueryPrefix: !1,
2773
+ allowDots: !1,
2774
+ allowEmptyArrays: !1,
2775
+ arrayFormat: "indices",
2776
+ charset: "utf-8",
2777
+ charsetSentinel: !1,
2778
+ commaRoundTrip: !1,
2779
+ delimiter: "&",
2780
+ encode: !0,
2781
+ encodeDotInKeys: !1,
2782
+ encoder: $e.encode,
2783
+ encodeValuesOnly: !1,
2784
+ filter: void 0,
2785
+ format: Br,
2786
+ formatter: ge.formatters[Br],
2787
+ // deprecated
2788
+ indices: !1,
2789
+ serializeDate: function(t) {
2790
+ return vc.call(t);
2791
+ },
2792
+ skipNulls: !1,
2793
+ strictNullHandling: !1
2794
+ }, Sc = function(t) {
2795
+ return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
2796
+ }, At = {}, wc = function e(t, n, r, o, a, i, s, c, u, l, f, d, v, y, m, h, w, E) {
2797
+ for (var g = t, O = E, A = 0, x = !1; (O = O.get(At)) !== void 0 && !x; ) {
2798
+ var N = O.get(t);
2799
+ if (A += 1, typeof N < "u") {
2800
+ if (N === A)
2801
+ throw new RangeError("Cyclic object value");
2802
+ x = !0;
2803
+ }
2804
+ typeof O.get(At) > "u" && (A = 0);
2805
+ }
2806
+ if (typeof l == "function" ? g = l(n, g) : g instanceof Date ? g = v(g) : r === "comma" && B(g) && (g = $e.maybeMap(g, function(et) {
2807
+ return et instanceof Date ? v(et) : et;
2808
+ })), g === null) {
2809
+ if (i)
2810
+ return u && !h ? u(n, C.encoder, w, "key", y) : n;
2811
+ g = "";
2812
+ }
2813
+ if (Sc(g) || $e.isBuffer(g)) {
2814
+ if (u) {
2815
+ var j = h ? n : u(n, C.encoder, w, "key", y);
2816
+ return [m(j) + "=" + m(u(g, C.encoder, w, "value", y))];
2817
+ }
2818
+ return [m(n) + "=" + m(String(g))];
2819
+ }
2820
+ var L = [];
2821
+ if (typeof g > "u")
2822
+ return L;
2823
+ var H;
2824
+ if (r === "comma" && B(g))
2825
+ h && u && (g = $e.maybeMap(g, u)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2826
+ else if (B(l))
2827
+ H = l;
2828
+ else {
2829
+ var Pe = Object.keys(g);
2830
+ H = f ? Pe.sort(f) : Pe;
2831
+ }
2832
+ var te = c ? String(n).replace(/\./g, "%2E") : String(n), D = o && B(g) && g.length === 1 ? te + "[]" : te;
2833
+ if (a && B(g) && g.length === 0)
2834
+ return D + "[]";
2835
+ for (var W = 0; W < H.length; ++W) {
2836
+ var q = H[W], fe = typeof q == "object" && q && typeof q.value < "u" ? q.value : g[q];
2837
+ if (!(s && fe === null)) {
2838
+ var Ye = d && c ? String(q).replace(/\./g, "%2E") : String(q), Xn = B(g) ? typeof r == "function" ? r(D, Ye) : D : D + (d ? "." + Ye : "[" + Ye + "]");
2839
+ E.set(t, A);
2840
+ var Zt = qn();
2841
+ Zt.set(At, E), Hn(L, e(
2842
+ fe,
2843
+ Xn,
2844
+ r,
2845
+ o,
2846
+ a,
2847
+ i,
2848
+ s,
2849
+ c,
2850
+ r === "comma" && h && B(g) ? null : u,
2851
+ l,
2852
+ f,
2853
+ d,
2854
+ v,
2855
+ y,
2856
+ m,
2857
+ h,
2858
+ w,
2859
+ Zt
2860
+ ));
2861
+ }
2862
+ }
2863
+ return L;
2864
+ }, bc = function(t) {
2865
+ if (!t)
2866
+ return C;
2867
+ if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
2868
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2869
+ if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
2870
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
2871
+ if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
2872
+ throw new TypeError("Encoder has to be a function.");
2873
+ var n = t.charset || C.charset;
2874
+ if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
2875
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2876
+ var r = ge.default;
2877
+ if (typeof t.format < "u") {
2878
+ if (!mc.call(ge.formatters, t.format))
2879
+ throw new TypeError("Unknown format option provided.");
2880
+ r = t.format;
2881
+ }
2882
+ var o = ge.formatters[r], a = C.filter;
2883
+ (typeof t.filter == "function" || B(t.filter)) && (a = t.filter);
2884
+ var i;
2885
+ if (t.arrayFormat in zn ? i = t.arrayFormat : "indices" in t ? i = t.indices ? "indices" : "repeat" : i = C.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
2886
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2887
+ var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : C.allowDots : !!t.allowDots;
2888
+ return {
2889
+ addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : C.addQueryPrefix,
2890
+ allowDots: s,
2891
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : C.allowEmptyArrays,
2892
+ arrayFormat: i,
2893
+ charset: n,
2894
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : C.charsetSentinel,
2895
+ commaRoundTrip: !!t.commaRoundTrip,
2896
+ delimiter: typeof t.delimiter > "u" ? C.delimiter : t.delimiter,
2897
+ encode: typeof t.encode == "boolean" ? t.encode : C.encode,
2898
+ encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : C.encodeDotInKeys,
2899
+ encoder: typeof t.encoder == "function" ? t.encoder : C.encoder,
2900
+ encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : C.encodeValuesOnly,
2901
+ filter: a,
2902
+ format: r,
2903
+ formatter: o,
2904
+ serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : C.serializeDate,
2905
+ skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : C.skipNulls,
2906
+ sort: typeof t.sort == "function" ? t.sort : null,
2907
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : C.strictNullHandling
2908
+ };
2909
+ }, Ec = function(e, t) {
2910
+ var n = e, r = bc(t), o, a;
2911
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : B(r.filter) && (a = r.filter, o = a);
2912
+ var i = [];
2913
+ if (typeof n != "object" || n === null)
2914
+ return "";
2915
+ var s = zn[r.arrayFormat], c = s === "comma" && r.commaRoundTrip;
2916
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2917
+ for (var u = qn(), l = 0; l < o.length; ++l) {
2918
+ var f = o[l], d = n[f];
2919
+ r.skipNulls && d === null || Hn(i, wc(
2920
+ d,
2921
+ f,
2922
+ s,
2923
+ c,
2924
+ r.allowEmptyArrays,
2925
+ r.strictNullHandling,
2926
+ r.skipNulls,
2927
+ r.encodeDotInKeys,
2928
+ r.encode ? r.encoder : null,
2929
+ r.filter,
2930
+ r.sort,
2931
+ r.allowDots,
2932
+ r.serializeDate,
2933
+ r.format,
2934
+ r.formatter,
2935
+ r.encodeValuesOnly,
2936
+ r.charset,
2937
+ u
2938
+ ));
2939
+ }
2940
+ var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
2941
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
2942
+ }, Y = jn, Mt = Object.prototype.hasOwnProperty, kr = Array.isArray, R = {
2943
+ allowDots: !1,
2944
+ allowEmptyArrays: !1,
2945
+ allowPrototypes: !1,
2946
+ allowSparse: !1,
2947
+ arrayLimit: 20,
2948
+ charset: "utf-8",
2949
+ charsetSentinel: !1,
2950
+ comma: !1,
2951
+ decodeDotInKeys: !1,
2952
+ decoder: Y.decode,
2953
+ delimiter: "&",
2954
+ depth: 5,
2955
+ duplicates: "combine",
2956
+ ignoreQueryPrefix: !1,
2957
+ interpretNumericEntities: !1,
2958
+ parameterLimit: 1e3,
2959
+ parseArrays: !0,
2960
+ plainObjects: !1,
2961
+ strictDepth: !1,
2962
+ strictNullHandling: !1,
2963
+ throwOnLimitExceeded: !1
2964
+ }, Oc = function(e) {
2965
+ return e.replace(/&#(\d+);/g, function(t, n) {
2966
+ return String.fromCharCode(parseInt(n, 10));
2967
+ });
2968
+ }, Wn = function(e, t, n) {
2969
+ if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1)
2970
+ return e.split(",");
2971
+ if (t.throwOnLimitExceeded && n >= t.arrayLimit)
2972
+ throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2973
+ return e;
2974
+ }, Ac = "utf8=%26%2310003%3B", Rc = "utf8=%E2%9C%93", Pc = function(t, n) {
2975
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t;
2976
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2977
+ var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
2978
+ n.delimiter,
2979
+ n.throwOnLimitExceeded ? a + 1 : a
2980
+ );
2981
+ if (n.throwOnLimitExceeded && i.length > a)
2982
+ throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
2983
+ var s = -1, c, u = n.charset;
2984
+ if (n.charsetSentinel)
2985
+ for (c = 0; c < i.length; ++c)
2986
+ i[c].indexOf("utf8=") === 0 && (i[c] === Rc ? u = "utf-8" : i[c] === Ac && (u = "iso-8859-1"), s = c, c = i.length);
2987
+ for (c = 0; c < i.length; ++c)
2988
+ if (c !== s) {
2989
+ var l = i[c], f = l.indexOf("]="), d = f === -1 ? l.indexOf("=") : f + 1, v, y;
2990
+ d === -1 ? (v = n.decoder(l, R.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), R.decoder, u, "key"), y = Y.maybeMap(
2991
+ Wn(
2992
+ l.slice(d + 1),
2993
+ n,
2994
+ kr(r[v]) ? r[v].length : 0
2995
+ ),
2996
+ function(h) {
2997
+ return n.decoder(h, R.decoder, u, "value");
2998
+ }
2999
+ )), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = Oc(String(y))), l.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
3000
+ var m = Mt.call(r, v);
3001
+ m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
3002
+ }
3003
+ return r;
3004
+ }, Cc = function(e, t, n, r) {
3005
+ var o = 0;
3006
+ if (e.length > 0 && e[e.length - 1] === "[]") {
3007
+ var a = e.slice(0, -1).join("");
3008
+ o = Array.isArray(t) && t[a] ? t[a].length : 0;
3009
+ }
3010
+ for (var i = r ? t : Wn(t, n, o), s = e.length - 1; s >= 0; --s) {
3011
+ var c, u = e[s];
3012
+ if (u === "[]" && n.parseArrays)
3013
+ c = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : Y.combine([], i);
3014
+ else {
3015
+ c = n.plainObjects ? { __proto__: null } : {};
3016
+ var l = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, f = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, d = parseInt(f, 10);
3017
+ !n.parseArrays && f === "" ? c = { 0: i } : !isNaN(d) && u !== f && String(d) === f && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (c = [], c[d] = i) : f !== "__proto__" && (c[f] = i);
3018
+ }
3019
+ i = c;
3020
+ }
3021
+ return i;
3022
+ }, Ic = function(t, n, r, o) {
3023
+ if (t) {
3024
+ var a = r.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = r.depth > 0 && i.exec(a), u = c ? a.slice(0, c.index) : a, l = [];
3025
+ if (u) {
3026
+ if (!r.plainObjects && Mt.call(Object.prototype, u) && !r.allowPrototypes)
3027
+ return;
3028
+ l.push(u);
3029
+ }
3030
+ for (var f = 0; r.depth > 0 && (c = s.exec(a)) !== null && f < r.depth; ) {
3031
+ if (f += 1, !r.plainObjects && Mt.call(Object.prototype, c[1].slice(1, -1)) && !r.allowPrototypes)
3032
+ return;
3033
+ l.push(c[1]);
3034
+ }
3035
+ if (c) {
3036
+ if (r.strictDepth === !0)
3037
+ throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
3038
+ l.push("[" + a.slice(c.index) + "]");
3039
+ }
3040
+ return Cc(l, n, r, o);
3041
+ }
3042
+ }, Tc = function(t) {
3043
+ if (!t)
3044
+ return R;
3045
+ if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
3046
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3047
+ if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
3048
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3049
+ if (t.decoder !== null && typeof t.decoder < "u" && typeof t.decoder != "function")
3050
+ throw new TypeError("Decoder has to be a function.");
3051
+ if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
3052
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3053
+ if (typeof t.throwOnLimitExceeded < "u" && typeof t.throwOnLimitExceeded != "boolean")
3054
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3055
+ var n = typeof t.charset > "u" ? R.charset : t.charset, r = typeof t.duplicates > "u" ? R.duplicates : t.duplicates;
3056
+ if (r !== "combine" && r !== "first" && r !== "last")
3057
+ throw new TypeError("The duplicates option must be either combine, first, or last");
3058
+ var o = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : R.allowDots : !!t.allowDots;
3059
+ return {
3060
+ allowDots: o,
3061
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : R.allowEmptyArrays,
3062
+ allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : R.allowPrototypes,
3063
+ allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : R.allowSparse,
3064
+ arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : R.arrayLimit,
3065
+ charset: n,
3066
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : R.charsetSentinel,
3067
+ comma: typeof t.comma == "boolean" ? t.comma : R.comma,
3068
+ decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : R.decodeDotInKeys,
3069
+ decoder: typeof t.decoder == "function" ? t.decoder : R.decoder,
3070
+ delimiter: typeof t.delimiter == "string" || Y.isRegExp(t.delimiter) ? t.delimiter : R.delimiter,
3071
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3072
+ depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : R.depth,
3073
+ duplicates: r,
3074
+ ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
3075
+ interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : R.interpretNumericEntities,
3076
+ parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : R.parameterLimit,
3077
+ parseArrays: t.parseArrays !== !1,
3078
+ plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : R.plainObjects,
3079
+ strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : R.strictDepth,
3080
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : R.strictNullHandling,
3081
+ throwOnLimitExceeded: typeof t.throwOnLimitExceeded == "boolean" ? t.throwOnLimitExceeded : !1
3082
+ };
3083
+ }, xc = function(e, t) {
3084
+ var n = Tc(t);
3085
+ if (e === "" || e === null || typeof e > "u")
3086
+ return n.plainObjects ? { __proto__: null } : {};
3087
+ for (var r = typeof e == "string" ? Pc(e, n) : e, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
3088
+ var s = a[i], c = Ic(s, r[s], n, typeof e == "string");
3089
+ o = Y.merge(o, c, n);
3090
+ }
3091
+ return n.allowSparse === !0 ? o : Y.compact(o);
3092
+ }, Nc = Ec, _c = xc, Fc = Qt, Dc = {
3093
+ formats: Fc,
3094
+ parse: _c,
3095
+ stringify: Nc
3096
+ };
3097
+ const $c = /* @__PURE__ */ ja(Dc);
3098
+ /*! js-cookie v3.0.5 | MIT */
3099
+ function Te(e) {
3100
+ for (var t = 1; t < arguments.length; t++) {
3101
+ var n = arguments[t];
3102
+ for (var r in n)
3103
+ e[r] = n[r];
3104
+ }
3105
+ return e;
3106
+ }
3107
+ var Lc = {
3108
+ read: function(e) {
3109
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3110
+ },
3111
+ write: function(e) {
3112
+ return encodeURIComponent(e).replace(
3113
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
3114
+ decodeURIComponent
3115
+ );
3116
+ }
3117
+ };
3118
+ function Bt(e, t) {
3119
+ function n(o, a, i) {
3120
+ if (!(typeof document > "u")) {
3121
+ i = Te({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3122
+ var s = "";
3123
+ for (var c in i)
3124
+ i[c] && (s += "; " + c, i[c] !== !0 && (s += "=" + i[c].split(";")[0]));
3125
+ return document.cookie = o + "=" + e.write(a, o) + s;
3126
+ }
3127
+ }
3128
+ function r(o) {
3129
+ if (!(typeof document > "u" || arguments.length && !o)) {
3130
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
3131
+ var c = a[s].split("="), u = c.slice(1).join("=");
3132
+ try {
3133
+ var l = decodeURIComponent(c[0]);
3134
+ if (i[l] = e.read(u, l), o === l)
3135
+ break;
3136
+ } catch {
3137
+ }
3138
+ }
3139
+ return o ? i[o] : i;
3140
+ }
3141
+ }
3142
+ return Object.create(
3143
+ {
3144
+ set: n,
3145
+ get: r,
3146
+ remove: function(o, a) {
3147
+ n(
3148
+ o,
3149
+ "",
3150
+ Te({}, a, {
3151
+ expires: -1
3152
+ })
3153
+ );
3154
+ },
3155
+ withAttributes: function(o) {
3156
+ return Bt(this.converter, Te({}, this.attributes, o));
3157
+ },
3158
+ withConverter: function(o) {
3159
+ return Bt(Te({}, this.converter, o), this.attributes);
3160
+ }
3161
+ },
3162
+ {
3163
+ attributes: { value: Object.freeze(t) },
3164
+ converter: { value: Object.freeze(e) }
3165
+ }
3166
+ );
3167
+ }
3168
+ var jr = Bt(Lc, { path: "/" });
3169
+ kt.extend(io);
3170
+ kt.extend(so);
3171
+ const Xt = we(), Jn = Xt.sso ?? !0, qr = Xt.i18n ?? !0, Gn = Xt.noRedireLogin ?? !1;
3172
+ let zr = "", Hr = 0;
3173
+ const Uc = 1e3, Wr = async (e, t, n = []) => {
3174
+ const r = Date.now(), o = 1200, a = 60;
3175
+ for (; Date.now() - r < o; ) {
3176
+ const i = e(t, ...n);
3177
+ if (i && i !== t) return i;
3178
+ await new Promise((s) => setTimeout(s, a));
3179
+ }
3180
+ return e(t, ...n);
3181
+ };
3182
+ let Rt = !1;
3183
+ const Mc = 5e3, Vn = () => Rt ? !1 : (Rt = !0, setTimeout(() => {
3184
+ Rt = !1;
3185
+ }, Mc), !0), Kn = () => {
3186
+ var t, n;
3187
+ if (Gn) return;
3188
+ const e = "/login";
3189
+ location.pathname !== e && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (t = window.top) != null && t.vueRouter ? (n = window.top) == null || n.vueRouter.replace(e) : window.location.replace(`/#${e}`));
3190
+ }, Bc = () => ro("code") || "" || Gn ? !1 : Vn() ? (Jn ? no({ ...oo, redirect_uri: ao }) : Kn(), !0) : !1, kc = async (e) => {
3191
+ var n;
3192
+ return ((n = e.config) == null ? void 0 : n.responseType) === "blob" ? e : e.data ?? e;
3193
+ }, jc = async (e, t) => {
3194
+ var y, m, h, w;
3195
+ const { t: n } = Kr();
3196
+ let r, o, a = {};
3197
+ const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
3198
+ let s = ((y = e == null ? void 0 : e.response) == null ? void 0 : y.data) || {};
3199
+ const c = s == null ? void 0 : s.code, u = (m = e.response) == null ? void 0 : m.status;
3200
+ if (c === 401 || u === 401) {
3201
+ Bc(), r = c || u, a = s;
3202
+ const E = (t == null ? void 0 : t.i18n) ?? !0;
3203
+ if (qr && E && (s != null && s.status)) {
3204
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...g);
3205
+ o = O === s.status ? await Wr(n, s.status, g) : O;
3206
+ } else
3207
+ o = (s == null ? void 0 : s.msg) || i[r] || (e == null ? void 0 : e.message);
3208
+ } else if (e.response) {
3209
+ if (s instanceof Blob && (s = await new Promise((E) => {
3210
+ const g = new FileReader();
3211
+ g.readAsText(s, "utf-8"), g.onload = () => {
3212
+ try {
3213
+ E(JSON.parse(g.result || "{}"));
3214
+ } catch {
3215
+ E({ code: 400, msg: n("解析错误") });
3216
+ }
3217
+ };
3218
+ })), s.code !== void 0 && s.code !== null) {
3219
+ r = s.code, a = s;
3220
+ const E = (t == null ? void 0 : t.i18n) ?? !0;
3221
+ if (qr && E && (s != null && s.status)) {
3222
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...g);
3223
+ o = O === s.status ? await Wr(n, s.status, g) : O;
3224
+ } else
3225
+ o = (s == null ? void 0 : s.msg) ?? "";
3226
+ } else
3227
+ r = e.response.status, o = i[r] || e.message;
3228
+ o || (o = i[e.response.status] || e.message);
3229
+ } else e.request ? (r = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = n("请求配置异常"));
3230
+ t != null && t.customErrorMessage && (o = t == null ? void 0 : t.customErrorMessage(o, e));
3231
+ const f = Date.now(), d = o === zr, v = f - Hr < Uc;
3232
+ return !(t != null && t.ignoreErrorMessage) && o && (!d || !v) && ((w = (h = window.DasMessage) == null ? void 0 : h.error) == null || w.call(h, { message: o, showClose: !0 }), zr = o, Hr = f), { ...a, code: r, msg: o, error: e };
3233
+ };
3234
+ function qc(e, t) {
3235
+ const n = P.create();
3236
+ return eo(n, async (r) => {
3237
+ const { currentLang: o } = Kr(), a = we();
3238
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
3239
+ let f = "";
3240
+ if (a.token && (f = a.token), !f) {
3241
+ const d = new URL(location.href).searchParams;
3242
+ f = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
3243
+ }
3244
+ if (Jn)
3245
+ f || (f = await to(r));
3246
+ else {
3247
+ f || (f = Vr());
3248
+ let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
3249
+ f ? f = await uo(d, (y) => {
3250
+ window.localStorage.setItem("tokenInfo", JSON.stringify(y));
3251
+ }) : Vn() && Kn();
3252
+ }
3253
+ f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
3254
+ }
3255
+ r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = e), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => $c.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = kc), r.onError || (r.onError = jc), (r.csrf ?? !1) && (r.headers["csrf-token"] = jr.get("csrf-token"));
3256
+ const c = r.params || {};
3257
+ if (c.project === void 0) {
3258
+ let f = 0;
3259
+ const d = new URL(location.href).searchParams;
3260
+ f = d.get("project") || d.get("projectId") || 0, f || (f = co().id ?? 0), (f || f === 0) && (c.project = f);
3261
+ }
3262
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
3263
+ const { instanceInfo: f } = lo();
3264
+ f != null && f.instanceId && (c.instance = f.instanceId);
3265
+ }
3266
+ r.params = c, r.headers.Timezone = kt.tz.guess(), r.headers["X-Origin"] = location.origin;
3267
+ const l = (o == null ? void 0 : o.value) ?? "";
3268
+ return l && (r.headers["Accept-Language"] = l), l && jr.set("locale", l), r;
3269
+ });
3270
+ }
3271
+ const zc = "v1", Qn = qc(`/api/admin/basic-application/user-rights/${zc}`), Hc = Qn.get("/menu-module-func"), Wc = Qn.post("/right-func"), Jr = (e) => Array.isArray(e) ? e : e == null || e === "" ? [] : [e], Jc = (e) => {
3272
+ const t = Jr(e == null ? void 0 : e.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), n = Jr(e == null ? void 0 : e.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
3273
+ if (!t.length) return null;
3274
+ const r = { appIds: t };
3275
+ return n.length && (r.moduleIds = n), r;
3276
+ }, Pt = (e) => {
3277
+ const t = { id: { id: [] }, code: {} }, n = Array.isArray(e) ? e : [], r = (a) => {
3278
+ const i = String(a ?? "").trim();
3279
+ if (!i) return { groupCode: "", actionCode: "" };
3280
+ if (i.includes(".")) {
3281
+ const l = i.split(".").filter(Boolean), f = l.length > 1 ? String(l[l.length - 1] || "") : "";
3282
+ return { groupCode: l.length > 1 ? l.slice(0, -1).join(".") : i, actionCode: f };
3283
+ }
3284
+ const s = i.split("_").filter(Boolean), c = s.length > 1 ? String(s[s.length - 1] || "") : "";
3285
+ return { groupCode: s.length > 1 ? s.slice(0, -1).join("_") : i, actionCode: c };
3286
+ }, o = /* @__PURE__ */ new Set();
3287
+ for (const a of n) {
3288
+ if (!a || typeof a != "object") continue;
3289
+ const i = Number(a == null ? void 0 : a.id);
3290
+ !Number.isNaN(i) && !t.id.id.includes(i) && t.id.id.push(i);
3291
+ const { groupCode: s, actionCode: c } = r(a == null ? void 0 : a.code);
3292
+ if (!s || !c) continue;
3293
+ const u = t.code[s] || [];
3294
+ u.some((d) => String(d == null ? void 0 : d.code) === String(c)) || (u.push({ code: c }), t.code[s] = u);
3295
+ const f = a == null ? void 0 : a.code;
3296
+ if (f != null) {
3297
+ const d = String(f).trim();
3298
+ d && o.add(d);
3299
+ }
3300
+ }
3301
+ return t.code.sourceCode = Array.from(o), t;
3302
+ }, Gc = () => {
3303
+ const e = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
3304
+ try {
3305
+ const t = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), n = String((t == null ? void 0 : t.id) ?? "").trim(), r = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
3306
+ if (n && r && n !== r)
3307
+ return Pt([]);
3308
+ const o = e ? JSON.parse(e) : [];
3309
+ return Pt(o);
3310
+ } catch {
3311
+ return Pt([]);
3312
+ }
3313
+ }, Vc = (e = "id") => {
3314
+ var i, s;
3315
+ const t = Gc();
3316
+ if (!t || typeof t != "object")
3317
+ return e === "all" ? { idList: [], codeList: [] } : [];
3318
+ const n = (i = t == null ? void 0 : t.id) == null ? void 0 : i.id, r = Array.isArray(n) ? n : [], o = (s = t == null ? void 0 : t.code) == null ? void 0 : s.sourceCode, a = Array.isArray(o) ? o : [];
3319
+ return e === "all" ? { idList: r, codeList: a } : e === "code" ? a : r;
3320
+ }, fl = (e, t) => {
3321
+ const n = (async () => {
3322
+ const r = Jc(e);
3323
+ if (!r) return [];
3324
+ const o = await Wc().run(r), [a, i] = o;
3325
+ return a ? [] : i;
3326
+ })();
3327
+ return typeof t == "function" && n.then((r) => t(r)).catch(() => t([])), n;
3328
+ }, pl = (e, t) => {
3329
+ const n = (async () => {
3330
+ const r = String(e ?? "").trim();
3331
+ if (!r) return [];
3332
+ const o = await Hc().run({ menuId: r }), [a, i] = o;
3333
+ return a ? [] : i;
3334
+ })();
3335
+ return typeof t == "function" && n.then((r) => t(r)).catch(() => t([])), n;
3336
+ }, dl = (e) => {
5
3337
  const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
6
3338
  return {
7
- authCodes: t.rightFuncCodes ?? [],
8
- routeCode: t.routeCode ?? "",
3339
+ authCodes: Vc(),
9
3340
  routeUrl: t.routeUrl ?? "",
10
3341
  parentId: t.parentId ?? "",
11
3342
  id: t.id ?? "",
@@ -15,27 +3346,42 @@ const j = (e) => {
15
3346
  showName: t.showName ?? "",
16
3347
  type: (t == null ? void 0 : t.type) ?? ""
17
3348
  };
18
- }, d = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), i = () => {
19
- const e = d(), t = {}, r = (n) => {
20
- !n || !Array.isArray(n) || n.forEach((s) => {
21
- s.routeCode && t[s.routeCode] === void 0 && (t[s.routeCode] = []), s.routeCode && s.rightFuncCodes && Array.isArray(s.rightFuncCodes) && s.rightFuncCodes.forEach((a) => {
22
- a && typeof a == "string" && t[s.routeCode].push({ code: a });
23
- }), s.children && Array.isArray(s.children) && r(s.children);
24
- });
25
- };
26
- return r(e), t;
27
- }, m = u, P = () => {
28
- var r;
3349
+ }, yl = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), Kc = () => {
3350
+ const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
3351
+ return e.forEach((n) => {
3352
+ n.appId && (n.rightFuncCodes && n.rightFuncCodes.forEach((r) => t[r] = []), n.children && n.children.forEach((r) => {
3353
+ var o, a;
3354
+ if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes && r.rightFuncCodes[0] && !r.children) {
3355
+ const i = (o = r.rightFuncCodes[0]) == null ? void 0 : o.lastIndexOf("."), s = (a = r.rightFuncCodes[0]) == null ? void 0 : a.slice(0, i);
3356
+ t[s] = [], r.rightFuncCodes.forEach((c) => {
3357
+ const u = c == null ? void 0 : c.lastIndexOf(".");
3358
+ t[s].push({ code: c == null ? void 0 : c.slice(u + 1) });
3359
+ });
3360
+ }
3361
+ r.children && r.children.forEach((i) => {
3362
+ var s, c;
3363
+ if (i.routeCode && (t[i.routeCode] = []), i.rightFuncCodes) {
3364
+ const u = (s = i.rightFuncCodes[0]) == null ? void 0 : s.lastIndexOf("."), l = (c = i.rightFuncCodes[0]) == null ? void 0 : c.slice(0, u);
3365
+ t[l] = [], i.rightFuncCodes.forEach((f) => {
3366
+ const d = f == null ? void 0 : f.lastIndexOf(".");
3367
+ t[l].push({ code: f == null ? void 0 : f.slice(d + 1) });
3368
+ });
3369
+ }
3370
+ });
3371
+ }));
3372
+ }), t;
3373
+ }, Qc = Vr, hl = () => {
3374
+ var n;
29
3375
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
30
3376
  return {
31
3377
  id: e.id ?? "",
32
3378
  name: e.userName ?? "",
33
3379
  flag: e.flag ?? null,
34
- tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
3380
+ tenantId: ((n = e == null ? void 0 : e.tenant) == null ? void 0 : n.id) ?? ""
35
3381
  };
36
- }, b = () => {
3382
+ }, ml = () => {
37
3383
  let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
38
- const t = c();
3384
+ const t = we();
39
3385
  return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
40
3386
  id: e.id ?? "",
41
3387
  name: e.name ?? "",
@@ -44,7 +3390,7 @@ const j = (e) => {
44
3390
  email: e.email ?? "",
45
3391
  headPicture: e.headPicture ?? ""
46
3392
  };
47
- }, A = () => {
3393
+ }, gl = () => {
48
3394
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
49
3395
  return {
50
3396
  userId: e.id ?? "",
@@ -66,9 +3412,9 @@ const j = (e) => {
66
3412
  address: e.address ?? "",
67
3413
  description: e.description ?? ""
68
3414
  };
69
- }, T = () => sessionStorage.getItem("languages"), I = () => {
3415
+ }, vl = () => sessionStorage.getItem("languages"), Xc = () => {
70
3416
  let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
71
- const t = c();
3417
+ const t = we();
72
3418
  return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
73
3419
  id: (e == null ? void 0 : e.id) ?? 0,
74
3420
  code: (e == null ? void 0 : e.code) ?? 0,
@@ -82,7 +3428,7 @@ const j = (e) => {
82
3428
  leaf: (e == null ? void 0 : e.leaf) ?? !1,
83
3429
  optional: (e == null ? void 0 : e.leaf) ?? !0
84
3430
  };
85
- }, f = () => {
3431
+ }, Sl = () => {
86
3432
  let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
87
3433
  return {
88
3434
  id: (e == null ? void 0 : e.id) ?? 0,
@@ -107,7 +3453,7 @@ const j = (e) => {
107
3453
  autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
108
3454
  currency: (e == null ? void 0 : e.currency) ?? {}
109
3455
  };
110
- }, J = () => {
3456
+ }, wl = () => {
111
3457
  const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
112
3458
  return {
113
3459
  applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
@@ -118,13 +3464,13 @@ const j = (e) => {
118
3464
  displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
119
3465
  type: (e == null ? void 0 : e.type) ?? null
120
3466
  };
121
- }, O = () => {
3467
+ }, bl = () => {
122
3468
  const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
123
3469
  return {
124
3470
  style: (e == null ? void 0 : e.style) ?? "",
125
3471
  skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
126
3472
  };
127
- }, y = (e, t) => e ? i()[e] : void 0, M = (e, t) => y(e) ?? [], C = () => {
3473
+ }, Zc = (e, t) => e ? Kc()[e] : void 0, El = (e, t) => Zc(e) ?? [], Yc = () => {
128
3474
  const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
129
3475
  return {
130
3476
  appcategorys: e.appcategorys ?? [],
@@ -133,20 +3479,20 @@ const j = (e) => {
133
3479
  subAppList: e.subAppList ?? [],
134
3480
  menuCollapses: e.menuCollapses ?? []
135
3481
  };
136
- }, k = (e, t = !1) => {
137
- var n, s;
138
- const r = C().subAppList;
3482
+ }, Ol = (e, t = !1) => {
3483
+ var r, o;
3484
+ const n = Yc().subAppList;
139
3485
  if (e)
140
- return t ? ((n = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((s = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : s.menus) ?? [];
3486
+ return t ? ((r = n == null ? void 0 : n.find((a) => a.code === e)) == null ? void 0 : r.originalMenus) ?? [] : ((o = n == null ? void 0 : n.find((a) => a.code === e)) == null ? void 0 : o.menus) ?? [];
141
3487
  {
142
3488
  let a = {};
143
- return t ? r == null || r.forEach((o) => {
144
- a[o.code] = o.originalMenus ?? [];
145
- }) : r == null || r.forEach((o) => {
146
- a[o.code] = o.menus ?? [];
3489
+ return t ? n == null || n.forEach((i) => {
3490
+ a[i.code] = i.originalMenus ?? [];
3491
+ }) : n == null || n.forEach((i) => {
3492
+ a[i.code] = i.menus ?? [];
147
3493
  }), a;
148
3494
  }
149
- }, v = () => {
3495
+ }, Al = () => {
150
3496
  const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
151
3497
  return {
152
3498
  currentCode: e.currentCode ?? "",
@@ -154,34 +3500,39 @@ const j = (e) => {
154
3500
  tabMap: e.tabMap ?? {},
155
3501
  preTab: e.preTab ?? {}
156
3502
  };
157
- }, F = () => {
158
- const e = c(), t = sessionStorage.getItem("minioAddress");
3503
+ }, Rl = () => {
3504
+ const e = we(), t = sessionStorage.getItem("minioAddress");
159
3505
  return t || (e.baseURL ? e.baseURL : location.origin);
160
- }, U = () => ({
3506
+ }, Pl = () => ({
161
3507
  instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
162
- }), D = () => localStorage.getItem("fav-icon") || "./logo.svg";
163
- m() || g();
164
- var p;
165
- (p = I()) != null && p.id || l();
3508
+ }), Cl = () => localStorage.getItem("fav-icon") || "./logo.svg";
3509
+ Qc() || Zn();
3510
+ var Gr;
3511
+ (Gr = Xc()) != null && Gr.id || Yn();
166
3512
  export {
167
- i as getAuthobj,
168
- D as getFavIcon,
169
- J as getHomeInfo,
170
- U as getInstanceInfo,
171
- T as getLanguages,
172
- j as getMenuItemInfo,
173
- d as getMenuListnfo,
174
- k as getMenus,
175
- F as getMinioAddress,
176
- y as getPageAuth,
177
- M as getPageAuthBtn,
178
- O as getPersonalConfig,
179
- b as getPersonalInfo,
180
- I as getProjectInfo,
181
- f as getProjectMessage,
182
- C as getSubApps,
183
- v as getTabInfo,
184
- A as getTenantInfo,
185
- m as getToken,
186
- P as getUserInfo
3513
+ Kc as getAuthobj,
3514
+ Vc as getCurrentModulePermissionData,
3515
+ pl as getCurrentUserMenuPermissionsList,
3516
+ fl as getCurrentUserPermissionsList,
3517
+ Cl as getFavIcon,
3518
+ Gc as getGroupedCurrentUserPermissionList,
3519
+ wl as getHomeInfo,
3520
+ Pl as getInstanceInfo,
3521
+ vl as getLanguages,
3522
+ dl as getMenuItemInfo,
3523
+ yl as getMenuListnfo,
3524
+ Ol as getMenus,
3525
+ Rl as getMinioAddress,
3526
+ Zc as getPageAuth,
3527
+ El as getPageAuthBtn,
3528
+ bl as getPersonalConfig,
3529
+ ml as getPersonalInfo,
3530
+ Xc as getProjectInfo,
3531
+ Sl as getProjectMessage,
3532
+ Yc as getSubApps,
3533
+ Al as getTabInfo,
3534
+ gl as getTenantInfo,
3535
+ Qc as getToken,
3536
+ hl as getUserInfo,
3537
+ Pt as groupPermissionListByModuleAndCode
187
3538
  };