@verdnatura/vn-front-lib 0.0.12 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3836 +0,0 @@
1
- import { useArrayDataStore as e, useValidationsStore as t } from "./stores.js";
2
- import { buildFilter as n, isDialogOpened as r } from "./filters.js";
3
- import { advancedFilters as i, trackAnalyticEvent as a } from "./utils.js";
4
- import { Transition as o, TransitionGroup as s, computed as c, createApp as l, defineComponent as u, getCurrentInstance as d, h as f, inject as p, markRaw as m, onBeforeUnmount as h, onMounted as g, reactive as _, ref as v, unref as y, withDirectives as b } from "vue";
5
- import { useI18n as x } from "vue-i18n";
6
- import S from "validator";
7
- import C from "axios";
8
- //#region \0rolldown/runtime.js
9
- var w = Object.create, T = Object.defineProperty, E = Object.getOwnPropertyDescriptor, D = Object.getOwnPropertyNames, O = Object.getPrototypeOf, k = Object.prototype.hasOwnProperty, A = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), j = (e, t) => {
10
- let n = {};
11
- for (var r in e) T(n, r, {
12
- get: e[r],
13
- enumerable: !0
14
- });
15
- return t || T(n, Symbol.toStringTag, { value: "Module" }), n;
16
- }, M = (e, t, n, r) => {
17
- if (t && typeof t == "object" || typeof t == "function") for (var i = D(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !k.call(e, s) && s !== n && T(e, s, {
18
- get: ((e) => t[e]).bind(null, s),
19
- enumerable: !(r = E(t, s)) || r.enumerable
20
- });
21
- return e;
22
- }, N = (e, t, n) => (n = e == null ? {} : w(O(e)), M(t || !e || !e.__esModule ? T(n, "default", {
23
- value: e,
24
- enumerable: !0
25
- }) : n, e)), P = {
26
- xs: 18,
27
- sm: 24,
28
- md: 32,
29
- lg: 38,
30
- xl: 46
31
- }, F = { size: String };
32
- function I(e, t = P) {
33
- return c(() => e.size === void 0 ? null : { fontSize: e.size in t ? `${t[e.size]}px` : e.size });
34
- }
35
- //#endregion
36
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js
37
- function L(e, t, n, r) {
38
- return Object.defineProperty(e, t, {
39
- get: n,
40
- set: r,
41
- enumerable: !0
42
- }), e;
43
- }
44
- //#endregion
45
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.create/create.js
46
- function R(e) {
47
- return m(u(e));
48
- }
49
- function z(e) {
50
- return m(e);
51
- }
52
- var B = (e, t) => {
53
- let n = _(e);
54
- for (let r in e) L(t, r, () => n[r], (e) => {
55
- n[r] = e;
56
- });
57
- return t;
58
- };
59
- //#endregion
60
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.render/render.js
61
- function V(e, t) {
62
- return e === void 0 ? t : e() || t;
63
- }
64
- function H(e, t) {
65
- return e === void 0 ? t : t.concat(e());
66
- }
67
- function ee(e, t) {
68
- return e === void 0 ? t : t === void 0 ? e() : t.concat(e());
69
- }
70
- //#endregion
71
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/icon/QIcon.js
72
- var te = "0 0 24 24", ne = (e) => e, re = (e) => `ionicons ${e}`, ie = {
73
- "mdi-": (e) => `mdi ${e}`,
74
- "icon-": ne,
75
- "bt-": (e) => `bt ${e}`,
76
- "eva-": (e) => `eva ${e}`,
77
- "ion-md": re,
78
- "ion-ios": re,
79
- "ion-logo": re,
80
- "iconfont ": ne,
81
- "ti-": (e) => `themify-icon ${e}`,
82
- "bi-": (e) => `bootstrap-icons ${e}`,
83
- "i-": ne
84
- }, ae = {
85
- o_: "-outlined",
86
- r_: "-round",
87
- s_: "-sharp"
88
- }, oe = {
89
- sym_o_: "-outlined",
90
- sym_r_: "-rounded",
91
- sym_s_: "-sharp"
92
- }, se = RegExp("^(" + Object.keys(ie).join("|") + ")"), ce = RegExp("^(" + Object.keys(ae).join("|") + ")"), U = RegExp("^(" + Object.keys(oe).join("|") + ")"), W = /^[Mm]\s?[-+]?\.?\d/, le = /^img:/, ue = /^svguse:/, de = /^ion-/, fe = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, pe = R({
93
- name: "QIcon",
94
- props: {
95
- ...F,
96
- tag: {
97
- type: String,
98
- default: "i"
99
- },
100
- name: String,
101
- color: String,
102
- left: Boolean,
103
- right: Boolean
104
- },
105
- setup(e, { slots: t }) {
106
- let { proxy: { $q: n } } = d(), r = I(e), i = c(() => "q-icon" + (e.left ? " on-left" : "") + (e.right ? " on-right" : "") + (e.color === void 0 ? "" : ` text-${e.color}`)), a = c(() => {
107
- let t, r = e.name;
108
- if (r === "none" || !r) return { none: !0 };
109
- if (n.iconMapFn !== null) {
110
- let e = n.iconMapFn(r);
111
- if (e !== void 0) if (e.icon !== void 0) {
112
- if (r = e.icon, r === "none" || !r) return { none: !0 };
113
- } else return {
114
- cls: e.cls,
115
- content: e.content === void 0 ? " " : e.content
116
- };
117
- }
118
- if (W.test(r)) {
119
- let [e, t = te] = r.split("|");
120
- return {
121
- svg: !0,
122
- viewBox: t,
123
- nodes: e.split("&&").map((e) => {
124
- let [t, n, r] = e.split("@@");
125
- return f("path", {
126
- style: n,
127
- d: t,
128
- transform: r
129
- });
130
- })
131
- };
132
- }
133
- if (le.test(r)) return {
134
- img: !0,
135
- src: r.slice(4)
136
- };
137
- if (ue.test(r)) {
138
- let [e, t = te] = r.split("|");
139
- return {
140
- svguse: !0,
141
- src: e.slice(7),
142
- viewBox: t
143
- };
144
- }
145
- let i = " ", a = r.match(se);
146
- if (a !== null) t = ie[a[1]](r);
147
- else if (fe.test(r)) t = r;
148
- else if (de.test(r)) t = `ionicons ion-${n.platform.is.ios ? "ios" : "md"}${r.slice(3)}`;
149
- else if (U.test(r)) {
150
- t = "notranslate material-symbols";
151
- let e = r.match(U);
152
- e !== null && (r = r.slice(6), t += oe[e[1]]), i = r;
153
- } else {
154
- t = "notranslate material-icons";
155
- let e = r.match(ce);
156
- e !== null && (r = r.slice(2), t += ae[e[1]]), i = r;
157
- }
158
- return {
159
- cls: t,
160
- content: i
161
- };
162
- });
163
- return () => {
164
- let n = {
165
- class: i.value,
166
- style: r.value,
167
- "aria-hidden": "true"
168
- };
169
- return a.value.none ? f(e.tag, n, V(t.default)) : a.value.img ? f(e.tag, n, H(t.default, [f("img", { src: a.value.src })])) : a.value.svg ? f(e.tag, n, H(t.default, [f("svg", { viewBox: a.value.viewBox || "0 0 24 24" }, a.value.nodes)])) : a.value.svguse ? f(e.tag, n, H(t.default, [f("svg", { viewBox: a.value.viewBox }, [f("use", { "xlink:href": a.value.src })])])) : (a.value.cls !== void 0 && (n.class += " " + a.value.cls), f(e.tag, n, H(t.default, [a.value.content])));
170
- };
171
- }
172
- }), me = R({
173
- name: "QAvatar",
174
- props: {
175
- ...F,
176
- fontSize: String,
177
- color: String,
178
- textColor: String,
179
- icon: String,
180
- square: Boolean,
181
- rounded: Boolean
182
- },
183
- setup(e, { slots: t }) {
184
- let n = I(e), r = c(() => "q-avatar" + (e.color ? ` bg-${e.color}` : "") + (e.textColor ? ` text-${e.textColor} q-chip--colored` : "") + (e.square ? " q-avatar--square" : e.rounded ? " rounded-borders" : "")), i = c(() => e.fontSize ? { fontSize: e.fontSize } : null);
185
- return () => {
186
- let a = e.icon === void 0 ? void 0 : [f(pe, { name: e.icon })];
187
- return f("div", {
188
- class: r.value,
189
- style: n.value
190
- }, [f("div", {
191
- class: "q-avatar__content row flex-center overflow-hidden",
192
- style: i.value
193
- }, ee(t.default, a))]);
194
- };
195
- }
196
- }), he = {
197
- size: {
198
- type: [String, Number],
199
- default: "1em"
200
- },
201
- color: String
202
- };
203
- function ge(e) {
204
- return {
205
- cSize: c(() => e.size in P ? `${P[e.size]}px` : e.size),
206
- classes: c(() => "q-spinner" + (e.color ? ` text-${e.color}` : ""))
207
- };
208
- }
209
- //#endregion
210
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/spinner/QSpinner.js
211
- var _e = R({
212
- name: "QSpinner",
213
- props: {
214
- ...he,
215
- thickness: {
216
- type: Number,
217
- default: 5
218
- }
219
- },
220
- setup(e) {
221
- let { cSize: t, classes: n } = ge(e);
222
- return () => f("svg", {
223
- class: n.value + " q-spinner-mat",
224
- width: t.value,
225
- height: t.value,
226
- viewBox: "25 25 50 50"
227
- }, [f("circle", {
228
- class: "path",
229
- cx: "50",
230
- cy: "50",
231
- r: "20",
232
- fill: "none",
233
- stroke: "currentColor",
234
- "stroke-width": e.thickness,
235
- "stroke-miterlimit": "10"
236
- })]);
237
- }
238
- });
239
- //#endregion
240
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/dom/dom.js
241
- function ve(e, t) {
242
- let n = e.style;
243
- for (let e in t) n[e] = t[e];
244
- }
245
- function ye(e) {
246
- if (e == null) return;
247
- if (typeof e == "string") try {
248
- return document.querySelector(e) || void 0;
249
- } catch {
250
- return;
251
- }
252
- let t = y(e);
253
- if (t) return t.$el || t;
254
- }
255
- function be(e, t) {
256
- if (e == null || e.contains(t)) return !0;
257
- for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling) if (n.contains(t)) return !0;
258
- return !1;
259
- }
260
- //#endregion
261
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/event/event.js
262
- var G = {
263
- hasPassive: !1,
264
- passiveCapture: !0,
265
- notPassiveCapture: !0
266
- };
267
- try {
268
- let e = Object.defineProperty({}, "passive", { get() {
269
- Object.assign(G, {
270
- hasPassive: !0,
271
- passive: { passive: !0 },
272
- notPassive: { passive: !1 },
273
- passiveCapture: {
274
- passive: !0,
275
- capture: !0
276
- },
277
- notPassiveCapture: {
278
- passive: !1,
279
- capture: !0
280
- }
281
- });
282
- } });
283
- window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
284
- } catch {}
285
- function xe() {}
286
- function Se(e) {
287
- return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
288
- top: e.clientY,
289
- left: e.clientX
290
- };
291
- }
292
- function Ce(e) {
293
- e.stopPropagation();
294
- }
295
- function we(e) {
296
- e.cancelable !== !1 && e.preventDefault();
297
- }
298
- function K(e) {
299
- e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
300
- }
301
- function Te(e, t, n) {
302
- let r = `__q_${t}_evt`;
303
- e[r] = [...e[r] ?? [], ...n], n.forEach((t) => {
304
- t[0].addEventListener(t[1], e[t[2]], G[t[3]]);
305
- });
306
- }
307
- function Ee(e, t) {
308
- let n = `__q_${t}_evt`;
309
- e[n] !== void 0 && (e[n].forEach((t) => {
310
- t[0].removeEventListener(t[1], e[t[2]], G[t[3]]);
311
- }), e[n] = void 0);
312
- }
313
- //#endregion
314
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/key-composition.js
315
- var De = !1;
316
- function Oe(e) {
317
- return De || e !== Object(e) || e.isComposing || e.qKeyEvent;
318
- }
319
- function ke(e, t) {
320
- return !Oe(e) && [t].flat().includes(e.keyCode);
321
- }
322
- //#endregion
323
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/throttle/throttle.js
324
- function Ae(e, t = 250) {
325
- let n = !1, r;
326
- return function(...i) {
327
- return n || (n = !0, setTimeout(() => {
328
- n = !1;
329
- }, t), r = e.apply(this, i)), r;
330
- };
331
- }
332
- //#endregion
333
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/directives/ripple/Ripple.js
334
- function je(e, t, n, r) {
335
- n.modifiers.stop && Ce(e);
336
- let i = n.modifiers.color, a = n.modifiers.center || r === !0, o = document.createElement("span"), s = document.createElement("span"), c = Se(e), { left: l, top: u, width: d, height: f } = t.getBoundingClientRect(), p = Math.hypot(d, f), m = p / 2, h = `${(d - p) / 2}px`, g = a ? h : `${c.left - l - m}px`, _ = `${(f - p) / 2}px`, v = a ? _ : `${c.top - u - m}px`;
337
- s.className = "q-ripple__inner", ve(s, {
338
- height: `${p}px`,
339
- width: `${p}px`,
340
- transform: `translate3d(${g},${v},0) scale3d(.2,.2,1)`,
341
- opacity: 0
342
- }), o.className = `q-ripple${i ? " text-" + i : ""}`, o.setAttribute("dir", "ltr"), o.append(s), t.append(o);
343
- let y = () => {
344
- o.remove(), clearTimeout(b);
345
- };
346
- n.abort.push(y);
347
- let b = setTimeout(() => {
348
- s.classList.add("q-ripple__inner--enter"), s.style.transform = `translate3d(${h},${_},0) scale3d(1,1,1)`, s.style.opacity = .2, b = setTimeout(() => {
349
- s.classList.remove("q-ripple__inner--enter"), s.classList.add("q-ripple__inner--leave"), s.style.opacity = 0, b = setTimeout(() => {
350
- o.remove(), n.abort.splice(n.abort.indexOf(y), 1);
351
- }, 275);
352
- }, 250);
353
- }, 50);
354
- }
355
- function Me(e, { modifiers: t, value: n, arg: r }) {
356
- let i = {
357
- ...e.cfg.ripple,
358
- ...t,
359
- ...n
360
- };
361
- e.modifiers = {
362
- early: i.early === !0,
363
- stop: i.stop === !0,
364
- center: i.center === !0,
365
- color: i.color || r,
366
- keyCodes: [i.keyCodes || 13].flat()
367
- };
368
- }
369
- var Ne = z({
370
- name: "ripple",
371
- beforeMount(e, t) {
372
- let n = t.instance.$.appContext.config.globalProperties.$q.config || {};
373
- if (n.ripple === !1) return;
374
- let r = {
375
- cfg: n,
376
- enabled: t.value !== !1,
377
- modifiers: {},
378
- abort: [],
379
- start(t) {
380
- r.enabled && !t.qSkipRipple && t.type === (r.modifiers.early ? "pointerdown" : "click") && je(t, e, r, t.qKeyEvent === !0);
381
- },
382
- keystart: Ae((t) => {
383
- r.enabled && !t.qSkipRipple && ke(t, r.modifiers.keyCodes) && t.type === `key${r.modifiers.early ? "down" : "up"}` && je(t, e, r, !0);
384
- }, 300)
385
- };
386
- Me(r, t), e.__qripple = r, Te(r, "main", [
387
- [
388
- e,
389
- "pointerdown",
390
- "start",
391
- "passive"
392
- ],
393
- [
394
- e,
395
- "click",
396
- "start",
397
- "passive"
398
- ],
399
- [
400
- e,
401
- "keydown",
402
- "keystart",
403
- "passive"
404
- ],
405
- [
406
- e,
407
- "keyup",
408
- "keystart",
409
- "passive"
410
- ]
411
- ]);
412
- },
413
- updated(e, t) {
414
- if (t.oldValue !== t.value) {
415
- let n = e.__qripple;
416
- n !== void 0 && (n.enabled = t.value !== !1, n.enabled && Object(t.value) === t.value && Me(n, t));
417
- }
418
- },
419
- beforeUnmount(e) {
420
- let t = e.__qripple;
421
- t !== void 0 && (t.abort.forEach((e) => {
422
- e();
423
- }), Ee(t, "main"), delete e.__qripple);
424
- }
425
- }), Pe = {
426
- left: "start",
427
- center: "center",
428
- right: "end",
429
- between: "between",
430
- around: "around",
431
- evenly: "evenly",
432
- stretch: "stretch"
433
- }, Fe = Object.keys(Pe), Ie = { align: {
434
- type: String,
435
- validator: (e) => Fe.includes(e)
436
- } };
437
- function Le(e) {
438
- return c(() => {
439
- let t = e.align === void 0 ? e.vertical ? "stretch" : "left" : e.align;
440
- return `${e.vertical ? "items" : "justify"}-${Pe[t]}`;
441
- });
442
- }
443
- //#endregion
444
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.vm/vm.js
445
- function Re(e) {
446
- return e.appContext.config.globalProperties.$router !== void 0;
447
- }
448
- function ze(e) {
449
- return e.isUnmounted === !0 || e.isDeactivated === !0;
450
- }
451
- //#endregion
452
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-router-link/use-router-link.js
453
- function Be(e) {
454
- return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
455
- }
456
- function Ve(e, t) {
457
- return (e.aliasOf || e) === (t.aliasOf || t);
458
- }
459
- function He(e, t) {
460
- for (let n in t) {
461
- let r = t[n], i = e[n];
462
- if (typeof r == "string") {
463
- if (r !== i) return !1;
464
- } else if (!Array.isArray(i) || i.length !== r.length || r.some((e, t) => e !== i[t])) return !1;
465
- }
466
- return !0;
467
- }
468
- function Ue(e, t) {
469
- return Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
470
- }
471
- function We(e, t) {
472
- return Array.isArray(e) ? Ue(e, t) : Array.isArray(t) ? Ue(t, e) : e === t;
473
- }
474
- function Ge(e, t) {
475
- if (Object.keys(e).length !== Object.keys(t).length) return !1;
476
- for (let n in e) if (!We(e[n], t[n])) return !1;
477
- return !0;
478
- }
479
- var Ke = {
480
- to: [String, Object],
481
- replace: Boolean,
482
- href: String,
483
- target: String,
484
- disable: Boolean
485
- };
486
- ({ ...Ke });
487
- function qe({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
488
- let n = d(), { props: r, proxy: i, emit: a } = n, o = Re(n), s = c(() => !r.disable && r.href !== void 0), l = c(t ? () => o && !r.disable && !s.value && r.to !== void 0 && r.to !== null && r.to !== "" : () => o && !s.value && r.to !== void 0 && r.to !== null && r.to !== ""), u = c(() => l.value ? b(r.to) : null), f = c(() => u.value !== null), p = c(() => s.value || f.value), m = c(() => r.type === "a" || p.value ? "a" : r.tag || e || "div"), h = c(() => s.value ? {
489
- href: r.href,
490
- target: r.target
491
- } : f.value ? {
492
- href: u.value.href,
493
- target: r.target
494
- } : {}), g = c(() => {
495
- if (!f.value) return -1;
496
- let { matched: e } = u.value, { length: t } = e, n = e[t - 1];
497
- if (n === void 0) return -1;
498
- let r = i.$route.matched;
499
- if (r.length === 0) return -1;
500
- let a = r.findIndex(Ve.bind(null, n));
501
- if (a !== -1) return a;
502
- let o = Be(e[t - 2]);
503
- return t > 1 && Be(n) === o && r.at(-1).path !== o ? r.findIndex(Ve.bind(null, e[t - 2])) : a;
504
- }), _ = c(() => f.value && g.value !== -1 && He(i.$route.params, u.value.params)), v = c(() => _.value && g.value === i.$route.matched.length - 1 && Ge(i.$route.params, u.value.params)), y = c(() => f.value ? v.value ? ` ${r.exactActiveClass} ${r.activeClass}` : r.exact ? "" : _.value ? ` ${r.activeClass}` : "" : "");
505
- function b(e) {
506
- try {
507
- return i.$router.resolve(e);
508
- } catch {}
509
- return null;
510
- }
511
- function x(e, { returnRouterError: t, to: n = r.to, replace: a = r.replace } = {}) {
512
- if (r.disable) return e.preventDefault(), Promise.resolve(!1);
513
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey || e.button !== void 0 && e.button !== 0 || r.target === "_blank") return Promise.resolve(!1);
514
- e.preventDefault();
515
- let o = i.$router[a ? "replace" : "push"](n);
516
- return t ? o : o.then(() => {}).catch(() => {});
517
- }
518
- function S(e) {
519
- if (f.value) {
520
- let t = (t) => x(e, t);
521
- a("click", e, t), e.defaultPrevented || t();
522
- } else a("click", e);
523
- }
524
- return {
525
- hasRouterLink: f,
526
- hasHrefLink: s,
527
- hasLink: p,
528
- linkTag: m,
529
- resolvedLink: u,
530
- linkIsActive: _,
531
- linkIsExactActive: v,
532
- linkClass: y,
533
- linkAttrs: h,
534
- getLink: b,
535
- navigateToRouterLink: x,
536
- navigateOnClick: S
537
- };
538
- }
539
- //#endregion
540
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/btn/use-btn.js
541
- var Je = {
542
- none: 0,
543
- xs: 4,
544
- sm: 8,
545
- md: 16,
546
- lg: 24,
547
- xl: 32
548
- }, Ye = {
549
- xs: 8,
550
- sm: 10,
551
- md: 14,
552
- lg: 20,
553
- xl: 24
554
- }, Xe = [
555
- "button",
556
- "submit",
557
- "reset"
558
- ], Ze = /[^\s]\/[^\s]/, Qe = [
559
- "flat",
560
- "outline",
561
- "push",
562
- "unelevated"
563
- ];
564
- function $e(e, t) {
565
- return e.flat ? "flat" : e.outline ? "outline" : e.push ? "push" : e.unelevated ? "unelevated" : t;
566
- }
567
- var et = {
568
- ...F,
569
- ...Ke,
570
- type: {
571
- type: String,
572
- default: "button"
573
- },
574
- label: [Number, String],
575
- icon: String,
576
- iconRight: String,
577
- ...Qe.reduce((e, t) => (e[t] = Boolean) && e, {}),
578
- square: Boolean,
579
- rounded: Boolean,
580
- glossy: Boolean,
581
- size: String,
582
- fab: Boolean,
583
- fabMini: Boolean,
584
- padding: String,
585
- color: String,
586
- textColor: String,
587
- noCaps: Boolean,
588
- noWrap: Boolean,
589
- dense: Boolean,
590
- tabindex: [Number, String],
591
- ripple: {
592
- type: [Boolean, Object],
593
- default: !0
594
- },
595
- align: {
596
- ...Ie.align,
597
- default: "center"
598
- },
599
- stack: Boolean,
600
- stretch: Boolean,
601
- loading: {
602
- type: Boolean,
603
- default: null
604
- },
605
- disable: Boolean,
606
- round: Boolean
607
- };
608
- function tt(e) {
609
- let t = I(e, Ye), n = Le(e), { hasRouterLink: r, hasLink: i, linkTag: a, linkAttrs: o, navigateOnClick: s } = qe({ fallbackTag: "button" }), l = c(() => {
610
- let n = e.fab || e.fabMini ? {} : t.value;
611
- return e.padding === void 0 ? n : {
612
- ...n,
613
- padding: e.padding.split(/\s+/).map((e) => e in Je ? Je[e] + "px" : e).join(" "),
614
- minWidth: "0",
615
- minHeight: "0"
616
- };
617
- }), u = c(() => e.rounded || e.fab || e.fabMini), d = c(() => !e.disable && !e.loading), f = c(() => d.value ? e.tabindex || 0 : -1), p = c(() => $e(e, "standard")), m = c(() => {
618
- let t = { tabindex: f.value };
619
- return i.value ? Object.assign(t, o.value) : Xe.includes(e.type) && (t.type = e.type), a.value === "a" ? (e.disable ? t["aria-disabled"] = "true" : t.href === void 0 && (t.role = "button"), !r.value && Ze.test(e.type) && (t.type = e.type)) : e.disable && (t.disabled = "", t["aria-disabled"] = "true"), e.loading && e.percentage !== void 0 && Object.assign(t, {
620
- role: "progressbar",
621
- "aria-valuemin": 0,
622
- "aria-valuemax": 100,
623
- "aria-valuenow": e.percentage
624
- }), t;
625
- });
626
- return {
627
- classes: c(() => {
628
- let t;
629
- e.color === void 0 ? e.textColor && (t = `text-${e.textColor}`) : t = e.flat || e.outline ? `text-${e.textColor || e.color}` : `bg-${e.color} text-${e.textColor || "white"}`;
630
- let n = e.round ? "round" : `rectangle${u.value ? " q-btn--rounded" : e.square ? " q-btn--square" : ""}`;
631
- return `q-btn--${p.value} q-btn--${n}` + (t === void 0 ? "" : " " + t) + (d.value ? " q-btn--actionable q-focusable q-hoverable" : e.disable ? " disabled" : "") + (e.fab ? " q-btn--fab" : e.fabMini ? " q-btn--fab-mini" : "") + (e.noCaps ? " q-btn--no-uppercase" : "") + (e.dense ? " q-btn--dense" : "") + (e.stretch ? " no-border-radius self-stretch" : "") + (e.glossy ? " glossy" : "") + (e.square ? " q-btn--square" : "");
632
- }),
633
- style: l,
634
- innerClasses: c(() => n.value + (e.stack ? " column" : " row") + (e.noWrap ? " no-wrap text-no-wrap" : "") + (e.loading ? " q-btn__content--hidden" : "")),
635
- attributes: m,
636
- hasLink: i,
637
- linkTag: a,
638
- navigateOnClick: s,
639
- isActionable: d
640
- };
641
- }
642
- //#endregion
643
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/btn/QBtn.js
644
- var { passiveCapture: q } = G, nt = null, rt = null, it = null;
645
- function at(e) {
646
- K(e), e.qSkipRipple = !0;
647
- }
648
- var ot = R({
649
- name: "QBtn",
650
- props: {
651
- ...et,
652
- percentage: Number,
653
- darkPercentage: Boolean,
654
- onTouchstart: [Function, Array]
655
- },
656
- emits: [
657
- "click",
658
- "keydown",
659
- "mousedown",
660
- "keyup"
661
- ],
662
- setup(e, { slots: t, emit: n }) {
663
- let { proxy: r } = d(), { classes: i, style: a, innerClasses: s, attributes: l, hasLink: u, linkTag: p, navigateOnClick: m, isActionable: g } = tt(e), _ = v(null), y = v(null), x = null, S, C = null, w = null, T = c(() => e.label !== void 0 && e.label !== null && e.label !== ""), E = c(() => e.disable || e.ripple === !1 ? !1 : {
664
- keyCodes: u.value ? [13, 32] : [13],
665
- ...e.ripple === !0 ? {} : e.ripple
666
- }), D = c(() => ({ center: e.round })), O = c(() => {
667
- let t = Math.max(0, Math.min(100, e.percentage));
668
- return t > 0 ? {
669
- transition: "transform 0.6s",
670
- transform: `translateX(${t - 100}%)`
671
- } : {};
672
- }), k = c(() => {
673
- if (e.loading) return {
674
- onMousedown: at,
675
- onTouchstart: at,
676
- onClick: at,
677
- onKeydown: at,
678
- onKeyup: at
679
- };
680
- if (g.value) {
681
- let t = {
682
- onClick: j,
683
- onKeydown: M,
684
- onMousedown: P
685
- };
686
- if (r.$q.platform.has.touch) {
687
- let n = e.onTouchstart === void 0 ? "Passive" : "";
688
- t[`onTouchstart${n}`] = N;
689
- }
690
- return t;
691
- }
692
- return { onClick: K };
693
- }), A = c(() => ({
694
- ref: _,
695
- class: "q-btn q-btn-item non-selectable no-outline " + i.value,
696
- style: a.value,
697
- ...l.value,
698
- ...k.value
699
- }));
700
- function j(t) {
701
- if (_.value !== null) {
702
- if (t !== void 0) {
703
- if (t.defaultPrevented) return;
704
- let n = document.activeElement;
705
- if (e.type === "submit" && n !== document.body && !_.value.contains(n) && !n.contains(_.value)) {
706
- t.qAvoidFocus || _.value.focus();
707
- let e = () => {
708
- w = null, document.removeEventListener("keydown", K, !0), document.removeEventListener("keyup", e, q), _.value?.removeEventListener("blur", e, q);
709
- };
710
- w = e, document.addEventListener("keydown", K, !0), document.addEventListener("keyup", e, q), _.value.addEventListener("blur", e, q);
711
- }
712
- }
713
- m(t);
714
- }
715
- }
716
- function M(e) {
717
- _.value !== null && (n("keydown", e), ke(e, [13, 32]) && rt !== _.value && (rt !== null && I(), e.defaultPrevented || (e.qAvoidFocus || _.value.focus(), rt = _.value, _.value.classList.add("q-btn--active"), document.addEventListener("keyup", F, !0), _.value.addEventListener("blur", F, q)), K(e)));
718
- }
719
- function N(e) {
720
- _.value !== null && (n("touchstart", e), !e.defaultPrevented && (nt !== _.value && (nt !== null && I(), nt = _.value, x = e.target, x.addEventListener("touchcancel", F, q), x.addEventListener("touchend", F, q)), S = !0, C !== null && clearTimeout(C), C = setTimeout(() => {
721
- C = null, S = !1;
722
- }, 200)));
723
- }
724
- function P(e) {
725
- _.value !== null && (e.qSkipRipple = S === !0, n("mousedown", e), !e.defaultPrevented && it !== _.value && (it !== null && I(), it = _.value, _.value.classList.add("q-btn--active"), document.addEventListener("mouseup", F, q)));
726
- }
727
- function F(e) {
728
- if (_.value !== null && !(e?.type === "blur" && document.activeElement === _.value)) {
729
- if (e?.type === "keyup") {
730
- if (rt === _.value && ke(e, [13, 32])) {
731
- let t = new MouseEvent("click", e);
732
- t.qKeyEvent = !0, e.defaultPrevented && we(t), e.cancelBubble && Ce(t), _.value.dispatchEvent(t), K(e), e.qKeyEvent = !0;
733
- }
734
- n("keyup", e);
735
- }
736
- I();
737
- }
738
- }
739
- function I(e) {
740
- w?.();
741
- let t = y.value;
742
- !e && (nt === _.value || it === _.value) && t !== null && t !== document.activeElement && (t.setAttribute("tabindex", -1), t.focus({ preventScroll: !0 })), nt === _.value && (x !== null && (x.removeEventListener("touchcancel", F, q), x.removeEventListener("touchend", F, q)), nt = x = null), it === _.value && (document.removeEventListener("mouseup", F, q), it = null), rt === _.value && (document.removeEventListener("keyup", F, !0), _.value?.removeEventListener("blur", F, q), rt = null), _.value?.classList.remove("q-btn--active");
743
- }
744
- return h(() => {
745
- I(!0);
746
- }), Object.assign(r, { click: (e) => {
747
- g.value && j(e);
748
- } }), () => {
749
- let n = [];
750
- e.icon !== void 0 && n.push(f(pe, {
751
- name: e.icon,
752
- left: !e.stack && T.value,
753
- role: "img"
754
- })), T.value && n.push(f("span", { class: "block" }, [e.label])), n = H(t.default, n), e.iconRight !== void 0 && !e.round && n.push(f(pe, {
755
- name: e.iconRight,
756
- right: !e.stack && T.value,
757
- role: "img"
758
- }));
759
- let r = [f("span", {
760
- class: "q-focus-helper",
761
- ref: y
762
- })];
763
- return e.loading && e.percentage !== void 0 && r.push(f("span", { class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage ? " q-btn__progress--dark" : "") }, [f("span", {
764
- class: "q-btn__progress-indicator fit block",
765
- style: O.value
766
- })])), r.push(f("span", { class: "q-btn__content text-center col items-center q-anchor--skip " + s.value }, n)), e.loading !== null && r.push(f(o, { name: "q-transition--fade" }, () => e.loading ? [f("span", {
767
- key: "loading",
768
- class: "absolute-full flex flex-center"
769
- }, t.loading === void 0 ? [f(_e)] : t.loading())] : null)), b(f(p.value, A.value, r), [[
770
- Ne,
771
- E.value,
772
- void 0,
773
- D.value
774
- ]]);
775
- };
776
- }
777
- }), J = v(!1), st, ct = 512;
778
- function lt(e) {
779
- return typeof e == "string" ? e.slice(0, ct).toLowerCase() : "";
780
- }
781
- var ut = /(?:^|\s)version\/([\w.]+)/, dt = /(?:^|\s)applewebkit\/[\w.]+/, ft = /(?:^|\s)safari\/[\w.]+/;
782
- function pt(e) {
783
- let t = ut.exec(e);
784
- return t !== null && dt.test(e) && ft.test(e) ? {
785
- browser: "safari",
786
- version: t[1]
787
- } : null;
788
- }
789
- var mt = /(?:^|\s)opera\/([\w.]+)/, ht = /(?:^|\s)version\/([\w.]+)/;
790
- function gt(e) {
791
- let t = mt.exec(e);
792
- return t === null ? null : {
793
- browser: "opera",
794
- version: ht.exec(e)?.[1] || t[1]
795
- };
796
- }
797
- var _t = /(edg|edge|edga|edgios)\/([\w.]+)/, vt = /(opr)[\/]([\w.]+)/, yt = /(vivaldi)[\/]([\w.]+)/, bt = /(chrome|crios)[\/]([\w.]+)/, xt = /(firefox|fxios)[\/]([\w.]+)/, St = /(webkit)[\/]([\w.]+)/;
798
- function Ct(e, t) {
799
- let n = _t.exec(e) || vt.exec(e) || yt.exec(e) || bt.exec(e);
800
- if (n === null) {
801
- let r = pt(e);
802
- if (r !== null) return {
803
- ...r,
804
- platform: t[0] || ""
805
- };
806
- if (n = xt.exec(e) || St.exec(e), n === null) {
807
- let r = gt(e);
808
- if (r !== null) return {
809
- ...r,
810
- platform: t[0] || ""
811
- };
812
- n = [];
813
- }
814
- }
815
- return {
816
- browser: n[5] || n[3] || n[1] || "",
817
- version: n[4] || n[2] || "0",
818
- platform: t[0] || ""
819
- };
820
- }
821
- var wt = /(ipad)/, Tt = /(ipod)/, Et = /(iphone)/, Dt = /(windows phone)/, Ot = /(kindle)/, kt = /(silk)/, At = /(android)/, jt = /(win)/, Mt = /(mac)/, Nt = /(linux)/, Pt = /(cros)/;
822
- function Ft(e) {
823
- return wt.exec(e) || Tt.exec(e) || Dt.exec(e) || Et.exec(e) || Ot.exec(e) || kt.exec(e) || At.exec(e) || jt.exec(e) || Mt.exec(e) || Nt.exec(e) || Pt.exec(e) || [];
824
- }
825
- var It = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
826
- function Lt(e) {
827
- let t = lt(e), n = Ct(t, Ft(t)), r = {
828
- mobile: !1,
829
- desktop: !1,
830
- cordova: !1,
831
- capacitor: !1,
832
- nativeMobile: !1,
833
- electron: !1,
834
- bex: !1,
835
- linux: !1,
836
- mac: !1,
837
- win: !1,
838
- cros: !1,
839
- chrome: !1,
840
- firefox: !1,
841
- opera: !1,
842
- safari: !1,
843
- vivaldi: !1,
844
- edge: !1,
845
- edgeChromium: !1,
846
- ie: !1,
847
- webkit: !1,
848
- android: !1,
849
- ios: !1,
850
- ipad: !1,
851
- iphone: !1,
852
- ipod: !1,
853
- kindle: !1,
854
- winphone: !1,
855
- silk: !1
856
- };
857
- n.browser && (r[n.browser] = !0, r.version = n.version, r.versionNumber = Number.parseInt(n.version, 10)), n.platform && (r[n.platform] = !0), r["windows phone"] && (r.winphone = !0, delete r["windows phone"]);
858
- let i = r.android || r.ios || r.ipad || r.iphone || r.ipod || r.kindle || r.silk || r.winphone;
859
- if (i === !0 || t.includes("mobile") ? r.mobile = !0 : r.desktop = !0, r.edga || r.edgios || r.edg ? (r.edge = !0, n.browser = "edge") : r.crios ? (r.chrome = !0, n.browser = "chrome") : r.fxios && (r.firefox = !0, n.browser = "firefox"), (r.ipod || r.ipad || r.iphone) && (r.ios = !0), r.vivaldi &&= (n.browser = "vivaldi", !0), (r.chrome || r.opr || r.safari || r.vivaldi || r.mobile && !r.ios && !i) && (r.webkit = !0), r.opr && (n.browser = "opera", r.opera = !0), r.safari && (r.android ? (n.browser = "android", r.android = !0) : r.kindle ? (n.browser = "kindle", r.kindle = !0) : r.silk &&= (n.browser = "silk", !0)), r.name = n.browser, r.platform = n.platform, t.includes("electron")) r.electron = !0;
860
- else if (document.location.href.includes("-extension://")) r.bex = !0;
861
- else {
862
- if (window.Capacitor === void 0 ? (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova") : (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor"), J.value && (st = { is: { ...r } }), It && r.mac && (r.desktop && r.safari || r.nativeMobile && !r.android && !r.ios && !r.ipad)) {
863
- delete r.mac, delete r.desktop;
864
- let e = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
865
- Object.assign(r, {
866
- mobile: !0,
867
- ios: !0,
868
- platform: e,
869
- [e]: !0
870
- });
871
- }
872
- !r.mobile && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete r.desktop, r.mobile = !0);
873
- }
874
- return r;
875
- }
876
- var Rt = navigator.userAgent || navigator.vendor || window.opera, zt = {
877
- has: {
878
- touch: !1,
879
- webStorage: !1
880
- },
881
- within: { iframe: !1 }
882
- }, Bt = {
883
- userAgent: Rt,
884
- is: Lt(Rt),
885
- has: { touch: It },
886
- within: { iframe: window.self !== window.top }
887
- }, Vt = { install(e) {
888
- let { $q: t } = e;
889
- J.value ? (e.onSSRHydrated.push(() => {
890
- Object.assign(t.platform, Bt), J.value = !1;
891
- }), t.platform = _(this)) : t.platform = this;
892
- } };
893
- {
894
- let e;
895
- L(Bt.has, "webStorage", () => {
896
- if (e !== void 0) return e;
897
- try {
898
- if (window.localStorage) return e = !0, !0;
899
- } catch {}
900
- return e = !1, !1;
901
- }), Object.assign(Vt, Bt), J.value && (Object.assign(Vt, st, zt), st = null);
902
- }
903
- //#endregion
904
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/private.history/History.js
905
- var Ht = () => !0;
906
- function Ut(e) {
907
- return typeof e == "string" && e !== "" && e !== "/" && e !== "#/";
908
- }
909
- function Wt(e) {
910
- return e.startsWith("#") && (e = e.slice(1)), e.startsWith("/") || (e = "/" + e), e.endsWith("/") && (e = e.slice(0, -1)), "#" + e;
911
- }
912
- function Gt(e) {
913
- if (e.backButtonExit === !1) return () => !1;
914
- if (e.backButtonExit === "*") return Ht;
915
- let t = ["#/"];
916
- return Array.isArray(e.backButtonExit) && t.push(...e.backButtonExit.filter(Ut).map(Wt)), () => t.includes(window.location.hash);
917
- }
918
- var Kt = {
919
- __history: [],
920
- add: xe,
921
- remove: xe,
922
- install({ $q: e }) {
923
- if (this.__installed) return;
924
- let { cordova: t, capacitor: n } = Bt.is;
925
- if (!t && !n) return;
926
- let r = e.config[t ? "cordova" : "capacitor"];
927
- if (r?.backButton === !1 || n && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)) return;
928
- this.add = (e) => {
929
- e.condition === void 0 && (e.condition = Ht), this.__history.push(e);
930
- }, this.remove = (e) => {
931
- let t = this.__history.indexOf(e);
932
- t !== -1 && this.__history.splice(t, 1);
933
- };
934
- let i = Gt({
935
- backButtonExit: !0,
936
- ...r
937
- }), a = () => {
938
- if (this.__history.length !== 0) {
939
- let e = this.__history.at(-1);
940
- e.condition() && (this.__history.pop(), e.handler());
941
- } else i() ? navigator.app.exitApp() : window.history.back();
942
- };
943
- t ? document.addEventListener("deviceready", () => {
944
- document.addEventListener("backbutton", a, !1);
945
- }) : window.Capacitor.Plugins.App.addListener("backButton", a);
946
- }
947
- }, qt = {}, Jt = [], Yt = [], Xt = 1, Zt = document.body;
948
- function Qt(e, t) {
949
- let n = document.createElement("div");
950
- if (n.id = t === void 0 ? e : `q-portal--${t}--${Xt++}`, qt.globalNodes !== void 0) {
951
- let e = qt.globalNodes.class;
952
- e !== void 0 && (n.className = e);
953
- }
954
- return Zt.append(n), Jt.push(n), Yt.push(t), n;
955
- }
956
- function $t(e) {
957
- let t = Jt.indexOf(e);
958
- t !== -1 && (Jt.splice(t, 1), Yt.splice(t, 1)), e.remove();
959
- }
960
- //#endregion
961
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.symbols/symbols.js
962
- var en = "_q_fo_";
963
- //#endregion
964
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/debounce/debounce.js
965
- function tn(e, t = 250, n) {
966
- let r = null;
967
- function i(...i) {
968
- r === null ? n && e.apply(this, i) : clearTimeout(r), r = setTimeout(() => {
969
- r = null, n || e.apply(this, i);
970
- }, t);
971
- }
972
- return i.cancel = () => {
973
- r !== null && (clearTimeout(r), r = null);
974
- }, i;
975
- }
976
- //#endregion
977
- //#region lib/composables/useValidator.js
978
- function nn() {
979
- let e = t().validations;
980
- function n(t) {
981
- let n = e;
982
- if (!n || !t) return;
983
- let r = t.split("."), a = r[0], o = r[1], s = a.charAt(0).toUpperCase() + a.slice(1);
984
- if (!n[s]) return;
985
- let c = n[s].validations;
986
- if (c[o]) return c[o].map((e) => i(e)[e.validation]);
987
- }
988
- let { t: r } = x({ useScope: "global" }), i = function(e = {}) {
989
- return {
990
- format: (t) => {
991
- let { allowNull: n, with: i, allowBlank: a } = e, o = r(e.message) || e.message;
992
- if (!a && t === "" || !n && t === null || !new RegExp(i).test(t)) return o;
993
- },
994
- presence: (t) => {
995
- let n = r("globals.valueCantBeEmpty");
996
- return e.message && (n = r(e.message) || e.message), !S.isEmpty(t ? String(t) : "") || n;
997
- },
998
- required: (e, t) => e ? t === 0 || !!t || r("globals.fieldRequired") : null,
999
- length: (t) => {
1000
- let n = {
1001
- min: e.min || e.is,
1002
- max: e.max || e.is
1003
- };
1004
- t = String(t), t ||= "";
1005
- let r = `Value should have at most ${n.max} characters`;
1006
- return e.is && (r = `Value should be ${e.is} characters long`), e.min && (r = `Value should have at least ${e.min} characters`), e.min && e.max && (r = `Value should have a length between ${e.min} and ${e.max}`), S.isLength(t, n) || r;
1007
- },
1008
- numericality: (t) => e.int ? S.isInt(t) || "Value should be integer" : S.isNumeric(t) || "Value should be a number",
1009
- min: (e, t) => {
1010
- if (t >= 0 && Math.floor(e) < t) return r("inputMin", { value: t });
1011
- },
1012
- custom: (t) => Function(`return (${e.bindedFunction})`)()(t) || "Invalid value"
1013
- };
1014
- };
1015
- return {
1016
- validate: n,
1017
- validations: i,
1018
- models: e
1019
- };
1020
- }
1021
- //#endregion
1022
- //#region lib/composables/useRequired.js
1023
- function rn(e) {
1024
- let { validations: t } = nn(), n = typeof e.required == "boolean" ? e.required : Object.keys(e).includes("required");
1025
- return {
1026
- isRequired: n,
1027
- requiredFieldRule: (e) => t().required(n, e)
1028
- };
1029
- }
1030
- //#endregion
1031
- //#region node_modules/.pnpm/nostics@1.2.0/node_modules/nostics/dist/index.mjs
1032
- function an(e) {
1033
- let t = `[${e.name}] ${e.message}`, n = [];
1034
- return e.fix && n.push(`fix: ${e.fix}`), e.sources?.length && n.push(`sources: ${e.sources.join(", ")}`), e.docs && n.push(`see: ${e.docs}`), n.length === 0 ? t : [t, ...n.map((e, t) => `${t < n.length - 1 ? "├▶" : "╰▶"} ${e}`)].join("\n");
1035
- }
1036
- function on(e, ...t) {
1037
- return typeof e == "function" ? e(...t) : e;
1038
- }
1039
- /* @__NO_SIDE_EFFECTS__ */
1040
- function sn({ method: e = "warn", formatter: t = an } = {}) {
1041
- return (n, { method: r = e } = {}) => {
1042
- console[r](t(n));
1043
- };
1044
- }
1045
- var cn = Error.captureStackTrace, ln = class e extends Error {
1046
- name;
1047
- code;
1048
- docs;
1049
- fix;
1050
- sources;
1051
- get why() {
1052
- return this.message;
1053
- }
1054
- constructor(t, n = e) {
1055
- super(t.why, { cause: t.cause }), this.code = this.name = t.code, this.fix = t.fix, this.docs = t.docs, this.sources = t.sources, cn?.(this, n);
1056
- }
1057
- toJSON() {
1058
- return {
1059
- name: this.name,
1060
- why: this.why,
1061
- fix: this.fix,
1062
- docs: this.docs,
1063
- sources: this.sources,
1064
- cause: this.cause,
1065
- stack: this.stack
1066
- };
1067
- }
1068
- };
1069
- function un(e, t) {
1070
- return typeof e == "string" ? `${e}/${t.toLowerCase()}` : e?.(t);
1071
- }
1072
- /* @__NO_SIDE_EFFECTS__ */
1073
- function dn(e) {
1074
- let t = e.reporters ?? [], n = {}, { docsBase: r } = e;
1075
- for (let i of Object.keys(e.codes)) {
1076
- let a = e.codes[i], o = a.docs === !1 ? void 0 : a.docs || un(r, i), s = (e = {}, n = {}) => {
1077
- let r = new ln({
1078
- code: i,
1079
- why: on(a.why, e),
1080
- fix: on(a.fix, e),
1081
- docs: o,
1082
- cause: e.cause,
1083
- sources: e.sources
1084
- }, s);
1085
- for (let e of t) e(r, n);
1086
- return r;
1087
- };
1088
- n[i] = s;
1089
- }
1090
- return n;
1091
- }
1092
- Array.isArray, Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure");
1093
- var fn = [
1094
- "params",
1095
- "query",
1096
- "hash"
1097
- ];
1098
- function pn(e) {
1099
- if (!e || typeof e == "string") return e;
1100
- if (e.path != null) return e.path;
1101
- let t = {};
1102
- for (let n of fn) n in e && (t[n] = e[n]);
1103
- return JSON.stringify(t, null, 2);
1104
- }
1105
- var mn = /*#__PURE__*/ dn({
1106
- reporters: [/*#__PURE__*/ sn()],
1107
- codes: {
1108
- VUE_ROUTER_R0001: {
1109
- why: (e) => `Parent route "${e.name}" not found when adding child route`,
1110
- fix: "Add the parent route before its children, or check the parent name for typos.",
1111
- docs: "https://router.vuejs.org/guide/advanced/dynamic-routing.html#Adding-nested-routes"
1112
- },
1113
- VUE_ROUTER_R0002: {
1114
- why: (e) => `Cannot remove non-existent route "${e.name}"`,
1115
- fix: "Check the route name; it may already have been removed or was never added.",
1116
- docs: "https://router.vuejs.org/guide/advanced/dynamic-routing.html#Removing-routes"
1117
- },
1118
- VUE_ROUTER_R0003: {
1119
- why: (e) => `Location "${pn(e.location)}" resolved to "${e.href}". A resolved location cannot start with multiple slashes.`,
1120
- fix: "Remove the leading slashes from the location or fix the route configuration."
1121
- },
1122
- VUE_ROUTER_R0004: {
1123
- why: (e) => `No match found for location with path "${pn(e.path)}"`,
1124
- fix: "Add a route matching this path or check for typos in the location.",
1125
- docs: "https://router.vuejs.org/guide/essentials/dynamic-matching.html#Catch-all-404-Not-found-Route"
1126
- },
1127
- VUE_ROUTER_R0005: {
1128
- why: (e) => `router.resolve() was passed an invalid location. This will fail in production.\nLocation: ${pn(e.rawLocation)}`,
1129
- fix: "Pass a valid route location: a string path or an object with `path` or `name`."
1130
- },
1131
- VUE_ROUTER_R0006: {
1132
- why: (e) => `Path "${e.path}" was passed with params but they will be ignored because a "path" was passed.`,
1133
- fix: "Use a named route `{ name, params }` instead of `{ path, params }`.",
1134
- docs: "https://router.vuejs.org/guide/essentials/navigation.html#Navigate-to-a-different-location"
1135
- },
1136
- VUE_ROUTER_R0007: {
1137
- why: (e) => `A \`hash\` should always start with the character "#" but received "${e.hash}".`,
1138
- fix: (e) => `Prepend "#" to the hash in your route location: use "#${e.hash}".`
1139
- },
1140
- VUE_ROUTER_R0008: {
1141
- why: (e) => `Invalid redirect found:\n${e.target}\n when navigating to "${e.to}".\nThis will break in production.`,
1142
- fix: "A redirect must resolve to a location with a `name` or `path`; return one of those (or a string path) from `redirect`.",
1143
- docs: "https://router.vuejs.org/guide/essentials/redirect-and-alias.html#Redirect"
1144
- },
1145
- VUE_ROUTER_R0009: {
1146
- why: (e) => `Detected a possibly infinite redirection in a navigation guard when going from "${e.from}" to "${e.to}". Aborting to avoid a Stack Overflow. This might break in production if not fixed.`,
1147
- fix: "A guard is returning a new location on every call; make that return conditional so it only redirects when actually needed.",
1148
- docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Global-Before-Guards"
1149
- },
1150
- VUE_ROUTER_R0010: {
1151
- why: "Uncaught error during route navigation",
1152
- fix: "Register an error handler with `router.onError()` to handle navigation errors."
1153
- },
1154
- VUE_ROUTER_R0011: {
1155
- why: "Unexpected error when starting the router:",
1156
- fix: "Inspect the actual cause; a navigation guard or async component likely threw during the initial navigation."
1157
- },
1158
- VUE_ROUTER_R0020: {
1159
- why: (e) => `No active route record was found when calling \`${e.fn}()\`. Maybe you called it inside of App.vue?`,
1160
- fix: "Call it from a component rendered inside <router-view> (a page component or one of its children), not from App.vue.",
1161
- docs: "https://router.vuejs.org/guide/advanced/composition-api.html#Navigation-Guards"
1162
- },
1163
- VUE_ROUTER_R0021: {
1164
- why: "No active route record was found when reactivating component with navigation guard. This is likely a bug in vue-router.",
1165
- fix: "Report with a minimal reproduction at https://github.com/vuejs/router/issues/new/choose."
1166
- },
1167
- VUE_ROUTER_R0022: {
1168
- why: (e) => `${e.fn}() was called outside of component setup but it must be called at the top of a setup function`,
1169
- fix: "Call it synchronously at the top of `setup()`, before any `await`.",
1170
- docs: "https://router.vuejs.org/guide/advanced/composition-api.html#Navigation-Guards"
1171
- },
1172
- VUE_ROUTER_R0023: {
1173
- why: (e) => `The "next" callback was never called inside of ${e.name ? `"${e.name}"` : ""}:\n${e.guard}`,
1174
- fix: "Make sure `next()` runs on every branch, including early returns and async paths, or drop the `next` parameter and return the value instead.",
1175
- docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1176
- },
1177
- VUE_ROUTER_R0024: {
1178
- why: (e) => `The "next" callback was called more than once in one navigation guard when going from "${e.from}" to "${e.to}". This will fail in production.`,
1179
- fix: "Call `next()` exactly once per guard: remove the extra call, or migrate to returning the value you passed to `next()`.",
1180
- docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1181
- },
1182
- VUE_ROUTER_R0025: {
1183
- why: "The `next()` callback in navigation guards is deprecated.",
1184
- fix: "Return the value instead: `next()` becomes `return`, `next(false)` becomes `return false`, `next(\"/path\")` becomes `return \"/path\"`.",
1185
- docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1186
- },
1187
- VUE_ROUTER_R0026: {
1188
- why: (e) => `Record with path "${e.path}" is either missing a "component(s)" or "children" property.`,
1189
- fix: "Add a `component`, `components`, or `children` to the route record.",
1190
- docs: "https://router.vuejs.org/guide/essentials/nested-routes.html"
1191
- },
1192
- VUE_ROUTER_R0027: {
1193
- why: (e) => `Component "${e.name}" in record with path "${e.path}" is not a valid component. Received "${e.received}".`,
1194
- fix: "Pass a component or a function returning a Promise that resolves to one."
1195
- },
1196
- VUE_ROUTER_R0028: {
1197
- why: (e) => `Component "${e.name}" in record with path "${e.path}" is a Promise instead of a function that returns a Promise. This will break in production if not fixed.`,
1198
- fix: "Defer the import in an arrow function so it loads lazily: write \"() => import('./MyPage.vue')\", not \"import('./MyPage.vue')\".",
1199
- docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html"
1200
- },
1201
- VUE_ROUTER_R0029: {
1202
- why: (e) => `Component "${e.name}" in record with path "${e.path}" is defined using "defineAsyncComponent()".`,
1203
- fix: "Drop the wrapper and pass \"() => import('./MyPage.vue')\" directly; the router handles lazy components itself.",
1204
- docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html#Relationship-to-async-components"
1205
- },
1206
- VUE_ROUTER_R0030: {
1207
- why: (e) => `Component "${e.name}" in record with path "${e.path}" is a function that does not return a Promise. This will break in production if not fixed.`,
1208
- fix: "Return a dynamic import (`() => import(\"./MyPage.vue\")`) from the function, or add a `displayName` if it is a functional component.",
1209
- docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html"
1210
- },
1211
- VUE_ROUTER_R0040: {
1212
- why: (e) => `Because "${e.el}" starts with "#", scrollBehavior resolves it as an element id via document.getElementById("${e.el.slice(1)}"), not as a CSS selector. No element has that id, but "${e.el}" does match an element with document.querySelector().`,
1213
- fix: (e) => `Resolve the element yourself and return the node: el: document.querySelector('${e.el}').`,
1214
- docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1215
- },
1216
- VUE_ROUTER_R0041: {
1217
- why: (e) => `The selector "${e.el}" is invalid. See https://mathiasbynens.be/notes/css-escapes or CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape) for the escaping rules.`,
1218
- fix: "Build an id selector as `#${CSS.escape(id)}` so special characters in the id are escaped.",
1219
- docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1220
- },
1221
- VUE_ROUTER_R0042: {
1222
- why: (e) => `Couldn't find element using selector "${e.el}" returned by scrollBehavior.`,
1223
- fix: "Return a selector that matches an existing element, or guard against missing elements.",
1224
- docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1225
- },
1226
- VUE_ROUTER_R0050: {
1227
- why: (e) => {
1228
- let t;
1229
- try {
1230
- t = e.to === void 0 ? "undefined" : JSON.stringify(e.to);
1231
- } catch {
1232
- t = String(e.to);
1233
- }
1234
- return `Invalid value for prop "to" in useLink()\n- to: ${t}`;
1235
- },
1236
- fix: "Pass a valid route location (a string path or an object) to the \"to\" prop."
1237
- },
1238
- VUE_ROUTER_R0060: {
1239
- why: (e) => `<router-view> can no longer be used directly inside <${e.comp}>.`,
1240
- fix: (e) => `Wrap the slot's resolved component with <${e.comp}> instead of nesting <router-view> in it:\n\n<router-view v-slot="{ Component }">\n <${e.comp}>\n <component :is="Component" />\n </${e.comp}>\n</router-view>`,
1241
- docs: "https://router.vuejs.org/guide/advanced/router-view-slot.html#KeepAlive-Transition"
1242
- },
1243
- VUE_ROUTER_R0070: {
1244
- why: (e) => `Cannot resolve a relative location without an absolute path. Trying to resolve "${e.to}" from "${e.from}".`,
1245
- fix: (e) => `Resolve from an absolute \`from\` path that starts with "/", e.g. "/${e.from}".`
1246
- },
1247
- VUE_ROUTER_R0080: {
1248
- why: (e) => `Error decoding "${e.text}". Using original value`,
1249
- fix: "Ensure the value is correctly percent-encoded."
1250
- },
1251
- VUE_ROUTER_R0090: {
1252
- why: (e) => `Found duplicated params with name "${e.name}" for path "${e.path}". Only the last one will be available on "$route.params".`,
1253
- fix: "Give each param a unique name within the path.",
1254
- docs: "https://router.vuejs.org/guide/essentials/route-matching-syntax.html"
1255
- },
1256
- VUE_ROUTER_R0100: {
1257
- why: (e) => `Discarded invalid param(s) "${e.params}" when navigating.` + e.inherited + " See https://github.com/vuejs/router/commit/e887570 for more details.",
1258
- fix: "Only pass params that exist on the target route."
1259
- },
1260
- VUE_ROUTER_R0101: {
1261
- why: (e) => `The Matcher cannot resolve relative paths but received "${e.path}". Unless you directly called \`matcher.resolve("${e.path}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`,
1262
- fix: "Pass an absolute path (starting with \"/\") to the matcher."
1263
- },
1264
- VUE_ROUTER_R0102: {
1265
- why: (e) => `Alias "${e.alias}" and the original record: "${e.original}" must have the exact same param named "${e.name}"`,
1266
- fix: "Use the same param names in the alias as in the original route.",
1267
- docs: "https://router.vuejs.org/guide/essentials/redirect-and-alias.html#Alias"
1268
- },
1269
- VUE_ROUTER_R0103: {
1270
- why: (e) => `The route named "${e.name}" has a child without a name, an empty path, and no children. Using that name won't render the empty path child, so this is probably a mistake.`,
1271
- fix: "Move the `name` onto the empty-path child; or, if intentional, give the child its own name to silence this.",
1272
- docs: "https://router.vuejs.org/guide/essentials/nested-routes.html#Nested-Named-Routes"
1273
- },
1274
- VUE_ROUTER_R0104: {
1275
- why: (e) => `Absolute path "${e.path}" must have the exact same param named "${e.name}" as its parent "${e.parent}".`,
1276
- fix: "Include the parent route params in the absolute child path.",
1277
- docs: "https://router.vuejs.org/guide/essentials/nested-routes.html"
1278
- },
1279
- VUE_ROUTER_R0105: {
1280
- why: (e) => `Finding ancestor route "${e.ancestor}" failed for "${e.record}"`,
1281
- fix: "Report a reproduction at https://github.com/vuejs/router/issues/new/choose."
1282
- },
1283
- VUE_ROUTER_R0110: {
1284
- why: "A hash base must end with a \"#\"",
1285
- fix: (e) => `Append "#" to the "base" argument passed to "createWebHashHistory()": "${e.base}" should be "${e.suggestion}".`
1286
- },
1287
- VUE_ROUTER_R0120: {
1288
- why: "Error with push/replace State",
1289
- fix: "The browser rejected the history API call; check for cross-origin or rate-limit issues."
1290
- },
1291
- VUE_ROUTER_R0121: {
1292
- why: "history.state seems to have been manually replaced without preserving the necessary values.\nYou can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state",
1293
- fix: "Merge the router's state into your own when calling it manually: `history.replaceState({ ...history.state, ...yourState }, '', url)`.",
1294
- docs: "https://router.vuejs.org/guide/migration.html#Usage-of-history-state"
1295
- },
1296
- VUE_ROUTER_R1001: {
1297
- why: (e) => `Data loader "${String(e.key)}" has a different parent than the current context. This shouldn't be happening.`,
1298
- fix: "Report a bug with a minimal reproduction at https://github.com/vuejs/router/."
1299
- },
1300
- VUE_ROUTER_R1002: {
1301
- why: "Returning a NavigationResult is deprecated.",
1302
- fix: "Replace `return new NavigationResult(to)` with `reroute(to)`, which throws internally to reroute.",
1303
- docs: "https://router.vuejs.org/data-loaders/navigation-aware.html#Controlling-the-navigation-with-reroute-"
1304
- },
1305
- VUE_ROUTER_R1003: {
1306
- why: (e) => `Loader "${e.key}"'s "commit()" was called but there is no staged data.`,
1307
- fix: "Ensure the loader resolved before calling `commit()`.",
1308
- docs: "https://router.vuejs.org/data-loaders/defining-loaders.html#Delaying-data-updates-with-commit"
1309
- },
1310
- VUE_ROUTER_R1004: {
1311
- why: (e) => "A loader returned a NavigationResult but is not registered on the route." + e.key,
1312
- fix: "Export the loader from the page component so it gets registered, e.g. `export const useUserData = defineLoader(...)`.",
1313
- docs: "https://router.vuejs.org/data-loaders/organization.html"
1314
- },
1315
- VUE_ROUTER_R1005: {
1316
- why: (e) => `Data loader "${e.key}" has itself as parent. This shouldn't be happening.`,
1317
- fix: "Report a bug with a minimal reproduction at https://github.com/vuejs/router/."
1318
- },
1319
- VUE_ROUTER_R1006: {
1320
- why: (e) => `A query was defined with the same key as the loader "[${e.key}]".\nSee https://pinia-colada.esm.dev/#TODO`,
1321
- fix: "If the key is meant to match, use the data loader directly; otherwise rename the `useQuery()` key so it no longer collides.",
1322
- docs: "https://router.vuejs.org/data-loaders/colada.html"
1323
- },
1324
- VUE_ROUTER_R1007: {
1325
- why: "Data Loader was setup twice.",
1326
- fix: "Register `DataLoaderPlugin` a single time via `app.use()`.",
1327
- docs: "https://router.vuejs.org/data-loaders.html#Installation"
1328
- },
1329
- VUE_ROUTER_R1008: {
1330
- why: "Data Loader is experimental and subject to breaking changes in the future.",
1331
- docs: "https://router.vuejs.org/data-loaders.html"
1332
- },
1333
- VUE_ROUTER_R1009: {
1334
- why: "Returning a NavigationResult from a loader is deprecated.",
1335
- fix: "Call `reroute(to)` inside the loader instead of returning `new NavigationResult(to)`; it throws internally to reroute.",
1336
- docs: "https://router.vuejs.org/data-loaders/navigation-aware.html#Controlling-the-navigation-with-reroute-"
1337
- }
1338
- }
1339
- }), hn = Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched");
1340
- Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth");
1341
- var gn = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), _n = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
1342
- Symbol(process.env.NODE_ENV === "production" ? "" : "router view location");
1343
- function vn() {
1344
- return p(gn);
1345
- }
1346
- function yn(e) {
1347
- return p(_n);
1348
- }
1349
- //#endregion
1350
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-quasar/use-quasar.js
1351
- function bn() {
1352
- return p("_q_");
1353
- }
1354
- //#endregion
1355
- //#region lib/composables/tMobile.js
1356
- function xn(...e) {
1357
- let t = bn(), { t: n } = x();
1358
- if (!t.screen.xs) return n(...e);
1359
- }
1360
- //#endregion
1361
- //#region lib/composables/useArrayData.js
1362
- function Sn(t, a) {
1363
- if (t ??= yn().meta.moduleName, !t) throw Error("ArrayData: A key is required to use this composable");
1364
- let o = e();
1365
- o.get(t) || o.set(t);
1366
- let s = o.get(t);
1367
- s.dataKey = t;
1368
- let l = yn(), u = vn(), d = null;
1369
- g(() => {
1370
- f(a ?? {}), y(["skip"]);
1371
- let e = l.query, t = s.searchUrl;
1372
- if (e[t]) {
1373
- let n = JSON.parse(e[t]), r = n?.filter && typeof n?.filter == "object" ? n?.filter : JSON.parse(n?.filter ?? "{}");
1374
- delete n.filter, s.userParams = {
1375
- ...k(R(n)),
1376
- ...z()
1377
- }, s.filter = {
1378
- ...r,
1379
- ...s.userFilter
1380
- }, r?.order && (s.order = r.order);
1381
- }
1382
- e.stackedParams && (s.stackedParams = JSON.parse(e.stackedParams)), P();
1383
- }), a && f(a);
1384
- function f(e) {
1385
- if (!e) return;
1386
- let t = [
1387
- "url",
1388
- "filter",
1389
- "where",
1390
- "order",
1391
- "limit",
1392
- "skip",
1393
- "userParams",
1394
- "userFilter",
1395
- "exprBuilder",
1396
- "dynamicExprBuilder",
1397
- "searchUrl",
1398
- "navigate",
1399
- "mapKey",
1400
- "oneRecord",
1401
- "hasChanges",
1402
- "isLocal",
1403
- "customFilterFn",
1404
- "remoteParamsArray",
1405
- "keyData",
1406
- "isStackableParams",
1407
- "nonStackableParams",
1408
- "stackedParams",
1409
- "dataAnalyticsFilter",
1410
- "ignoreUrlParams"
1411
- ];
1412
- if (typeof e == "object") {
1413
- for (let n in e) if (!(e[n] == null || e[n] === "" || !t.includes(n)) && Object.hasOwn(s, n)) {
1414
- let t = e[n];
1415
- s[n] = e.keepOpts?.includes(n) ? Object.assign(t, s[n]) : t, n === "userParams" && (s.defaultParams = s[n]);
1416
- }
1417
- }
1418
- }
1419
- async function p({ append: e = !1, updateRouter: t = !0 }) {
1420
- x(), d = new AbortController();
1421
- let { params: i, limit: a } = P(), o;
1422
- (s?.exprBuilder || Object.keys(s.dynamicWhereBuilder).length) && (o = n(i, (e, t) => {
1423
- if (e == "filter") return;
1424
- let n = s.exprBuilder?.(e, t);
1425
- return s.dynamicWhereBuilder[e] && (n = { [e]: t }), n && delete i[e], n;
1426
- })), (i.filter.where || o) && (i.filter.where = {
1427
- ...i.filter.where,
1428
- ...o
1429
- }), i?.filter?.order?.length || delete i?.filter?.order, Object.keys(i?.filter?.where ?? {})?.length || delete i?.filter?.where, s.isLoading = !0;
1430
- let c;
1431
- try {
1432
- c = await qr(i, d, s);
1433
- } finally {
1434
- s.isLoading = !1, d = null;
1435
- }
1436
- if (s.hasMoreData = a && c.data.length >= a, !(!e && !r() && t && M()?.redirect)) return F(c.data, {
1437
- map: !!s.mapKey,
1438
- append: e,
1439
- oneRecord: s.oneRecord
1440
- }), c;
1441
- }
1442
- function h() {
1443
- o.get(t) && o.clear(t);
1444
- }
1445
- function _(e) {
1446
- delete s[e];
1447
- }
1448
- function y(e = []) {
1449
- o.get(t) && o.reset(t, e);
1450
- }
1451
- function b() {
1452
- o.get(t) && o.resetPagination(t);
1453
- }
1454
- function x() {
1455
- d &&= (d.abort(), null);
1456
- }
1457
- async function S({ filter: e, params: t }, n = {}) {
1458
- return e && (s.filter = e), t && (s.userParams = { ...t }), await p(n);
1459
- }
1460
- async function C({ filter: e, params: t }) {
1461
- e && (s.filter = e);
1462
- let n = {
1463
- ...s.userParams,
1464
- ...t
1465
- };
1466
- return n = k(n), s.userParams = n, b(), {
1467
- response: await p({}),
1468
- filter: e,
1469
- params: t
1470
- };
1471
- }
1472
- async function w(e) {
1473
- let t = { ...s.filter };
1474
- t?.where || (t.where = {}), e = {
1475
- ...t.where,
1476
- ...e
1477
- }, await C({ filter: { where: e } });
1478
- }
1479
- async function T(e, t = "ASC") {
1480
- let n = `${e} ${t}`, r = wn(s.order), i = Cn(r, e);
1481
- return i > -1 ? r[i] = n : (i = r.length, r.push(n)), s.order = r, b(), await p({}), i++, {
1482
- index: i,
1483
- order: r
1484
- };
1485
- }
1486
- async function E(e, t = "ASC") {
1487
- let n = `${e} ${t}`;
1488
- return s.order = [n], b(), await p({}), {
1489
- index: 1,
1490
- order: [n]
1491
- };
1492
- }
1493
- async function D(e, t = !0) {
1494
- s.order = e, b(), t && await p({});
1495
- }
1496
- async function O(e) {
1497
- let t = wn(s.order), n = Cn(t, e);
1498
- n > -1 && t.splice(n, 1), s.order = t, p({});
1499
- }
1500
- function k(e) {
1501
- for (let t in e) {
1502
- if (e[t] && typeof e[t] == "object") {
1503
- let n = Object.keys(e[t])[0];
1504
- if (Object.values(e[t])[0] === null && (n = n == "eq" ? "null" : "notNull"), i[n]) {
1505
- s.dynamicExprBuilder[t] = n;
1506
- let r = Object.values(e[t])[0];
1507
- s.userParams[t] = r, e[t] = r;
1508
- }
1509
- }
1510
- if (L(e[t], t) && (delete s.userParams[t], delete e[t], s.filter?.where)) {
1511
- let e = t;
1512
- if (s?.exprBuilder) {
1513
- let e = s.exprBuilder(t);
1514
- if (!e || !Object.values(e).every((e) => L(e, t))) continue;
1515
- }
1516
- delete s.filter.where[e], delete s.dynamicExprBuilder[e], Object.keys(s.filter.where).length || delete s.filter.where;
1517
- }
1518
- }
1519
- return e;
1520
- }
1521
- async function A() {
1522
- s.hasMoreData && (s.skip = (s?.filter?.limit ?? s.limit) * s.page, s.page += 1, await p({ append: !0 }));
1523
- }
1524
- async function j() {
1525
- Object.values(s.userParams).length && await p({});
1526
- }
1527
- function M() {
1528
- if (!l?.path) return;
1529
- let e = {
1530
- path: l.path,
1531
- query: { ...l.query ?? {} }
1532
- };
1533
- s?.searchUrl && (e.query[s.searchUrl] = JSON.stringify(R(s.currentFilter)), s.stackedParams?.length ? e.query.stackedParams = JSON.stringify(s.stackedParams) : delete e.query.stackedParams), u.replace(e);
1534
- }
1535
- function N() {
1536
- Object.keys(s?.userParams ?? {}).length || (s.userParams = s.defaultParams ?? {});
1537
- let e = {
1538
- limit: s.limit,
1539
- ...s.userFilter
1540
- }, t;
1541
- (e?.where || s.filter?.where) && (t = Object.assign(e?.where ?? {}, s.filter?.where ?? {})), Object.assign(e, s.filter), e.where = t;
1542
- let n = { filter: e };
1543
- Object.assign(n, s.userParams), n.filter && (n.filter.skip = s.skip), s.order ? n.filter.order = wn(s.order) : delete n.filter.order;
1544
- for (let [e, t] of Object.entries(n)) {
1545
- if (L(t, e) || t && typeof t == "object" && !Array.isArray(t)) continue;
1546
- let r = I(e)?.expr?.(t);
1547
- r && (n[e] = r);
1548
- }
1549
- return {
1550
- filter: e,
1551
- params: n,
1552
- limit: e.limit
1553
- };
1554
- }
1555
- function P() {
1556
- let { filter: e, params: t, limit: n } = N(), r = JSON.parse(JSON.stringify(t));
1557
- return delete r.filter.include, delete r.filter.fields, delete r.filter.limit, delete r.filter.skip, r.filter = JSON.stringify(r.filter), s.currentFilter = m(r), {
1558
- filter: e,
1559
- params: t,
1560
- limit: n
1561
- };
1562
- }
1563
- function F(e, { map: t = !0, append: n = !0, oneRecord: r = !1 }) {
1564
- if (s.append = n, r) {
1565
- s.data = Array.isArray(e) ? e[0] : e;
1566
- return;
1567
- }
1568
- if (n || (s.data = [], s.map = /* @__PURE__ */ new Map()), !Array.isArray(e)) s.data = e;
1569
- else if (!t && n) for (let t of e) s.data.push(t);
1570
- else for (let t of e) {
1571
- let e = t[s.mapKey];
1572
- t.key = e;
1573
- let n = s.map.get(e);
1574
- if (e && n) {
1575
- let { position: r } = n;
1576
- t.position = r, s.map.set(e, t), s.data[r] = t;
1577
- } else t.position = s.map.size, s.map.set(e, t), s.data.push(t);
1578
- }
1579
- }
1580
- function I(e) {
1581
- let t = s.dynamicExprBuilder[e];
1582
- if (t) return i[t];
1583
- }
1584
- function L(e, t) {
1585
- return e === "" || e === void 0 || e === null && !I(t)?.isNullable;
1586
- }
1587
- function R(e) {
1588
- let t = { ...e };
1589
- if (s.ignoreUrlParams.length && Object.keys(t).length) for (let e of s.ignoreUrlParams) delete t[e];
1590
- return t;
1591
- }
1592
- function z() {
1593
- let e = {};
1594
- if (s.ignoreUrlParams.length && Object.keys(s.userParams).length) for (let t of s.ignoreUrlParams) e[t] = s.userParams[t];
1595
- return e;
1596
- }
1597
- return {
1598
- fetch: p,
1599
- applyFilter: S,
1600
- addFilter: C,
1601
- getCurrentFilter: N,
1602
- setCurrentFilter: P,
1603
- addFilterWhere: w,
1604
- addOrder: T,
1605
- applyOrder: E,
1606
- applyOrders: D,
1607
- deleteOrder: O,
1608
- refresh: j,
1609
- destroy: h,
1610
- loadMore: A,
1611
- store: s,
1612
- totalRows: c(() => s.data && s.data.length || 0),
1613
- updateStateParams: M,
1614
- isLoading: v(s.isLoading || !1),
1615
- deleteOption: _,
1616
- reset: y,
1617
- resetPagination: b,
1618
- setOptions: f,
1619
- sanitizerParams: k,
1620
- processData: F,
1621
- dataKey: t
1622
- };
1623
- }
1624
- function Cn(e, t) {
1625
- return e.findIndex((e) => e.split(" ")[0] === t);
1626
- }
1627
- function wn(e = []) {
1628
- if (!e) return [];
1629
- if (Array.isArray(e)) return e;
1630
- if (typeof e == "string") return e.split(",").map((e) => e.trim());
1631
- }
1632
- //#endregion
1633
- //#region lib/composables/useForm.js
1634
- function Tn(e) {
1635
- if (!e || e.hasAttribute("data-no-focus")) return;
1636
- let t = e.querySelectorAll("textarea:not([disabled]), [contenteditable]:not([disabled])"), [n] = e.querySelectorAll("input:not([disabled]):not([type=\"checkbox\"])"), r = t.length, i = r ? t[r - 1] : n;
1637
- i !== document.activeElement && i?.focus();
1638
- }
1639
- //#endregion
1640
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/screen/Screen.js
1641
- var En = [
1642
- "sm",
1643
- "md",
1644
- "lg",
1645
- "xl"
1646
- ], { passive: Dn } = G;
1647
- B({
1648
- width: 0,
1649
- height: 0,
1650
- name: "xs",
1651
- sizes: {
1652
- sm: 600,
1653
- md: 1024,
1654
- lg: 1440,
1655
- xl: 1920
1656
- },
1657
- lt: {
1658
- sm: !0,
1659
- md: !0,
1660
- lg: !0,
1661
- xl: !0
1662
- },
1663
- gt: {
1664
- xs: !1,
1665
- sm: !1,
1666
- md: !1,
1667
- lg: !1
1668
- },
1669
- xs: !0,
1670
- sm: !1,
1671
- md: !1,
1672
- lg: !1,
1673
- xl: !1
1674
- }, {
1675
- setSizes: xe,
1676
- setDebounce: xe,
1677
- install({ $q: e, onSSRHydrated: t }) {
1678
- if (e.screen = this, this.__installed) {
1679
- e.config.screen !== void 0 && (e.config.screen.bodyClasses ? this.__update(!0) : document.body.classList.remove(`screen--${this.name}`));
1680
- return;
1681
- }
1682
- let { visualViewport: n } = window, r = n || window, i = document.scrollingElement || document.documentElement, a = n === void 0 || Bt.is.mobile ? () => [Math.max(window.innerWidth, i.clientWidth), Math.max(window.innerHeight, i.clientHeight)] : () => [n.width * n.scale + window.innerWidth - i.clientWidth, n.height * n.scale + window.innerHeight - i.clientHeight], o = e.config.screen?.bodyClasses === !0;
1683
- this.__update = (e) => {
1684
- let [t, n] = a();
1685
- if (n !== this.height && (this.height = n), t !== this.width) this.width = t;
1686
- else if (e !== !0) return;
1687
- let r = this.sizes;
1688
- this.gt.xs = t >= r.sm, this.gt.sm = t >= r.md, this.gt.md = t >= r.lg, this.gt.lg = t >= r.xl, this.lt.sm = t < r.sm, this.lt.md = t < r.md, this.lt.lg = t < r.lg, this.lt.xl = t < r.xl, this.xs = this.lt.sm, this.sm = this.gt.xs && this.lt.md, this.md = this.gt.sm && this.lt.lg, this.lg = this.gt.md && this.lt.xl, this.xl = this.gt.lg, r = this.xs && "xs" || this.sm && "sm" || this.md && "md" || this.lg && "lg" || "xl", r !== this.name && (o && (document.body.classList.remove(`screen--${this.name}`), document.body.classList.add(`screen--${r}`)), this.name = r);
1689
- };
1690
- let s, c = {}, l = 16;
1691
- this.setSizes = (e) => {
1692
- En.forEach((t) => {
1693
- e[t] !== void 0 && (c[t] = e[t]);
1694
- });
1695
- }, this.setDebounce = (e) => {
1696
- l = e;
1697
- };
1698
- let u = () => {
1699
- let e = getComputedStyle(document.body);
1700
- e.getPropertyValue("--q-size-sm") && En.forEach((t) => {
1701
- this.sizes[t] = Number.parseInt(e.getPropertyValue(`--q-size-${t}`), 10);
1702
- }), this.setSizes = (e) => {
1703
- En.forEach((t) => {
1704
- e[t] && (this.sizes[t] = e[t]);
1705
- }), this.__update(!0);
1706
- }, this.setDebounce = (e) => {
1707
- s !== void 0 && r.removeEventListener("resize", s, Dn), s = e > 0 ? tn(this.__update, e) : this.__update, r.addEventListener("resize", s, Dn);
1708
- }, this.setDebounce(l), Object.keys(c).length === 0 ? this.__update() : (this.setSizes(c), c = void 0), o && this.name === "xs" && document.body.classList.add("screen--xs");
1709
- };
1710
- J.value ? t.push(u) : u();
1711
- }
1712
- });
1713
- //#endregion
1714
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/dark/Dark.js
1715
- var Y = B({
1716
- isActive: !1,
1717
- mode: !1
1718
- }, {
1719
- __media: void 0,
1720
- set(e) {
1721
- Y.mode = e, e === "auto" ? (Y.__media === void 0 && (Y.__media = window.matchMedia("(prefers-color-scheme: dark)"), Y.__updateMedia = () => {
1722
- Y.set("auto");
1723
- }, Y.__media.addListener(Y.__updateMedia)), e = Y.__media.matches) : Y.__media !== void 0 && (Y.__media.removeListener(Y.__updateMedia), Y.__media = void 0), Y.isActive = e === !0, document.body.classList.remove(`body--${e === !0 ? "light" : "dark"}`), document.body.classList.add(`body--${e === !0 ? "dark" : "light"}`);
1724
- },
1725
- toggle() {
1726
- Y.set(!Y.isActive);
1727
- },
1728
- install({ $q: e, ssrContext: t }) {
1729
- let n = e.config.dark;
1730
- e.dark = this, this.__installed || this.set(n !== void 0 && n);
1731
- }
1732
- }), On = {
1733
- isoName: "en-US",
1734
- nativeName: "English (US)",
1735
- label: {
1736
- clear: "Clear",
1737
- ok: "OK",
1738
- cancel: "Cancel",
1739
- close: "Close",
1740
- set: "Set",
1741
- select: "Select",
1742
- reset: "Reset",
1743
- remove: "Remove",
1744
- update: "Update",
1745
- create: "Create",
1746
- search: "Search",
1747
- filter: "Filter",
1748
- refresh: "Refresh",
1749
- expand: (e) => e ? `Expand "${e}"` : "Expand",
1750
- collapse: (e) => e ? `Collapse "${e}"` : "Collapse"
1751
- },
1752
- date: {
1753
- days: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
1754
- daysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
1755
- months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
1756
- monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
1757
- firstDayOfWeek: 0,
1758
- format24h: !1,
1759
- pluralDay: "days",
1760
- prevMonth: "Previous month",
1761
- nextMonth: "Next month",
1762
- prevYear: "Previous year",
1763
- nextYear: "Next year",
1764
- today: "Today",
1765
- prevRangeYears: (e) => `Previous ${e} years`,
1766
- nextRangeYears: (e) => `Next ${e} years`
1767
- },
1768
- table: {
1769
- noData: "No data available",
1770
- noResults: "No matching records found",
1771
- loading: "Loading...",
1772
- selectedRecords: (e) => e === 1 ? "1 record selected." : (e === 0 ? "No" : e) + " records selected.",
1773
- recordsPerPage: "Records per page:",
1774
- allRows: "All",
1775
- pagination: (e, t, n) => e + "–" + t + " of " + n,
1776
- columns: "Columns"
1777
- },
1778
- pagination: {
1779
- first: "First page",
1780
- prev: "Previous page",
1781
- next: "Next page",
1782
- last: "Last page"
1783
- },
1784
- editor: {
1785
- url: "URL",
1786
- bold: "Bold",
1787
- italic: "Italic",
1788
- strikethrough: "Strikethrough",
1789
- underline: "Underline",
1790
- unorderedList: "Unordered List",
1791
- orderedList: "Ordered List",
1792
- subscript: "Subscript",
1793
- superscript: "Superscript",
1794
- hyperlink: "Hyperlink",
1795
- toggleFullscreen: "Toggle Fullscreen",
1796
- quote: "Quote",
1797
- left: "Left align",
1798
- center: "Center align",
1799
- right: "Right align",
1800
- justify: "Justify align",
1801
- print: "Print",
1802
- outdent: "Decrease indentation",
1803
- indent: "Increase indentation",
1804
- removeFormat: "Remove formatting",
1805
- formatting: "Formatting",
1806
- fontSize: "Font Size",
1807
- align: "Align",
1808
- hr: "Insert Horizontal Rule",
1809
- undo: "Undo",
1810
- redo: "Redo",
1811
- heading1: "Heading 1",
1812
- heading2: "Heading 2",
1813
- heading3: "Heading 3",
1814
- heading4: "Heading 4",
1815
- heading5: "Heading 5",
1816
- heading6: "Heading 6",
1817
- paragraph: "Paragraph",
1818
- code: "Code",
1819
- size1: "Very small",
1820
- size2: "A bit small",
1821
- size3: "Normal",
1822
- size4: "Medium-large",
1823
- size5: "Big",
1824
- size6: "Very big",
1825
- size7: "Maximum",
1826
- defaultFont: "Default Font",
1827
- viewSource: "View Source"
1828
- },
1829
- tree: {
1830
- noNodes: "No nodes available",
1831
- noResults: "No matching nodes found"
1832
- }
1833
- };
1834
- //#endregion
1835
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/lang/Lang.js
1836
- function kn() {
1837
- let e = Array.isArray(navigator.languages) && navigator.languages.length !== 0 ? navigator.languages[0] : navigator.language;
1838
- if (typeof e == "string") return e.split(/[-_]/).map((e, t) => t === 0 ? e.toLowerCase() : t > 1 || e.length < 4 ? e.toUpperCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("-");
1839
- }
1840
- var An = B({ __qLang: {} }, {
1841
- getLocale: kn,
1842
- set(e = On, t) {
1843
- let n = {
1844
- ...e,
1845
- rtl: e.rtl === !0,
1846
- getLocale: kn
1847
- };
1848
- if (n.set = An.set, An.__langConfig === void 0 || !An.__langConfig.noHtmlAttrs) {
1849
- let e = document.documentElement;
1850
- e.setAttribute("dir", n.rtl ? "rtl" : "ltr"), e.setAttribute("lang", n.isoName);
1851
- }
1852
- Object.assign(An.__qLang, n);
1853
- },
1854
- install({ $q: e, lang: t, ssrContext: n }) {
1855
- e.lang = An.__qLang, An.__langConfig = e.config.lang, this.__installed ? t !== void 0 && this.set(t) : (this.props = new Proxy(this.__qLang, {
1856
- get: Reflect.get,
1857
- ownKeys(e) {
1858
- return Reflect.ownKeys(e).filter((e) => e !== "set" && e !== "getLocale");
1859
- }
1860
- }), this.set(t || On));
1861
- }
1862
- }), jn = {
1863
- name: "material-icons",
1864
- type: {
1865
- positive: "check_circle",
1866
- negative: "warning",
1867
- info: "info",
1868
- warning: "priority_high"
1869
- },
1870
- arrow: {
1871
- up: "arrow_upward",
1872
- right: "arrow_forward",
1873
- down: "arrow_downward",
1874
- left: "arrow_back",
1875
- dropdown: "arrow_drop_down"
1876
- },
1877
- chevron: {
1878
- left: "chevron_left",
1879
- right: "chevron_right"
1880
- },
1881
- colorPicker: {
1882
- spectrum: "gradient",
1883
- tune: "tune",
1884
- palette: "style"
1885
- },
1886
- pullToRefresh: { icon: "refresh" },
1887
- carousel: {
1888
- left: "chevron_left",
1889
- right: "chevron_right",
1890
- up: "keyboard_arrow_up",
1891
- down: "keyboard_arrow_down",
1892
- navigationIcon: "lens"
1893
- },
1894
- chip: {
1895
- remove: "cancel",
1896
- selected: "check"
1897
- },
1898
- datetime: {
1899
- arrowLeft: "chevron_left",
1900
- arrowRight: "chevron_right",
1901
- now: "access_time",
1902
- today: "today"
1903
- },
1904
- editor: {
1905
- bold: "format_bold",
1906
- italic: "format_italic",
1907
- strikethrough: "strikethrough_s",
1908
- underline: "format_underlined",
1909
- unorderedList: "format_list_bulleted",
1910
- orderedList: "format_list_numbered",
1911
- subscript: "vertical_align_bottom",
1912
- superscript: "vertical_align_top",
1913
- hyperlink: "link",
1914
- toggleFullscreen: "fullscreen",
1915
- quote: "format_quote",
1916
- left: "format_align_left",
1917
- center: "format_align_center",
1918
- right: "format_align_right",
1919
- justify: "format_align_justify",
1920
- print: "print",
1921
- outdent: "format_indent_decrease",
1922
- indent: "format_indent_increase",
1923
- removeFormat: "format_clear",
1924
- formatting: "text_format",
1925
- fontSize: "format_size",
1926
- align: "format_align_left",
1927
- hr: "remove",
1928
- undo: "undo",
1929
- redo: "redo",
1930
- heading: "format_size",
1931
- code: "code",
1932
- size: "format_size",
1933
- font: "font_download",
1934
- viewSource: "code"
1935
- },
1936
- expansionItem: {
1937
- icon: "keyboard_arrow_down",
1938
- denseIcon: "arrow_drop_down"
1939
- },
1940
- fab: {
1941
- icon: "add",
1942
- activeIcon: "close"
1943
- },
1944
- field: {
1945
- clear: "cancel",
1946
- error: "error"
1947
- },
1948
- pagination: {
1949
- first: "first_page",
1950
- prev: "keyboard_arrow_left",
1951
- next: "keyboard_arrow_right",
1952
- last: "last_page"
1953
- },
1954
- rating: { icon: "grade" },
1955
- stepper: {
1956
- done: "check",
1957
- active: "edit",
1958
- error: "warning"
1959
- },
1960
- tabs: {
1961
- left: "chevron_left",
1962
- right: "chevron_right",
1963
- up: "keyboard_arrow_up",
1964
- down: "keyboard_arrow_down"
1965
- },
1966
- table: {
1967
- arrowUp: "arrow_upward",
1968
- warning: "warning",
1969
- firstPage: "first_page",
1970
- prevPage: "chevron_left",
1971
- nextPage: "chevron_right",
1972
- lastPage: "last_page"
1973
- },
1974
- tree: { icon: "play_arrow" },
1975
- uploader: {
1976
- done: "done",
1977
- clear: "clear",
1978
- add: "add_box",
1979
- upload: "cloud_upload",
1980
- removeQueue: "clear_all",
1981
- removeUploaded: "done_all"
1982
- }
1983
- }, Mn = B({
1984
- iconMapFn: null,
1985
- __qIconSet: {}
1986
- }, {
1987
- set(e, t) {
1988
- let n = { ...e };
1989
- n.set = Mn.set, Object.assign(Mn.__qIconSet, n);
1990
- },
1991
- install({ $q: e, iconSet: t, ssrContext: n }) {
1992
- e.config.iconMapFn !== void 0 && (this.iconMapFn = e.config.iconMapFn), e.iconSet = this.__qIconSet, L(e, "iconMapFn", () => this.iconMapFn, (e) => {
1993
- this.iconMapFn = e;
1994
- }), this.__installed ? t !== void 0 && this.set(t) : (this.props = new Proxy(this.__qIconSet, {
1995
- get: Reflect.get,
1996
- ownKeys(e) {
1997
- return Reflect.ownKeys(e).filter((e) => e !== "set");
1998
- }
1999
- }), this.set(t || jn));
2000
- }
2001
- });
2002
- //#endregion
2003
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/is/is.js
2004
- function Nn(e) {
2005
- return typeof e == "object" && !!e && !Array.isArray(e);
2006
- }
2007
- //#endregion
2008
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/install-quasar.js
2009
- function Pn(e, t) {
2010
- let n = l(e);
2011
- n.config.globalProperties = t.config.globalProperties;
2012
- let { reload: r, ...i } = t._context;
2013
- return Object.assign(n._context, i), n;
2014
- }
2015
- //#endregion
2016
- //#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/notify/Notify.js
2017
- var Fn = 0, In = {}, Ln = {}, X = {}, Rn = {}, zn = /^\s*$/, Bn = [], Vn = [
2018
- void 0,
2019
- null,
2020
- !0,
2021
- !1,
2022
- ""
2023
- ], Hn = [
2024
- "top-left",
2025
- "top-right",
2026
- "bottom-left",
2027
- "bottom-right",
2028
- "top",
2029
- "bottom",
2030
- "left",
2031
- "right",
2032
- "center"
2033
- ], Un = [
2034
- "top-left",
2035
- "top-right",
2036
- "bottom-left",
2037
- "bottom-right"
2038
- ], Wn = {
2039
- positive: {
2040
- icon: (e) => e.iconSet.type.positive,
2041
- color: "positive"
2042
- },
2043
- negative: {
2044
- icon: (e) => e.iconSet.type.negative,
2045
- color: "negative"
2046
- },
2047
- warning: {
2048
- icon: (e) => e.iconSet.type.warning,
2049
- color: "warning",
2050
- textColor: "dark"
2051
- },
2052
- info: {
2053
- icon: (e) => e.iconSet.type.info,
2054
- color: "info"
2055
- },
2056
- ongoing: {
2057
- group: !1,
2058
- timeout: 0,
2059
- spinner: !0,
2060
- color: "grey-8"
2061
- }
2062
- };
2063
- function Gn(e, t, n) {
2064
- if (!e) return Jn("parameter required");
2065
- let r, i = { textColor: "white" };
2066
- if (e.ignoreDefaults || Object.assign(i, In), Nn(e) || (i.type && Object.assign(i, Wn[i.type]), e = { message: e }), Object.assign(i, Wn[e.type || i.type], e), typeof i.icon == "function" && (i.icon = i.icon(t)), i.spinner ? i.spinner = i.spinner === !0 ? _e : m(i.spinner) : i.spinner = !1, i.meta = {
2067
- hasMedia: !!(i.spinner || i.icon || i.avatar),
2068
- hasText: qn(i.message) || qn(i.caption)
2069
- }, i.position) {
2070
- if (!Hn.includes(i.position)) return Jn("wrong position", e);
2071
- } else i.position = "bottom";
2072
- if (Vn.includes(i.timeout)) i.timeout = 5e3;
2073
- else {
2074
- let t = Number.parseFloat(i.timeout);
2075
- if (!Number.isFinite(t) || t < 0) return Jn("wrong timeout", e);
2076
- i.timeout = t;
2077
- }
2078
- i.timeout === 0 ? i.progress = !1 : i.progress && (i.meta.progressClass = "q-notification__progress" + (i.progressClass ? ` ${i.progressClass}` : ""), i.meta.progressStyle = { animationDuration: `${i.timeout + 1e3}ms` });
2079
- let a = [
2080
- ...Array.isArray(e.actions) ? e.actions : [],
2081
- ...!e.ignoreDefaults && Array.isArray(In.actions) ? In.actions : [],
2082
- ...Array.isArray(Wn[e.type]?.actions) ? Wn[e.type].actions : []
2083
- ], { closeBtn: o } = i;
2084
- if (o && a.push({ label: typeof o == "string" ? o : t.lang.label.close }), i.actions = a.map(({ handler: e, noDismiss: t, ...n }) => ({
2085
- flat: !0,
2086
- ...n,
2087
- onClick: typeof e == "function" ? () => {
2088
- e(), t || s();
2089
- } : () => {
2090
- s();
2091
- }
2092
- })), i.multiLine === void 0 && (i.multiLine = i.actions.length > 1), Object.assign(i.meta, {
2093
- class: `q-notification row items-stretch q-notification--${i.multiLine ? "multi-line" : "standard"}` + (i.color === void 0 ? "" : ` bg-${i.color}`) + (i.textColor === void 0 ? "" : ` text-${i.textColor}`) + (i.classes === void 0 ? "" : ` ${i.classes}`),
2094
- wrapperClass: "q-notification__wrapper col relative-position border-radius-inherit " + (i.multiLine ? "column no-wrap justify-center" : "row items-center"),
2095
- contentClass: "q-notification__content row items-center" + (i.multiLine ? "" : " col"),
2096
- leftClass: i.meta.hasText ? "additional" : "single",
2097
- attrs: {
2098
- role: "alert",
2099
- ...i.attrs
2100
- }
2101
- }), i.group === !1 ? (i.group = void 0, i.meta.group = void 0) : ((i.group === void 0 || i.group === !0) && (i.group = [
2102
- i.message,
2103
- i.caption,
2104
- i.multiLine,
2105
- ...i.actions.map((e) => `${e.label}*${e.icon}`)
2106
- ].join("|")), i.meta.group = i.group + "|" + i.position), i.actions.length === 0 ? i.actions = void 0 : i.meta.actionsClass = "q-notification__actions row items-center " + (i.multiLine ? "justify-end" : "col-auto") + (i.meta.hasMedia ? " q-notification__actions--with-media" : ""), n !== void 0) {
2107
- n.notif.meta.timer && (clearTimeout(n.notif.meta.timer), n.notif.meta.timer = void 0), i.meta.uid = n.notif.meta.uid;
2108
- let e = X[i.position].value.indexOf(n.notif);
2109
- X[i.position].value[e] = i;
2110
- } else {
2111
- let t = Ln[i.meta.group];
2112
- if (t === void 0) {
2113
- if (i.meta.uid = Fn++, i.meta.badge = 1, [
2114
- "left",
2115
- "right",
2116
- "center"
2117
- ].includes(i.position)) X[i.position].value.splice(Math.floor(X[i.position].value.length / 2), 0, i);
2118
- else {
2119
- let e = i.position.includes("top") ? "unshift" : "push";
2120
- X[i.position].value[e](i);
2121
- }
2122
- i.group !== void 0 && (Ln[i.meta.group] = i);
2123
- } else {
2124
- if (t.meta.timer && (clearTimeout(t.meta.timer), t.meta.timer = void 0), i.badgePosition !== void 0) {
2125
- if (!Un.includes(i.badgePosition)) return Jn("wrong badgePosition", e);
2126
- } else i.badgePosition = `top-${i.position.includes("left") ? "right" : "left"}`;
2127
- i.meta.uid = t.meta.uid, i.meta.badge = t.meta.badge + 1, i.meta.badgeClass = `q-notification__badge q-notification__badge--${i.badgePosition}` + (i.badgeColor === void 0 ? "" : ` bg-${i.badgeColor}`) + (i.badgeTextColor === void 0 ? "" : ` text-${i.badgeTextColor}`) + (i.badgeClass ? ` ${i.badgeClass}` : "");
2128
- let n = X[i.position].value.indexOf(t);
2129
- X[i.position].value[n] = Ln[i.meta.group] = i;
2130
- }
2131
- }
2132
- let s = () => {
2133
- Kn(i), r = void 0;
2134
- };
2135
- if (i.timeout > 0 && (i.meta.timer = setTimeout(() => {
2136
- i.meta.timer = void 0, s();
2137
- }, i.timeout + 1e3)), i.group !== void 0) return (t) => {
2138
- t === void 0 ? s() : Jn("trying to update a grouped one which is forbidden", e);
2139
- };
2140
- if (r = {
2141
- dismiss: s,
2142
- config: e,
2143
- notif: i
2144
- }, n !== void 0) {
2145
- Object.assign(n, r);
2146
- return;
2147
- }
2148
- return (e) => {
2149
- r !== void 0 && (e === void 0 ? r.dismiss() : Gn({
2150
- ...r.config,
2151
- ...e,
2152
- group: !1,
2153
- position: i.position
2154
- }, t, r));
2155
- };
2156
- }
2157
- function Kn(e) {
2158
- e.meta.timer && (clearTimeout(e.meta.timer), e.meta.timer = void 0);
2159
- let t = X[e.position].value.indexOf(e);
2160
- if (t !== -1) {
2161
- e.group !== void 0 && delete Ln[e.meta.group];
2162
- let n = Bn[String(e.meta.uid)];
2163
- if (n) {
2164
- let { width: e, height: t } = getComputedStyle(n);
2165
- n.style.left = `${n.offsetLeft}px`, n.style.width = e, n.style.height = t;
2166
- }
2167
- X[e.position].value.splice(t, 1), typeof e.onDismiss == "function" && e.onDismiss();
2168
- }
2169
- }
2170
- function qn(e) {
2171
- return e != null && !zn.test(e);
2172
- }
2173
- function Jn(e, t) {
2174
- return console.error(`Notify: ${e}`, t), !1;
2175
- }
2176
- function Yn() {
2177
- return R({
2178
- name: "QNotifications",
2179
- devtools: { hide: !0 },
2180
- setup() {
2181
- return () => f("div", { class: "q-notifications" }, Hn.map((e) => f(s, {
2182
- key: e,
2183
- class: Rn[e],
2184
- tag: "div",
2185
- name: `q-notification--${e}`
2186
- }, () => X[e].value.map((e) => {
2187
- let t = e.meta, n = [];
2188
- if (t.hasMedia && (e.spinner ? n.push(f(e.spinner, {
2189
- class: "q-notification__spinner q-notification__spinner--" + t.leftClass,
2190
- color: e.spinnerColor,
2191
- size: e.spinnerSize
2192
- })) : e.icon ? n.push(f(pe, {
2193
- class: "q-notification__icon q-notification__icon--" + t.leftClass,
2194
- name: e.icon,
2195
- color: e.iconColor,
2196
- size: e.iconSize,
2197
- role: "img"
2198
- })) : e.avatar && n.push(f(me, { class: "q-notification__avatar q-notification__avatar--" + t.leftClass }, () => f("img", {
2199
- src: e.avatar,
2200
- "aria-hidden": "true"
2201
- })))), t.hasText) {
2202
- let t, r = { class: "q-notification__message col" };
2203
- if (e.html) r.innerHTML = e.caption ? `<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>` : e.message;
2204
- else {
2205
- let n = [e.message];
2206
- t = e.caption ? [f("div", n), f("div", { class: "q-notification__caption" }, [e.caption])] : n;
2207
- }
2208
- n.push(f("div", r, t));
2209
- }
2210
- let r = [f("div", { class: t.contentClass }, n)];
2211
- return e.progress && r.push(f("div", {
2212
- key: `${t.uid}|p|${t.badge}`,
2213
- class: t.progressClass,
2214
- style: t.progressStyle
2215
- })), e.actions && r.push(f("div", { class: t.actionsClass }, e.actions.map((e) => f(ot, e)))), t.badge > 1 && r.push(f("div", {
2216
- key: `${t.uid}|${t.badge}`,
2217
- class: e.meta.badgeClass,
2218
- style: e.badgeStyle
2219
- }, [t.badge])), f("div", {
2220
- ref: (e) => {
2221
- Bn[String(t.uid)] = e;
2222
- },
2223
- key: t.uid,
2224
- class: t.class,
2225
- ...t.attrs
2226
- }, [f("div", { class: t.wrapperClass }, r)]);
2227
- }))));
2228
- }
2229
- });
2230
- }
2231
- var Xn = {
2232
- setDefaults(e) {
2233
- Nn(e) && Object.assign(In, e);
2234
- },
2235
- registerType(e, t) {
2236
- Nn(t) && (Wn[e] = t);
2237
- },
2238
- install({ $q: e, parentApp: t }) {
2239
- if (e.notify = this.create = (t) => Gn(t, e), e.notify.setDefaults = this.setDefaults, e.notify.registerType = this.registerType, e.config.notify !== void 0 && this.setDefaults(e.config.notify), !this.__installed) {
2240
- Hn.forEach((e) => {
2241
- X[e] = v([]);
2242
- let t = e === "left" || e === "center" || e === "right" ? "center" : e.includes("top") ? "top" : "bottom", n = e.includes("left") ? "start" : e.includes("right") ? "end" : "center";
2243
- Rn[e] = `q-notifications__list q-notifications__list--${t} fixed column no-wrap ${e === "left" || e === "right" ? `items-${e === "left" ? "start" : "end"} justify-center` : e === "center" ? "flex-center" : `items-${n}`}`;
2244
- });
2245
- let e = Qt("q-notify");
2246
- Pn(Yn(), t).mount(e);
2247
- }
2248
- }
2249
- };
2250
- //#endregion
2251
- //#region lib/composables/useNotify.js
2252
- function Zn() {
2253
- let { t: e } = x();
2254
- return { notify: (t, n = "positive", r, i = {}) => {
2255
- Xn.create({
2256
- message: e(t, i.translationParams || {}),
2257
- type: n,
2258
- icon: r || {
2259
- warning: "warning",
2260
- negative: "error",
2261
- positive: "check"
2262
- }[n],
2263
- ...i
2264
- });
2265
- } };
2266
- }
2267
- //#endregion
2268
- //#region lib/composables/useObjectComparison.js
2269
- function Qn(e, t) {
2270
- if (!e || typeof e != "object" || !Array.isArray(t) || !t.length) return {};
2271
- let n = {};
2272
- for (let r of t) Object.hasOwn(e, r) && (n[r] = e[r]);
2273
- return n;
2274
- }
2275
- function $n(e, t) {
2276
- let n = Z(e) ? e : {}, r = Z(t) ? t : {}, i = {}, a = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(r)]);
2277
- for (let e of a) {
2278
- let t = n[e], a = r[e];
2279
- if (Z(t) && Z(a)) {
2280
- let n = $n(t, a);
2281
- Object.keys(n).length && (i[e] = n);
2282
- continue;
2283
- }
2284
- Q(t, a) || (i[e] = {
2285
- expected: t,
2286
- actual: a
2287
- });
2288
- }
2289
- return i;
2290
- }
2291
- function Z(e) {
2292
- return typeof e == "object" && !!e && !Array.isArray(e);
2293
- }
2294
- function Q(e, t) {
2295
- if (Array.isArray(e) && Array.isArray(t)) {
2296
- if (e.length !== t.length) return !1;
2297
- for (let n = 0; n < e.length; n++) if (!Q(e[n], t[n])) return !1;
2298
- return !0;
2299
- }
2300
- if (Z(e) && Z(t)) {
2301
- let n = $n(e, t);
2302
- return !Object.keys(n).length;
2303
- }
2304
- return Object.is(e, t);
2305
- }
2306
- function er() {
2307
- return {
2308
- getObjectByKeys: Qn,
2309
- getObjectDifferences: $n,
2310
- isComparableObject: Z,
2311
- isSameValue: Q
2312
- };
2313
- }
2314
- //#endregion
2315
- //#region node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
2316
- var $ = /* @__PURE__ */ A(((e, t) => {
2317
- t.exports = TypeError;
2318
- })), tr = /* @__PURE__ */ A(((e, t) => {
2319
- t.exports = {};
2320
- })), nr = /* @__PURE__ */ A(((e, t) => {
2321
- var n = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = n && r && typeof r.get == "function" ? r.get : null, a = n && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, c = o && s && typeof s.get == "function" ? s.get : null, l = o && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, p = Boolean.prototype.valueOf, m = Object.prototype.toString, h = Function.prototype.toString, g = String.prototype.match, _ = String.prototype.slice, v = String.prototype.replace, y = String.prototype.toUpperCase, b = String.prototype.toLowerCase, x = RegExp.prototype.test, S = Array.prototype.concat, C = Array.prototype.join, w = Array.prototype.slice, T = Math.floor, E = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, D = Object.getOwnPropertySymbols, O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", A = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, j = Object.prototype.propertyIsEnumerable, M = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
2322
- return e.__proto__;
2323
- } : null);
2324
- function N(e, t) {
2325
- if (e === Infinity || e === -Infinity || e !== e || e && e > -1e3 && e < 1e3 || x.call(/e/, t)) return t;
2326
- var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2327
- if (typeof e == "number") {
2328
- var r = e < 0 ? -T(-e) : T(e);
2329
- if (r !== e) {
2330
- var i = String(r), a = _.call(t, i.length + 1);
2331
- return v.call(i, n, "$&_") + "." + v.call(v.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2332
- }
2333
- }
2334
- return v.call(t, n, "$&_");
2335
- }
2336
- var P = tr(), F = P.custom, I = oe(F) ? F : null, L = {
2337
- __proto__: null,
2338
- double: "\"",
2339
- single: "'"
2340
- }, R = {
2341
- __proto__: null,
2342
- double: /(["\\])/g,
2343
- single: /(['\\])/g
2344
- };
2345
- t.exports = function e(t, n, r, o) {
2346
- var s = n || {};
2347
- if (U(s, "quoteStyle") && !U(L, s.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
2348
- if (U(s, "maxStringLength") && (typeof s.maxStringLength == "number" ? s.maxStringLength < 0 && s.maxStringLength !== Infinity : s.maxStringLength !== null)) throw TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
2349
- var u = !U(s, "customInspect") || s.customInspect;
2350
- if (typeof u != "boolean" && u !== "symbol") throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
2351
- if (U(s, "indent") && s.indent !== null && s.indent !== " " && !(parseInt(s.indent, 10) === s.indent && s.indent > 0)) throw TypeError("option \"indent\" must be \"\\t\", an integer > 0, or `null`");
2352
- if (U(s, "numericSeparator") && typeof s.numericSeparator != "boolean") throw TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
2353
- var d = s.numericSeparator;
2354
- if (t === void 0) return "undefined";
2355
- if (t === null) return "null";
2356
- if (typeof t == "boolean") return t ? "true" : "false";
2357
- if (typeof t == "string") return _e(t, s);
2358
- if (typeof t == "number") {
2359
- if (t === 0) return Infinity / t > 0 ? "0" : "-0";
2360
- var f = String(t);
2361
- return d ? N(t, f) : f;
2362
- }
2363
- if (typeof t == "bigint") {
2364
- var m = String(t) + "n";
2365
- return d ? N(t, m) : m;
2366
- }
2367
- var h = s.depth === void 0 ? 5 : s.depth;
2368
- if (r === void 0 && (r = 0), r >= h && h > 0 && typeof t == "object") return H(t) ? "[Array]" : "[Object]";
2369
- var g = Se(s, r);
2370
- if (o === void 0) o = [];
2371
- else if (ue(o, t) >= 0) return "[Circular]";
2372
- function y(t, n, i) {
2373
- if (n && (o = w.call(o), o.push(n)), i) {
2374
- var a = { depth: s.depth };
2375
- return U(s, "quoteStyle") && (a.quoteStyle = s.quoteStyle), e(t, a, r + 1, o);
2376
- }
2377
- return e(t, s, r + 1, o);
2378
- }
2379
- if (typeof t == "function" && !te(t)) {
2380
- var x = le(t), T = we(t, y);
2381
- return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (T.length > 0 ? " { " + C.call(T, ", ") + " }" : "");
2382
- }
2383
- if (oe(t)) {
2384
- var D = k ? v.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : O.call(t);
2385
- return typeof t == "object" && !k ? ye(D) : D;
2386
- }
2387
- if (ge(t)) {
2388
- for (var F = "<" + b.call(String(t.nodeName)), R = t.attributes || [], V = 0; V < R.length; V++) F += " " + R[V].name + "=" + z(B(R[V].value), "double", s);
2389
- return F += ">", t.childNodes && t.childNodes.length && (F += "..."), F += "</" + b.call(String(t.nodeName)) + ">", F;
2390
- }
2391
- if (H(t)) {
2392
- if (t.length === 0) return "[]";
2393
- var ce = we(t, y);
2394
- return g && !xe(ce) ? "[" + Ce(ce, g) + "]" : "[ " + C.call(ce, ", ") + " ]";
2395
- }
2396
- if (ne(t)) {
2397
- var ve = we(t, y);
2398
- return !("cause" in Error.prototype) && "cause" in t && !j.call(t, "cause") ? "{ [" + String(t) + "] " + C.call(S.call("[cause]: " + y(t.cause), ve), ", ") + " }" : ve.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + C.call(ve, ", ") + " }";
2399
- }
2400
- if (typeof t == "object" && u) {
2401
- if (I && typeof t[I] == "function" && P) return P(t, { depth: h - r });
2402
- if (u !== "symbol" && typeof t.inspect == "function") return t.inspect();
2403
- }
2404
- if (de(t)) {
2405
- var K = [];
2406
- return a && a.call(t, function(e, n) {
2407
- K.push(y(n, t, !0) + " => " + y(e, t));
2408
- }), G("Map", i.call(t), K, g);
2409
- }
2410
- if (me(t)) {
2411
- var Te = [];
2412
- return l && l.call(t, function(e) {
2413
- Te.push(y(e, t));
2414
- }), G("Set", c.call(t), Te, g);
2415
- }
2416
- if (fe(t)) return be("WeakMap");
2417
- if (he(t)) return be("WeakSet");
2418
- if (pe(t)) return be("WeakRef");
2419
- if (ie(t)) return ye(y(Number(t)));
2420
- if (se(t)) return ye(y(E.call(t)));
2421
- if (ae(t)) return ye(p.call(t));
2422
- if (re(t)) return ye(y(String(t)));
2423
- if (typeof window < "u" && t === window) return "{ [object Window] }";
2424
- if (typeof globalThis < "u" && t === globalThis || typeof global < "u" && t === global) return "{ [object globalThis] }";
2425
- if (!ee(t) && !te(t)) {
2426
- var Ee = we(t, y), De = M ? M(t) === Object.prototype : t instanceof Object || t.constructor === Object, Oe = t instanceof Object ? "" : "null prototype", ke = !De && A && Object(t) === t && A in t ? _.call(W(t), 8, -1) : Oe ? "Object" : "", Ae = (De || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (ke || Oe ? "[" + C.call(S.call([], ke || [], Oe || []), ": ") + "] " : "");
2427
- return Ee.length === 0 ? Ae + "{}" : g ? Ae + "{" + Ce(Ee, g) + "}" : Ae + "{ " + C.call(Ee, ", ") + " }";
2428
- }
2429
- return String(t);
2430
- };
2431
- function z(e, t, n) {
2432
- var r = L[n.quoteStyle || t];
2433
- return r + e + r;
2434
- }
2435
- function B(e) {
2436
- return v.call(String(e), /"/g, "&quot;");
2437
- }
2438
- function V(e) {
2439
- return !A || !(typeof e == "object" && (A in e || e[A] !== void 0));
2440
- }
2441
- function H(e) {
2442
- return W(e) === "[object Array]" && V(e);
2443
- }
2444
- function ee(e) {
2445
- return W(e) === "[object Date]" && V(e);
2446
- }
2447
- function te(e) {
2448
- return W(e) === "[object RegExp]" && V(e);
2449
- }
2450
- function ne(e) {
2451
- return W(e) === "[object Error]" && V(e);
2452
- }
2453
- function re(e) {
2454
- return W(e) === "[object String]" && V(e);
2455
- }
2456
- function ie(e) {
2457
- return W(e) === "[object Number]" && V(e);
2458
- }
2459
- function ae(e) {
2460
- return W(e) === "[object Boolean]" && V(e);
2461
- }
2462
- function oe(e) {
2463
- if (k) return e && typeof e == "object" && e instanceof Symbol;
2464
- if (typeof e == "symbol") return !0;
2465
- if (!e || typeof e != "object" || !O) return !1;
2466
- try {
2467
- return O.call(e), !0;
2468
- } catch {}
2469
- return !1;
2470
- }
2471
- function se(e) {
2472
- if (!e || typeof e != "object" || !E) return !1;
2473
- try {
2474
- return E.call(e), !0;
2475
- } catch {}
2476
- return !1;
2477
- }
2478
- var ce = Object.prototype.hasOwnProperty || function(e) {
2479
- return e in this;
2480
- };
2481
- function U(e, t) {
2482
- return ce.call(e, t);
2483
- }
2484
- function W(e) {
2485
- return m.call(e);
2486
- }
2487
- function le(e) {
2488
- if (e.name) return e.name;
2489
- var t = g.call(h.call(e), /^function\s*([\w$]+)/);
2490
- return t ? t[1] : null;
2491
- }
2492
- function ue(e, t) {
2493
- if (e.indexOf) return e.indexOf(t);
2494
- for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
2495
- return -1;
2496
- }
2497
- function de(e) {
2498
- if (!i || !e || typeof e != "object") return !1;
2499
- try {
2500
- i.call(e);
2501
- try {
2502
- c.call(e);
2503
- } catch {
2504
- return !0;
2505
- }
2506
- return e instanceof Map;
2507
- } catch {}
2508
- return !1;
2509
- }
2510
- function fe(e) {
2511
- if (!u || !e || typeof e != "object") return !1;
2512
- try {
2513
- u.call(e, u);
2514
- try {
2515
- d.call(e, d);
2516
- } catch {
2517
- return !0;
2518
- }
2519
- return e instanceof WeakMap;
2520
- } catch {}
2521
- return !1;
2522
- }
2523
- function pe(e) {
2524
- if (!f || !e || typeof e != "object") return !1;
2525
- try {
2526
- return f.call(e), !0;
2527
- } catch {}
2528
- return !1;
2529
- }
2530
- function me(e) {
2531
- if (!c || !e || typeof e != "object") return !1;
2532
- try {
2533
- c.call(e);
2534
- try {
2535
- i.call(e);
2536
- } catch {
2537
- return !0;
2538
- }
2539
- return e instanceof Set;
2540
- } catch {}
2541
- return !1;
2542
- }
2543
- function he(e) {
2544
- if (!d || !e || typeof e != "object") return !1;
2545
- try {
2546
- d.call(e, d);
2547
- try {
2548
- u.call(e, u);
2549
- } catch {
2550
- return !0;
2551
- }
2552
- return e instanceof WeakSet;
2553
- } catch {}
2554
- return !1;
2555
- }
2556
- function ge(e) {
2557
- return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement || typeof e.nodeName == "string" && typeof e.getAttribute == "function";
2558
- }
2559
- function _e(e, t) {
2560
- if (e.length > t.maxStringLength) {
2561
- var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2562
- return _e(_.call(e, 0, t.maxStringLength), t) + r;
2563
- }
2564
- var i = R[t.quoteStyle || "single"];
2565
- return i.lastIndex = 0, z(v.call(v.call(e, i, "\\$1"), /[\x00-\x1f]/g, ve), "single", t);
2566
- }
2567
- function ve(e) {
2568
- var t = e.charCodeAt(0), n = {
2569
- 8: "b",
2570
- 9: "t",
2571
- 10: "n",
2572
- 12: "f",
2573
- 13: "r"
2574
- }[t];
2575
- return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + y.call(t.toString(16));
2576
- }
2577
- function ye(e) {
2578
- return "Object(" + e + ")";
2579
- }
2580
- function be(e) {
2581
- return e + " { ? }";
2582
- }
2583
- function G(e, t, n, r) {
2584
- var i = r ? Ce(n, r) : C.call(n, ", ");
2585
- return e + " (" + t + ") {" + i + "}";
2586
- }
2587
- function xe(e) {
2588
- for (var t = 0; t < e.length; t++) if (ue(e[t], "\n") >= 0) return !1;
2589
- return !0;
2590
- }
2591
- function Se(e, t) {
2592
- var n;
2593
- if (e.indent === " ") n = " ";
2594
- else if (typeof e.indent == "number" && e.indent > 0) n = C.call(Array(e.indent + 1), " ");
2595
- else return null;
2596
- return {
2597
- base: n,
2598
- prev: C.call(Array(t + 1), n)
2599
- };
2600
- }
2601
- function Ce(e, t) {
2602
- if (e.length === 0) return "";
2603
- var n = "\n" + t.prev + t.base;
2604
- return n + C.call(e, "," + n) + "\n" + t.prev;
2605
- }
2606
- function we(e, t) {
2607
- var n = H(e), r = [];
2608
- if (n) {
2609
- r.length = e.length;
2610
- for (var i = 0; i < e.length; i++) r[i] = U(e, i) ? t(e[i], e) : "";
2611
- }
2612
- var a = typeof D == "function" ? D(e) : [], o;
2613
- if (k) {
2614
- o = {};
2615
- for (var s = 0; s < a.length; s++) o["$" + a[s]] = a[s];
2616
- }
2617
- for (var c in e) U(e, c) && (n && String(Number(c)) === c && c < e.length || k && o["$" + c] instanceof Symbol || (x.call(/[^\w$]/, c) ? r.push(t(c, e) + ": " + t(e[c], e)) : r.push(c + ": " + t(e[c], e))));
2618
- if (typeof D == "function") for (var l = 0; l < a.length; l++) j.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
2619
- return r;
2620
- }
2621
- })), rr = /* @__PURE__ */ A(((e, t) => {
2622
- var n = nr(), r = $(), i = function(e, t, n) {
2623
- for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
2624
- }, a = function(e, t) {
2625
- if (e) {
2626
- var n = i(e, t);
2627
- return n && n.value;
2628
- }
2629
- }, o = function(e, t, n) {
2630
- var r = i(e, t);
2631
- r ? r.value = n : e.next = {
2632
- key: t,
2633
- next: e.next,
2634
- value: n
2635
- };
2636
- }, s = function(e, t) {
2637
- return e ? !!i(e, t) : !1;
2638
- }, c = function(e, t) {
2639
- if (e) return i(e, t, !0);
2640
- };
2641
- t.exports = function() {
2642
- var e, t = {
2643
- assert: function(e) {
2644
- if (!t.has(e)) throw new r("Side channel does not contain " + n(e));
2645
- },
2646
- delete: function(t) {
2647
- var n = c(e, t);
2648
- return n && e && !e.next && (e = void 0), !!n;
2649
- },
2650
- get: function(t) {
2651
- return a(e, t);
2652
- },
2653
- has: function(t) {
2654
- return s(e, t);
2655
- },
2656
- set: function(t, n) {
2657
- e ||= { next: void 0 }, o(e, t, n);
2658
- }
2659
- };
2660
- return t;
2661
- };
2662
- })), ir = /* @__PURE__ */ A(((e, t) => {
2663
- t.exports = Object;
2664
- })), ar = /* @__PURE__ */ A(((e, t) => {
2665
- t.exports = Error;
2666
- })), or = /* @__PURE__ */ A(((e, t) => {
2667
- t.exports = EvalError;
2668
- })), sr = /* @__PURE__ */ A(((e, t) => {
2669
- t.exports = RangeError;
2670
- })), cr = /* @__PURE__ */ A(((e, t) => {
2671
- t.exports = ReferenceError;
2672
- })), lr = /* @__PURE__ */ A(((e, t) => {
2673
- t.exports = SyntaxError;
2674
- })), ur = /* @__PURE__ */ A(((e, t) => {
2675
- t.exports = URIError;
2676
- })), dr = /* @__PURE__ */ A(((e, t) => {
2677
- t.exports = Math.abs;
2678
- })), fr = /* @__PURE__ */ A(((e, t) => {
2679
- t.exports = Math.floor;
2680
- })), pr = /* @__PURE__ */ A(((e, t) => {
2681
- t.exports = Math.max;
2682
- })), mr = /* @__PURE__ */ A(((e, t) => {
2683
- t.exports = Math.min;
2684
- })), hr = /* @__PURE__ */ A(((e, t) => {
2685
- t.exports = Math.pow;
2686
- })), gr = /* @__PURE__ */ A(((e, t) => {
2687
- t.exports = Math.round;
2688
- })), _r = /* @__PURE__ */ A(((e, t) => {
2689
- t.exports = Number.isNaN || function(e) {
2690
- return e !== e;
2691
- };
2692
- })), vr = /* @__PURE__ */ A(((e, t) => {
2693
- var n = _r();
2694
- t.exports = function(e) {
2695
- return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
2696
- };
2697
- })), yr = /* @__PURE__ */ A(((e, t) => {
2698
- t.exports = Object.getOwnPropertyDescriptor;
2699
- })), br = /* @__PURE__ */ A(((e, t) => {
2700
- var n = yr();
2701
- if (n) try {
2702
- n([], "length");
2703
- } catch {
2704
- n = null;
2705
- }
2706
- t.exports = n;
2707
- })), xr = /* @__PURE__ */ A(((e, t) => {
2708
- var n = Object.defineProperty || !1;
2709
- if (n) try {
2710
- n({}, "a", { value: 1 });
2711
- } catch {
2712
- n = !1;
2713
- }
2714
- t.exports = n;
2715
- })), Sr = /* @__PURE__ */ A(((e, t) => {
2716
- t.exports = function() {
2717
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
2718
- if (typeof Symbol.iterator == "symbol") return !0;
2719
- var e = {}, t = Symbol("test"), n = Object(t);
2720
- if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]") return !1;
2721
- var r = 42;
2722
- for (var i in e[t] = r, e) return !1;
2723
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1;
2724
- var a = Object.getOwnPropertySymbols(e);
2725
- if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
2726
- if (typeof Object.getOwnPropertyDescriptor == "function") {
2727
- var o = Object.getOwnPropertyDescriptor(e, t);
2728
- if (o.value !== r || o.enumerable !== !0) return !1;
2729
- }
2730
- return !0;
2731
- };
2732
- })), Cr = /* @__PURE__ */ A(((e, t) => {
2733
- var n = typeof Symbol < "u" && Symbol, r = Sr();
2734
- t.exports = function() {
2735
- return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
2736
- };
2737
- })), wr = /* @__PURE__ */ A(((e, t) => {
2738
- t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
2739
- })), Tr = /* @__PURE__ */ A(((e, t) => {
2740
- t.exports = ir().getPrototypeOf || null;
2741
- })), Er = /* @__PURE__ */ A(((e, t) => {
2742
- var n = Object.prototype.toString, r = Math.max, i = "[object Function]", a = function(e, t) {
2743
- for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
2744
- for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
2745
- return n;
2746
- }, o = function(e, t) {
2747
- for (var n = [], r = t || 0, i = 0; r < e.length; r += 1, i += 1) n[i] = e[r];
2748
- return n;
2749
- }, s = function(e, t) {
2750
- for (var n = "", r = 0; r < e.length; r += 1) n += e[r], r + 1 < e.length && (n += t);
2751
- return n;
2752
- };
2753
- t.exports = function(e) {
2754
- var t = this;
2755
- if (typeof t != "function" || n.apply(t) !== i) throw TypeError("Function.prototype.bind called on incompatible " + t);
2756
- for (var c = o(arguments, 1), l, u = function() {
2757
- if (this instanceof l) {
2758
- var n = t.apply(this, a(c, arguments));
2759
- return Object(n) === n ? n : this;
2760
- }
2761
- return t.apply(e, a(c, arguments));
2762
- }, d = r(0, t.length - c.length), f = [], p = 0; p < d; p++) f[p] = "$" + p;
2763
- if (l = Function("binder", "return function (" + s(f, ",") + "){ return binder.apply(this,arguments); }")(u), t.prototype) {
2764
- var m = function() {};
2765
- m.prototype = t.prototype, l.prototype = new m(), m.prototype = null;
2766
- }
2767
- return l;
2768
- };
2769
- })), Dr = /* @__PURE__ */ A(((e, t) => {
2770
- var n = Er();
2771
- t.exports = Function.prototype.bind || n;
2772
- })), Or = /* @__PURE__ */ A(((e, t) => {
2773
- t.exports = Function.prototype.call;
2774
- })), kr = /* @__PURE__ */ A(((e, t) => {
2775
- t.exports = Function.prototype.apply;
2776
- })), Ar = /* @__PURE__ */ A(((e, t) => {
2777
- t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
2778
- })), jr = /* @__PURE__ */ A(((e, t) => {
2779
- var n = Dr(), r = kr(), i = Or();
2780
- t.exports = Ar() || n.call(i, r);
2781
- })), Mr = /* @__PURE__ */ A(((e, t) => {
2782
- var n = Dr(), r = $(), i = Or(), a = jr();
2783
- t.exports = function(e) {
2784
- if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
2785
- return a(n, i, e);
2786
- };
2787
- })), Nr = /* @__PURE__ */ A(((e, t) => {
2788
- var n = Mr(), r = br(), i;
2789
- try {
2790
- i = [].__proto__ === Array.prototype;
2791
- } catch (e) {
2792
- if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
2793
- }
2794
- var a = !!i && r && r(Object.prototype, "__proto__"), o = Object, s = o.getPrototypeOf;
2795
- t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" && function(e) {
2796
- return s(e == null ? e : o(e));
2797
- };
2798
- })), Pr = /* @__PURE__ */ A(((e, t) => {
2799
- var n = wr(), r = Tr(), i = Nr();
2800
- t.exports = n ? function(e) {
2801
- return n(e);
2802
- } : r ? function(e) {
2803
- if (!e || typeof e != "object" && typeof e != "function") throw TypeError("getProto: not an object");
2804
- return r(e);
2805
- } : i ? function(e) {
2806
- return i(e);
2807
- } : null;
2808
- })), Fr = /* @__PURE__ */ A(((e, t) => {
2809
- var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
2810
- t.exports = Dr().call(n, r);
2811
- })), Ir = /* @__PURE__ */ A(((e, t) => {
2812
- var n, r = ir(), i = ar(), a = or(), o = sr(), s = cr(), c = lr(), l = $(), u = ur(), d = dr(), f = fr(), p = pr(), m = mr(), h = hr(), g = gr(), _ = vr(), v = Function, y = function(e) {
2813
- try {
2814
- return v("\"use strict\"; return (" + e + ").constructor;")();
2815
- } catch {}
2816
- }, b = br(), x = xr(), S = function() {
2817
- throw new l();
2818
- }, C = b ? function() {
2819
- try {
2820
- return arguments.callee, S;
2821
- } catch {
2822
- try {
2823
- return b(arguments, "callee").get;
2824
- } catch {
2825
- return S;
2826
- }
2827
- }
2828
- }() : S, w = Cr()(), T = Pr(), E = Tr(), D = wr(), O = kr(), k = Or(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
2829
- __proto__: null,
2830
- "%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
2831
- "%Array%": Array,
2832
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? n : ArrayBuffer,
2833
- "%ArrayIteratorPrototype%": w && T ? T([][Symbol.iterator]()) : n,
2834
- "%AsyncFromSyncIteratorPrototype%": n,
2835
- "%AsyncFunction%": A,
2836
- "%AsyncGenerator%": A,
2837
- "%AsyncGeneratorFunction%": A,
2838
- "%AsyncIteratorPrototype%": A,
2839
- "%Atomics%": typeof Atomics > "u" ? n : Atomics,
2840
- "%BigInt%": typeof BigInt > "u" ? n : BigInt,
2841
- "%BigInt64Array%": typeof BigInt64Array > "u" ? n : BigInt64Array,
2842
- "%BigUint64Array%": typeof BigUint64Array > "u" ? n : BigUint64Array,
2843
- "%Boolean%": Boolean,
2844
- "%DataView%": typeof DataView > "u" ? n : DataView,
2845
- "%Date%": Date,
2846
- "%decodeURI%": decodeURI,
2847
- "%decodeURIComponent%": decodeURIComponent,
2848
- "%encodeURI%": encodeURI,
2849
- "%encodeURIComponent%": encodeURIComponent,
2850
- "%Error%": i,
2851
- "%eval%": eval,
2852
- "%EvalError%": a,
2853
- "%Float16Array%": typeof Float16Array > "u" ? n : Float16Array,
2854
- "%Float32Array%": typeof Float32Array > "u" ? n : Float32Array,
2855
- "%Float64Array%": typeof Float64Array > "u" ? n : Float64Array,
2856
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? n : FinalizationRegistry,
2857
- "%Function%": v,
2858
- "%GeneratorFunction%": A,
2859
- "%Int8Array%": typeof Int8Array > "u" ? n : Int8Array,
2860
- "%Int16Array%": typeof Int16Array > "u" ? n : Int16Array,
2861
- "%Int32Array%": typeof Int32Array > "u" ? n : Int32Array,
2862
- "%isFinite%": isFinite,
2863
- "%isNaN%": isNaN,
2864
- "%IteratorPrototype%": w && T ? T(T([][Symbol.iterator]())) : n,
2865
- "%JSON%": typeof JSON == "object" ? JSON : n,
2866
- "%Map%": typeof Map > "u" ? n : Map,
2867
- "%MapIteratorPrototype%": typeof Map > "u" || !w || !T ? n : T((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2868
- "%Math%": Math,
2869
- "%Number%": Number,
2870
- "%Object%": r,
2871
- "%Object.getOwnPropertyDescriptor%": b,
2872
- "%parseFloat%": parseFloat,
2873
- "%parseInt%": parseInt,
2874
- "%Promise%": typeof Promise > "u" ? n : Promise,
2875
- "%Proxy%": typeof Proxy > "u" ? n : Proxy,
2876
- "%RangeError%": o,
2877
- "%ReferenceError%": s,
2878
- "%Reflect%": typeof Reflect > "u" ? n : Reflect,
2879
- "%RegExp%": RegExp,
2880
- "%Set%": typeof Set > "u" ? n : Set,
2881
- "%SetIteratorPrototype%": typeof Set > "u" || !w || !T ? n : T((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2882
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? n : SharedArrayBuffer,
2883
- "%String%": String,
2884
- "%StringIteratorPrototype%": w && T ? T(""[Symbol.iterator]()) : n,
2885
- "%Symbol%": w ? Symbol : n,
2886
- "%SyntaxError%": c,
2887
- "%ThrowTypeError%": C,
2888
- "%TypedArray%": j,
2889
- "%TypeError%": l,
2890
- "%Uint8Array%": typeof Uint8Array > "u" ? n : Uint8Array,
2891
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? n : Uint8ClampedArray,
2892
- "%Uint16Array%": typeof Uint16Array > "u" ? n : Uint16Array,
2893
- "%Uint32Array%": typeof Uint32Array > "u" ? n : Uint32Array,
2894
- "%URIError%": u,
2895
- "%WeakMap%": typeof WeakMap > "u" ? n : WeakMap,
2896
- "%WeakRef%": typeof WeakRef > "u" ? n : WeakRef,
2897
- "%WeakSet%": typeof WeakSet > "u" ? n : WeakSet,
2898
- "%Function.prototype.call%": k,
2899
- "%Function.prototype.apply%": O,
2900
- "%Object.defineProperty%": x,
2901
- "%Object.getPrototypeOf%": E,
2902
- "%Math.abs%": d,
2903
- "%Math.floor%": f,
2904
- "%Math.max%": p,
2905
- "%Math.min%": m,
2906
- "%Math.pow%": h,
2907
- "%Math.round%": g,
2908
- "%Math.sign%": _,
2909
- "%Reflect.getPrototypeOf%": D
2910
- };
2911
- if (T) try {
2912
- null.error;
2913
- } catch (e) {
2914
- M["%Error.prototype%"] = T(T(e));
2915
- }
2916
- var N = function e(t) {
2917
- var n;
2918
- if (t === "%AsyncFunction%") n = y("async function () {}");
2919
- else if (t === "%GeneratorFunction%") n = y("function* () {}");
2920
- else if (t === "%AsyncGeneratorFunction%") n = y("async function* () {}");
2921
- else if (t === "%AsyncGenerator%") {
2922
- var r = e("%AsyncGeneratorFunction%");
2923
- r && (n = r.prototype);
2924
- } else if (t === "%AsyncIteratorPrototype%") {
2925
- var i = e("%AsyncGenerator%");
2926
- i && T && (n = T(i.prototype));
2927
- }
2928
- return M[t] = n, n;
2929
- }, P = {
2930
- __proto__: null,
2931
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2932
- "%ArrayPrototype%": ["Array", "prototype"],
2933
- "%ArrayProto_entries%": [
2934
- "Array",
2935
- "prototype",
2936
- "entries"
2937
- ],
2938
- "%ArrayProto_forEach%": [
2939
- "Array",
2940
- "prototype",
2941
- "forEach"
2942
- ],
2943
- "%ArrayProto_keys%": [
2944
- "Array",
2945
- "prototype",
2946
- "keys"
2947
- ],
2948
- "%ArrayProto_values%": [
2949
- "Array",
2950
- "prototype",
2951
- "values"
2952
- ],
2953
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
2954
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
2955
- "%AsyncGeneratorPrototype%": [
2956
- "AsyncGeneratorFunction",
2957
- "prototype",
2958
- "prototype"
2959
- ],
2960
- "%BooleanPrototype%": ["Boolean", "prototype"],
2961
- "%DataViewPrototype%": ["DataView", "prototype"],
2962
- "%DatePrototype%": ["Date", "prototype"],
2963
- "%ErrorPrototype%": ["Error", "prototype"],
2964
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
2965
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
2966
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
2967
- "%FunctionPrototype%": ["Function", "prototype"],
2968
- "%Generator%": ["GeneratorFunction", "prototype"],
2969
- "%GeneratorPrototype%": [
2970
- "GeneratorFunction",
2971
- "prototype",
2972
- "prototype"
2973
- ],
2974
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
2975
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
2976
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
2977
- "%JSONParse%": ["JSON", "parse"],
2978
- "%JSONStringify%": ["JSON", "stringify"],
2979
- "%MapPrototype%": ["Map", "prototype"],
2980
- "%NumberPrototype%": ["Number", "prototype"],
2981
- "%ObjectPrototype%": ["Object", "prototype"],
2982
- "%ObjProto_toString%": [
2983
- "Object",
2984
- "prototype",
2985
- "toString"
2986
- ],
2987
- "%ObjProto_valueOf%": [
2988
- "Object",
2989
- "prototype",
2990
- "valueOf"
2991
- ],
2992
- "%PromisePrototype%": ["Promise", "prototype"],
2993
- "%PromiseProto_then%": [
2994
- "Promise",
2995
- "prototype",
2996
- "then"
2997
- ],
2998
- "%Promise_all%": ["Promise", "all"],
2999
- "%Promise_reject%": ["Promise", "reject"],
3000
- "%Promise_resolve%": ["Promise", "resolve"],
3001
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
3002
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
3003
- "%RegExpPrototype%": ["RegExp", "prototype"],
3004
- "%SetPrototype%": ["Set", "prototype"],
3005
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
3006
- "%StringPrototype%": ["String", "prototype"],
3007
- "%SymbolPrototype%": ["Symbol", "prototype"],
3008
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
3009
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
3010
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
3011
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
3012
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
3013
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
3014
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
3015
- "%URIErrorPrototype%": ["URIError", "prototype"],
3016
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
3017
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
3018
- }, F = Dr(), I = Fr(), L = F.call(k, Array.prototype.concat), R = F.call(O, Array.prototype.splice), z = F.call(k, String.prototype.replace), B = F.call(k, String.prototype.slice), V = F.call(k, RegExp.prototype.exec), H = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ee = /\\(\\)?/g, te = function(e) {
3019
- var t = B(e, 0, 1), n = B(e, -1);
3020
- if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
3021
- if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
3022
- var r = [];
3023
- return z(e, H, function(e, t, n, i) {
3024
- r[r.length] = n ? z(i, ee, "$1") : t || e;
3025
- }), r;
3026
- }, ne = function(e, t) {
3027
- var n = e, r;
3028
- if (I(P, n) && (r = P[n], n = "%" + r[0] + "%"), I(M, n)) {
3029
- var i = M[n];
3030
- if (i === A && (i = N(n)), i === void 0 && !t) throw new l("intrinsic " + e + " exists, but is not available. Please file an issue!");
3031
- return {
3032
- alias: r,
3033
- name: n,
3034
- value: i
3035
- };
3036
- }
3037
- throw new c("intrinsic " + e + " does not exist!");
3038
- };
3039
- t.exports = function(e, t) {
3040
- if (typeof e != "string" || e.length === 0) throw new l("intrinsic name must be a non-empty string");
3041
- if (arguments.length > 1 && typeof t != "boolean") throw new l("\"allowMissing\" argument must be a boolean");
3042
- if (V(/^%?[^%]*%?$/, e) === null) throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3043
- var n = te(e), r = n.length > 0 ? n[0] : "", i = ne("%" + r + "%", t), a = i.name, o = i.value, s = !1, u = i.alias;
3044
- u && (r = u[0], R(n, L([0, 1], u)));
3045
- for (var d = 1, f = !0; d < n.length; d += 1) {
3046
- var p = n[d], m = B(p, 0, 1), h = B(p, -1);
3047
- if ((m === "\"" || m === "'" || m === "`" || h === "\"" || h === "'" || h === "`") && m !== h) throw new c("property names with quotes must have matching quotes");
3048
- if ((p === "constructor" || !f) && (s = !0), r += "." + p, a = "%" + r + "%", I(M, a)) o = M[a];
3049
- else if (o != null) {
3050
- if (!(p in o)) {
3051
- if (!t) throw new l("base intrinsic for " + e + " exists, but the property is not available.");
3052
- return;
3053
- }
3054
- if (b && d + 1 >= n.length) {
3055
- var g = b(o, p);
3056
- f = !!g, o = f && "get" in g && !("originalValue" in g.get) ? g.get : o[p];
3057
- } else f = I(o, p), o = o[p];
3058
- f && !s && (M[a] = o);
3059
- }
3060
- }
3061
- return o;
3062
- };
3063
- })), Lr = /* @__PURE__ */ A(((e, t) => {
3064
- var n = Ir(), r = Mr(), i = r([n("%String.prototype.indexOf%")]);
3065
- t.exports = function(e, t) {
3066
- var a = n(e, !!t);
3067
- return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
3068
- };
3069
- })), Rr = /* @__PURE__ */ A(((e, t) => {
3070
- var n = Ir(), r = Lr(), i = nr(), a = $(), o = n("%Map%", !0), s = r("Map.prototype.get", !0), c = r("Map.prototype.set", !0), l = r("Map.prototype.has", !0), u = r("Map.prototype.delete", !0), d = r("Map.prototype.size", !0);
3071
- t.exports = !!o && function() {
3072
- var e, t = {
3073
- assert: function(e) {
3074
- if (!t.has(e)) throw new a("Side channel does not contain " + i(e));
3075
- },
3076
- delete: function(t) {
3077
- if (e) {
3078
- var n = u(e, t);
3079
- return d(e) === 0 && (e = void 0), n;
3080
- }
3081
- return !1;
3082
- },
3083
- get: function(t) {
3084
- if (e) return s(e, t);
3085
- },
3086
- has: function(t) {
3087
- return e ? l(e, t) : !1;
3088
- },
3089
- set: function(t, n) {
3090
- e ||= new o(), c(e, t, n);
3091
- }
3092
- };
3093
- return t;
3094
- };
3095
- })), zr = /* @__PURE__ */ A(((e, t) => {
3096
- var n = Ir(), r = Lr(), i = nr(), a = Rr(), o = $(), s = n("%WeakMap%", !0), c = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), d = r("WeakMap.prototype.delete", !0);
3097
- t.exports = s ? function() {
3098
- var e, t, n = {
3099
- assert: function(e) {
3100
- if (!n.has(e)) throw new o("Side channel does not contain " + i(e));
3101
- },
3102
- delete: function(n) {
3103
- if (s && n && (typeof n == "object" || typeof n == "function")) {
3104
- if (e) return d(e, n);
3105
- } else if (a && t) return t.delete(n);
3106
- return !1;
3107
- },
3108
- get: function(n) {
3109
- return s && n && (typeof n == "object" || typeof n == "function") && e ? c(e, n) : t && t.get(n);
3110
- },
3111
- has: function(n) {
3112
- return s && n && (typeof n == "object" || typeof n == "function") && e ? u(e, n) : !!t && t.has(n);
3113
- },
3114
- set: function(n, r) {
3115
- s && n && (typeof n == "object" || typeof n == "function") ? (e ||= new s(), l(e, n, r)) : a && (t ||= a(), t.set(n, r));
3116
- }
3117
- };
3118
- return n;
3119
- } : a;
3120
- })), Br = /* @__PURE__ */ A(((e, t) => {
3121
- var n = $(), r = nr(), i = rr(), a = Rr(), o = zr() || a || i;
3122
- t.exports = function() {
3123
- var e, t = {
3124
- assert: function(e) {
3125
- if (!t.has(e)) throw new n("Side channel does not contain " + (e && Object(e) === e ? "the given object key" : r(e)));
3126
- },
3127
- delete: function(t) {
3128
- return !!e && e.delete(t);
3129
- },
3130
- get: function(t) {
3131
- return e && e.get(t);
3132
- },
3133
- has: function(t) {
3134
- return !!e && e.has(t);
3135
- },
3136
- set: function(t, n) {
3137
- e ||= o(), e.set(t, n);
3138
- }
3139
- };
3140
- return t;
3141
- };
3142
- })), Vr = /* @__PURE__ */ A(((e, t) => {
3143
- var n = String.prototype.replace, r = /%20/g, i = {
3144
- RFC1738: "RFC1738",
3145
- RFC3986: "RFC3986"
3146
- };
3147
- t.exports = {
3148
- default: i.RFC3986,
3149
- formatters: {
3150
- RFC1738: function(e) {
3151
- return n.call(e, r, "+");
3152
- },
3153
- RFC3986: function(e) {
3154
- return String(e);
3155
- }
3156
- },
3157
- RFC1738: i.RFC1738,
3158
- RFC3986: i.RFC3986
3159
- };
3160
- })), Hr = /* @__PURE__ */ A(((e, t) => {
3161
- var n = Vr(), r = Br(), i = xr(), a = Object.prototype.hasOwnProperty, o = Array.isArray, s = r(), c = function(e, t) {
3162
- return s.set(e, t), e;
3163
- }, l = function(e) {
3164
- return s.has(e);
3165
- }, u = function(e) {
3166
- return s.get(e);
3167
- }, d = function(e, t) {
3168
- s.set(e, t);
3169
- }, f = function() {
3170
- for (var e = [], t = 0; t < 256; ++t) e[e.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
3171
- return e;
3172
- }(), p = function(e) {
3173
- for (; e.length > 1;) {
3174
- var t = e.pop(), n = t.obj[t.prop];
3175
- if (o(n)) {
3176
- for (var r = [], i = 0; i < n.length; ++i) n[i] !== void 0 && (r[r.length] = n[i]);
3177
- t.obj[t.prop] = r;
3178
- }
3179
- }
3180
- }, m = function(e, t) {
3181
- for (var n = t && t.plainObjects ? { __proto__: null } : {}, r = 0; r < e.length; ++r) e[r] !== void 0 && (n[r] = e[r]);
3182
- return n;
3183
- }, h = function(e, t, n) {
3184
- t === "__proto__" && i ? i(e, t, {
3185
- configurable: !0,
3186
- enumerable: !0,
3187
- value: n,
3188
- writable: !0
3189
- }) : e[t] = n;
3190
- }, g = function e(t, n, r) {
3191
- if (!n) return t;
3192
- if (typeof n != "object" && typeof n != "function") {
3193
- if (o(t)) {
3194
- var i = t.length;
3195
- if (r && typeof r.arrayLimit == "number" && i >= r.arrayLimit) {
3196
- if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3197
- return c(m(t.concat(n), r), i);
3198
- }
3199
- t[i] = n;
3200
- } else if (t && typeof t == "object") if (l(t)) {
3201
- var s = u(t) + 1;
3202
- t[s] = n, d(t, s);
3203
- } else if (r && r.strictMerge) return [t, n];
3204
- else (r && (r.plainObjects || r.allowPrototypes) || !a.call(Object.prototype, n)) && (t[n] = !0);
3205
- else return [t, n];
3206
- return t;
3207
- }
3208
- if (!t || typeof t != "object") {
3209
- if (l(n)) {
3210
- for (var f = Object.keys(n), p = r && r.plainObjects ? {
3211
- __proto__: null,
3212
- 0: t
3213
- } : { 0: t }, g = 0; g < f.length; g++) {
3214
- var _ = parseInt(f[g], 10);
3215
- p[_ + 1] = n[f[g]];
3216
- }
3217
- return c(p, u(n) + 1);
3218
- }
3219
- var v = [t].concat(n);
3220
- if (r && typeof r.arrayLimit == "number" && v.length > r.arrayLimit) {
3221
- if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3222
- return c(m(v, r), v.length - 1);
3223
- }
3224
- return v;
3225
- }
3226
- var y = t;
3227
- if (o(t) && !o(n) && (y = m(t, r)), o(t) && o(n)) {
3228
- if (n.forEach(function(n, i) {
3229
- if (a.call(t, i)) {
3230
- var o = t[i];
3231
- o && typeof o == "object" && n && typeof n == "object" ? t[i] = e(o, n, r) : t[t.length] = n;
3232
- } else t[i] = n;
3233
- }), r && typeof r.arrayLimit == "number" && t.length > r.arrayLimit) {
3234
- if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3235
- return c(m(t, r), t.length - 1);
3236
- }
3237
- return t;
3238
- }
3239
- return Object.keys(n).reduce(function(t, i) {
3240
- var o = n[i];
3241
- if (a.call(t, i) ? h(t, i, e(t[i], o, r)) : h(t, i, o), l(n) && !l(t) && c(t, u(n)), l(t)) {
3242
- var s = parseInt(i, 10);
3243
- String(s) === i && s >= 0 && s > u(t) && d(t, s);
3244
- }
3245
- return t;
3246
- }, y);
3247
- }, _ = function(e, t) {
3248
- return Object.keys(t).reduce(function(e, n) {
3249
- return h(e, n, t[n]), e;
3250
- }, e);
3251
- }, v = function(e, t, n) {
3252
- var r = e.replace(/\+/g, " ");
3253
- if (n === "iso-8859-1") return r.replace(/%[0-9a-f]{2}/gi, unescape);
3254
- try {
3255
- return decodeURIComponent(r);
3256
- } catch {
3257
- return r;
3258
- }
3259
- }, y = 1024;
3260
- t.exports = {
3261
- arrayToObject: m,
3262
- assign: _,
3263
- combine: function(e, t, n, r, i) {
3264
- if (l(e)) {
3265
- if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
3266
- for (var a = o(t) ? t : [t], s = u(e), f = 0; f < a.length; ++f) s += 1, e[s] = a[f];
3267
- return d(e, s), e;
3268
- }
3269
- var p = [].concat(e, t);
3270
- if (p.length > n) {
3271
- if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
3272
- return c(m(p, { plainObjects: r }), p.length - 1);
3273
- }
3274
- return p;
3275
- },
3276
- compact: function(e) {
3277
- for (var t = [{
3278
- obj: { o: e },
3279
- prop: "o"
3280
- }], n = r(), i = 0; i < t.length; ++i) for (var a = t[i], o = a.obj[a.prop], s = Object.keys(o), c = 0; c < s.length; ++c) {
3281
- var l = s[c], u = o[l];
3282
- typeof u == "object" && u && !n.has(u) && (t[t.length] = {
3283
- obj: o,
3284
- prop: l
3285
- }, n.set(u, !0));
3286
- }
3287
- return p(t), e;
3288
- },
3289
- decode: v,
3290
- encode: function(e, t, r, i, a) {
3291
- if (e.length === 0) return e;
3292
- var o = e;
3293
- if (typeof e == "symbol" ? o = Symbol.prototype.toString.call(e) : typeof e != "string" && (o = String(e)), r === "iso-8859-1") return escape(o).replace(/%u[0-9a-f]{4}/gi, function(e) {
3294
- return "%26%23" + parseInt(e.slice(2), 16) + "%3B";
3295
- });
3296
- for (var s = "", c = 0; c < o.length; c += y) {
3297
- var l = o.length >= y ? o.slice(c, c + y) : o;
3298
- if (c + y < o.length) {
3299
- var u = l.charCodeAt(l.length - 1);
3300
- u >= 55296 && u <= 56319 && (l = l.slice(0, -1), --c);
3301
- }
3302
- for (var d = [], p = 0; p < l.length; ++p) {
3303
- var m = l.charCodeAt(p);
3304
- if (m === 45 || m === 46 || m === 95 || m === 126 || m >= 48 && m <= 57 || m >= 65 && m <= 90 || m >= 97 && m <= 122 || a === n.RFC1738 && (m === 40 || m === 41)) {
3305
- d[d.length] = l.charAt(p);
3306
- continue;
3307
- }
3308
- if (m < 128) {
3309
- d[d.length] = f[m];
3310
- continue;
3311
- }
3312
- if (m < 2048) {
3313
- d[d.length] = f[192 | m >> 6] + f[128 | m & 63];
3314
- continue;
3315
- }
3316
- if (m < 55296 || m >= 57344) {
3317
- d[d.length] = f[224 | m >> 12] + f[128 | m >> 6 & 63] + f[128 | m & 63];
3318
- continue;
3319
- }
3320
- p += 1, m = 65536 + ((m & 1023) << 10 | l.charCodeAt(p) & 1023), d[d.length] = f[240 | m >> 18] + f[128 | m >> 12 & 63] + f[128 | m >> 6 & 63] + f[128 | m & 63];
3321
- }
3322
- s += d.join("");
3323
- }
3324
- return s;
3325
- },
3326
- isBuffer: function(e) {
3327
- return !e || typeof e != "object" ? !1 : !!(e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
3328
- },
3329
- isOverflow: l,
3330
- isRegExp: function(e) {
3331
- return Object.prototype.toString.call(e) === "[object RegExp]";
3332
- },
3333
- markOverflow: c,
3334
- maybeMap: function(e, t) {
3335
- if (o(e)) {
3336
- for (var n = [], r = 0; r < e.length; r += 1) n[n.length] = t(e[r]);
3337
- return n;
3338
- }
3339
- return t(e);
3340
- },
3341
- merge: g
3342
- };
3343
- })), Ur = /* @__PURE__ */ A(((e, t) => {
3344
- var n = Br(), r = Hr(), i = Vr(), a = Object.prototype.hasOwnProperty, o = {
3345
- brackets: function(e) {
3346
- return e + "[]";
3347
- },
3348
- comma: "comma",
3349
- indices: function(e, t) {
3350
- return e + "[" + t + "]";
3351
- },
3352
- repeat: function(e) {
3353
- return e;
3354
- }
3355
- }, s = Array.isArray, c = Array.prototype.push, l = function(e, t) {
3356
- c.apply(e, s(t) ? t : [t]);
3357
- }, u = Date.prototype.toISOString, d = i.default, f = {
3358
- addQueryPrefix: !1,
3359
- allowDots: !1,
3360
- allowEmptyArrays: !1,
3361
- arrayFormat: "indices",
3362
- charset: "utf-8",
3363
- charsetSentinel: !1,
3364
- commaRoundTrip: !1,
3365
- delimiter: "&",
3366
- depth: Infinity,
3367
- encode: !0,
3368
- encodeDotInKeys: !1,
3369
- encoder: r.encode,
3370
- encodeValuesOnly: !1,
3371
- filter: void 0,
3372
- format: d,
3373
- formatter: i.formatters[d],
3374
- indices: !1,
3375
- serializeDate: function(e) {
3376
- return u.call(e);
3377
- },
3378
- skipNulls: !1,
3379
- strictNullHandling: !1
3380
- }, p = function(e) {
3381
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
3382
- }, m = {}, h = function e(t, i, a, o, c, u, d, h, g, _, v, y, b, x, S, C, w, T, E, D) {
3383
- var O = t;
3384
- if (D > E) throw RangeError("Input depth exceeded depth option of " + E);
3385
- for (var k = T, A = 0, j = !1; (k = k.get(m)) !== void 0 && !j;) {
3386
- var M = k.get(t);
3387
- if (A += 1, M !== void 0) {
3388
- if (M === A) throw RangeError("Cyclic object value");
3389
- j = !0;
3390
- }
3391
- k.get(m) === void 0 && (A = 0);
3392
- }
3393
- if (O = typeof _ == "function" ? _(i, O) : O, O instanceof Date ? O = b(O) : a === "comma" && s(O) && (O = r.maybeMap(O, function(e) {
3394
- return e instanceof Date ? b(e) : e;
3395
- })), O === null) {
3396
- if (u) return S(g && !C ? g(i, f.encoder, w, "key", x) : i);
3397
- O = "";
3398
- }
3399
- if (p(O) || r.isBuffer(O)) return g ? [S(C ? i : g(i, f.encoder, w, "key", x)) + "=" + S(g(O, f.encoder, w, "value", x))] : [S(i) + "=" + S(String(O))];
3400
- var N = [];
3401
- if (O === void 0) return N;
3402
- var P;
3403
- if (a === "comma" && s(O)) C && g && (O = r.maybeMap(O, function(e) {
3404
- return e == null ? e : g(e);
3405
- })), P = [{ value: O.length > 0 ? O.join(",") || null : void 0 }];
3406
- else if (s(_)) P = _;
3407
- else {
3408
- var F = Object.keys(O);
3409
- P = v ? F.sort(v) : F;
3410
- }
3411
- var I = h ? String(i).replace(/\./g, "%2E") : String(i), L = o && s(O) && O.length === 1 ? I + "[]" : I;
3412
- if (c && s(O) && O.length === 0 && Object.keys(O).length === 0) return L + "[]";
3413
- for (var R = 0; R < P.length; ++R) {
3414
- var z = P[R], B = typeof z == "object" && z && z.value !== void 0 ? z.value : O[z];
3415
- if (!(d && B === null)) {
3416
- var V = y && h ? String(z).replace(/\./g, "%2E") : String(z), H = s(O) ? typeof a == "function" ? a(L, V) : L : L + (y ? "." + V : "[" + V + "]");
3417
- T.set(t, A);
3418
- var ee = n();
3419
- ee.set(m, T), l(N, e(B, H, a, o, c, u, d, h, a === "comma" && C && s(O) ? null : g, _, v, y, b, x, S, C, w, ee, E, D + 1));
3420
- }
3421
- }
3422
- return N;
3423
- }, g = function(e) {
3424
- if (!e) return f;
3425
- if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3426
- if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3427
- if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
3428
- var t = e.charset || f.charset;
3429
- if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3430
- var n = i.default;
3431
- if (e.format !== void 0) {
3432
- if (!a.call(i.formatters, e.format)) throw TypeError("Unknown format option provided.");
3433
- n = e.format;
3434
- }
3435
- var r = i.formatters[n], c = f.filter;
3436
- (typeof e.filter == "function" || s(e.filter)) && (c = e.filter);
3437
- var l = e.arrayFormat in o ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : f.arrayFormat;
3438
- if ("commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
3439
- var u = e.allowDots === void 0 ? e.encodeDotInKeys === !0 || f.allowDots : !!e.allowDots;
3440
- return {
3441
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : f.addQueryPrefix,
3442
- allowDots: u,
3443
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : f.allowEmptyArrays,
3444
- arrayFormat: l,
3445
- charset: t,
3446
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : f.charsetSentinel,
3447
- commaRoundTrip: !!e.commaRoundTrip,
3448
- delimiter: e.delimiter === void 0 ? f.delimiter : e.delimiter,
3449
- depth: typeof e.depth == "number" ? e.depth : f.depth,
3450
- encode: typeof e.encode == "boolean" ? e.encode : f.encode,
3451
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : f.encodeDotInKeys,
3452
- encoder: typeof e.encoder == "function" ? e.encoder : f.encoder,
3453
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : f.encodeValuesOnly,
3454
- filter: c,
3455
- format: n,
3456
- formatter: r,
3457
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : f.serializeDate,
3458
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : f.skipNulls,
3459
- sort: typeof e.sort == "function" ? e.sort : null,
3460
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : f.strictNullHandling
3461
- };
3462
- };
3463
- t.exports = function(e, t) {
3464
- var r = e, i = g(t), a, c;
3465
- typeof i.filter == "function" ? (c = i.filter, r = c("", r)) : s(i.filter) && (c = i.filter, a = c);
3466
- var u = [];
3467
- if (typeof r != "object" || !r) return "";
3468
- var d = o[i.arrayFormat], f = d === "comma" && i.commaRoundTrip;
3469
- a ||= Object.keys(r), i.sort && a.sort(i.sort);
3470
- for (var p = n(), m = 0; m < a.length; ++m) {
3471
- var _ = a[m];
3472
- if (_ != null) {
3473
- var v = r[_];
3474
- i.skipNulls && v === null || l(u, h(v, i.encodeDotInKeys ? String(_).replace(/\./g, "%2E") : String(_), d, f, i.allowEmptyArrays, i.strictNullHandling, i.skipNulls, i.encodeDotInKeys, i.encode ? i.encoder : null, i.filter, i.sort, i.allowDots, i.serializeDate, i.format, i.formatter, i.encodeValuesOnly, i.charset, p, i.depth, 0));
3475
- }
3476
- }
3477
- var y = u.join(i.delimiter), b = i.addQueryPrefix === !0 ? "?" : "";
3478
- return i.charsetSentinel && (i.charset === "iso-8859-1" ? b += "utf8=%26%2310003%3B" + i.delimiter : b += "utf8=%E2%9C%93" + i.delimiter), y.length > 0 ? b + y : "";
3479
- };
3480
- })), Wr = /* @__PURE__ */ A(((e, t) => {
3481
- var n = Hr(), r = Object.prototype.hasOwnProperty, i = Array.isArray, a = {
3482
- allowDots: !1,
3483
- allowEmptyArrays: !1,
3484
- allowPrototypes: !1,
3485
- allowSparse: !1,
3486
- arrayLimit: 20,
3487
- charset: "utf-8",
3488
- charsetSentinel: !1,
3489
- comma: !1,
3490
- decodeDotInKeys: !1,
3491
- decoder: n.decode,
3492
- delimiter: "&",
3493
- depth: 5,
3494
- duplicates: "combine",
3495
- ignoreQueryPrefix: !1,
3496
- interpretNumericEntities: !1,
3497
- parameterLimit: 1e3,
3498
- parseArrays: !0,
3499
- plainObjects: !1,
3500
- strictDepth: !1,
3501
- strictMerge: !0,
3502
- strictNullHandling: !1,
3503
- throwOnLimitExceeded: !1
3504
- }, o = function(e) {
3505
- return e.replace(/&#(\d+);/g, function(e, t) {
3506
- return String.fromCharCode(parseInt(t, 10));
3507
- });
3508
- }, s = function(e, t, n) {
3509
- if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1) {
3510
- if (t.throwOnLimitExceeded) for (var r = 0, i = e.indexOf(","); i > -1;) {
3511
- if (r += 1, r >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3512
- i = e.indexOf(",", i + 1);
3513
- }
3514
- return e.split(",");
3515
- }
3516
- if (t.throwOnLimitExceeded && n >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3517
- return e;
3518
- }, c = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", u = function(e, t) {
3519
- var u = { __proto__: null }, d = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
3520
- d = d.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3521
- var f = t.parameterLimit === Infinity ? void 0 : t.parameterLimit, p = d.split(t.delimiter, t.throwOnLimitExceeded && f !== void 0 ? f + 1 : f);
3522
- if (t.throwOnLimitExceeded && f !== void 0 && p.length > f) throw RangeError("Parameter limit exceeded. Only " + f + " parameter" + (f === 1 ? "" : "s") + " allowed.");
3523
- var m = -1, h, g = t.charset;
3524
- if (t.charsetSentinel) for (h = 0; h < p.length; ++h) p[h].indexOf("utf8=") === 0 && (p[h] === l ? g = "utf-8" : p[h] === c && (g = "iso-8859-1"), m = h, h = p.length);
3525
- for (h = 0; h < p.length; ++h) if (h !== m) {
3526
- var _ = p[h], v = _.indexOf("]="), y = v === -1 ? _.indexOf("=") : v + 1, b, x;
3527
- if (y === -1 ? (b = t.decoder(_, a.decoder, g, "key"), x = t.strictNullHandling ? null : "") : (b = t.decoder(_.slice(0, y), a.decoder, g, "key"), b !== null && (x = n.maybeMap(s(_.slice(y + 1), t, i(u[b]) ? u[b].length : 0), function(e) {
3528
- return t.decoder(e, a.decoder, g, "value");
3529
- }))), x && t.interpretNumericEntities && g === "iso-8859-1" && (x = o(String(x))), _.indexOf("[]=") > -1 && (x = i(x) ? [x] : x), t.comma && i(x) && x.length > t.arrayLimit && (x = n.combine([], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded)), b !== null) {
3530
- var S = r.call(u, b);
3531
- S && (t.duplicates === "combine" || _.indexOf("[]=") > -1) ? u[b] = n.combine(u[b], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded) : (!S || t.duplicates === "last") && (u[b] = x);
3532
- }
3533
- }
3534
- return u;
3535
- }, d = function(e, t, r, i) {
3536
- var a = 0;
3537
- if (e.length > 0 && e[e.length - 1] === "[]") {
3538
- var o = e.slice(0, -1).join("");
3539
- a = Array.isArray(t) && t[o] ? t[o].length : 0;
3540
- }
3541
- for (var c = i ? t : s(t, r, a), l = e.length - 1; l >= 0; --l) {
3542
- var u, d = e[l];
3543
- if (d === "[]" && r.parseArrays) u = n.isOverflow(c) ? c : r.allowEmptyArrays && (c === "" || r.strictNullHandling && c === null) ? [] : n.combine([], c, r.arrayLimit, r.plainObjects, r.throwOnLimitExceeded);
3544
- else {
3545
- u = r.plainObjects ? { __proto__: null } : {};
3546
- var f = d.charAt(0) === "[" && d.charAt(d.length - 1) === "]" ? d.slice(1, -1) : d, p = r.decodeDotInKeys ? f.replace(/%2E/g, ".") : f, m = parseInt(p, 10), h = !isNaN(m) && d !== p && String(m) === p && m >= 0 && r.parseArrays;
3547
- if (!r.parseArrays && p === "") u = { 0: c };
3548
- else if (h && m < r.arrayLimit) u = [], u[m] = c;
3549
- else if (h && r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3550
- else h ? (u[m] = c, n.markOverflow(u, m)) : p !== "__proto__" && (u[p] = c);
3551
- }
3552
- c = u;
3553
- }
3554
- return c;
3555
- }, f = function(e, t) {
3556
- var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
3557
- if (t.depth <= 0) return !t.plainObjects && r.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
3558
- var i = [], a = n.indexOf("["), o = a >= 0 ? n.slice(0, a) : n;
3559
- if (o) {
3560
- if (!t.plainObjects && r.call(Object.prototype, o) && !t.allowPrototypes) return;
3561
- i[i.length] = o;
3562
- }
3563
- for (var s = n.length, c = a, l = 0; c >= 0 && l < t.depth;) {
3564
- for (var u = 1, d = c + 1, f = -1; d < s && f < 0;) {
3565
- var p = n.charCodeAt(d);
3566
- p === 91 ? u += 1 : p === 93 && (--u, u === 0 && (f = d)), d += 1;
3567
- }
3568
- if (f < 0) return i[i.length] = "[" + n.slice(c) + "]", i;
3569
- var m = n.slice(c, f + 1), h = m.slice(1, -1);
3570
- if (!t.plainObjects && r.call(Object.prototype, h) && !t.allowPrototypes) return;
3571
- i[i.length] = m, l += 1, c = n.indexOf("[", f + 1);
3572
- }
3573
- if (c >= 0) {
3574
- if (t.strictDepth === !0) throw RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
3575
- i[i.length] = "[" + n.slice(c) + "]";
3576
- }
3577
- return i;
3578
- }, p = function(e, t, n, r) {
3579
- if (e) {
3580
- var i = f(e, n);
3581
- if (i) return d(i, t, n, r);
3582
- }
3583
- }, m = function(e) {
3584
- if (!e) return a;
3585
- if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3586
- if (e.decodeDotInKeys !== void 0 && typeof e.decodeDotInKeys != "boolean") throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3587
- if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function") throw TypeError("Decoder has to be a function.");
3588
- if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3589
- if (e.throwOnLimitExceeded !== void 0 && typeof e.throwOnLimitExceeded != "boolean") throw TypeError("`throwOnLimitExceeded` option must be a boolean");
3590
- var t = e.charset === void 0 ? a.charset : e.charset, r = e.duplicates === void 0 ? a.duplicates : e.duplicates;
3591
- if (r !== "combine" && r !== "first" && r !== "last") throw TypeError("The duplicates option must be either combine, first, or last");
3592
- return {
3593
- allowDots: e.allowDots === void 0 ? e.decodeDotInKeys === !0 || a.allowDots : !!e.allowDots,
3594
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : a.allowEmptyArrays,
3595
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : a.allowPrototypes,
3596
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : a.allowSparse,
3597
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : a.arrayLimit,
3598
- charset: t,
3599
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : a.charsetSentinel,
3600
- comma: typeof e.comma == "boolean" ? e.comma : a.comma,
3601
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : a.decodeDotInKeys,
3602
- decoder: typeof e.decoder == "function" ? e.decoder : a.decoder,
3603
- delimiter: typeof e.delimiter == "string" || n.isRegExp(e.delimiter) ? e.delimiter : a.delimiter,
3604
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : a.depth,
3605
- duplicates: r,
3606
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
3607
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : a.interpretNumericEntities,
3608
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : a.parameterLimit,
3609
- parseArrays: e.parseArrays !== !1,
3610
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : a.plainObjects,
3611
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : a.strictDepth,
3612
- strictMerge: typeof e.strictMerge == "boolean" ? !!e.strictMerge : a.strictMerge,
3613
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : a.strictNullHandling,
3614
- throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" && e.throwOnLimitExceeded
3615
- };
3616
- };
3617
- t.exports = function(e, t) {
3618
- var r = m(t);
3619
- if (e === "" || e == null) return r.plainObjects ? { __proto__: null } : {};
3620
- for (var i = typeof e == "string" ? u(e, r) : e, a = r.plainObjects ? { __proto__: null } : {}, o = Object.keys(i), s = 0; s < o.length; ++s) {
3621
- var c = o[s], l = p(c, i[c], r, typeof e == "string");
3622
- a = n.merge(a, l, r);
3623
- }
3624
- return r.allowSparse === !0 ? a : n.compact(a);
3625
- };
3626
- })), Gr = /* @__PURE__ */ N((/* @__PURE__ */ A(((e, t) => {
3627
- var n = Ur(), r = Wr();
3628
- t.exports = {
3629
- formats: Vr(),
3630
- parse: r,
3631
- stringify: n
3632
- };
3633
- })))(), 1), Kr = "eq";
3634
- async function qr(e, t, n) {
3635
- let { isLocal: r, remoteParamsArray: i, customFilterFn: o, keyData: s, url: c } = n;
3636
- if (n?.dataAnalyticsFilter) {
3637
- let e = window.location.hash.slice(1).split("?")[0];
3638
- a(n.dataAnalyticsFilter, e);
3639
- }
3640
- if (!r) return _(e);
3641
- let l, { remote: u, local: d } = Jr(e, i), { remote: f, local: p } = Jr(n.appliedParams, i), m = !n.appliedParams || !Q(u, f), h = !n.appliedParams || !Q(d, p), g = h ? d : p;
3642
- return (!m && !h || !n?.rawResponse || m) && c && (l = await _(u)), l = Yr(n.rawResponse, g, o, s, n), n.appliedParams = JSON.parse(JSON.stringify(e)), l;
3643
- async function _(r) {
3644
- let i = {
3645
- ...r,
3646
- filter: JSON.stringify(r.filter)
3647
- }, a = await C.get(n.url, {
3648
- signal: t.signal,
3649
- params: i,
3650
- paramsSerializer: (e) => Gr.default.stringify(e, { skipNulls: !1 })
3651
- });
3652
- return n.appliedParams = JSON.parse(JSON.stringify(e)), n.rawResponse = structuredClone(a.data), a;
3653
- }
3654
- }
3655
- function Jr(e, t = []) {
3656
- let n = (e) => e && typeof e == "object" && !Array.isArray(e), r = n(e) ? e : {}, i = Array.isArray(t) ? t.filter((e) => typeof e == "string") : [], a = new Set(i), o = Qn(r, i), s = Object.fromEntries(Object.entries(r).filter(([e]) => e !== "filter" && !a.has(e))), c = n(r.filter) ? r.filter : null;
3657
- if (!c) return {
3658
- remote: o,
3659
- local: s
3660
- };
3661
- let l = {}, u = {};
3662
- if (n(c.where)) {
3663
- let e = Qn(c.where, i), t = Object.fromEntries(Object.entries(c.where).filter(([e]) => !a.has(e)));
3664
- Object.keys(t).length && (l.where = t), Object.keys(e).length && (u.where = e);
3665
- }
3666
- if (Array.isArray(c.order)) {
3667
- let e = (e) => {
3668
- if (typeof e != "string") return !1;
3669
- let t = e.toLowerCase();
3670
- return i.some((e) => {
3671
- let n = e.toLowerCase();
3672
- return t === n || t.startsWith(`${n} `) || t.includes(`.${n} `);
3673
- });
3674
- }, t = c.order.filter(e), n = c.order.filter((t) => !e(t));
3675
- n.length && (l.order = n), t.length && (u.order = t);
3676
- }
3677
- return Object.assign(u, Object.fromEntries(Object.entries(c).filter(([e]) => e !== "where" && e !== "order"))), Object.keys(l).length && (s.filter = l), Object.keys(u).length && (o.filter = u), {
3678
- remote: o,
3679
- local: s
3680
- };
3681
- }
3682
- function Yr(e, t, n, r, a) {
3683
- let { isStackableParams: o, nonStackableParams: s, stackedParams: c } = a, l = r ? e[r] : e ?? a.data, u = JSON.parse(JSON.stringify(t)), d = u?.filter, f = d?.order, p = d?.where, m = JSON.parse(JSON.stringify(u));
3684
- delete m.filter;
3685
- let h = Object.keys(p ?? {}).length, g = Object.keys(m ?? {}).length, _ = o && c.length;
3686
- if (h || g || _) {
3687
- let e = [];
3688
- p && r(p, e), m && r(m, e), o && t(a, e);
3689
- function t(e, t) {
3690
- t.push(...e.stackedParams.filter((e) => !t.find((t) => t.column === e.column && t.operator === e.operator && !Array.isArray(e.value) && Q(t.value, e.value)))), o && (e.stackedParams = t.filter((e) => !s?.includes(e.column)));
3691
- }
3692
- function r(e, t) {
3693
- for (let n in e) {
3694
- let r = e[n] && typeof e[n] == "object" && !Array.isArray(e[n]), i = r ? Object.keys(e[n])[0] : Kr, a = r ? e[n][i] : e[n];
3695
- t.push({
3696
- column: n,
3697
- operator: i,
3698
- value: a
3699
- });
3700
- }
3701
- }
3702
- function c(e, t) {
3703
- let n;
3704
- for (let r of t) {
3705
- try {
3706
- let t = i?.[r.operator]?.localEval;
3707
- n = t ? t(e[r.column], r.value) : !1;
3708
- } catch (n) {
3709
- return console.error("fetchLocalData filter comparison error", {
3710
- row: e,
3711
- filter: r,
3712
- filters: t,
3713
- error: n
3714
- }), !1;
3715
- }
3716
- if (!n) break;
3717
- }
3718
- return n;
3719
- }
3720
- let u = n ? (t) => n(t, e, c) : (t) => c(t, e);
3721
- l = l.filter(u);
3722
- }
3723
- if (f) {
3724
- let e = Xr(f);
3725
- l = ei(l, e);
3726
- }
3727
- let v;
3728
- return v = r ? {
3729
- ...e,
3730
- [r]: l
3731
- } : { data: l }, v;
3732
- }
3733
- function Xr(e) {
3734
- return typeof e == "string" && (e = e.split(",")), e.map((e) => {
3735
- let [t, n = "asc"] = e.trim().split(/\s+/);
3736
- return {
3737
- key: t,
3738
- order: n.toLowerCase() === "desc" ? "desc" : "asc"
3739
- };
3740
- });
3741
- }
3742
- function Zr(e) {
3743
- if (e == null) return null;
3744
- if (e instanceof Date) return e.getTime();
3745
- if (typeof e == "boolean") return +!!e;
3746
- if (typeof e == "number") return e;
3747
- if (typeof e == "string") {
3748
- let t = Number(e);
3749
- if (!isNaN(t) && e.trim() !== "") return t;
3750
- if (Qr(e)) {
3751
- let t = new Date(e);
3752
- if (!isNaN(t.getTime())) return t.getTime();
3753
- }
3754
- return e.toLowerCase();
3755
- }
3756
- return e;
3757
- }
3758
- function Qr(e) {
3759
- return /^(\d{4}-\d{2}-\d{2})([T ][\d:.+-]+(?:Z)?)?$/.test(e.trim());
3760
- }
3761
- function $r(e, t, n) {
3762
- let r = n === "asc" ? 1 : -1, i = Zr(e), a = Zr(t);
3763
- return i == null && a == null ? 0 : i == null ? 1 : a == null ? -1 : typeof i == "string" && typeof a == "string" ? r * i.localeCompare(a) : i > a ? r : i < a ? -r : 0;
3764
- }
3765
- function ei(e, t) {
3766
- return [...e].sort((e, n) => {
3767
- for (let { key: r, order: i } of t) {
3768
- let t = $r(e[r], n[r], i);
3769
- if (t !== 0) return t;
3770
- }
3771
- return 0;
3772
- });
3773
- }
3774
- //#endregion
3775
- //#region lib/composables/useState.js
3776
- var ti = v({}), ni = v({
3777
- id: 0,
3778
- name: "",
3779
- nickname: "",
3780
- lang: "",
3781
- darkMode: null,
3782
- companyFk: null,
3783
- warehouseFk: null,
3784
- centralWeekPlacement: null,
3785
- yearScope: null
3786
- });
3787
- sessionStorage.getItem("user") && (ni.value = JSON.parse(sessionStorage.getItem("user")));
3788
- var ri = v([]), ii = v([]), ai = v(!0), oi = v(!1);
3789
- function si() {
3790
- function e() {
3791
- return c(() => ni.value);
3792
- }
3793
- function t(e) {
3794
- let t = {
3795
- ...JSON.parse(sessionStorage.getItem("user")),
3796
- ...e
3797
- };
3798
- return sessionStorage.setItem("user", JSON.stringify(t)), ni.value = t, t;
3799
- }
3800
- function n() {
3801
- return c(() => ri.value);
3802
- }
3803
- function r(e) {
3804
- ri.value = e;
3805
- }
3806
- function i() {
3807
- return c(() => ii.value);
3808
- }
3809
- function a(e) {
3810
- ii.value = e;
3811
- }
3812
- function o(e, t) {
3813
- ti.value[e] = v(t);
3814
- }
3815
- function s(e) {
3816
- return ti.value[e];
3817
- }
3818
- function l(e) {
3819
- delete ti.value[e];
3820
- }
3821
- return {
3822
- getUser: e,
3823
- setUser: t,
3824
- getRoles: n,
3825
- setRoles: r,
3826
- getAcls: i,
3827
- setAcls: a,
3828
- set: o,
3829
- get: s,
3830
- unset: l,
3831
- drawer: ai,
3832
- headerMounted: oi
3833
- };
3834
- }
3835
- //#endregion
3836
- export { Re as A, Ce as B, Qt as C, Bt as D, Vt as E, Oe as F, _e as G, be as H, Te as I, V as J, me as K, Ee as L, Le as M, Ie as N, J as O, ke as P, G as R, en as S, Kt as T, ve as U, K as V, ye as W, L as X, R as Y, j as Z, yn as _, Qn as a, nn as b, Q as c, Tn as d, Sn as f, hn as g, mn as h, qr as i, ze as j, ot as k, er as l, bn as m, Yr as n, $n as o, xn as p, pe as q, Jr as r, Z as s, si as t, Zn as u, vn as v, $t as w, tn as x, rn as y, we as z };