sooyie-task 0.0.9 → 0.0.11

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