jmash-region 0.1.2 → 0.1.4

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