jmash-region 0.1.1 → 0.1.2

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