@luizleon/sf.prefeiturasp.vuecomponents 0.0.36 → 0.0.37
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.
- package/dist/lib.es.js +655 -665
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +2 -2
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -22
- package/src/services/authService.ts +11 -1
- package/src/style/tema.scss +4 -2
package/dist/lib.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var $s = Object.defineProperty;
|
|
2
2
|
var js = (t, e, n) => e in t ? $s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var We = (t, e, n) => (js(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as pt, openBlock as ie, createElementBlock as Te, createElementVNode as X, defineComponent as Je, normalizeStyle as to, normalizeClass as Ce, mergeProps as zs, createBlock as
|
|
5
|
-
class
|
|
4
|
+
import { ref as pt, openBlock as ie, createElementBlock as Te, createElementVNode as X, defineComponent as Je, normalizeStyle as to, normalizeClass as Ce, mergeProps as zs, createBlock as yt, Fragment as vr, createTextVNode as Vs, toDisplayString as ln, createCommentVNode as no, computed as Ws, onMounted as un, unref as ot, createStaticVNode as qs, createVNode as Lt, renderSlot as qe, resolveComponent as Ar, withCtx as Er, onBeforeUnmount as Ks, renderList as Gs } from "vue";
|
|
5
|
+
class Js {
|
|
6
6
|
constructor() {
|
|
7
7
|
We(this, "_visible", pt(!1));
|
|
8
8
|
}
|
|
@@ -19,14 +19,14 @@ class Ys {
|
|
|
19
19
|
this._visible.value = !0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Ys = new Js(), kr = () => Ys;
|
|
23
23
|
var xr = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(xr || {}), Ot = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(Ot || {});
|
|
24
24
|
const Sr = (t, e) => {
|
|
25
25
|
const n = t.__vccOpts || t;
|
|
26
26
|
for (const [o, r] of e)
|
|
27
27
|
n[o] = r;
|
|
28
28
|
return n;
|
|
29
|
-
},
|
|
29
|
+
}, Xs = {}, Zs = { class: "sf-loading-circle" }, Qs = /* @__PURE__ */ X("div", null, [
|
|
30
30
|
/* @__PURE__ */ X("svg", { viewBox: "25 25 50 50" }, [
|
|
31
31
|
/* @__PURE__ */ X("circle", {
|
|
32
32
|
cx: "50",
|
|
@@ -37,13 +37,13 @@ const Sr = (t, e) => {
|
|
|
37
37
|
"stroke-miterlimit": "10"
|
|
38
38
|
})
|
|
39
39
|
])
|
|
40
|
-
], -1),
|
|
41
|
-
|
|
40
|
+
], -1), ei = [
|
|
41
|
+
Qs
|
|
42
42
|
];
|
|
43
|
-
function
|
|
44
|
-
return ie(), Te("div",
|
|
43
|
+
function ti(t, e) {
|
|
44
|
+
return ie(), Te("div", Zs, ei);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const ni = /* @__PURE__ */ Sr(Xs, [["render", ti]]);
|
|
47
47
|
class ht {
|
|
48
48
|
/**
|
|
49
49
|
* Creates a new instance of the CssClassBuilder class.
|
|
@@ -78,7 +78,7 @@ class ht {
|
|
|
78
78
|
return this.retorno.trim();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const oi = ["disabled", "tabindex"], ri = ["data-color"], rn = /* @__PURE__ */ Je({
|
|
82
82
|
__name: "Icon",
|
|
83
83
|
props: {
|
|
84
84
|
icone: {},
|
|
@@ -108,17 +108,17 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
108
108
|
}, e.buttonProps, {
|
|
109
109
|
tabindex: e.button ? void 0 : -1
|
|
110
110
|
}), [
|
|
111
|
-
e.loading ? (ie(),
|
|
111
|
+
e.loading ? (ie(), yt(ni, { key: 0 })) : (ie(), Te(vr, { key: 1 }, [
|
|
112
112
|
Vs(ln(e.icone), 1)
|
|
113
113
|
], 64))
|
|
114
|
-
], 16,
|
|
114
|
+
], 16, oi),
|
|
115
115
|
e.dot ? (ie(), Te("span", {
|
|
116
116
|
key: 0,
|
|
117
117
|
"data-color": e.dotColor
|
|
118
|
-
}, null, 8,
|
|
118
|
+
}, null, 8, ri)) : no("", !0)
|
|
119
119
|
], 6));
|
|
120
120
|
}
|
|
121
|
-
}), _r = "SweetAlert2:",
|
|
121
|
+
}), _r = "SweetAlert2:", si = (t) => {
|
|
122
122
|
const e = [];
|
|
123
123
|
for (let n = 0; n < t.length; n++)
|
|
124
124
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
@@ -127,10 +127,10 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
127
127
|
console.warn(`${_r} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
128
128
|
}, it = (t) => {
|
|
129
129
|
console.error(`${_r} ${t}`);
|
|
130
|
-
}, Ho = [],
|
|
130
|
+
}, Ho = [], ii = (t) => {
|
|
131
131
|
Ho.includes(t) || (Ho.push(t), Se(t));
|
|
132
|
-
},
|
|
133
|
-
|
|
132
|
+
}, ai = (t, e) => {
|
|
133
|
+
ii(
|
|
134
134
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
135
135
|
);
|
|
136
136
|
}, dn = (t) => typeof t == "function" ? t() : t, ro = (t) => t && typeof t.toPromise == "function", Mt = (t) => ro(t) ? t.toPromise() : Promise.resolve(t), so = (t) => t && Promise.resolve(t) === t, mt = {
|
|
@@ -221,7 +221,7 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
221
221
|
didClose: void 0,
|
|
222
222
|
didDestroy: void 0,
|
|
223
223
|
scrollbarPadding: !0
|
|
224
|
-
},
|
|
224
|
+
}, ci = [
|
|
225
225
|
"allowEscapeKey",
|
|
226
226
|
"allowOutsideClick",
|
|
227
227
|
"background",
|
|
@@ -265,7 +265,7 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
265
265
|
"title",
|
|
266
266
|
"titleText",
|
|
267
267
|
"willClose"
|
|
268
|
-
],
|
|
268
|
+
], li = {}, ui = [
|
|
269
269
|
"allowOutsideClick",
|
|
270
270
|
"allowEnterKey",
|
|
271
271
|
"backdrop",
|
|
@@ -275,20 +275,20 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
275
275
|
"returnFocus",
|
|
276
276
|
"heightAuto",
|
|
277
277
|
"keydownListenerCapture"
|
|
278
|
-
], Cr = (t) => Object.prototype.hasOwnProperty.call(mt, t), Tr = (t) =>
|
|
278
|
+
], Cr = (t) => Object.prototype.hasOwnProperty.call(mt, t), Tr = (t) => ci.indexOf(t) !== -1, jn = (t) => li[t], di = (t) => {
|
|
279
279
|
Cr(t) || Se(`Unknown parameter "${t}"`);
|
|
280
|
+
}, fi = (t) => {
|
|
281
|
+
ui.includes(t) && Se(`The parameter "${t}" is incompatible with toasts`);
|
|
280
282
|
}, hi = (t) => {
|
|
281
|
-
|
|
283
|
+
jn(t) && ai(t, jn(t));
|
|
282
284
|
}, pi = (t) => {
|
|
283
|
-
jn(t) && ci(t, jn(t));
|
|
284
|
-
}, mi = (t) => {
|
|
285
285
|
!t.backdrop && t.allowOutsideClick && Se('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
286
286
|
for (const e in t)
|
|
287
|
-
|
|
288
|
-
},
|
|
287
|
+
di(e), t.toast && fi(e), hi(e);
|
|
288
|
+
}, mi = "swal2-", Pr = (t) => {
|
|
289
289
|
const e = {};
|
|
290
290
|
for (const n in t)
|
|
291
|
-
e[t[n]] =
|
|
291
|
+
e[t[n]] = mi + t[n];
|
|
292
292
|
return e;
|
|
293
293
|
}, f = Pr([
|
|
294
294
|
"container",
|
|
@@ -363,7 +363,7 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
363
363
|
]), Ft = Pr(["success", "warning", "info", "question", "error"]), pe = () => document.body.querySelector(`.${f.container}`), Ht = (t) => {
|
|
364
364
|
const e = pe();
|
|
365
365
|
return e ? e.querySelector(t) : null;
|
|
366
|
-
}, Be = (t) => Ht(`.${t}`), Z = () => Be(f.popup), $t = () => Be(f.icon), Rr = () => Be(f.title), sn = () => Be(f["html-container"]), Lr = () => Be(f.image), Or = () => Be(f["progress-steps"]), fn = () => Be(f["validation-message"]), Ne = () => Ht(`.${f.actions} .${f.confirm}`), Ze = () => Ht(`.${f.actions} .${f.deny}`),
|
|
366
|
+
}, Be = (t) => Ht(`.${t}`), Z = () => Be(f.popup), $t = () => Be(f.icon), Rr = () => Be(f.title), sn = () => Be(f["html-container"]), Lr = () => Be(f.image), Or = () => Be(f["progress-steps"]), fn = () => Be(f["validation-message"]), Ne = () => Ht(`.${f.actions} .${f.confirm}`), Ze = () => Ht(`.${f.actions} .${f.deny}`), gi = () => Be(f["input-label"]), At = () => Ht(`.${f.loader}`), rt = () => Ht(`.${f.actions} .${f.cancel}`), jt = () => Be(f.actions), Ir = () => Be(f.footer), hn = () => Be(f["timer-progress-bar"]), io = () => Be(f.close), bi = `
|
|
367
367
|
a[href],
|
|
368
368
|
area[href],
|
|
369
369
|
input:not([disabled]),
|
|
@@ -387,8 +387,8 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
387
387
|
}), e = Re(Z().querySelectorAll(bi)).filter(
|
|
388
388
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
389
389
|
);
|
|
390
|
-
return
|
|
391
|
-
}, co = () => Ke(document.body, f.shown) && !Ke(document.body, f["toast-shown"]) && !Ke(document.body, f["no-backdrop"]), pn = () => Z() && Ke(Z(), f.toast),
|
|
390
|
+
return si(t.concat(e)).filter((n) => Pe(n));
|
|
391
|
+
}, co = () => Ke(document.body, f.shown) && !Ke(document.body, f["toast-shown"]) && !Ke(document.body, f["no-backdrop"]), pn = () => Z() && Ke(Z(), f.toast), yi = () => Z().hasAttribute("data-loading"), gt = {
|
|
392
392
|
previousBodyPadding: null
|
|
393
393
|
}, he = (t, e) => {
|
|
394
394
|
if (t.textContent = "", e) {
|
|
@@ -407,12 +407,12 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
407
407
|
if (!t.classList.contains(n[o]))
|
|
408
408
|
return !1;
|
|
409
409
|
return !0;
|
|
410
|
-
},
|
|
410
|
+
}, wi = (t, e) => {
|
|
411
411
|
Re(t.classList).forEach((n) => {
|
|
412
412
|
!Object.values(f).includes(n) && !Object.values(Ft).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
413
413
|
});
|
|
414
414
|
}, Ie = (t, e, n) => {
|
|
415
|
-
if (
|
|
415
|
+
if (wi(t, e), e.customClass && e.customClass[n]) {
|
|
416
416
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
417
417
|
return Se(
|
|
418
418
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
@@ -467,7 +467,7 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
467
467
|
r && (r.style[n] = o);
|
|
468
468
|
}, mn = (t, e, n) => {
|
|
469
469
|
e ? ue(t, n) : me(t);
|
|
470
|
-
}, Pe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)),
|
|
470
|
+
}, Pe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), vi = () => !Pe(Ne()) && !Pe(Ze()) && !Pe(rt()), jo = (t) => t.scrollHeight > t.clientHeight, Nr = (t) => {
|
|
471
471
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
472
472
|
return n > 0 || o > 0;
|
|
473
473
|
}, uo = (t, e = !1) => {
|
|
@@ -475,21 +475,21 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
475
475
|
Pe(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
476
476
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
477
477
|
}, 10));
|
|
478
|
-
},
|
|
478
|
+
}, Ai = () => {
|
|
479
479
|
const t = hn(), e = parseInt(window.getComputedStyle(t).width);
|
|
480
480
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
481
481
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
482
482
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
483
|
-
}, Ur = () => typeof window > "u" || typeof document > "u",
|
|
483
|
+
}, Ur = () => typeof window > "u" || typeof document > "u", Ei = 100, z = {}, ki = () => {
|
|
484
484
|
z.previousActiveElement && z.previousActiveElement.focus ? (z.previousActiveElement.focus(), z.previousActiveElement = null) : document.body && document.body.focus();
|
|
485
|
-
},
|
|
485
|
+
}, xi = (t) => new Promise((e) => {
|
|
486
486
|
if (!t)
|
|
487
487
|
return e();
|
|
488
488
|
const n = window.scrollX, o = window.scrollY;
|
|
489
489
|
z.restoreFocusTimeout = setTimeout(() => {
|
|
490
|
-
|
|
491
|
-
},
|
|
492
|
-
}),
|
|
490
|
+
ki(), e();
|
|
491
|
+
}, Ei), window.scrollTo(n, o);
|
|
492
|
+
}), Si = `
|
|
493
493
|
<div aria-labelledby="${f.title}" aria-describedby="${f["html-container"]}" class="${f.popup}" tabindex="-1">
|
|
494
494
|
<button type="button" class="${f.close}"></button>
|
|
495
495
|
<ul class="${f["progress-steps"]}"></ul>
|
|
@@ -522,7 +522,7 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
522
522
|
<div class="${f["timer-progress-bar"]}"></div>
|
|
523
523
|
</div>
|
|
524
524
|
</div>
|
|
525
|
-
`.replace(/(^|\n)\s*/g, ""),
|
|
525
|
+
`.replace(/(^|\n)\s*/g, ""), _i = () => {
|
|
526
526
|
const t = pe();
|
|
527
527
|
return t ? (t.remove(), $e(
|
|
528
528
|
[document.documentElement, document.body],
|
|
@@ -530,33 +530,33 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
530
530
|
), !0) : !1;
|
|
531
531
|
}, nt = () => {
|
|
532
532
|
z.currentInstance.resetValidationMessage();
|
|
533
|
-
},
|
|
533
|
+
}, Ci = () => {
|
|
534
534
|
const t = Z(), e = Xe(t, f.input), n = Xe(t, f.file), o = t.querySelector(`.${f.range} input`), r = t.querySelector(`.${f.range} output`), s = Xe(t, f.select), a = t.querySelector(`.${f.checkbox} input`), d = Xe(t, f.textarea);
|
|
535
535
|
e.oninput = nt, n.onchange = nt, s.onchange = nt, a.onchange = nt, d.oninput = nt, o.oninput = () => {
|
|
536
536
|
nt(), r.value = o.value;
|
|
537
537
|
}, o.onchange = () => {
|
|
538
538
|
nt(), o.nextSibling.value = o.value;
|
|
539
539
|
};
|
|
540
|
-
},
|
|
540
|
+
}, Ti = (t) => typeof t == "string" ? document.querySelector(t) : t, Pi = (t) => {
|
|
541
541
|
const e = Z();
|
|
542
542
|
e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true");
|
|
543
|
-
},
|
|
543
|
+
}, Ri = (t) => {
|
|
544
544
|
window.getComputedStyle(t).direction === "rtl" && J(pe(), f.rtl);
|
|
545
|
-
},
|
|
546
|
-
const e =
|
|
545
|
+
}, Li = (t) => {
|
|
546
|
+
const e = _i();
|
|
547
547
|
if (Ur()) {
|
|
548
548
|
it("SweetAlert2 requires document to initialize");
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
551
551
|
const n = document.createElement("div");
|
|
552
|
-
n.className = f.container, e && J(n, f["no-transition"]), he(n,
|
|
553
|
-
const o =
|
|
554
|
-
o.appendChild(n),
|
|
552
|
+
n.className = f.container, e && J(n, f["no-transition"]), he(n, Si);
|
|
553
|
+
const o = Ti(t.target);
|
|
554
|
+
o.appendChild(n), Pi(t), Ri(o), Ci();
|
|
555
555
|
}, fo = (t, e) => {
|
|
556
|
-
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ?
|
|
556
|
+
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Oi(t, e) : t && he(e, t);
|
|
557
|
+
}, Oi = (t, e) => {
|
|
558
|
+
t.jquery ? Ii(e, t) : he(e, t.toString());
|
|
557
559
|
}, Ii = (t, e) => {
|
|
558
|
-
t.jquery ? Fi(e, t) : he(e, t.toString());
|
|
559
|
-
}, Fi = (t, e) => {
|
|
560
560
|
if (t.textContent = "", 0 in e)
|
|
561
561
|
for (let n = 0; n in e; n++)
|
|
562
562
|
t.appendChild(e[n].cloneNode(!0));
|
|
@@ -575,20 +575,20 @@ const ri = ["disabled", "tabindex"], si = ["data-color"], rn = /* @__PURE__ */ J
|
|
|
575
575
|
if (Object.prototype.hasOwnProperty.call(e, n) && typeof t.style[n] < "u")
|
|
576
576
|
return e[n];
|
|
577
577
|
return !1;
|
|
578
|
-
})(),
|
|
578
|
+
})(), Fi = () => {
|
|
579
579
|
const t = document.createElement("div");
|
|
580
580
|
t.className = f["scrollbar-measure"], document.body.appendChild(t);
|
|
581
581
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
582
582
|
return document.body.removeChild(t), e;
|
|
583
|
-
},
|
|
583
|
+
}, Bi = (t, e) => {
|
|
584
584
|
const n = jt(), o = At();
|
|
585
|
-
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? me(n) : ue(n), Ie(n, e, "actions"),
|
|
585
|
+
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? me(n) : ue(n), Ie(n, e, "actions"), Ni(n, o, e), he(o, e.loaderHtml), Ie(o, e, "loader");
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function Ni(t, e, n) {
|
|
588
588
|
const o = Ne(), r = Ze(), s = rt();
|
|
589
|
-
Pn(o, "confirm", n), Pn(r, "deny", n), Pn(s, "cancel", n),
|
|
589
|
+
Pn(o, "confirm", n), Pn(r, "deny", n), Pn(s, "cancel", n), Ui(o, r, s, n), n.reverseButtons && (n.toast ? (t.insertBefore(s, o), t.insertBefore(r, o)) : (t.insertBefore(s, e), t.insertBefore(r, e), t.insertBefore(o, e)));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Ui(t, e, n, o) {
|
|
592
592
|
if (!o.buttonsStyling)
|
|
593
593
|
return $e([t, e, n], f.styled);
|
|
594
594
|
J([t, e, n], f.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor, J(t, f["default-outline"])), o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor, J(e, f["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, J(n, f["default-outline"]));
|
|
@@ -596,33 +596,33 @@ function Di(t, e, n, o) {
|
|
|
596
596
|
function Pn(t, e, n) {
|
|
597
597
|
mn(t, n[`show${oo(e)}Button`], "inline-block"), he(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = f[e], Ie(t, n, `${e}Button`), J(t, n[`${e}ButtonClass`]);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Di(t, e) {
|
|
600
600
|
typeof e == "string" ? t.style.background = e : e || J([document.documentElement, document.body], f["no-backdrop"]);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Mi(t, e) {
|
|
603
603
|
e in f ? J(t, f[e]) : (Se('The "position" parameter is not valid, defaulting to "center"'), J(t, f.center));
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Hi(t, e) {
|
|
606
606
|
if (e && typeof e == "string") {
|
|
607
607
|
const n = `grow-${e}`;
|
|
608
608
|
n in f && J(t, f[n]);
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
const
|
|
611
|
+
const $i = (t, e) => {
|
|
612
612
|
const n = pe();
|
|
613
|
-
n && (
|
|
613
|
+
n && (Di(n, e.backdrop), Mi(n, e.position), Hi(n, e.grow), Ie(n, e, "container"));
|
|
614
614
|
}, W = {
|
|
615
615
|
awaitingPromise: /* @__PURE__ */ new WeakMap(),
|
|
616
616
|
promise: /* @__PURE__ */ new WeakMap(),
|
|
617
617
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
618
618
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
619
|
-
},
|
|
619
|
+
}, ji = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], zi = (t, e) => {
|
|
620
620
|
const n = Z(), o = W.innerParams.get(t), r = !o || e.input !== o.input;
|
|
621
|
-
|
|
621
|
+
ji.forEach((s) => {
|
|
622
622
|
const a = f[s], d = Xe(n, a);
|
|
623
|
-
|
|
624
|
-
}), e.input && (r &&
|
|
625
|
-
},
|
|
623
|
+
qi(s, e.inputAttributes), d.className = a, r && me(d);
|
|
624
|
+
}), e.input && (r && Vi(e), Ki(e));
|
|
625
|
+
}, Vi = (t) => {
|
|
626
626
|
if (!xe[t.input])
|
|
627
627
|
return it(
|
|
628
628
|
`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`
|
|
@@ -631,19 +631,19 @@ const ji = (t, e) => {
|
|
|
631
631
|
ue(n), setTimeout(() => {
|
|
632
632
|
Fr(n);
|
|
633
633
|
});
|
|
634
|
-
},
|
|
634
|
+
}, Wi = (t) => {
|
|
635
635
|
for (let e = 0; e < t.attributes.length; e++) {
|
|
636
636
|
const n = t.attributes[e].name;
|
|
637
637
|
["type", "value", "style"].includes(n) || t.removeAttribute(n);
|
|
638
638
|
}
|
|
639
|
-
},
|
|
639
|
+
}, qi = (t, e) => {
|
|
640
640
|
const n = lo(Z(), t);
|
|
641
641
|
if (n) {
|
|
642
|
-
|
|
642
|
+
Wi(n);
|
|
643
643
|
for (const o in e)
|
|
644
644
|
n.setAttribute(o, e[o]);
|
|
645
645
|
}
|
|
646
|
-
},
|
|
646
|
+
}, Ki = (t) => {
|
|
647
647
|
const e = Dr(t.input);
|
|
648
648
|
t.customClass && J(e, t.customClass.input);
|
|
649
649
|
}, ho = (t, e) => {
|
|
@@ -696,16 +696,16 @@ xe.textarea = (t, e) => {
|
|
|
696
696
|
}
|
|
697
697
|
}), t;
|
|
698
698
|
};
|
|
699
|
-
const
|
|
699
|
+
const Gi = (t, e) => {
|
|
700
700
|
const n = sn();
|
|
701
|
-
Ie(n, e, "htmlContainer"), e.html ? (fo(e.html, n), ue(n, "block")) : e.text ? (n.textContent = e.text, ue(n, "block")) : me(n),
|
|
702
|
-
},
|
|
701
|
+
Ie(n, e, "htmlContainer"), e.html ? (fo(e.html, n), ue(n, "block")) : e.text ? (n.textContent = e.text, ue(n, "block")) : me(n), zi(t, e);
|
|
702
|
+
}, Ji = (t, e) => {
|
|
703
703
|
const n = Ir();
|
|
704
704
|
mn(n, e.footer), e.footer && fo(e.footer, n), Ie(n, e, "footer");
|
|
705
|
-
},
|
|
705
|
+
}, Yi = (t, e) => {
|
|
706
706
|
const n = io();
|
|
707
707
|
he(n, e.closeButtonHtml), Ie(n, e, "closeButton"), mn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
708
|
-
},
|
|
708
|
+
}, Xi = (t, e) => {
|
|
709
709
|
const n = W.innerParams.get(t), o = $t();
|
|
710
710
|
if (n && e.icon === n.icon) {
|
|
711
711
|
Vo(o, e), zo(o, e);
|
|
@@ -719,28 +719,28 @@ const Ji = (t, e) => {
|
|
|
719
719
|
}, zo = (t, e) => {
|
|
720
720
|
for (const n in Ft)
|
|
721
721
|
e.icon !== n && $e(t, Ft[n]);
|
|
722
|
-
J(t, Ft[e.icon]),
|
|
723
|
-
},
|
|
722
|
+
J(t, Ft[e.icon]), ta(t, e), Zi(), Ie(t, e, "icon");
|
|
723
|
+
}, Zi = () => {
|
|
724
724
|
const t = Z(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
725
725
|
for (let o = 0; o < n.length; o++)
|
|
726
726
|
n[o].style.backgroundColor = e;
|
|
727
|
-
},
|
|
727
|
+
}, Qi = `
|
|
728
728
|
<div class="swal2-success-circular-line-left"></div>
|
|
729
729
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
730
730
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
731
731
|
<div class="swal2-success-circular-line-right"></div>
|
|
732
|
-
`,
|
|
732
|
+
`, ea = `
|
|
733
733
|
<span class="swal2-x-mark">
|
|
734
734
|
<span class="swal2-x-mark-line-left"></span>
|
|
735
735
|
<span class="swal2-x-mark-line-right"></span>
|
|
736
736
|
</span>
|
|
737
737
|
`, Vo = (t, e) => {
|
|
738
|
-
t.textContent = "", e.iconHtml ? he(t, Wo(e.iconHtml)) : e.icon === "success" ? he(t,
|
|
738
|
+
t.textContent = "", e.iconHtml ? he(t, Wo(e.iconHtml)) : e.icon === "success" ? he(t, Qi) : e.icon === "error" ? he(t, ea) : he(t, Wo({
|
|
739
739
|
question: "?",
|
|
740
740
|
warning: "!",
|
|
741
741
|
info: "i"
|
|
742
742
|
}[e.icon]));
|
|
743
|
-
},
|
|
743
|
+
}, ta = (t, e) => {
|
|
744
744
|
if (e.iconColor) {
|
|
745
745
|
t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
|
|
746
746
|
for (const n of [
|
|
@@ -752,47 +752,47 @@ const Ji = (t, e) => {
|
|
|
752
752
|
$o(t, n, "backgroundColor", e.iconColor);
|
|
753
753
|
$o(t, ".swal2-success-ring", "borderColor", e.iconColor);
|
|
754
754
|
}
|
|
755
|
-
}, Wo = (t) => `<div class="${f["icon-content"]}">${t}</div>`,
|
|
755
|
+
}, Wo = (t) => `<div class="${f["icon-content"]}">${t}</div>`, na = (t, e) => {
|
|
756
756
|
const n = Lr();
|
|
757
757
|
if (!e.imageUrl)
|
|
758
758
|
return me(n);
|
|
759
759
|
ue(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), Bt(n, "width", e.imageWidth), Bt(n, "height", e.imageHeight), n.className = f.image, Ie(n, e, "image");
|
|
760
|
-
},
|
|
760
|
+
}, oa = (t) => {
|
|
761
761
|
const e = document.createElement("li");
|
|
762
762
|
return J(e, f["progress-step"]), he(e, t), e;
|
|
763
|
-
},
|
|
763
|
+
}, ra = (t) => {
|
|
764
764
|
const e = document.createElement("li");
|
|
765
765
|
return J(e, f["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e;
|
|
766
|
-
},
|
|
766
|
+
}, sa = (t, e) => {
|
|
767
767
|
const n = Or();
|
|
768
768
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
769
769
|
return me(n);
|
|
770
770
|
ue(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && Se(
|
|
771
771
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
772
772
|
), e.progressSteps.forEach((o, r) => {
|
|
773
|
-
const s =
|
|
773
|
+
const s = oa(o);
|
|
774
774
|
if (n.appendChild(s), r === e.currentProgressStep && J(s, f["active-progress-step"]), r !== e.progressSteps.length - 1) {
|
|
775
|
-
const a =
|
|
775
|
+
const a = ra(e);
|
|
776
776
|
n.appendChild(a);
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
|
-
},
|
|
779
|
+
}, ia = (t, e) => {
|
|
780
780
|
const n = Rr();
|
|
781
781
|
mn(n, e.title || e.titleText, "block"), e.title && fo(e.title, n), e.titleText && (n.innerText = e.titleText), Ie(n, e, "title");
|
|
782
|
-
},
|
|
782
|
+
}, aa = (t, e) => {
|
|
783
783
|
const n = pe(), o = Z();
|
|
784
|
-
e.toast ? (Bt(n, "width", e.width), o.style.width = "100%", o.insertBefore(At(), $t())) : Bt(o, "width", e.width), Bt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), me(fn()),
|
|
785
|
-
},
|
|
784
|
+
e.toast ? (Bt(n, "width", e.width), o.style.width = "100%", o.insertBefore(At(), $t())) : Bt(o, "width", e.width), Bt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), me(fn()), ca(o, e);
|
|
785
|
+
}, ca = (t, e) => {
|
|
786
786
|
t.className = `${f.popup} ${Pe(t) ? e.showClass.popup : ""}`, e.toast ? (J([document.documentElement, document.body], f["toast-shown"]), J(t, f.toast)) : J(t, f.modal), Ie(t, e, "popup"), typeof e.customClass == "string" && J(t, e.customClass), e.icon && J(t, f[`icon-${e.icon}`]);
|
|
787
787
|
}, Mr = (t, e) => {
|
|
788
|
-
|
|
788
|
+
aa(t, e), $i(t, e), sa(t, e), Xi(t, e), na(t, e), ia(t, e), Yi(t, e), Gi(t, e), Bi(t, e), Ji(t, e), typeof e.didRender == "function" && e.didRender(Z());
|
|
789
789
|
}, Et = Object.freeze({
|
|
790
790
|
cancel: "cancel",
|
|
791
791
|
backdrop: "backdrop",
|
|
792
792
|
close: "close",
|
|
793
793
|
esc: "esc",
|
|
794
794
|
timer: "timer"
|
|
795
|
-
}),
|
|
795
|
+
}), la = () => {
|
|
796
796
|
Re(document.body.children).forEach((e) => {
|
|
797
797
|
e === pe() || e.contains(pe()) || (e.hasAttribute("aria-hidden") && e.setAttribute("data-previous-aria-hidden", e.getAttribute("aria-hidden")), e.setAttribute("aria-hidden", "true"));
|
|
798
798
|
});
|
|
@@ -800,40 +800,40 @@ const Ji = (t, e) => {
|
|
|
800
800
|
Re(document.body.children).forEach((e) => {
|
|
801
801
|
e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden")), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
|
|
802
802
|
});
|
|
803
|
-
}, $r = ["swal-title", "swal-html", "swal-footer"],
|
|
803
|
+
}, $r = ["swal-title", "swal-html", "swal-footer"], ua = (t) => {
|
|
804
804
|
const e = typeof t.template == "string" ? document.querySelector(t.template) : t.template;
|
|
805
805
|
if (!e)
|
|
806
806
|
return {};
|
|
807
807
|
const n = e.content;
|
|
808
808
|
return ba(n), Object.assign(
|
|
809
|
+
da(n),
|
|
809
810
|
fa(n),
|
|
810
811
|
ha(n),
|
|
811
812
|
pa(n),
|
|
812
813
|
ma(n),
|
|
813
|
-
ga(n)
|
|
814
|
-
ya(n, $r)
|
|
814
|
+
ga(n, $r)
|
|
815
815
|
);
|
|
816
|
-
},
|
|
816
|
+
}, da = (t) => {
|
|
817
817
|
const e = {};
|
|
818
818
|
return Re(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
819
819
|
st(n, ["name", "value"]);
|
|
820
820
|
const o = n.getAttribute("name"), r = n.getAttribute("value");
|
|
821
821
|
typeof mt[o] == "boolean" && r === "false" && (e[o] = !1), typeof mt[o] == "object" && (e[o] = JSON.parse(r));
|
|
822
822
|
}), e;
|
|
823
|
-
},
|
|
823
|
+
}, fa = (t) => {
|
|
824
824
|
const e = {};
|
|
825
825
|
return Re(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
826
826
|
st(n, ["type", "color", "aria-label"]);
|
|
827
827
|
const o = n.getAttribute("type");
|
|
828
828
|
e[`${o}ButtonText`] = n.innerHTML, e[`show${oo(o)}Button`] = !0, n.hasAttribute("color") && (e[`${o}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
829
829
|
}), e;
|
|
830
|
-
},
|
|
830
|
+
}, ha = (t) => {
|
|
831
831
|
const e = {}, n = t.querySelector("swal-image");
|
|
832
832
|
return n && (st(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt"))), e;
|
|
833
|
-
},
|
|
833
|
+
}, pa = (t) => {
|
|
834
834
|
const e = {}, n = t.querySelector("swal-icon");
|
|
835
835
|
return n && (st(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
|
|
836
|
-
},
|
|
836
|
+
}, ma = (t) => {
|
|
837
837
|
const e = {}, n = t.querySelector("swal-input");
|
|
838
838
|
n && (st(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
|
|
839
839
|
const o = t.querySelectorAll("swal-input-option");
|
|
@@ -842,7 +842,7 @@ const Ji = (t, e) => {
|
|
|
842
842
|
const s = r.getAttribute("value"), a = r.innerHTML;
|
|
843
843
|
e.inputOptions[s] = a;
|
|
844
844
|
})), e;
|
|
845
|
-
},
|
|
845
|
+
}, ga = (t, e) => {
|
|
846
846
|
const n = {};
|
|
847
847
|
for (const o in e) {
|
|
848
848
|
const r = e[o], s = t.querySelector(r);
|
|
@@ -873,23 +873,23 @@ const Ji = (t, e) => {
|
|
|
873
873
|
email: (t, e) => /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid email address"),
|
|
874
874
|
url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
|
|
875
875
|
};
|
|
876
|
-
function
|
|
876
|
+
function ya(t) {
|
|
877
877
|
t.inputValidator || Object.keys(qo).forEach((e) => {
|
|
878
878
|
t.input === e && (t.inputValidator = qo[e]);
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function wa(t) {
|
|
882
882
|
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Se('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
884
|
+
function va(t) {
|
|
885
|
+
ya(t), t.showLoaderOnConfirm && !t.preConfirm && Se(
|
|
886
886
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
887
887
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
888
888
|
https://sweetalert2.github.io/#ajax-request`
|
|
889
|
-
),
|
|
890
|
-
`).join("<br />")),
|
|
889
|
+
), wa(t), typeof t.title == "string" && (t.title = t.title.split(`
|
|
890
|
+
`).join("<br />")), Li(t);
|
|
891
891
|
}
|
|
892
|
-
class
|
|
892
|
+
class Aa {
|
|
893
893
|
constructor(e, n) {
|
|
894
894
|
this.callback = e, this.remaining = n, this.running = !1, this.start();
|
|
895
895
|
}
|
|
@@ -910,98 +910,98 @@ class Ea {
|
|
|
910
910
|
return this.running;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
const
|
|
914
|
-
gt.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (gt.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${gt.previousBodyPadding +
|
|
915
|
-
},
|
|
913
|
+
const Ea = () => {
|
|
914
|
+
gt.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (gt.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${gt.previousBodyPadding + Fi()}px`);
|
|
915
|
+
}, ka = () => {
|
|
916
916
|
gt.previousBodyPadding !== null && (document.body.style.paddingRight = `${gt.previousBodyPadding}px`, gt.previousBodyPadding = null);
|
|
917
|
-
},
|
|
917
|
+
}, xa = () => {
|
|
918
918
|
if (// @ts-ignore
|
|
919
919
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !Ke(document.body, f.iosfix)) {
|
|
920
920
|
const e = document.body.scrollTop;
|
|
921
|
-
document.body.style.top = `${e * -1}px`, J(document.body, f.iosfix),
|
|
921
|
+
document.body.style.top = `${e * -1}px`, J(document.body, f.iosfix), _a(), Sa();
|
|
922
922
|
}
|
|
923
|
-
},
|
|
923
|
+
}, Sa = () => {
|
|
924
924
|
const t = navigator.userAgent, e = !!t.match(/iPad/i) || !!t.match(/iPhone/i), n = !!t.match(/WebKit/i);
|
|
925
925
|
e && n && !t.match(/CriOS/i) && Z().scrollHeight > window.innerHeight - 44 && (pe().style.paddingBottom = "44px");
|
|
926
|
-
},
|
|
926
|
+
}, _a = () => {
|
|
927
927
|
const t = pe();
|
|
928
928
|
let e;
|
|
929
929
|
t.ontouchstart = (n) => {
|
|
930
|
-
e =
|
|
930
|
+
e = Ca(n);
|
|
931
931
|
}, t.ontouchmove = (n) => {
|
|
932
932
|
e && (n.preventDefault(), n.stopPropagation());
|
|
933
933
|
};
|
|
934
|
-
},
|
|
934
|
+
}, Ca = (t) => {
|
|
935
935
|
const e = t.target, n = pe();
|
|
936
|
-
return
|
|
936
|
+
return Ta(t) || Pa(t) ? !1 : e === n || !jo(n) && e.tagName !== "INPUT" && // #1603
|
|
937
937
|
e.tagName !== "TEXTAREA" && // #2266
|
|
938
938
|
!(jo(sn()) && // #1944
|
|
939
939
|
sn().contains(e));
|
|
940
|
-
},
|
|
940
|
+
}, Ta = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Pa = (t) => t.touches && t.touches.length > 1, Ra = () => {
|
|
941
941
|
if (Ke(document.body, f.iosfix)) {
|
|
942
942
|
const t = parseInt(document.body.style.top, 10);
|
|
943
943
|
$e(document.body, f.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
|
|
944
944
|
}
|
|
945
|
-
}, jr = 10,
|
|
945
|
+
}, jr = 10, La = (t) => {
|
|
946
946
|
const e = pe(), n = Z();
|
|
947
947
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
948
948
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}, jr), co() && (
|
|
949
|
+
Fa(e, n, t), setTimeout(() => {
|
|
950
|
+
Oa(e, n);
|
|
951
|
+
}, jr), co() && (Ia(e, t.scrollbarPadding, r), la()), !pn() && !z.previousActiveElement && (z.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), $e(e, f["no-transition"]);
|
|
952
952
|
}, zr = (t) => {
|
|
953
953
|
const e = Z();
|
|
954
954
|
if (t.target !== e)
|
|
955
955
|
return;
|
|
956
956
|
const n = pe();
|
|
957
957
|
e.removeEventListener(Nt, zr), n.style.overflowY = "auto";
|
|
958
|
-
},
|
|
958
|
+
}, Oa = (t, e) => {
|
|
959
959
|
Nt && Nr(e) ? (t.style.overflowY = "hidden", e.addEventListener(Nt, zr)) : t.style.overflowY = "auto";
|
|
960
|
-
},
|
|
961
|
-
|
|
960
|
+
}, Ia = (t, e, n) => {
|
|
961
|
+
xa(), e && n !== "hidden" && Ea(), setTimeout(() => {
|
|
962
962
|
t.scrollTop = 0;
|
|
963
963
|
});
|
|
964
|
-
},
|
|
964
|
+
}, Fa = (t, e, n) => {
|
|
965
965
|
J(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), ue(e, "grid"), setTimeout(() => {
|
|
966
966
|
J(e, n.showClass.popup), e.style.removeProperty("opacity");
|
|
967
967
|
}, jr), J([document.documentElement, document.body], f.shown), n.heightAuto && n.backdrop && !n.toast && J([document.documentElement, document.body], f["height-auto"]);
|
|
968
968
|
}, wt = (t) => {
|
|
969
969
|
let e = Z();
|
|
970
|
-
e || new
|
|
970
|
+
e || new bt(), e = Z();
|
|
971
971
|
const n = At();
|
|
972
|
-
pn() ? me($t()) :
|
|
973
|
-
},
|
|
972
|
+
pn() ? me($t()) : Ba(e, t), ue(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
973
|
+
}, Ba = (t, e) => {
|
|
974
974
|
const n = jt(), o = At();
|
|
975
975
|
!e && Pe(Ne()) && (e = Ne()), ue(n), e && (me(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), J([t, n], f.loading);
|
|
976
|
+
}, Na = (t, e) => {
|
|
977
|
+
e.input === "select" || e.input === "radio" ? $a(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (ro(e.inputValue) || so(e.inputValue)) && (wt(Ne()), ja(t, e));
|
|
976
978
|
}, Ua = (t, e) => {
|
|
977
|
-
e.input === "select" || e.input === "radio" ? ja(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (ro(e.inputValue) || so(e.inputValue)) && (wt(Ne()), za(t, e));
|
|
978
|
-
}, Da = (t, e) => {
|
|
979
979
|
const n = t.getInput();
|
|
980
980
|
if (!n)
|
|
981
981
|
return null;
|
|
982
982
|
switch (e.input) {
|
|
983
983
|
case "checkbox":
|
|
984
|
-
return
|
|
984
|
+
return Da(n);
|
|
985
985
|
case "radio":
|
|
986
|
-
return
|
|
986
|
+
return Ma(n);
|
|
987
987
|
case "file":
|
|
988
|
-
return
|
|
988
|
+
return Ha(n);
|
|
989
989
|
default:
|
|
990
990
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
991
991
|
}
|
|
992
|
-
},
|
|
993
|
-
const n = Z(), o = (r) =>
|
|
992
|
+
}, Da = (t) => t.checked ? 1 : 0, Ma = (t) => t.checked ? t.value : null, Ha = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, $a = (t, e) => {
|
|
993
|
+
const n = Z(), o = (r) => za[e.input](n, zn(r), e);
|
|
994
994
|
ro(e.inputOptions) || so(e.inputOptions) ? (wt(Ne()), Mt(e.inputOptions).then((r) => {
|
|
995
995
|
t.hideLoading(), o(r);
|
|
996
996
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : it(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
997
|
-
},
|
|
997
|
+
}, ja = (t, e) => {
|
|
998
998
|
const n = t.getInput();
|
|
999
999
|
me(n), Mt(e.inputValue).then((o) => {
|
|
1000
1000
|
n.value = e.input === "number" ? parseFloat(o) || 0 : `${o}`, ue(n), n.focus(), t.hideLoading();
|
|
1001
1001
|
}).catch((o) => {
|
|
1002
1002
|
it(`Error in inputValue promise: ${o}`), n.value = "", ue(n), n.focus(), t.hideLoading();
|
|
1003
1003
|
});
|
|
1004
|
-
},
|
|
1004
|
+
}, za = {
|
|
1005
1005
|
select: (t, e, n) => {
|
|
1006
1006
|
const o = Xe(t, f.select), r = (s, a, d) => {
|
|
1007
1007
|
const l = document.createElement("option");
|
|
@@ -1011,7 +1011,7 @@ const ka = () => {
|
|
|
1011
1011
|
const a = s[0], d = s[1];
|
|
1012
1012
|
if (Array.isArray(d)) {
|
|
1013
1013
|
const l = document.createElement("optgroup");
|
|
1014
|
-
l.label = a, l.disabled = !1, o.appendChild(l), d.forEach((
|
|
1014
|
+
l.label = a, l.disabled = !1, o.appendChild(l), d.forEach((y) => r(l, y[1], y[0]));
|
|
1015
1015
|
} else
|
|
1016
1016
|
r(o, d, a);
|
|
1017
1017
|
}), o.focus();
|
|
@@ -1019,10 +1019,10 @@ const ka = () => {
|
|
|
1019
1019
|
radio: (t, e, n) => {
|
|
1020
1020
|
const o = Xe(t, f.radio);
|
|
1021
1021
|
e.forEach((s) => {
|
|
1022
|
-
const a = s[0], d = s[1], l = document.createElement("input"),
|
|
1022
|
+
const a = s[0], d = s[1], l = document.createElement("input"), y = document.createElement("label");
|
|
1023
1023
|
l.type = "radio", l.name = f.radio, l.value = a, Ko(a, n.inputValue) && (l.checked = !0);
|
|
1024
1024
|
const x = document.createElement("span");
|
|
1025
|
-
he(x, d), x.className = f.label,
|
|
1025
|
+
he(x, d), x.className = f.label, y.appendChild(l), y.appendChild(x), o.appendChild(y);
|
|
1026
1026
|
});
|
|
1027
1027
|
const r = o.querySelectorAll("input");
|
|
1028
1028
|
r.length && r[0].focus();
|
|
@@ -1042,25 +1042,25 @@ function Go() {
|
|
|
1042
1042
|
if (!t)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const e = W.domCache.get(this);
|
|
1045
|
-
me(e.loader), pn() ? t.icon && ue($t()) :
|
|
1045
|
+
me(e.loader), pn() ? t.icon && ue($t()) : Va(e), $e([e.popup, e.actions], f.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Va = (t) => {
|
|
1048
1048
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
1049
|
-
e.length ? ue(e[0], "inline-block") :
|
|
1049
|
+
e.length ? ue(e[0], "inline-block") : vi() && me(t.actions);
|
|
1050
1050
|
};
|
|
1051
|
-
function
|
|
1051
|
+
function Wa(t) {
|
|
1052
1052
|
const e = W.innerParams.get(t || this), n = W.domCache.get(t || this);
|
|
1053
1053
|
return n ? lo(n.popup, e.input) : null;
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ut = {
|
|
1056
1056
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
1057
1057
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
1058
|
-
},
|
|
1058
|
+
}, qa = () => Pe(Z()), Vr = () => Ne() && Ne().click(), Ka = () => Ze() && Ze().click(), Ga = () => rt() && rt().click(), Wr = (t) => {
|
|
1059
1059
|
t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
|
|
1060
1060
|
capture: t.keydownListenerCapture
|
|
1061
1061
|
}), t.keydownHandlerAdded = !1);
|
|
1062
|
-
},
|
|
1063
|
-
Wr(e), n.toast || (e.keydownHandler = (r) =>
|
|
1062
|
+
}, Ja = (t, e, n, o) => {
|
|
1063
|
+
Wr(e), n.toast || (e.keydownHandler = (r) => Xa(t, r, o), e.keydownTarget = n.keydownListenerCapture ? window : Z(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
1064
1064
|
capture: e.keydownListenerCapture
|
|
1065
1065
|
}), e.keydownHandlerAdded = !0);
|
|
1066
1066
|
}, Vn = (t, e, n) => {
|
|
@@ -1068,16 +1068,16 @@ const Ut = {
|
|
|
1068
1068
|
if (o.length)
|
|
1069
1069
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
1070
1070
|
Z().focus();
|
|
1071
|
-
}, qr = ["ArrowRight", "ArrowDown"],
|
|
1071
|
+
}, qr = ["ArrowRight", "ArrowDown"], Ya = ["ArrowLeft", "ArrowUp"], Xa = (t, e, n) => {
|
|
1072
1072
|
const o = W.innerParams.get(t);
|
|
1073
|
-
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ?
|
|
1074
|
-
},
|
|
1073
|
+
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Za(t, e, o) : e.key === "Tab" ? Qa(e, o) : [...qr, ...Ya].includes(e.key) ? ec(e.key) : e.key === "Escape" && tc(e, o, n)));
|
|
1074
|
+
}, Za = (t, e, n) => {
|
|
1075
1075
|
if (dn(n.allowEnterKey) && e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML) {
|
|
1076
1076
|
if (["textarea", "file"].includes(n.input))
|
|
1077
1077
|
return;
|
|
1078
1078
|
Vr(), e.preventDefault();
|
|
1079
1079
|
}
|
|
1080
|
-
},
|
|
1080
|
+
}, Qa = (t, e) => {
|
|
1081
1081
|
const n = t.target, o = ao();
|
|
1082
1082
|
let r = -1;
|
|
1083
1083
|
for (let s = 0; s < o.length; s++)
|
|
@@ -1086,7 +1086,7 @@ const Ut = {
|
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
1088
|
t.shiftKey ? Vn(e, r, -1) : Vn(e, r, 1), t.stopPropagation(), t.preventDefault();
|
|
1089
|
-
},
|
|
1089
|
+
}, ec = (t) => {
|
|
1090
1090
|
const e = Ne(), n = Ze(), o = rt();
|
|
1091
1091
|
if (![e, n, o].includes(document.activeElement))
|
|
1092
1092
|
return;
|
|
@@ -1099,27 +1099,27 @@ const Ut = {
|
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
1101
|
s instanceof HTMLButtonElement && s.focus();
|
|
1102
|
-
},
|
|
1102
|
+
}, tc = (t, e, n) => {
|
|
1103
1103
|
dn(e.allowEscapeKey) && (t.preventDefault(), n(Et.esc));
|
|
1104
1104
|
};
|
|
1105
1105
|
function Kr(t, e, n, o) {
|
|
1106
|
-
pn() ? Jo(t, o) : (
|
|
1106
|
+
pn() ? Jo(t, o) : (xi(n).then(() => Jo(t, o)), Wr(z)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), co() && (ka(), Ra(), Hr()), nc();
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function nc() {
|
|
1109
1109
|
$e(
|
|
1110
1110
|
[document.documentElement, document.body],
|
|
1111
1111
|
[f.shown, f["height-auto"], f["no-backdrop"], f["toast-shown"]]
|
|
1112
1112
|
);
|
|
1113
1113
|
}
|
|
1114
1114
|
function Yt(t) {
|
|
1115
|
-
t =
|
|
1116
|
-
const e = Ut.swalPromiseResolve.get(this), n =
|
|
1115
|
+
t = ic(t);
|
|
1116
|
+
const e = Ut.swalPromiseResolve.get(this), n = rc(this);
|
|
1117
1117
|
this.isAwaitingPromise() ? t.isDismissed || (Vt(this), e(t)) : n && e(t);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function oc() {
|
|
1120
1120
|
return !!W.awaitingPromise.get(this);
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const rc = (t) => {
|
|
1123
1123
|
const e = Z();
|
|
1124
1124
|
if (!e)
|
|
1125
1125
|
return !1;
|
|
@@ -1128,15 +1128,15 @@ const sc = (t) => {
|
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
$e(e, n.showClass.popup), J(e, n.hideClass.popup);
|
|
1130
1130
|
const o = pe();
|
|
1131
|
-
return $e(o, n.showClass.backdrop), J(o, n.hideClass.backdrop),
|
|
1131
|
+
return $e(o, n.showClass.backdrop), J(o, n.hideClass.backdrop), ac(t, e, n), !0;
|
|
1132
1132
|
};
|
|
1133
|
-
function
|
|
1133
|
+
function sc(t) {
|
|
1134
1134
|
const e = Ut.swalPromiseReject.get(this);
|
|
1135
1135
|
Vt(this), e && e(t);
|
|
1136
1136
|
}
|
|
1137
1137
|
const Vt = (t) => {
|
|
1138
1138
|
t.isAwaitingPromise() && (W.awaitingPromise.delete(t), W.innerParams.get(t) || t._destroy());
|
|
1139
|
-
},
|
|
1139
|
+
}, ic = (t) => typeof t > "u" ? {
|
|
1140
1140
|
isConfirmed: !1,
|
|
1141
1141
|
isDenied: !1,
|
|
1142
1142
|
isDismissed: !0
|
|
@@ -1147,10 +1147,10 @@ const Vt = (t) => {
|
|
|
1147
1147
|
isDismissed: !1
|
|
1148
1148
|
},
|
|
1149
1149
|
t
|
|
1150
|
-
),
|
|
1150
|
+
), ac = (t, e, n) => {
|
|
1151
1151
|
const o = pe(), r = Nt && Nr(e);
|
|
1152
|
-
typeof n.willClose == "function" && n.willClose(e), r ?
|
|
1153
|
-
},
|
|
1152
|
+
typeof n.willClose == "function" && n.willClose(e), r ? cc(t, e, o, n.returnFocus, n.didClose) : Kr(t, o, n.returnFocus, n.didClose);
|
|
1153
|
+
}, cc = (t, e, n, o, r) => {
|
|
1154
1154
|
z.swalCloseEventFinishedCallback = Kr.bind(
|
|
1155
1155
|
null,
|
|
1156
1156
|
t,
|
|
@@ -1181,34 +1181,34 @@ function Jr(t, e) {
|
|
|
1181
1181
|
} else
|
|
1182
1182
|
t.disabled = e;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function lc() {
|
|
1185
1185
|
Gr(this, ["confirmButton", "denyButton", "cancelButton"], !1);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function uc() {
|
|
1188
1188
|
Gr(this, ["confirmButton", "denyButton", "cancelButton"], !0);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function dc() {
|
|
1191
1191
|
return Jr(this.getInput(), !1);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function fc() {
|
|
1194
1194
|
return Jr(this.getInput(), !0);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function hc(t) {
|
|
1197
1197
|
const e = W.domCache.get(this), n = W.innerParams.get(this);
|
|
1198
1198
|
he(e.validationMessage, t), e.validationMessage.className = f["validation-message"], n.customClass && n.customClass.validationMessage && J(e.validationMessage, n.customClass.validationMessage), ue(e.validationMessage);
|
|
1199
1199
|
const o = this.getInput();
|
|
1200
1200
|
o && (o.setAttribute("aria-invalid", !0), o.setAttribute("aria-describedby", f["validation-message"]), Fr(o), J(o, f.inputerror));
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function pc() {
|
|
1203
1203
|
const t = W.domCache.get(this);
|
|
1204
1204
|
t.validationMessage && me(t.validationMessage);
|
|
1205
1205
|
const e = this.getInput();
|
|
1206
1206
|
e && (e.removeAttribute("aria-invalid"), e.removeAttribute("aria-describedby"), $e(e, f.inputerror));
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function mc() {
|
|
1209
1209
|
return W.domCache.get(this).progressSteps;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function gc(t) {
|
|
1212
1212
|
const e = Z(), n = W.innerParams.get(this);
|
|
1213
1213
|
if (!e || Ke(e, n.hideClass.popup))
|
|
1214
1214
|
return Se(
|
|
@@ -1233,15 +1233,15 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
1233
1233
|
);
|
|
1234
1234
|
}), e;
|
|
1235
1235
|
};
|
|
1236
|
-
function
|
|
1236
|
+
function yc() {
|
|
1237
1237
|
const t = W.domCache.get(this), e = W.innerParams.get(this);
|
|
1238
1238
|
if (!e) {
|
|
1239
1239
|
Yr(this);
|
|
1240
1240
|
return;
|
|
1241
1241
|
}
|
|
1242
|
-
t.popup && z.swalCloseEventFinishedCallback && (z.swalCloseEventFinishedCallback(), delete z.swalCloseEventFinishedCallback), z.deferDisposalTimer && (clearTimeout(z.deferDisposalTimer), delete z.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(),
|
|
1242
|
+
t.popup && z.swalCloseEventFinishedCallback && (z.swalCloseEventFinishedCallback(), delete z.swalCloseEventFinishedCallback), z.deferDisposalTimer && (clearTimeout(z.deferDisposalTimer), delete z.deferDisposalTimer), typeof e.didDestroy == "function" && e.didDestroy(), wc(this);
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1244
|
+
const wc = (t) => {
|
|
1245
1245
|
Yr(t), delete t.params, delete z.keydownHandler, delete z.keydownTarget, delete z.currentInstance;
|
|
1246
1246
|
}, Yr = (t) => {
|
|
1247
1247
|
t.isAwaitingPromise() ? (Rn(W, t), W.awaitingPromise.set(t, !0)) : (Rn(Ut, t), Rn(W, t));
|
|
@@ -1250,32 +1250,32 @@ const vc = (t) => {
|
|
|
1250
1250
|
t[n].delete(e);
|
|
1251
1251
|
}, Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1252
1252
|
__proto__: null,
|
|
1253
|
-
_destroy:
|
|
1253
|
+
_destroy: yc,
|
|
1254
1254
|
close: Yt,
|
|
1255
1255
|
closeModal: Yt,
|
|
1256
1256
|
closePopup: Yt,
|
|
1257
1257
|
closeToast: Yt,
|
|
1258
|
-
disableButtons:
|
|
1259
|
-
disableInput:
|
|
1258
|
+
disableButtons: uc,
|
|
1259
|
+
disableInput: fc,
|
|
1260
1260
|
disableLoading: Go,
|
|
1261
|
-
enableButtons:
|
|
1262
|
-
enableInput:
|
|
1263
|
-
getInput:
|
|
1264
|
-
getProgressSteps:
|
|
1261
|
+
enableButtons: lc,
|
|
1262
|
+
enableInput: dc,
|
|
1263
|
+
getInput: Wa,
|
|
1264
|
+
getProgressSteps: mc,
|
|
1265
1265
|
handleAwaitingPromise: Vt,
|
|
1266
1266
|
hideLoading: Go,
|
|
1267
|
-
isAwaitingPromise:
|
|
1268
|
-
rejectPromise:
|
|
1269
|
-
resetValidationMessage:
|
|
1270
|
-
showValidationMessage:
|
|
1271
|
-
update:
|
|
1272
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1267
|
+
isAwaitingPromise: oc,
|
|
1268
|
+
rejectPromise: sc,
|
|
1269
|
+
resetValidationMessage: pc,
|
|
1270
|
+
showValidationMessage: hc,
|
|
1271
|
+
update: gc
|
|
1272
|
+
}, Symbol.toStringTag, { value: "Module" })), vc = (t) => {
|
|
1273
1273
|
const e = W.innerParams.get(t);
|
|
1274
1274
|
t.disableButtons(), e.input ? Zr(t, "confirm") : mo(t, !0);
|
|
1275
|
-
},
|
|
1275
|
+
}, Ac = (t) => {
|
|
1276
1276
|
const e = W.innerParams.get(t);
|
|
1277
1277
|
t.disableButtons(), e.returnInputValueOnDeny ? Zr(t, "deny") : po(t, !1);
|
|
1278
|
-
},
|
|
1278
|
+
}, Ec = (t, e) => {
|
|
1279
1279
|
t.disableButtons(), e(Et.cancel);
|
|
1280
1280
|
}, Zr = (t, e) => {
|
|
1281
1281
|
const n = W.innerParams.get(t);
|
|
@@ -1283,9 +1283,9 @@ const vc = (t) => {
|
|
|
1283
1283
|
return it(
|
|
1284
1284
|
`The "input" parameter is needed to be set when using returnInputValueOn${oo(e)}`
|
|
1285
1285
|
);
|
|
1286
|
-
const o =
|
|
1287
|
-
n.inputValidator ?
|
|
1288
|
-
},
|
|
1286
|
+
const o = Ua(t, n);
|
|
1287
|
+
n.inputValidator ? kc(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? po(t, o) : mo(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
1288
|
+
}, kc = (t, e, n) => {
|
|
1289
1289
|
const o = W.innerParams.get(t);
|
|
1290
1290
|
t.disableInput(), Promise.resolve().then(
|
|
1291
1291
|
() => Mt(o.inputValidator(e, o.validationMessage))
|
|
@@ -1310,28 +1310,28 @@ const vc = (t) => {
|
|
|
1310
1310
|
).then((r) => {
|
|
1311
1311
|
Pe(fn()) || r === !1 ? (t.hideLoading(), Vt(t)) : Yo(t, typeof r > "u" ? e : r);
|
|
1312
1312
|
}).catch((r) => Qr(t || globalThis, r))) : Yo(t, e);
|
|
1313
|
+
}, xc = (t, e, n) => {
|
|
1314
|
+
W.innerParams.get(t).toast ? Sc(t, e, n) : (Cc(e), Tc(e), Pc(t, e, n));
|
|
1313
1315
|
}, Sc = (t, e, n) => {
|
|
1314
|
-
W.innerParams.get(t).toast ? _c(t, e, n) : (Tc(e), Pc(e), Rc(t, e, n));
|
|
1315
|
-
}, _c = (t, e, n) => {
|
|
1316
1316
|
e.popup.onclick = () => {
|
|
1317
1317
|
const o = W.innerParams.get(t);
|
|
1318
|
-
o && (
|
|
1318
|
+
o && (_c(o) || o.timer || o.input) || n(Et.close);
|
|
1319
1319
|
};
|
|
1320
|
-
},
|
|
1320
|
+
}, _c = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
1321
1321
|
let an = !1;
|
|
1322
|
-
const
|
|
1322
|
+
const Cc = (t) => {
|
|
1323
1323
|
t.popup.onmousedown = () => {
|
|
1324
1324
|
t.container.onmouseup = function(e) {
|
|
1325
1325
|
t.container.onmouseup = void 0, e.target === t.container && (an = !0);
|
|
1326
1326
|
};
|
|
1327
1327
|
};
|
|
1328
|
-
},
|
|
1328
|
+
}, Tc = (t) => {
|
|
1329
1329
|
t.container.onmousedown = () => {
|
|
1330
1330
|
t.popup.onmouseup = function(e) {
|
|
1331
1331
|
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (an = !0);
|
|
1332
1332
|
};
|
|
1333
1333
|
};
|
|
1334
|
-
},
|
|
1334
|
+
}, Pc = (t, e, n) => {
|
|
1335
1335
|
e.container.onclick = (o) => {
|
|
1336
1336
|
const r = W.innerParams.get(t);
|
|
1337
1337
|
if (an) {
|
|
@@ -1340,18 +1340,18 @@ const Tc = (t) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
o.target === e.container && dn(r.allowOutsideClick) && n(Et.backdrop);
|
|
1342
1342
|
};
|
|
1343
|
-
},
|
|
1343
|
+
}, Rc = (t) => typeof t == "object" && t.jquery, Xo = (t) => t instanceof Element || Rc(t), Lc = (t) => {
|
|
1344
1344
|
const e = {};
|
|
1345
1345
|
return typeof t[0] == "object" && !Xo(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1346
1346
|
const r = t[o];
|
|
1347
1347
|
typeof r == "string" || Xo(r) ? e[n] = r : r !== void 0 && it(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
|
|
1348
1348
|
}), e;
|
|
1349
1349
|
};
|
|
1350
|
-
function
|
|
1350
|
+
function Oc(...t) {
|
|
1351
1351
|
const e = this;
|
|
1352
1352
|
return new e(...t);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Ic(t) {
|
|
1355
1355
|
class e extends this {
|
|
1356
1356
|
_main(o, r) {
|
|
1357
1357
|
return super._main(o, Object.assign({}, t, r));
|
|
@@ -1359,29 +1359,29 @@ function Fc(t) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
1361
1361
|
}
|
|
1362
|
-
const
|
|
1362
|
+
const Fc = () => z.timeout && z.timeout.getTimerLeft(), es = () => {
|
|
1363
1363
|
if (z.timeout)
|
|
1364
|
-
return
|
|
1364
|
+
return Ai(), z.timeout.stop();
|
|
1365
1365
|
}, ts = () => {
|
|
1366
1366
|
if (z.timeout) {
|
|
1367
1367
|
const t = z.timeout.start();
|
|
1368
1368
|
return uo(t), t;
|
|
1369
1369
|
}
|
|
1370
|
-
},
|
|
1370
|
+
}, Bc = () => {
|
|
1371
1371
|
const t = z.timeout;
|
|
1372
1372
|
return t && (t.running ? es() : ts());
|
|
1373
|
-
},
|
|
1373
|
+
}, Nc = (t) => {
|
|
1374
1374
|
if (z.timeout) {
|
|
1375
1375
|
const e = z.timeout.increase(t);
|
|
1376
1376
|
return uo(e, !0), e;
|
|
1377
1377
|
}
|
|
1378
|
-
},
|
|
1378
|
+
}, Uc = () => z.timeout && z.timeout.isRunning();
|
|
1379
1379
|
let Zo = !1;
|
|
1380
1380
|
const Wn = {};
|
|
1381
|
-
function
|
|
1382
|
-
Wn[t] = this, Zo || (document.body.addEventListener("click",
|
|
1381
|
+
function Dc(t = "data-swal-template") {
|
|
1382
|
+
Wn[t] = this, Zo || (document.body.addEventListener("click", Mc), Zo = !0);
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
1384
|
+
const Mc = (t) => {
|
|
1385
1385
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
1386
1386
|
for (const n in Wn) {
|
|
1387
1387
|
const o = e.getAttribute(n);
|
|
@@ -1390,15 +1390,15 @@ const Hc = (t) => {
|
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
},
|
|
1393
|
+
}, Hc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1394
1394
|
__proto__: null,
|
|
1395
|
-
argsToParams:
|
|
1396
|
-
bindClickHandler:
|
|
1397
|
-
clickCancel:
|
|
1395
|
+
argsToParams: Lc,
|
|
1396
|
+
bindClickHandler: Dc,
|
|
1397
|
+
clickCancel: Ga,
|
|
1398
1398
|
clickConfirm: Vr,
|
|
1399
|
-
clickDeny:
|
|
1399
|
+
clickDeny: Ka,
|
|
1400
1400
|
enableLoading: wt,
|
|
1401
|
-
fire:
|
|
1401
|
+
fire: Oc,
|
|
1402
1402
|
getActions: jt,
|
|
1403
1403
|
getCancelButton: rt,
|
|
1404
1404
|
getCloseButton: io,
|
|
@@ -1410,25 +1410,25 @@ const Hc = (t) => {
|
|
|
1410
1410
|
getHtmlContainer: sn,
|
|
1411
1411
|
getIcon: $t,
|
|
1412
1412
|
getImage: Lr,
|
|
1413
|
-
getInputLabel:
|
|
1413
|
+
getInputLabel: gi,
|
|
1414
1414
|
getLoader: At,
|
|
1415
1415
|
getPopup: Z,
|
|
1416
|
-
getTimerLeft:
|
|
1416
|
+
getTimerLeft: Fc,
|
|
1417
1417
|
getTimerProgressBar: hn,
|
|
1418
1418
|
getTitle: Rr,
|
|
1419
1419
|
getValidationMessage: fn,
|
|
1420
|
-
increaseTimer:
|
|
1420
|
+
increaseTimer: Nc,
|
|
1421
1421
|
isDeprecatedParameter: jn,
|
|
1422
|
-
isLoading:
|
|
1423
|
-
isTimerRunning:
|
|
1422
|
+
isLoading: yi,
|
|
1423
|
+
isTimerRunning: Uc,
|
|
1424
1424
|
isUpdatableParameter: Tr,
|
|
1425
1425
|
isValidParameter: Cr,
|
|
1426
|
-
isVisible:
|
|
1427
|
-
mixin:
|
|
1426
|
+
isVisible: qa,
|
|
1427
|
+
mixin: Ic,
|
|
1428
1428
|
resumeTimer: ts,
|
|
1429
1429
|
showLoading: wt,
|
|
1430
1430
|
stopTimer: es,
|
|
1431
|
-
toggleTimer:
|
|
1431
|
+
toggleTimer: Bc
|
|
1432
1432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1433
1433
|
let qn;
|
|
1434
1434
|
class kt {
|
|
@@ -1449,11 +1449,11 @@ class kt {
|
|
|
1449
1449
|
W.promise.set(this, o);
|
|
1450
1450
|
}
|
|
1451
1451
|
_main(e, n = {}) {
|
|
1452
|
-
|
|
1453
|
-
const o =
|
|
1454
|
-
|
|
1455
|
-
const r =
|
|
1456
|
-
return Mr(this, o), W.innerParams.set(this, o),
|
|
1452
|
+
pi(Object.assign({}, n, e)), z.currentInstance && (z.currentInstance._destroy(), co() && Hr()), z.currentInstance = this;
|
|
1453
|
+
const o = jc(e, n);
|
|
1454
|
+
va(o), Object.freeze(o), z.timeout && (z.timeout.stop(), delete z.timeout), clearTimeout(z.restoreFocusTimeout);
|
|
1455
|
+
const r = zc(this);
|
|
1456
|
+
return Mr(this, o), W.innerParams.set(this, o), $c(this, r, o);
|
|
1457
1457
|
}
|
|
1458
1458
|
// `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
|
1459
1459
|
then(e) {
|
|
@@ -1463,17 +1463,17 @@ class kt {
|
|
|
1463
1463
|
return W.promise.get(this).finally(e);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
const
|
|
1466
|
+
const $c = (t, e, n) => new Promise((o, r) => {
|
|
1467
1467
|
const s = (a) => {
|
|
1468
1468
|
t.closePopup({ isDismissed: !0, dismiss: a });
|
|
1469
1469
|
};
|
|
1470
|
-
Ut.swalPromiseResolve.set(t, o), Ut.swalPromiseReject.set(t, r), e.confirmButton.onclick = () =>
|
|
1470
|
+
Ut.swalPromiseResolve.set(t, o), Ut.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => vc(t), e.denyButton.onclick = () => Ac(t), e.cancelButton.onclick = () => Ec(t, s), e.closeButton.onclick = () => s(Et.close), xc(t, e, s), Ja(t, z, n, s), Na(t, n), La(n), Vc(z, n, s), Wc(e, n), setTimeout(() => {
|
|
1471
1471
|
e.container.scrollTop = 0;
|
|
1472
1472
|
});
|
|
1473
|
-
}),
|
|
1474
|
-
const n =
|
|
1473
|
+
}), jc = (t, e) => {
|
|
1474
|
+
const n = ua(t), o = Object.assign({}, mt, e, n, t);
|
|
1475
1475
|
return o.showClass = Object.assign({}, mt.showClass, o.showClass), o.hideClass = Object.assign({}, mt.hideClass, o.hideClass), o;
|
|
1476
|
-
},
|
|
1476
|
+
}, zc = (t) => {
|
|
1477
1477
|
const e = {
|
|
1478
1478
|
popup: Z(),
|
|
1479
1479
|
container: pe(),
|
|
@@ -1487,24 +1487,24 @@ const jc = (t, e, n) => new Promise((o, r) => {
|
|
|
1487
1487
|
progressSteps: Or()
|
|
1488
1488
|
};
|
|
1489
1489
|
return W.domCache.set(t, e), e;
|
|
1490
|
-
},
|
|
1490
|
+
}, Vc = (t, e, n) => {
|
|
1491
1491
|
const o = hn();
|
|
1492
|
-
me(o), e.timer && (t.timeout = new
|
|
1492
|
+
me(o), e.timer && (t.timeout = new Aa(() => {
|
|
1493
1493
|
n("timer"), delete t.timeout;
|
|
1494
1494
|
}, e.timer), e.timerProgressBar && (ue(o), Ie(o, e, "timerProgressBar"), setTimeout(() => {
|
|
1495
1495
|
t.timeout && t.timeout.running && uo(e.timer);
|
|
1496
1496
|
})));
|
|
1497
|
-
},
|
|
1497
|
+
}, Wc = (t, e) => {
|
|
1498
1498
|
if (!e.toast) {
|
|
1499
1499
|
if (!dn(e.allowEnterKey))
|
|
1500
|
-
return
|
|
1501
|
-
|
|
1500
|
+
return Kc();
|
|
1501
|
+
qc(t, e) || Vn(e, -1, 1);
|
|
1502
1502
|
}
|
|
1503
|
-
},
|
|
1503
|
+
}, qc = (t, e) => e.focusDeny && Pe(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Pe(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Pe(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Kc = () => {
|
|
1504
1504
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1505
1505
|
};
|
|
1506
1506
|
Object.assign(kt.prototype, Xr);
|
|
1507
|
-
Object.assign(kt,
|
|
1507
|
+
Object.assign(kt, Hc);
|
|
1508
1508
|
Object.keys(Xr).forEach((t) => {
|
|
1509
1509
|
kt[t] = function(...e) {
|
|
1510
1510
|
if (qn)
|
|
@@ -1513,14 +1513,14 @@ Object.keys(Xr).forEach((t) => {
|
|
|
1513
1513
|
});
|
|
1514
1514
|
kt.DismissReason = Et;
|
|
1515
1515
|
kt.version = "11.4.8";
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1516
|
+
const bt = kt;
|
|
1517
|
+
bt.default = bt;
|
|
1518
1518
|
/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
|
|
1519
1519
|
const {
|
|
1520
1520
|
entries: ns,
|
|
1521
1521
|
setPrototypeOf: Qo,
|
|
1522
|
-
isFrozen:
|
|
1523
|
-
getPrototypeOf:
|
|
1522
|
+
isFrozen: Gc,
|
|
1523
|
+
getPrototypeOf: Jc,
|
|
1524
1524
|
getOwnPropertyDescriptor: os
|
|
1525
1525
|
} = Object;
|
|
1526
1526
|
let {
|
|
@@ -1543,7 +1543,7 @@ Kn || (Kn = function(e, n, o) {
|
|
|
1543
1543
|
Gn || (Gn = function(e, n) {
|
|
1544
1544
|
return new e(...n);
|
|
1545
1545
|
});
|
|
1546
|
-
const Xt = Fe(Array.prototype.forEach), er = Fe(Array.prototype.pop), Ct = Fe(Array.prototype.push), en = Fe(String.prototype.toLowerCase), Ln = Fe(String.prototype.toString),
|
|
1546
|
+
const Xt = Fe(Array.prototype.forEach), er = Fe(Array.prototype.pop), Ct = Fe(Array.prototype.push), en = Fe(String.prototype.toLowerCase), Ln = Fe(String.prototype.toString), Yc = Fe(String.prototype.match), Tt = Fe(String.prototype.replace), Xc = Fe(String.prototype.indexOf), Zc = Fe(String.prototype.trim), _e = Fe(RegExp.prototype.test), Pt = Qc(TypeError);
|
|
1547
1547
|
function Fe(t) {
|
|
1548
1548
|
return function(e) {
|
|
1549
1549
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
@@ -1551,7 +1551,7 @@ function Fe(t) {
|
|
|
1551
1551
|
return Kn(t, e, o);
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Qc(t) {
|
|
1555
1555
|
return function() {
|
|
1556
1556
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
1557
1557
|
n[o] = arguments[o];
|
|
@@ -1566,7 +1566,7 @@ function V(t, e) {
|
|
|
1566
1566
|
let r = e[o];
|
|
1567
1567
|
if (typeof r == "string") {
|
|
1568
1568
|
const s = n(r);
|
|
1569
|
-
s !== r && (
|
|
1569
|
+
s !== r && (Gc(e) || (e[o] = s), r = s);
|
|
1570
1570
|
}
|
|
1571
1571
|
t[r] = !0;
|
|
1572
1572
|
}
|
|
@@ -1587,35 +1587,35 @@ function Zt(t, e) {
|
|
|
1587
1587
|
if (typeof o.value == "function")
|
|
1588
1588
|
return Fe(o.value);
|
|
1589
1589
|
}
|
|
1590
|
-
t =
|
|
1590
|
+
t = Jc(t);
|
|
1591
1591
|
}
|
|
1592
1592
|
function n(o) {
|
|
1593
1593
|
return console.warn("fallback value for", o), null;
|
|
1594
1594
|
}
|
|
1595
1595
|
return n;
|
|
1596
1596
|
}
|
|
1597
|
-
const tr = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), On = we(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), In = we(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
1597
|
+
const tr = we(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), On = we(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), In = we(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), el = we(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Fn = we(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), tl = we(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), nr = we(["#text"]), or = we(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Bn = we(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), rr = we(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qt = we(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), nl = Ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ol = Ue(/<%[\w\W]*|[\w\W]*%>/gm), rl = Ue(/\${[\w\W]*}/gm), sl = Ue(/^data-[\-\w.\u00B7-\uFFFF]/), il = Ue(/^aria-[\-\w]+$/), ss = Ue(
|
|
1598
1598
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1599
1599
|
// eslint-disable-line no-useless-escape
|
|
1600
|
-
),
|
|
1600
|
+
), al = Ue(/^(?:\w+script|data):/i), cl = Ue(
|
|
1601
1601
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1602
1602
|
// eslint-disable-line no-control-regex
|
|
1603
1603
|
), is = Ue(/^html$/i);
|
|
1604
1604
|
var sr = /* @__PURE__ */ Object.freeze({
|
|
1605
1605
|
__proto__: null,
|
|
1606
|
-
MUSTACHE_EXPR:
|
|
1607
|
-
ERB_EXPR:
|
|
1608
|
-
TMPLIT_EXPR:
|
|
1609
|
-
DATA_ATTR:
|
|
1610
|
-
ARIA_ATTR:
|
|
1606
|
+
MUSTACHE_EXPR: nl,
|
|
1607
|
+
ERB_EXPR: ol,
|
|
1608
|
+
TMPLIT_EXPR: rl,
|
|
1609
|
+
DATA_ATTR: sl,
|
|
1610
|
+
ARIA_ATTR: il,
|
|
1611
1611
|
IS_ALLOWED_URI: ss,
|
|
1612
|
-
IS_SCRIPT_OR_DATA:
|
|
1613
|
-
ATTR_WHITESPACE:
|
|
1612
|
+
IS_SCRIPT_OR_DATA: al,
|
|
1613
|
+
ATTR_WHITESPACE: cl,
|
|
1614
1614
|
DOCTYPE_NAME: is
|
|
1615
1615
|
});
|
|
1616
|
-
const
|
|
1616
|
+
const ll = function() {
|
|
1617
1617
|
return typeof window > "u" ? null : window;
|
|
1618
|
-
},
|
|
1618
|
+
}, ul = function(e, n) {
|
|
1619
1619
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
1620
1620
|
return null;
|
|
1621
1621
|
let o = null;
|
|
@@ -1636,7 +1636,7 @@ const ul = function() {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
1638
|
function as() {
|
|
1639
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1639
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ll();
|
|
1640
1640
|
const e = (F) => as(F);
|
|
1641
1641
|
if (e.version = "3.0.6", e.removed = [], !t || !t.document || t.document.nodeType !== 9)
|
|
1642
1642
|
return e.isSupported = !1, e;
|
|
@@ -1648,9 +1648,9 @@ function as() {
|
|
|
1648
1648
|
HTMLTemplateElement: a,
|
|
1649
1649
|
Node: d,
|
|
1650
1650
|
Element: l,
|
|
1651
|
-
NodeFilter:
|
|
1651
|
+
NodeFilter: y,
|
|
1652
1652
|
NamedNodeMap: x = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
1653
|
-
HTMLFormElement:
|
|
1653
|
+
HTMLFormElement: b,
|
|
1654
1654
|
DOMParser: K,
|
|
1655
1655
|
trustedTypes: H
|
|
1656
1656
|
} = t, I = l.prototype, B = Zt(I, "cloneNode"), Y = Zt(I, "nextSibling"), ne = Zt(I, "childNodes"), te = Zt(I, "parentNode");
|
|
@@ -1679,7 +1679,7 @@ function as() {
|
|
|
1679
1679
|
ATTR_WHITESPACE: oe
|
|
1680
1680
|
} = sr;
|
|
1681
1681
|
let {
|
|
1682
|
-
IS_ALLOWED_URI:
|
|
1682
|
+
IS_ALLOWED_URI: be
|
|
1683
1683
|
} = sr, U = null;
|
|
1684
1684
|
const ve = V({}, [...tr, ...On, ...In, ...Fn, ...nr]);
|
|
1685
1685
|
let i = null;
|
|
@@ -1703,7 +1703,7 @@ function as() {
|
|
|
1703
1703
|
enumerable: !0,
|
|
1704
1704
|
value: !1
|
|
1705
1705
|
}
|
|
1706
|
-
})), A = null, g = null, P = !0, v = !0, E = !1, L = !0, R = !1, D = !1, q = !1, Ae = !1,
|
|
1706
|
+
})), A = null, g = null, P = !0, v = !0, E = !1, L = !0, R = !1, D = !1, q = !1, Ae = !1, ye = !1, le = !1, De = !1, Eo = !0, ko = !1;
|
|
1707
1707
|
const Os = "user-content-";
|
|
1708
1708
|
let En = !0, St = !1, at = {}, ct = null;
|
|
1709
1709
|
const xo = V({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -1736,20 +1736,20 @@ function as() {
|
|
|
1736
1736
|
// eslint-disable-line indent
|
|
1737
1737
|
ce
|
|
1738
1738
|
// eslint-disable-line indent
|
|
1739
|
-
) : _o, ct = "FORBID_CONTENTS" in c ? V({}, c.FORBID_CONTENTS, ce) : xo, A = "FORBID_TAGS" in c ? V({}, c.FORBID_TAGS, ce) : {}, g = "FORBID_ATTR" in c ? V({}, c.FORBID_ATTR, ce) : {}, at = "USE_PROFILES" in c ? c.USE_PROFILES : !1, P = c.ALLOW_ARIA_ATTR !== !1, v = c.ALLOW_DATA_ATTR !== !1, E = c.ALLOW_UNKNOWN_PROTOCOLS || !1, L = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = c.SAFE_FOR_TEMPLATES || !1, D = c.WHOLE_DOCUMENT || !1,
|
|
1739
|
+
) : _o, ct = "FORBID_CONTENTS" in c ? V({}, c.FORBID_CONTENTS, ce) : xo, A = "FORBID_TAGS" in c ? V({}, c.FORBID_TAGS, ce) : {}, g = "FORBID_ATTR" in c ? V({}, c.FORBID_ATTR, ce) : {}, at = "USE_PROFILES" in c ? c.USE_PROFILES : !1, P = c.ALLOW_ARIA_ATTR !== !1, v = c.ALLOW_DATA_ATTR !== !1, E = c.ALLOW_UNKNOWN_PROTOCOLS || !1, L = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = c.SAFE_FOR_TEMPLATES || !1, D = c.WHOLE_DOCUMENT || !1, ye = c.RETURN_DOM || !1, le = c.RETURN_DOM_FRAGMENT || !1, De = c.RETURN_TRUSTED_TYPE || !1, Ae = c.FORCE_BODY || !1, Eo = c.SANITIZE_DOM !== !1, ko = c.SANITIZE_NAMED_PROPS || !1, En = c.KEEP_CONTENT !== !1, St = c.IN_PLACE || !1, be = c.ALLOWED_URI_REGEXP || ss, lt = c.NAMESPACE || ze, p = c.CUSTOM_ELEMENT_HANDLING || {}, c.CUSTOM_ELEMENT_HANDLING && To(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (p.tagNameCheck = c.CUSTOM_ELEMENT_HANDLING.tagNameCheck), c.CUSTOM_ELEMENT_HANDLING && To(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (p.attributeNameCheck = c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (p.allowCustomizedBuiltInElements = c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), R && (v = !1), le && (ye = !0), at && (U = V({}, [...nr]), i = [], at.html === !0 && (V(U, tr), V(i, or)), at.svg === !0 && (V(U, On), V(i, Bn), V(i, Qt)), at.svgFilters === !0 && (V(U, In), V(i, Bn), V(i, Qt)), at.mathMl === !0 && (V(U, Fn), V(i, rr), V(i, Qt))), c.ADD_TAGS && (U === ve && (U = dt(U)), V(U, c.ADD_TAGS, ce)), c.ADD_ATTR && (i === u && (i = dt(i)), V(i, c.ADD_ATTR, ce)), c.ADD_URI_SAFE_ATTR && V(kn, c.ADD_URI_SAFE_ATTR, ce), c.FORBID_CONTENTS && (ct === xo && (ct = dt(ct)), V(ct, c.FORBID_CONTENTS, ce)), En && (U["#text"] = !0), D && V(U, ["html", "head", "body"]), U.table && (V(U, ["tbody"]), delete A.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
1740
1740
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1741
1741
|
throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1742
1742
|
if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1743
1743
|
throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1744
1744
|
M = c.TRUSTED_TYPES_POLICY, ge = M.createHTML("");
|
|
1745
1745
|
} else
|
|
1746
|
-
M === void 0 && (M =
|
|
1746
|
+
M === void 0 && (M = ul(H, r)), M !== null && typeof ge == "string" && (ge = M.createHTML(""));
|
|
1747
1747
|
we && we(c), ut = c;
|
|
1748
1748
|
}
|
|
1749
1749
|
}, Po = V({}, ["mi", "mo", "mn", "ms", "mtext"]), Ro = V({}, ["foreignobject", "desc", "title", "annotation-xml"]), Us = V({}, ["title", "style", "font", "a", "script"]), Jt = V({}, On);
|
|
1750
|
-
V(Jt, In), V(Jt,
|
|
1750
|
+
V(Jt, In), V(Jt, el);
|
|
1751
1751
|
const Cn = V({}, Fn);
|
|
1752
|
-
V(Cn,
|
|
1752
|
+
V(Cn, tl);
|
|
1753
1753
|
const Ds = function(c) {
|
|
1754
1754
|
let k = te(c);
|
|
1755
1755
|
(!k || !k.tagName) && (k = {
|
|
@@ -1780,7 +1780,7 @@ function as() {
|
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
1782
|
if (k.removeAttribute(c), c === "is" && !i[c])
|
|
1783
|
-
if (
|
|
1783
|
+
if (ye || le)
|
|
1784
1784
|
try {
|
|
1785
1785
|
et(k);
|
|
1786
1786
|
} catch {
|
|
@@ -1795,7 +1795,7 @@ function as() {
|
|
|
1795
1795
|
if (Ae)
|
|
1796
1796
|
c = "<remove></remove>" + c;
|
|
1797
1797
|
else {
|
|
1798
|
-
const fe =
|
|
1798
|
+
const fe = Yc(c, /^[\r\n\t ]+/);
|
|
1799
1799
|
O = fe && fe[0];
|
|
1800
1800
|
}
|
|
1801
1801
|
Qe === "application/xhtml+xml" && lt === ze && (c = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + c + "</body></html>");
|
|
@@ -1819,11 +1819,11 @@ function as() {
|
|
|
1819
1819
|
c.ownerDocument || c,
|
|
1820
1820
|
c,
|
|
1821
1821
|
// eslint-disable-next-line no-bitwise
|
|
1822
|
-
|
|
1822
|
+
y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT,
|
|
1823
1823
|
null
|
|
1824
1824
|
);
|
|
1825
1825
|
}, Ms = function(c) {
|
|
1826
|
-
return c instanceof
|
|
1826
|
+
return c instanceof b && (typeof c.nodeName != "string" || typeof c.textContent != "string" || typeof c.removeChild != "function" || !(c.attributes instanceof x) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function");
|
|
1827
1827
|
}, Io = function(c) {
|
|
1828
1828
|
return typeof d == "function" && c instanceof d;
|
|
1829
1829
|
}, Ve = function(c, k, O) {
|
|
@@ -1874,8 +1874,8 @@ function as() {
|
|
|
1874
1874
|
)
|
|
1875
1875
|
return !1;
|
|
1876
1876
|
} else if (!kn[k]) {
|
|
1877
|
-
if (!_e(
|
|
1878
|
-
if (!((k === "src" || k === "xlink:href" || k === "href") && c !== "script" &&
|
|
1877
|
+
if (!_e(be, Tt(O, oe, ""))) {
|
|
1878
|
+
if (!((k === "src" || k === "xlink:href" || k === "href") && c !== "script" && Xc(O, "data:") === 0 && So[c])) {
|
|
1879
1879
|
if (!(E && !_e(se, Tt(O, oe, "")))) {
|
|
1880
1880
|
if (O)
|
|
1881
1881
|
return !1;
|
|
@@ -1908,7 +1908,7 @@ function as() {
|
|
|
1908
1908
|
namespaceURI: Ee,
|
|
1909
1909
|
value: tt
|
|
1910
1910
|
} = de, _t = ce(fe);
|
|
1911
|
-
let ke = fe === "value" ? tt :
|
|
1911
|
+
let ke = fe === "value" ? tt : Zc(tt);
|
|
1912
1912
|
if (O.attrName = _t, O.attrValue = ke, O.keepAttr = !0, O.forceKeepAttr = void 0, Ve("uponSanitizeAttribute", c, O), ke = O.attrValue, O.forceKeepAttr || (Tn(fe, c), !O.keepAttr))
|
|
1913
1913
|
continue;
|
|
1914
1914
|
if (!L && _e(/\/>/i, ke)) {
|
|
@@ -1964,11 +1964,11 @@ function as() {
|
|
|
1964
1964
|
} else if (F instanceof d)
|
|
1965
1965
|
k = Lo("<!---->"), O = k.ownerDocument.importNode(F, !0), O.nodeType === 1 && O.nodeName === "BODY" || O.nodeName === "HTML" ? k = O : k.appendChild(O);
|
|
1966
1966
|
else {
|
|
1967
|
-
if (!
|
|
1967
|
+
if (!ye && !R && !D && // eslint-disable-next-line unicorn/prefer-includes
|
|
1968
1968
|
F.indexOf("<") === -1)
|
|
1969
1969
|
return M && De ? M.createHTML(F) : F;
|
|
1970
1970
|
if (k = Lo(F), !k)
|
|
1971
|
-
return
|
|
1971
|
+
return ye ? null : De ? ge : "";
|
|
1972
1972
|
}
|
|
1973
1973
|
k && Ae && et(k.firstChild);
|
|
1974
1974
|
const fe = Oo(St ? F : k);
|
|
@@ -1976,7 +1976,7 @@ function as() {
|
|
|
1976
1976
|
Fo(ee) || (ee.content instanceof s && Hs(ee.content), Uo(ee));
|
|
1977
1977
|
if (St)
|
|
1978
1978
|
return F;
|
|
1979
|
-
if (
|
|
1979
|
+
if (ye) {
|
|
1980
1980
|
if (le)
|
|
1981
1981
|
for (de = C.call(k.ownerDocument); k.firstChild; )
|
|
1982
1982
|
de.appendChild(k.firstChild);
|
|
@@ -2010,13 +2010,13 @@ function as() {
|
|
|
2010
2010
|
}, e;
|
|
2011
2011
|
}
|
|
2012
2012
|
var ir = as();
|
|
2013
|
-
class
|
|
2013
|
+
class dl {
|
|
2014
2014
|
get IsVisible() {
|
|
2015
|
-
return
|
|
2015
|
+
return bt.isVisible();
|
|
2016
2016
|
}
|
|
2017
2017
|
async ConfirmAsync(e) {
|
|
2018
2018
|
return new Promise((n) => {
|
|
2019
|
-
|
|
2019
|
+
bt.fire({
|
|
2020
2020
|
showCancelButton: !0,
|
|
2021
2021
|
allowEscapeKey: !1,
|
|
2022
2022
|
allowOutsideClick: !1,
|
|
@@ -2036,7 +2036,7 @@ class fl {
|
|
|
2036
2036
|
return Array.isArray(e.text) ? o = `<div style="max-height: 50vh; overflow: auto">
|
|
2037
2037
|
${e.text.join("<br />")}
|
|
2038
2038
|
</div>` : o = e.text, new Promise((r) => {
|
|
2039
|
-
|
|
2039
|
+
bt.fire({
|
|
2040
2040
|
allowEscapeKey: !1,
|
|
2041
2041
|
allowOutsideClick: !1,
|
|
2042
2042
|
icon: n,
|
|
@@ -2046,11 +2046,11 @@ class fl {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
const
|
|
2049
|
+
const fl = new dl(), hl = () => fl, pl = ["data-cor"], ml = /* @__PURE__ */ Je({
|
|
2050
2050
|
__name: "HeaderAvatar",
|
|
2051
2051
|
emits: ["logout"],
|
|
2052
2052
|
setup(t, { emit: e }) {
|
|
2053
|
-
const n =
|
|
2053
|
+
const n = hl(), o = pt("?"), r = e;
|
|
2054
2054
|
async function s() {
|
|
2055
2055
|
await n.ConfirmAsync({
|
|
2056
2056
|
text: "Você deseja sair da conta?",
|
|
@@ -2059,38 +2059,38 @@ const hl = new fl(), pl = () => hl, ml = ["data-cor"], gl = /* @__PURE__ */ Je({
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function a() {
|
|
2061
2061
|
const l = sessionStorage.getItem("name");
|
|
2062
|
-
let
|
|
2062
|
+
let y = "?";
|
|
2063
2063
|
if (!l)
|
|
2064
|
-
return
|
|
2065
|
-
const x = l.split(" ").filter((K) => K.length > 0).map((K) => K[0].toUpperCase()),
|
|
2066
|
-
return
|
|
2064
|
+
return y;
|
|
2065
|
+
const x = l.split(" ").filter((K) => K.length > 0).map((K) => K[0].toUpperCase()), b = Math.min(2, x.length);
|
|
2066
|
+
return y = x.slice(0, b).join(""), y.length > 0 ? y : "?";
|
|
2067
2067
|
}
|
|
2068
2068
|
const d = Ws(() => {
|
|
2069
|
-
const l = o.value[0],
|
|
2070
|
-
return Math.max(
|
|
2069
|
+
const l = o.value[0], y = l === "?" ? 0 : (l.charCodeAt(0) - 64) % 19;
|
|
2070
|
+
return Math.max(y, 0);
|
|
2071
2071
|
});
|
|
2072
2072
|
return un(() => {
|
|
2073
2073
|
o.value = a();
|
|
2074
|
-
}), (l,
|
|
2074
|
+
}), (l, y) => (ie(), Te("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
2076
2076
|
"data-cor": d.value,
|
|
2077
2077
|
onClick: s
|
|
2078
|
-
}, ln(o.value), 9,
|
|
2078
|
+
}, ln(o.value), 9, pl));
|
|
2079
2079
|
}
|
|
2080
|
-
}),
|
|
2080
|
+
}), gl = {}, bl = {
|
|
2081
2081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2082
2082
|
height: "48",
|
|
2083
2083
|
viewBox: "0 -960 960 960",
|
|
2084
2084
|
width: "48",
|
|
2085
2085
|
class: "sf-svg-icon"
|
|
2086
|
-
},
|
|
2087
|
-
|
|
2086
|
+
}, yl = /* @__PURE__ */ X("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), wl = [
|
|
2087
|
+
yl
|
|
2088
2088
|
];
|
|
2089
|
-
function
|
|
2090
|
-
return ie(), Te("svg", bl,
|
|
2089
|
+
function vl(t, e) {
|
|
2090
|
+
return ie(), Te("svg", bl, wl);
|
|
2091
2091
|
}
|
|
2092
|
-
const
|
|
2093
|
-
class
|
|
2092
|
+
const Al = /* @__PURE__ */ Sr(gl, [["render", vl]]);
|
|
2093
|
+
class El {
|
|
2094
2094
|
get storedTheme() {
|
|
2095
2095
|
return localStorage.getItem("color-scheme");
|
|
2096
2096
|
}
|
|
@@ -2116,18 +2116,18 @@ class kl {
|
|
|
2116
2116
|
this.EnableLightMode();
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
const Jn = (() => new
|
|
2120
|
-
|
|
2121
|
-
],
|
|
2119
|
+
const Jn = (() => new El())(), kl = /* @__PURE__ */ qs('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), xl = [
|
|
2120
|
+
kl
|
|
2121
|
+
], Sl = /* @__PURE__ */ Je({
|
|
2122
2122
|
__name: "ThemeToggle",
|
|
2123
2123
|
setup(t) {
|
|
2124
2124
|
return (e, n) => (ie(), Te("button", {
|
|
2125
2125
|
id: "sf-theme-toggle",
|
|
2126
2126
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2127
2127
|
(...o) => ot(Jn).Toggle && ot(Jn).Toggle(...o))
|
|
2128
|
-
},
|
|
2128
|
+
}, xl));
|
|
2129
2129
|
}
|
|
2130
|
-
}),
|
|
2130
|
+
}), _l = { id: "sf-layout" }, Cl = /* @__PURE__ */ X("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Tl = { class: "title" }, Pl = { class: "sf-layout-nav-header" }, Rl = /* @__PURE__ */ X("span", null, "Menu", -1), Ll = { class: "sf-layout-nav-content" }, Ol = /* @__PURE__ */ X("section", { id: "sf-layout-page-title" }, null, -1), Il = { id: "sf-layout-content" }, Od = /* @__PURE__ */ Je({
|
|
2131
2131
|
__name: "Layout",
|
|
2132
2132
|
emits: ["mounted", "logout"],
|
|
2133
2133
|
setup(t, { emit: e }) {
|
|
@@ -2137,7 +2137,7 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2137
2137
|
}
|
|
2138
2138
|
return un(() => {
|
|
2139
2139
|
o("mounted");
|
|
2140
|
-
}), (s, a) => (ie(), Te("div",
|
|
2140
|
+
}), (s, a) => (ie(), Te("div", _l, [
|
|
2141
2141
|
X("header", null, [
|
|
2142
2142
|
X("div", {
|
|
2143
2143
|
class: Ce([
|
|
@@ -2146,42 +2146,42 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2146
2146
|
]),
|
|
2147
2147
|
onClick: a[0] || (a[0] = (d) => ot(n).Toggle())
|
|
2148
2148
|
}, [
|
|
2149
|
-
|
|
2150
|
-
Lt(
|
|
2149
|
+
Cl,
|
|
2150
|
+
Lt(Al)
|
|
2151
2151
|
], 2),
|
|
2152
|
-
X("div",
|
|
2152
|
+
X("div", Tl, [
|
|
2153
2153
|
qe(s.$slots, "title")
|
|
2154
2154
|
]),
|
|
2155
2155
|
qe(s.$slots, "action"),
|
|
2156
|
-
Lt(
|
|
2157
|
-
Lt(
|
|
2156
|
+
Lt(Sl),
|
|
2157
|
+
Lt(ml, { onLogout: r })
|
|
2158
2158
|
]),
|
|
2159
2159
|
X("nav", {
|
|
2160
2160
|
class: Ce({ visible: ot(n).IsVisible })
|
|
2161
2161
|
}, [
|
|
2162
|
-
X("div",
|
|
2163
|
-
|
|
2162
|
+
X("div", Pl, [
|
|
2163
|
+
Rl,
|
|
2164
2164
|
Lt(rn, {
|
|
2165
2165
|
icone: "close",
|
|
2166
2166
|
button: "",
|
|
2167
2167
|
onClick: a[1] || (a[1] = (d) => ot(n).Close())
|
|
2168
2168
|
})
|
|
2169
2169
|
]),
|
|
2170
|
-
X("div",
|
|
2170
|
+
X("div", Ll, [
|
|
2171
2171
|
qe(s.$slots, "menu")
|
|
2172
2172
|
])
|
|
2173
2173
|
], 2),
|
|
2174
2174
|
X("main", {
|
|
2175
2175
|
class: Ce({ "menu-visible": ot(n).IsVisible })
|
|
2176
2176
|
}, [
|
|
2177
|
-
|
|
2178
|
-
X("section",
|
|
2177
|
+
Ol,
|
|
2178
|
+
X("section", Il, [
|
|
2179
2179
|
qe(s.$slots, "content")
|
|
2180
2180
|
])
|
|
2181
2181
|
], 2)
|
|
2182
2182
|
]));
|
|
2183
2183
|
}
|
|
2184
|
-
}),
|
|
2184
|
+
}), Fl = ["href", "data-active", "onClick"], Bl = { class: "sf-navmenulink-text" }, Id = /* @__PURE__ */ Je({
|
|
2185
2185
|
__name: "NavMenuLink",
|
|
2186
2186
|
props: {
|
|
2187
2187
|
href: {},
|
|
@@ -2198,30 +2198,30 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2198
2198
|
}
|
|
2199
2199
|
return (r, s) => {
|
|
2200
2200
|
const a = Ar("router-link");
|
|
2201
|
-
return ie(),
|
|
2201
|
+
return ie(), yt(a, {
|
|
2202
2202
|
to: e.href,
|
|
2203
2203
|
custom: ""
|
|
2204
2204
|
}, {
|
|
2205
|
-
default: Er(({ href: d, navigate: l, isExactActive:
|
|
2205
|
+
default: Er(({ href: d, navigate: l, isExactActive: y, isActive: x }) => [
|
|
2206
2206
|
X("a", {
|
|
2207
2207
|
class: "sf-navmenulink",
|
|
2208
2208
|
href: d,
|
|
2209
|
-
"data-active": e.exact ?
|
|
2210
|
-
onClick: (
|
|
2209
|
+
"data-active": e.exact ? y : x,
|
|
2210
|
+
onClick: (b) => o(b, l)
|
|
2211
2211
|
}, [
|
|
2212
|
-
e.icon ? (ie(),
|
|
2212
|
+
e.icon ? (ie(), yt(rn, {
|
|
2213
2213
|
key: 0,
|
|
2214
2214
|
icone: e.icon,
|
|
2215
2215
|
"button-props": { tabindex: -1 }
|
|
2216
2216
|
}, null, 8, ["icone"])) : no("", !0),
|
|
2217
|
-
X("span",
|
|
2218
|
-
], 8,
|
|
2217
|
+
X("span", Bl, ln(e.text), 1)
|
|
2218
|
+
], 8, Fl)
|
|
2219
2219
|
]),
|
|
2220
2220
|
_: 1
|
|
2221
2221
|
}, 8, ["to"]);
|
|
2222
2222
|
};
|
|
2223
2223
|
}
|
|
2224
|
-
}),
|
|
2224
|
+
}), Nl = /* @__PURE__ */ Je({
|
|
2225
2225
|
__name: "ScrollToTop",
|
|
2226
2226
|
setup(t) {
|
|
2227
2227
|
const e = pt(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
@@ -2240,7 +2240,7 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2240
2240
|
onClick: r
|
|
2241
2241
|
}, null, 2));
|
|
2242
2242
|
}
|
|
2243
|
-
}),
|
|
2243
|
+
}), Fd = /* @__PURE__ */ Je({
|
|
2244
2244
|
__name: "Content",
|
|
2245
2245
|
props: {
|
|
2246
2246
|
class: {},
|
|
@@ -2276,7 +2276,7 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2276
2276
|
class: Ce(o())
|
|
2277
2277
|
}, [
|
|
2278
2278
|
qe(a.$slots, "default"),
|
|
2279
|
-
Lt(
|
|
2279
|
+
Lt(Nl)
|
|
2280
2280
|
], 2),
|
|
2281
2281
|
X("div", {
|
|
2282
2282
|
class: Ce(s())
|
|
@@ -2285,7 +2285,7 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2285
2285
|
], 2)
|
|
2286
2286
|
], 6));
|
|
2287
2287
|
}
|
|
2288
|
-
}),
|
|
2288
|
+
}), Ul = { class: "sf-tab-navigation" }, Dl = /* @__PURE__ */ X("svg", {
|
|
2289
2289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2290
2290
|
fill: "none",
|
|
2291
2291
|
viewBox: "0 0 24 24",
|
|
@@ -2298,9 +2298,9 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2298
2298
|
"stroke-linejoin": "round",
|
|
2299
2299
|
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
2300
2300
|
})
|
|
2301
|
-
], -1),
|
|
2302
|
-
|
|
2303
|
-
],
|
|
2301
|
+
], -1), Ml = [
|
|
2302
|
+
Dl
|
|
2303
|
+
], Hl = ["data-active"], $l = ["href", "onClick"], jl = /* @__PURE__ */ X("svg", {
|
|
2304
2304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2305
2305
|
fill: "none",
|
|
2306
2306
|
viewBox: "0 0 24 24",
|
|
@@ -2313,9 +2313,9 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2313
2313
|
"stroke-linejoin": "round",
|
|
2314
2314
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
2315
2315
|
})
|
|
2316
|
-
], -1),
|
|
2317
|
-
|
|
2318
|
-
],
|
|
2316
|
+
], -1), zl = [
|
|
2317
|
+
jl
|
|
2318
|
+
], Bd = /* @__PURE__ */ Je({
|
|
2319
2319
|
__name: "TabNavigation",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
tabs: {}
|
|
@@ -2325,8 +2325,8 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2325
2325
|
d();
|
|
2326
2326
|
}), r = pt(!1), s = pt(!1);
|
|
2327
2327
|
function a(l = !1) {
|
|
2328
|
-
const
|
|
2329
|
-
n.value.scrollLeft += l ? -
|
|
2328
|
+
const y = n.value.clientWidth;
|
|
2329
|
+
n.value.scrollLeft += l ? -y : y;
|
|
2330
2330
|
}
|
|
2331
2331
|
function d() {
|
|
2332
2332
|
const l = n.value.scrollWidth - n.value.clientWidth;
|
|
@@ -2343,47 +2343,47 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2343
2343
|
), o.unobserve(n.value), o.disconnect();
|
|
2344
2344
|
} catch {
|
|
2345
2345
|
}
|
|
2346
|
-
}), (l,
|
|
2346
|
+
}), (l, y) => {
|
|
2347
2347
|
const x = Ar("RouterLink");
|
|
2348
|
-
return ie(), Te("div",
|
|
2348
|
+
return ie(), Te("div", Ul, [
|
|
2349
2349
|
X("div", {
|
|
2350
2350
|
class: Ce(["left-arrow", { active: r.value }]),
|
|
2351
|
-
onClick:
|
|
2352
|
-
},
|
|
2351
|
+
onClick: y[0] || (y[0] = (b) => a(!0))
|
|
2352
|
+
}, Ml, 2),
|
|
2353
2353
|
X("ul", {
|
|
2354
2354
|
ref_key: "trackerContainer",
|
|
2355
2355
|
ref: n
|
|
2356
2356
|
}, [
|
|
2357
|
-
(ie(!0), Te(vr, null, Gs(e.tabs, (
|
|
2358
|
-
to:
|
|
2357
|
+
(ie(!0), Te(vr, null, Gs(e.tabs, (b) => (ie(), yt(x, {
|
|
2358
|
+
to: b.route,
|
|
2359
2359
|
custom: !0
|
|
2360
2360
|
}, {
|
|
2361
2361
|
default: Er(({ navigate: K, isActive: H }) => [
|
|
2362
2362
|
X("li", { "data-active": H }, [
|
|
2363
2363
|
qe(l.$slots, "item", {
|
|
2364
|
-
item:
|
|
2364
|
+
item: b,
|
|
2365
2365
|
navigate: K,
|
|
2366
2366
|
isActive: H
|
|
2367
2367
|
}, () => [
|
|
2368
2368
|
X("a", {
|
|
2369
|
-
href:
|
|
2369
|
+
href: b.route,
|
|
2370
2370
|
class: Ce({ active: H }),
|
|
2371
2371
|
onClick: K
|
|
2372
|
-
}, ln(
|
|
2372
|
+
}, ln(b.text), 11, $l)
|
|
2373
2373
|
])
|
|
2374
|
-
], 8,
|
|
2374
|
+
], 8, Hl)
|
|
2375
2375
|
]),
|
|
2376
2376
|
_: 2
|
|
2377
2377
|
}, 1032, ["to"]))), 256))
|
|
2378
2378
|
], 512),
|
|
2379
2379
|
X("div", {
|
|
2380
2380
|
class: Ce(["right-arrow", { active: s.value }]),
|
|
2381
|
-
onClick:
|
|
2382
|
-
},
|
|
2381
|
+
onClick: y[1] || (y[1] = (b) => a())
|
|
2382
|
+
}, zl, 2)
|
|
2383
2383
|
]);
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
}),
|
|
2386
|
+
}), Vl = ["id", "name", "disabled", "data-color", "form", "type"], Wl = { class: "sf-button-label" }, Nd = /* @__PURE__ */ Je({
|
|
2387
2387
|
__name: "Button",
|
|
2388
2388
|
props: {
|
|
2389
2389
|
icon: {},
|
|
@@ -2417,29 +2417,29 @@ const Jn = (() => new kl())(), xl = /* @__PURE__ */ qs('<svg xmlns="http://www.w
|
|
|
2417
2417
|
form: e.form,
|
|
2418
2418
|
type: e.type
|
|
2419
2419
|
}, [
|
|
2420
|
-
e.icon ? (ie(),
|
|
2420
|
+
e.icon ? (ie(), yt(rn, {
|
|
2421
2421
|
key: 0,
|
|
2422
2422
|
icone: e.icon,
|
|
2423
2423
|
loading: e.loading,
|
|
2424
2424
|
size: e.size,
|
|
2425
2425
|
"button-props": { tabindex: -1 }
|
|
2426
|
-
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (ie(),
|
|
2426
|
+
}, null, 8, ["icone", "loading", "size"])) : e.loading ? (ie(), yt(rn, {
|
|
2427
2427
|
key: 1,
|
|
2428
2428
|
loading: !0,
|
|
2429
2429
|
size: e.size,
|
|
2430
2430
|
"button-props": { tabindex: -1 }
|
|
2431
2431
|
}, null, 8, ["size"])) : no("", !0),
|
|
2432
|
-
X("span",
|
|
2432
|
+
X("span", Wl, [
|
|
2433
2433
|
qe(o.$slots, "default")
|
|
2434
2434
|
])
|
|
2435
|
-
], 14,
|
|
2435
|
+
], 14, Vl));
|
|
2436
2436
|
}
|
|
2437
2437
|
});
|
|
2438
|
-
var
|
|
2439
|
-
function
|
|
2438
|
+
var ql = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2439
|
+
function Kl(t) {
|
|
2440
2440
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function Gl(t) {
|
|
2443
2443
|
if (t.__esModule)
|
|
2444
2444
|
return t;
|
|
2445
2445
|
var e = t.default;
|
|
@@ -2461,11 +2461,11 @@ function Jl(t) {
|
|
|
2461
2461
|
}), n;
|
|
2462
2462
|
}
|
|
2463
2463
|
var gn = {};
|
|
2464
|
-
gn.byteLength =
|
|
2465
|
-
gn.toByteArray =
|
|
2466
|
-
gn.fromByteArray =
|
|
2467
|
-
var Me = [], Le = [],
|
|
2468
|
-
for (var ft = 0,
|
|
2464
|
+
gn.byteLength = Xl;
|
|
2465
|
+
gn.toByteArray = Ql;
|
|
2466
|
+
gn.fromByteArray = nu;
|
|
2467
|
+
var Me = [], Le = [], Jl = typeof Uint8Array < "u" ? Uint8Array : Array, Nn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2468
|
+
for (var ft = 0, Yl = Nn.length; ft < Yl; ++ft)
|
|
2469
2469
|
Me[ft] = Nn[ft], Le[Nn.charCodeAt(ft)] = ft;
|
|
2470
2470
|
Le["-".charCodeAt(0)] = 62;
|
|
2471
2471
|
Le["_".charCodeAt(0)] = 63;
|
|
@@ -2478,30 +2478,30 @@ function cs(t) {
|
|
|
2478
2478
|
var o = n === e ? 0 : 4 - n % 4;
|
|
2479
2479
|
return [n, o];
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2481
|
+
function Xl(t) {
|
|
2482
2482
|
var e = cs(t), n = e[0], o = e[1];
|
|
2483
2483
|
return (n + o) * 3 / 4 - o;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2485
|
+
function Zl(t, e, n) {
|
|
2486
2486
|
return (e + n) * 3 / 4 - n;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2489
|
-
var e, n = cs(t), o = n[0], r = n[1], s = new
|
|
2488
|
+
function Ql(t) {
|
|
2489
|
+
var e, n = cs(t), o = n[0], r = n[1], s = new Jl(Zl(t, o, r)), a = 0, d = r > 0 ? o - 4 : o, l;
|
|
2490
2490
|
for (l = 0; l < d; l += 4)
|
|
2491
2491
|
e = Le[t.charCodeAt(l)] << 18 | Le[t.charCodeAt(l + 1)] << 12 | Le[t.charCodeAt(l + 2)] << 6 | Le[t.charCodeAt(l + 3)], s[a++] = e >> 16 & 255, s[a++] = e >> 8 & 255, s[a++] = e & 255;
|
|
2492
2492
|
return r === 2 && (e = Le[t.charCodeAt(l)] << 2 | Le[t.charCodeAt(l + 1)] >> 4, s[a++] = e & 255), r === 1 && (e = Le[t.charCodeAt(l)] << 10 | Le[t.charCodeAt(l + 1)] << 4 | Le[t.charCodeAt(l + 2)] >> 2, s[a++] = e >> 8 & 255, s[a++] = e & 255), s;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function eu(t) {
|
|
2495
2495
|
return Me[t >> 18 & 63] + Me[t >> 12 & 63] + Me[t >> 6 & 63] + Me[t & 63];
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function tu(t, e, n) {
|
|
2498
2498
|
for (var o, r = [], s = e; s < n; s += 3)
|
|
2499
|
-
o = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (t[s + 2] & 255), r.push(
|
|
2499
|
+
o = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (t[s + 2] & 255), r.push(eu(o));
|
|
2500
2500
|
return r.join("");
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function nu(t) {
|
|
2503
2503
|
for (var e, n = t.length, o = n % 3, r = [], s = 16383, a = 0, d = n - o; a < d; a += s)
|
|
2504
|
-
r.push(
|
|
2504
|
+
r.push(tu(t, a, a + s > d ? d : a + s));
|
|
2505
2505
|
return o === 1 ? (e = t[n - 1], r.push(
|
|
2506
2506
|
Me[e >> 2] + Me[e << 4 & 63] + "=="
|
|
2507
2507
|
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], r.push(
|
|
@@ -2509,10 +2509,10 @@ function ou(t) {
|
|
|
2509
2509
|
)), r.join("");
|
|
2510
2510
|
}
|
|
2511
2511
|
var ls = { exports: {} };
|
|
2512
|
-
const
|
|
2512
|
+
const ou = {}, ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2513
2513
|
__proto__: null,
|
|
2514
|
-
default:
|
|
2515
|
-
}, Symbol.toStringTag, { value: "Module" })), ar = /* @__PURE__ */
|
|
2514
|
+
default: ou
|
|
2515
|
+
}, Symbol.toStringTag, { value: "Module" })), ar = /* @__PURE__ */ Gl(ru);
|
|
2516
2516
|
/**
|
|
2517
2517
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
2518
2518
|
*
|
|
@@ -2526,8 +2526,8 @@ const ru = {}, su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2526
2526
|
var e = "input is invalid type", n = typeof window == "object", o = n ? window : {};
|
|
2527
2527
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2528
2528
|
var r = !n && typeof self == "object", s = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2529
|
-
s ? o =
|
|
2530
|
-
var a = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, d = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", l = "0123456789abcdef".split(""),
|
|
2529
|
+
s ? o = ql : r && (o = self);
|
|
2530
|
+
var a = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, d = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", l = "0123456789abcdef".split(""), y = [-2147483648, 8388608, 32768, 128], x = [24, 16, 8, 0], b = [
|
|
2531
2531
|
1116352408,
|
|
2532
2532
|
1899447441,
|
|
2533
2533
|
3049323471,
|
|
@@ -2677,14 +2677,14 @@ const ru = {}, su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2677
2677
|
if (!this.finalized) {
|
|
2678
2678
|
this.finalized = !0;
|
|
2679
2679
|
var m = this.blocks, C = this.lastByteIndex;
|
|
2680
|
-
m[16] = this.block, m[C >> 2] |=
|
|
2680
|
+
m[16] = this.block, m[C >> 2] |= y[C & 3], this.block = m[16], C >= 56 && (this.hashed || this.hash(), m[0] = this.block, m[16] = m[1] = m[2] = m[3] = m[4] = m[5] = m[6] = m[7] = m[8] = m[9] = m[10] = m[11] = m[12] = m[13] = m[14] = m[15] = 0), m[14] = this.hBytes << 3 | this.bytes >>> 29, m[15] = this.bytes << 3, this.hash();
|
|
2681
2681
|
}
|
|
2682
2682
|
}, M.prototype.hash = function() {
|
|
2683
|
-
var m = this.h0, C = this.h1, N = this.h2, T = this.h3, _ = this.h4, S = this.h5, $ = this.h6, w = this.h7, j = this.blocks, Q, se, oe,
|
|
2683
|
+
var m = this.h0, C = this.h1, N = this.h2, T = this.h3, _ = this.h4, S = this.h5, $ = this.h6, w = this.h7, j = this.blocks, Q, se, oe, be, U, ve, i, u, p, A, g;
|
|
2684
2684
|
for (Q = 16; Q < 64; ++Q)
|
|
2685
2685
|
U = j[Q - 15], se = (U >>> 7 | U << 25) ^ (U >>> 18 | U << 14) ^ U >>> 3, U = j[Q - 2], oe = (U >>> 17 | U << 15) ^ (U >>> 19 | U << 13) ^ U >>> 10, j[Q] = j[Q - 16] + se + j[Q - 7] + oe << 0;
|
|
2686
2686
|
for (g = C & N, Q = 0; Q < 64; Q += 4)
|
|
2687
|
-
this.first ? (this.is224 ? (u = 300032, U = j[0] - 1413257819, w = U - 150054599 << 0, T = U + 24177077 << 0) : (u = 704751109, U = j[0] - 210244248, w = U - 1521486534 << 0, T = U + 143694565 << 0), this.first = !1) : (se = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), oe = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7), u = m & C,
|
|
2687
|
+
this.first ? (this.is224 ? (u = 300032, U = j[0] - 1413257819, w = U - 150054599 << 0, T = U + 24177077 << 0) : (u = 704751109, U = j[0] - 210244248, w = U - 1521486534 << 0, T = U + 143694565 << 0), this.first = !1) : (se = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), oe = (_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7), u = m & C, be = u ^ m & N ^ g, i = _ & S ^ ~_ & $, U = w + oe + i + b[Q] + j[Q], ve = se + be, w = T + U << 0, T = U + ve << 0), se = (T >>> 2 | T << 30) ^ (T >>> 13 | T << 19) ^ (T >>> 22 | T << 10), oe = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), p = T & m, be = p ^ T & C ^ u, i = w & _ ^ ~w & S, U = $ + oe + i + b[Q + 1] + j[Q + 1], ve = se + be, $ = N + U << 0, N = U + ve << 0, se = (N >>> 2 | N << 30) ^ (N >>> 13 | N << 19) ^ (N >>> 22 | N << 10), oe = ($ >>> 6 | $ << 26) ^ ($ >>> 11 | $ << 21) ^ ($ >>> 25 | $ << 7), A = N & T, be = A ^ N & m ^ p, i = $ & w ^ ~$ & _, U = S + oe + i + b[Q + 2] + j[Q + 2], ve = se + be, S = C + U << 0, C = U + ve << 0, se = (C >>> 2 | C << 30) ^ (C >>> 13 | C << 19) ^ (C >>> 22 | C << 10), oe = (S >>> 6 | S << 26) ^ (S >>> 11 | S << 21) ^ (S >>> 25 | S << 7), g = C & N, be = g ^ C & T ^ A, i = S & $ ^ ~S & w, U = _ + oe + i + b[Q + 3] + j[Q + 3], ve = se + be, _ = m + U << 0, m = U + ve << 0, this.chromeBugWorkAround = !0;
|
|
2688
2688
|
this.h0 = this.h0 + m << 0, this.h1 = this.h1 + C << 0, this.h2 = this.h2 + N << 0, this.h3 = this.h3 + T << 0, this.h4 = this.h4 + _ << 0, this.h5 = this.h5 + S << 0, this.h6 = this.h6 + $ << 0, this.h7 = this.h7 + w << 0;
|
|
2689
2689
|
}, M.prototype.hex = function() {
|
|
2690
2690
|
this.finalize();
|
|
@@ -2763,18 +2763,18 @@ const ru = {}, su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2763
2763
|
ae.sha256 = ae, ae.sha224 = B(!0), ae.sha256.hmac = te(), ae.sha224.hmac = te(!0), a ? t.exports = ae : (o.sha256 = ae.sha256, o.sha224 = ae.sha224);
|
|
2764
2764
|
})();
|
|
2765
2765
|
})(ls);
|
|
2766
|
-
var
|
|
2767
|
-
const
|
|
2766
|
+
var su = ls.exports;
|
|
2767
|
+
const iu = /* @__PURE__ */ Kl(su);
|
|
2768
2768
|
class It extends Error {
|
|
2769
2769
|
}
|
|
2770
2770
|
It.prototype.name = "InvalidTokenError";
|
|
2771
|
-
function
|
|
2771
|
+
function au(t) {
|
|
2772
2772
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
2773
2773
|
let o = n.charCodeAt(0).toString(16).toUpperCase();
|
|
2774
2774
|
return o.length < 2 && (o = "0" + o), "%" + o;
|
|
2775
2775
|
}));
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function cu(t) {
|
|
2778
2778
|
let e = t.replace(/-/g, "+").replace(/_/g, "/");
|
|
2779
2779
|
switch (e.length % 4) {
|
|
2780
2780
|
case 0:
|
|
@@ -2789,7 +2789,7 @@ function lu(t) {
|
|
|
2789
2789
|
throw new Error("base64 string is not of the correct length");
|
|
2790
2790
|
}
|
|
2791
2791
|
try {
|
|
2792
|
-
return
|
|
2792
|
+
return au(e);
|
|
2793
2793
|
} catch {
|
|
2794
2794
|
return atob(e);
|
|
2795
2795
|
}
|
|
@@ -2803,7 +2803,7 @@ function Un(t, e) {
|
|
|
2803
2803
|
throw new It(`Invalid token specified: missing part #${n + 1}`);
|
|
2804
2804
|
let r;
|
|
2805
2805
|
try {
|
|
2806
|
-
r =
|
|
2806
|
+
r = cu(o);
|
|
2807
2807
|
} catch (s) {
|
|
2808
2808
|
throw new It(`Invalid token specified: invalid base64 for part #${n + 1} (${s.message})`);
|
|
2809
2809
|
}
|
|
@@ -2824,7 +2824,7 @@ function us(t) {
|
|
|
2824
2824
|
interval: 5
|
|
2825
2825
|
}, a = document.getElementsByTagName("script"), d = 0; d < a.length; d++)
|
|
2826
2826
|
(a[d].src.indexOf("keycloak.js") !== -1 || a[d].src.indexOf("keycloak.min.js") !== -1) && a[d].src.indexOf("version=") !== -1 && (e.iframeVersion = a[d].src.substring(a[d].src.indexOf("version=") + 8).split("&")[0]);
|
|
2827
|
-
var l = !0,
|
|
2827
|
+
var l = !0, y = ve(console.info), x = ve(console.warn);
|
|
2828
2828
|
e.init = function(i) {
|
|
2829
2829
|
if (e.didInitialize)
|
|
2830
2830
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
@@ -2877,13 +2877,13 @@ function us(t) {
|
|
|
2877
2877
|
}, R = function() {
|
|
2878
2878
|
var q = document.createElement("iframe"), Ae = e.createLoginUrl({ prompt: "none", redirectUri: e.silentCheckSsoRedirectUri });
|
|
2879
2879
|
q.setAttribute("src", Ae), q.setAttribute("sandbox", "allow-scripts allow-same-origin"), q.setAttribute("title", "keycloak-silent-check-sso"), q.style.display = "none", document.body.appendChild(q);
|
|
2880
|
-
var
|
|
2880
|
+
var ye = function(le) {
|
|
2881
2881
|
if (!(le.origin !== window.location.origin || q.contentWindow !== le.source)) {
|
|
2882
2882
|
var De = C(le.data);
|
|
2883
|
-
te(De, A), document.body.removeChild(q), window.removeEventListener("message",
|
|
2883
|
+
te(De, A), document.body.removeChild(q), window.removeEventListener("message", ye);
|
|
2884
2884
|
}
|
|
2885
2885
|
};
|
|
2886
|
-
window.addEventListener("message",
|
|
2886
|
+
window.addEventListener("message", ye);
|
|
2887
2887
|
}, D = {};
|
|
2888
2888
|
switch (i.onLoad) {
|
|
2889
2889
|
case "check-sso":
|
|
@@ -2938,7 +2938,7 @@ function us(t) {
|
|
|
2938
2938
|
}, e.login = function(i) {
|
|
2939
2939
|
return n.login(i);
|
|
2940
2940
|
};
|
|
2941
|
-
function
|
|
2941
|
+
function b(i) {
|
|
2942
2942
|
var u = null, p = window.crypto || window.msCrypto;
|
|
2943
2943
|
if (p && p.getRandomValues && window.Uint8Array)
|
|
2944
2944
|
return u = new Uint8Array(i), p.getRandomValues(u), u;
|
|
@@ -2951,14 +2951,14 @@ function us(t) {
|
|
|
2951
2951
|
return H(i, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
2952
2952
|
}
|
|
2953
2953
|
function H(i, u) {
|
|
2954
|
-
for (var p =
|
|
2954
|
+
for (var p = b(i), A = new Array(i), g = 0; g < i; g++)
|
|
2955
2955
|
A[g] = u.charCodeAt(p[g] % u.length);
|
|
2956
2956
|
return String.fromCharCode.apply(null, A);
|
|
2957
2957
|
}
|
|
2958
2958
|
function I(i, u) {
|
|
2959
2959
|
switch (i) {
|
|
2960
2960
|
case "S256":
|
|
2961
|
-
var p = new Uint8Array(
|
|
2961
|
+
var p = new Uint8Array(iu.arrayBuffer(u)), A = gn.fromByteArray(p).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
2962
2962
|
return A;
|
|
2963
2963
|
default:
|
|
2964
2964
|
throw "Invalid value for pkceMethod";
|
|
@@ -3035,7 +3035,7 @@ function us(t) {
|
|
|
3035
3035
|
if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
|
|
3036
3036
|
throw "Not authenticated";
|
|
3037
3037
|
if (e.timeSkew == null)
|
|
3038
|
-
return
|
|
3038
|
+
return y("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
|
|
3039
3039
|
var u = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
|
|
3040
3040
|
if (i) {
|
|
3041
3041
|
if (isNaN(i))
|
|
@@ -3050,7 +3050,7 @@ function us(t) {
|
|
|
3050
3050
|
i = i || 5;
|
|
3051
3051
|
var p = function() {
|
|
3052
3052
|
var g = !1;
|
|
3053
|
-
if (i == -1 ? (g = !0,
|
|
3053
|
+
if (i == -1 ? (g = !0, y("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(i)) && (g = !0, y("[KEYCLOAK] Refreshing token: token expired")), !g)
|
|
3054
3054
|
u.setSuccess(!1);
|
|
3055
3055
|
else {
|
|
3056
3056
|
var P = "grant_type=refresh_token&refresh_token=" + e.refreshToken, v = e.endpoints.token();
|
|
@@ -3061,7 +3061,7 @@ function us(t) {
|
|
|
3061
3061
|
E.onreadystatechange = function() {
|
|
3062
3062
|
if (E.readyState == 4)
|
|
3063
3063
|
if (E.status == 200) {
|
|
3064
|
-
|
|
3064
|
+
y("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
3065
3065
|
var R = JSON.parse(E.responseText);
|
|
3066
3066
|
ae(R.access_token, R.refresh_token, R.id_token, L), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
3067
3067
|
for (var D = o.pop(); D != null; D = o.pop())
|
|
@@ -3117,8 +3117,8 @@ function us(t) {
|
|
|
3117
3117
|
e.onAuthError && e.onAuthError(), u && u.setError();
|
|
3118
3118
|
}, R.send(E);
|
|
3119
3119
|
}
|
|
3120
|
-
function D(q, Ae,
|
|
3121
|
-
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, ae(q, Ae,
|
|
3120
|
+
function D(q, Ae, ye, le) {
|
|
3121
|
+
P = (P + (/* @__PURE__ */ new Date()).getTime()) / 2, ae(q, Ae, ye, P), l && (e.tokenParsed && e.tokenParsed.nonce != i.storedNonce || e.refreshTokenParsed && e.refreshTokenParsed.nonce != i.storedNonce || e.idTokenParsed && e.idTokenParsed.nonce != i.storedNonce) ? (y("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), u && u.setError()) : le && (e.onAuthSuccess && e.onAuthSuccess(), u && u.setSuccess());
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
3124
|
function M(i) {
|
|
@@ -3226,9 +3226,9 @@ function us(t) {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
function ae(i, u, p, A) {
|
|
3228
3228
|
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), u ? (e.refreshToken = u, e.refreshTokenParsed = Un(u)) : (delete e.refreshToken, delete e.refreshTokenParsed), p ? (e.idToken = p, e.idTokenParsed = Un(p)) : (delete e.idToken, delete e.idTokenParsed), i) {
|
|
3229
|
-
if (e.token = i, e.tokenParsed = Un(i), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, A && (e.timeSkew = Math.floor(A / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (
|
|
3229
|
+
if (e.token = i, e.tokenParsed = Un(i), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, A && (e.timeSkew = Math.floor(A / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (y("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3230
3230
|
var g = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3231
|
-
|
|
3231
|
+
y("[KEYCLOAK] Token expires in " + Math.round(g / 1e3) + " s"), g <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, g);
|
|
3232
3232
|
}
|
|
3233
3233
|
} else
|
|
3234
3234
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
@@ -3406,21 +3406,21 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3406
3406
|
};
|
|
3407
3407
|
return {
|
|
3408
3408
|
login: function(v) {
|
|
3409
|
-
var E = _(), L = g(v), R = e.createLoginUrl(v), D = u(R, "_blank", L), q = !1, Ae = !1,
|
|
3409
|
+
var E = _(), L = g(v), R = e.createLoginUrl(v), D = u(R, "_blank", L), q = !1, Ae = !1, ye = function() {
|
|
3410
3410
|
Ae = !0, D.close();
|
|
3411
3411
|
};
|
|
3412
3412
|
return D.addEventListener("loadstart", function(le) {
|
|
3413
3413
|
if (le.url.indexOf(P()) == 0) {
|
|
3414
3414
|
var De = C(le.url);
|
|
3415
|
-
te(De, E),
|
|
3415
|
+
te(De, E), ye(), q = !0;
|
|
3416
3416
|
}
|
|
3417
3417
|
}), D.addEventListener("loaderror", function(le) {
|
|
3418
3418
|
if (!q)
|
|
3419
3419
|
if (le.url.indexOf(P()) == 0) {
|
|
3420
3420
|
var De = C(le.url);
|
|
3421
|
-
te(De, E),
|
|
3421
|
+
te(De, E), ye(), q = !0;
|
|
3422
3422
|
} else
|
|
3423
|
-
E.setError(),
|
|
3423
|
+
E.setError(), ye();
|
|
3424
3424
|
}), D.addEventListener("exit", function(le) {
|
|
3425
3425
|
Ae || E.setError({
|
|
3426
3426
|
reason: "closed_by_user"
|
|
@@ -3529,9 +3529,9 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3529
3529
|
var A = "kc-callback-" + p.state;
|
|
3530
3530
|
p.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(A, JSON.stringify(p));
|
|
3531
3531
|
};
|
|
3532
|
-
},
|
|
3533
|
-
if (!(this instanceof
|
|
3534
|
-
return new
|
|
3532
|
+
}, be = function() {
|
|
3533
|
+
if (!(this instanceof be))
|
|
3534
|
+
return new be();
|
|
3535
3535
|
var i = this;
|
|
3536
3536
|
i.get = function(g) {
|
|
3537
3537
|
if (g) {
|
|
@@ -3565,7 +3565,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3565
3565
|
return new oe();
|
|
3566
3566
|
} catch {
|
|
3567
3567
|
}
|
|
3568
|
-
return new
|
|
3568
|
+
return new be();
|
|
3569
3569
|
}
|
|
3570
3570
|
function ve(i) {
|
|
3571
3571
|
return function() {
|
|
@@ -3573,19 +3573,25 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3573
3573
|
};
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
async function
|
|
3576
|
+
async function lu() {
|
|
3577
3577
|
const t = "silent-login.html", e = await fetch(location.origin + "/" + t).then(async (n) => n.status !== 200 ? !1 : (await n.text()).includes("silent-login-iframe-result")).catch(() => !1);
|
|
3578
3578
|
return e || (console.warn(
|
|
3579
3579
|
`Arquivo ${t} não localizado no projeto ou não possui o conteúdo correto!`
|
|
3580
3580
|
), document.body.innerHTML = `<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">O arquivo '${t}' não foi encontrado.</div>`), e;
|
|
3581
3581
|
}
|
|
3582
|
-
function
|
|
3582
|
+
function uu(t) {
|
|
3583
3583
|
const e = new us(t), n = {}, o = async (a = {}, d) => {
|
|
3584
|
-
if (await
|
|
3585
|
-
return
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3584
|
+
if (await lu())
|
|
3585
|
+
return a.onLoad === "login-required" && document.documentElement.setAttribute(
|
|
3586
|
+
"data-app-message",
|
|
3587
|
+
"Autorizando..."
|
|
3588
|
+
), e.init(a).then(async (y) => {
|
|
3589
|
+
y && await r(), d && typeof d == "function" && d(), document.documentElement.classList.add("app-mounted");
|
|
3590
|
+
}).catch((y) => {
|
|
3591
|
+
console.error(y), document.documentElement.setAttribute(
|
|
3592
|
+
"data-app-message",
|
|
3593
|
+
"Não foi possível conectar no servidor de autenticação."
|
|
3594
|
+
);
|
|
3589
3595
|
});
|
|
3590
3596
|
}, r = async () => {
|
|
3591
3597
|
const a = await e.loadUserInfo();
|
|
@@ -3604,7 +3610,7 @@ function du(t) {
|
|
|
3604
3610
|
}
|
|
3605
3611
|
};
|
|
3606
3612
|
}
|
|
3607
|
-
const
|
|
3613
|
+
const Ud = (t) => uu(t);
|
|
3608
3614
|
class cr {
|
|
3609
3615
|
constructor(e = null) {
|
|
3610
3616
|
We(this, "errors", []);
|
|
@@ -3642,28 +3648,28 @@ function ds(t, e) {
|
|
|
3642
3648
|
return t.apply(e, arguments);
|
|
3643
3649
|
};
|
|
3644
3650
|
}
|
|
3645
|
-
const { toString:
|
|
3646
|
-
const n =
|
|
3651
|
+
const { toString: du } = Object.prototype, { getPrototypeOf: go } = Object, bn = ((t) => (e) => {
|
|
3652
|
+
const n = du.call(e);
|
|
3647
3653
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
3648
|
-
})(/* @__PURE__ */ Object.create(null)), je = (t) => (t = t.toLowerCase(), (e) =>
|
|
3649
|
-
function
|
|
3654
|
+
})(/* @__PURE__ */ Object.create(null)), je = (t) => (t = t.toLowerCase(), (e) => bn(e) === t), yn = (t) => (e) => typeof e === t, { isArray: xt } = Array, Dt = yn("undefined");
|
|
3655
|
+
function fu(t) {
|
|
3650
3656
|
return t !== null && !Dt(t) && t.constructor !== null && !Dt(t.constructor) && Oe(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
3651
3657
|
}
|
|
3652
3658
|
const fs = je("ArrayBuffer");
|
|
3653
|
-
function
|
|
3659
|
+
function hu(t) {
|
|
3654
3660
|
let e;
|
|
3655
3661
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && fs(t.buffer), e;
|
|
3656
3662
|
}
|
|
3657
|
-
const
|
|
3658
|
-
if (
|
|
3663
|
+
const pu = yn("string"), Oe = yn("function"), hs = yn("number"), wn = (t) => t !== null && typeof t == "object", mu = (t) => t === !0 || t === !1, tn = (t) => {
|
|
3664
|
+
if (bn(t) !== "object")
|
|
3659
3665
|
return !1;
|
|
3660
3666
|
const e = go(t);
|
|
3661
3667
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
3662
|
-
},
|
|
3668
|
+
}, gu = je("Date"), bu = je("File"), yu = je("Blob"), wu = je("FileList"), vu = (t) => wn(t) && Oe(t.pipe), Au = (t) => {
|
|
3663
3669
|
let e;
|
|
3664
|
-
return t && (typeof FormData == "function" && t instanceof FormData || Oe(t.append) && ((e =
|
|
3670
|
+
return t && (typeof FormData == "function" && t instanceof FormData || Oe(t.append) && ((e = bn(t)) === "formdata" || // detect form-data instance
|
|
3665
3671
|
e === "object" && Oe(t.toString) && t.toString() === "[object FormData]"));
|
|
3666
|
-
},
|
|
3672
|
+
}, Eu = je("URLSearchParams"), ku = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3667
3673
|
function Wt(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
3668
3674
|
if (t === null || typeof t > "u")
|
|
3669
3675
|
return;
|
|
@@ -3697,13 +3703,13 @@ function Yn() {
|
|
|
3697
3703
|
arguments[o] && Wt(arguments[o], n);
|
|
3698
3704
|
return e;
|
|
3699
3705
|
}
|
|
3700
|
-
const
|
|
3706
|
+
const xu = (t, e, n, { allOwnKeys: o } = {}) => (Wt(e, (r, s) => {
|
|
3701
3707
|
n && Oe(r) ? t[s] = ds(r, n) : t[s] = r;
|
|
3702
|
-
}, { allOwnKeys: o }), t),
|
|
3708
|
+
}, { allOwnKeys: o }), t), Su = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), _u = (t, e, n, o) => {
|
|
3703
3709
|
t.prototype = Object.create(e.prototype, o), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
3704
3710
|
value: e.prototype
|
|
3705
3711
|
}), n && Object.assign(t.prototype, n);
|
|
3706
|
-
},
|
|
3712
|
+
}, Cu = (t, e, n, o) => {
|
|
3707
3713
|
let r, s, a;
|
|
3708
3714
|
const d = {};
|
|
3709
3715
|
if (e = e || {}, t == null)
|
|
@@ -3714,11 +3720,11 @@ const Su = (t, e, n, { allOwnKeys: o } = {}) => (Wt(e, (r, s) => {
|
|
|
3714
3720
|
t = n !== !1 && go(t);
|
|
3715
3721
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
3716
3722
|
return e;
|
|
3717
|
-
},
|
|
3723
|
+
}, Tu = (t, e, n) => {
|
|
3718
3724
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
3719
3725
|
const o = t.indexOf(e, n);
|
|
3720
3726
|
return o !== -1 && o === n;
|
|
3721
|
-
},
|
|
3727
|
+
}, Pu = (t) => {
|
|
3722
3728
|
if (!t)
|
|
3723
3729
|
return null;
|
|
3724
3730
|
if (xt(t))
|
|
@@ -3730,32 +3736,32 @@ const Su = (t, e, n, { allOwnKeys: o } = {}) => (Wt(e, (r, s) => {
|
|
|
3730
3736
|
for (; e-- > 0; )
|
|
3731
3737
|
n[e] = t[e];
|
|
3732
3738
|
return n;
|
|
3733
|
-
},
|
|
3739
|
+
}, Ru = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && go(Uint8Array)), Lu = (t, e) => {
|
|
3734
3740
|
const o = (t && t[Symbol.iterator]).call(t);
|
|
3735
3741
|
let r;
|
|
3736
3742
|
for (; (r = o.next()) && !r.done; ) {
|
|
3737
3743
|
const s = r.value;
|
|
3738
3744
|
e.call(t, s[0], s[1]);
|
|
3739
3745
|
}
|
|
3740
|
-
},
|
|
3746
|
+
}, Ou = (t, e) => {
|
|
3741
3747
|
let n;
|
|
3742
3748
|
const o = [];
|
|
3743
3749
|
for (; (n = t.exec(e)) !== null; )
|
|
3744
3750
|
o.push(n);
|
|
3745
3751
|
return o;
|
|
3746
|
-
},
|
|
3752
|
+
}, Iu = je("HTMLFormElement"), Fu = (t) => t.toLowerCase().replace(
|
|
3747
3753
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3748
3754
|
function(n, o, r) {
|
|
3749
3755
|
return o.toUpperCase() + r;
|
|
3750
3756
|
}
|
|
3751
|
-
), lr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
|
3757
|
+
), lr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Bu = je("RegExp"), bs = (t, e) => {
|
|
3752
3758
|
const n = Object.getOwnPropertyDescriptors(t), o = {};
|
|
3753
3759
|
Wt(n, (r, s) => {
|
|
3754
3760
|
let a;
|
|
3755
3761
|
(a = e(r, s, t)) !== !1 && (o[s] = a || r);
|
|
3756
3762
|
}), Object.defineProperties(t, o);
|
|
3757
|
-
},
|
|
3758
|
-
|
|
3763
|
+
}, Nu = (t) => {
|
|
3764
|
+
bs(t, (e, n) => {
|
|
3759
3765
|
if (Oe(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3760
3766
|
return !1;
|
|
3761
3767
|
const o = t[n];
|
|
@@ -3769,29 +3775,29 @@ const Su = (t, e, n, { allOwnKeys: o } = {}) => (Wt(e, (r, s) => {
|
|
|
3769
3775
|
});
|
|
3770
3776
|
}
|
|
3771
3777
|
});
|
|
3772
|
-
},
|
|
3778
|
+
}, Uu = (t, e) => {
|
|
3773
3779
|
const n = {}, o = (r) => {
|
|
3774
3780
|
r.forEach((s) => {
|
|
3775
3781
|
n[s] = !0;
|
|
3776
3782
|
});
|
|
3777
3783
|
};
|
|
3778
3784
|
return xt(t) ? o(t) : o(String(t).split(e)), n;
|
|
3779
|
-
},
|
|
3780
|
-
},
|
|
3785
|
+
}, Du = () => {
|
|
3786
|
+
}, Mu = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Dn = "abcdefghijklmnopqrstuvwxyz", ur = "0123456789", ys = {
|
|
3781
3787
|
DIGIT: ur,
|
|
3782
3788
|
ALPHA: Dn,
|
|
3783
3789
|
ALPHA_DIGIT: Dn + Dn.toUpperCase() + ur
|
|
3784
|
-
},
|
|
3790
|
+
}, Hu = (t = 16, e = ys.ALPHA_DIGIT) => {
|
|
3785
3791
|
let n = "";
|
|
3786
3792
|
const { length: o } = e;
|
|
3787
3793
|
for (; t--; )
|
|
3788
3794
|
n += e[Math.random() * o | 0];
|
|
3789
3795
|
return n;
|
|
3790
3796
|
};
|
|
3791
|
-
function
|
|
3797
|
+
function $u(t) {
|
|
3792
3798
|
return !!(t && Oe(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
3793
3799
|
}
|
|
3794
|
-
const
|
|
3800
|
+
const ju = (t) => {
|
|
3795
3801
|
const e = new Array(10), n = (o, r) => {
|
|
3796
3802
|
if (wn(o)) {
|
|
3797
3803
|
if (e.indexOf(o) >= 0)
|
|
@@ -3808,59 +3814,59 @@ const zu = (t) => {
|
|
|
3808
3814
|
return o;
|
|
3809
3815
|
};
|
|
3810
3816
|
return n(t, 0);
|
|
3811
|
-
},
|
|
3817
|
+
}, zu = je("AsyncFunction"), Vu = (t) => t && (wn(t) || Oe(t)) && Oe(t.then) && Oe(t.catch), h = {
|
|
3812
3818
|
isArray: xt,
|
|
3813
3819
|
isArrayBuffer: fs,
|
|
3814
|
-
isBuffer:
|
|
3815
|
-
isFormData:
|
|
3816
|
-
isArrayBufferView:
|
|
3817
|
-
isString:
|
|
3820
|
+
isBuffer: fu,
|
|
3821
|
+
isFormData: Au,
|
|
3822
|
+
isArrayBufferView: hu,
|
|
3823
|
+
isString: pu,
|
|
3818
3824
|
isNumber: hs,
|
|
3819
|
-
isBoolean:
|
|
3825
|
+
isBoolean: mu,
|
|
3820
3826
|
isObject: wn,
|
|
3821
3827
|
isPlainObject: tn,
|
|
3822
3828
|
isUndefined: Dt,
|
|
3823
|
-
isDate:
|
|
3829
|
+
isDate: gu,
|
|
3824
3830
|
isFile: bu,
|
|
3825
|
-
isBlob:
|
|
3826
|
-
isRegExp:
|
|
3831
|
+
isBlob: yu,
|
|
3832
|
+
isRegExp: Bu,
|
|
3827
3833
|
isFunction: Oe,
|
|
3828
|
-
isStream:
|
|
3829
|
-
isURLSearchParams:
|
|
3830
|
-
isTypedArray:
|
|
3831
|
-
isFileList:
|
|
3834
|
+
isStream: vu,
|
|
3835
|
+
isURLSearchParams: Eu,
|
|
3836
|
+
isTypedArray: Ru,
|
|
3837
|
+
isFileList: wu,
|
|
3832
3838
|
forEach: Wt,
|
|
3833
3839
|
merge: Yn,
|
|
3834
|
-
extend:
|
|
3835
|
-
trim:
|
|
3836
|
-
stripBOM:
|
|
3837
|
-
inherits:
|
|
3838
|
-
toFlatObject:
|
|
3839
|
-
kindOf:
|
|
3840
|
+
extend: xu,
|
|
3841
|
+
trim: ku,
|
|
3842
|
+
stripBOM: Su,
|
|
3843
|
+
inherits: _u,
|
|
3844
|
+
toFlatObject: Cu,
|
|
3845
|
+
kindOf: bn,
|
|
3840
3846
|
kindOfTest: je,
|
|
3841
|
-
endsWith:
|
|
3842
|
-
toArray:
|
|
3843
|
-
forEachEntry:
|
|
3844
|
-
matchAll:
|
|
3845
|
-
isHTMLForm:
|
|
3847
|
+
endsWith: Tu,
|
|
3848
|
+
toArray: Pu,
|
|
3849
|
+
forEachEntry: Lu,
|
|
3850
|
+
matchAll: Ou,
|
|
3851
|
+
isHTMLForm: Iu,
|
|
3846
3852
|
hasOwnProperty: lr,
|
|
3847
3853
|
hasOwnProp: lr,
|
|
3848
3854
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3849
|
-
reduceDescriptors:
|
|
3850
|
-
freezeMethods:
|
|
3851
|
-
toObjectSet:
|
|
3852
|
-
toCamelCase:
|
|
3853
|
-
noop:
|
|
3854
|
-
toFiniteNumber:
|
|
3855
|
+
reduceDescriptors: bs,
|
|
3856
|
+
freezeMethods: Nu,
|
|
3857
|
+
toObjectSet: Uu,
|
|
3858
|
+
toCamelCase: Fu,
|
|
3859
|
+
noop: Du,
|
|
3860
|
+
toFiniteNumber: Mu,
|
|
3855
3861
|
findKey: ps,
|
|
3856
3862
|
global: ms,
|
|
3857
3863
|
isContextDefined: gs,
|
|
3858
|
-
ALPHABET:
|
|
3859
|
-
generateString:
|
|
3860
|
-
isSpecCompliantForm:
|
|
3861
|
-
toJSONObject:
|
|
3862
|
-
isAsyncFn:
|
|
3863
|
-
isThenable:
|
|
3864
|
+
ALPHABET: ys,
|
|
3865
|
+
generateString: Hu,
|
|
3866
|
+
isSpecCompliantForm: $u,
|
|
3867
|
+
toJSONObject: ju,
|
|
3868
|
+
isAsyncFn: zu,
|
|
3869
|
+
isThenable: Vu
|
|
3864
3870
|
};
|
|
3865
3871
|
function G(t, e, n, o, r) {
|
|
3866
3872
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), o && (this.request = o), r && (this.response = r);
|
|
@@ -3912,7 +3918,7 @@ G.from = (t, e, n, o, r, s) => {
|
|
|
3912
3918
|
return l !== Error.prototype;
|
|
3913
3919
|
}, (d) => d !== "isAxiosError"), G.call(a, t.message, e, n, o, r), a.cause = t, a.name = t.name, s && Object.assign(a, s), a;
|
|
3914
3920
|
};
|
|
3915
|
-
const
|
|
3921
|
+
const Wu = null;
|
|
3916
3922
|
function Xn(t) {
|
|
3917
3923
|
return h.isPlainObject(t) || h.isArray(t);
|
|
3918
3924
|
}
|
|
@@ -3924,10 +3930,10 @@ function dr(t, e, n) {
|
|
|
3924
3930
|
return r = As(r), !n && s ? "[" + r + "]" : r;
|
|
3925
3931
|
}).join(n ? "." : "") : e;
|
|
3926
3932
|
}
|
|
3927
|
-
function
|
|
3933
|
+
function qu(t) {
|
|
3928
3934
|
return h.isArray(t) && !t.some(Xn);
|
|
3929
3935
|
}
|
|
3930
|
-
const
|
|
3936
|
+
const Ku = h.toFlatObject(h, {}, null, function(e) {
|
|
3931
3937
|
return /^is[A-Z]/.test(e);
|
|
3932
3938
|
});
|
|
3933
3939
|
function vn(t, e, n) {
|
|
@@ -3943,7 +3949,7 @@ function vn(t, e, n) {
|
|
|
3943
3949
|
const o = n.metaTokens, r = n.visitor || x, s = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(e);
|
|
3944
3950
|
if (!h.isFunction(r))
|
|
3945
3951
|
throw new TypeError("visitor must be a function");
|
|
3946
|
-
function
|
|
3952
|
+
function y(I) {
|
|
3947
3953
|
if (I === null)
|
|
3948
3954
|
return "";
|
|
3949
3955
|
if (h.isDate(I))
|
|
@@ -3957,27 +3963,27 @@ function vn(t, e, n) {
|
|
|
3957
3963
|
if (I && !Y && typeof I == "object") {
|
|
3958
3964
|
if (h.endsWith(B, "{}"))
|
|
3959
3965
|
B = o ? B : B.slice(0, -2), I = JSON.stringify(I);
|
|
3960
|
-
else if (h.isArray(I) &&
|
|
3966
|
+
else if (h.isArray(I) && qu(I) || (h.isFileList(I) || h.endsWith(B, "[]")) && (ne = h.toArray(I)))
|
|
3961
3967
|
return B = As(B), ne.forEach(function(M, ge) {
|
|
3962
3968
|
!(h.isUndefined(M) || M === null) && e.append(
|
|
3963
3969
|
// eslint-disable-next-line no-nested-ternary
|
|
3964
3970
|
a === !0 ? dr([B], ge, s) : a === null ? B : B + "[]",
|
|
3965
|
-
|
|
3971
|
+
y(M)
|
|
3966
3972
|
);
|
|
3967
3973
|
}), !1;
|
|
3968
3974
|
}
|
|
3969
|
-
return Xn(I) ? !0 : (e.append(dr(Y, B, s),
|
|
3975
|
+
return Xn(I) ? !0 : (e.append(dr(Y, B, s), y(I)), !1);
|
|
3970
3976
|
}
|
|
3971
|
-
const
|
|
3977
|
+
const b = [], K = Object.assign(Ku, {
|
|
3972
3978
|
defaultVisitor: x,
|
|
3973
|
-
convertValue:
|
|
3979
|
+
convertValue: y,
|
|
3974
3980
|
isVisitable: Xn
|
|
3975
3981
|
});
|
|
3976
3982
|
function H(I, B) {
|
|
3977
3983
|
if (!h.isUndefined(I)) {
|
|
3978
|
-
if (
|
|
3984
|
+
if (b.indexOf(I) !== -1)
|
|
3979
3985
|
throw Error("Circular reference detected in " + B.join("."));
|
|
3980
|
-
|
|
3986
|
+
b.push(I), h.forEach(I, function(ne, te) {
|
|
3981
3987
|
(!(h.isUndefined(ne) || ne === null) && r.call(
|
|
3982
3988
|
e,
|
|
3983
3989
|
ne,
|
|
@@ -3985,7 +3991,7 @@ function vn(t, e, n) {
|
|
|
3985
3991
|
B,
|
|
3986
3992
|
K
|
|
3987
3993
|
)) === !0 && H(ne, B ? B.concat(te) : [te]);
|
|
3988
|
-
}),
|
|
3994
|
+
}), b.pop();
|
|
3989
3995
|
}
|
|
3990
3996
|
}
|
|
3991
3997
|
if (!h.isObject(t))
|
|
@@ -4006,10 +4012,10 @@ function fr(t) {
|
|
|
4006
4012
|
return e[o];
|
|
4007
4013
|
});
|
|
4008
4014
|
}
|
|
4009
|
-
function
|
|
4015
|
+
function bo(t, e) {
|
|
4010
4016
|
this._pairs = [], t && vn(t, this, e);
|
|
4011
4017
|
}
|
|
4012
|
-
const Es =
|
|
4018
|
+
const Es = bo.prototype;
|
|
4013
4019
|
Es.append = function(e, n) {
|
|
4014
4020
|
this._pairs.push([e, n]);
|
|
4015
4021
|
};
|
|
@@ -4021,21 +4027,21 @@ Es.toString = function(e) {
|
|
|
4021
4027
|
return n(r[0]) + "=" + n(r[1]);
|
|
4022
4028
|
}, "").join("&");
|
|
4023
4029
|
};
|
|
4024
|
-
function
|
|
4030
|
+
function Gu(t) {
|
|
4025
4031
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
4026
4032
|
}
|
|
4027
4033
|
function ks(t, e, n) {
|
|
4028
4034
|
if (!e)
|
|
4029
4035
|
return t;
|
|
4030
|
-
const o = n && n.encode ||
|
|
4036
|
+
const o = n && n.encode || Gu, r = n && n.serialize;
|
|
4031
4037
|
let s;
|
|
4032
|
-
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new
|
|
4038
|
+
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new bo(e, n).toString(o), s) {
|
|
4033
4039
|
const a = t.indexOf("#");
|
|
4034
4040
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
4035
4041
|
}
|
|
4036
4042
|
return t;
|
|
4037
4043
|
}
|
|
4038
|
-
class
|
|
4044
|
+
class Ju {
|
|
4039
4045
|
constructor() {
|
|
4040
4046
|
this.handlers = [];
|
|
4041
4047
|
}
|
|
@@ -4089,39 +4095,39 @@ class Yu {
|
|
|
4089
4095
|
});
|
|
4090
4096
|
}
|
|
4091
4097
|
}
|
|
4092
|
-
const hr =
|
|
4098
|
+
const hr = Ju, xs = {
|
|
4093
4099
|
silentJSONParsing: !0,
|
|
4094
4100
|
forcedJSONParsing: !0,
|
|
4095
4101
|
clarifyTimeoutError: !1
|
|
4096
|
-
},
|
|
4102
|
+
}, Yu = typeof URLSearchParams < "u" ? URLSearchParams : bo, Xu = typeof FormData < "u" ? FormData : null, Zu = typeof Blob < "u" ? Blob : null, Qu = {
|
|
4097
4103
|
isBrowser: !0,
|
|
4098
4104
|
classes: {
|
|
4099
|
-
URLSearchParams:
|
|
4100
|
-
FormData:
|
|
4101
|
-
Blob:
|
|
4105
|
+
URLSearchParams: Yu,
|
|
4106
|
+
FormData: Xu,
|
|
4107
|
+
Blob: Zu
|
|
4102
4108
|
},
|
|
4103
4109
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4104
|
-
}, Ss = typeof window < "u" && typeof document < "u",
|
|
4105
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
4110
|
+
}, Ss = typeof window < "u" && typeof document < "u", ed = ((t) => Ss && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), td = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
4111
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), nd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4106
4112
|
__proto__: null,
|
|
4107
4113
|
hasBrowserEnv: Ss,
|
|
4108
|
-
hasStandardBrowserEnv:
|
|
4109
|
-
hasStandardBrowserWebWorkerEnv:
|
|
4114
|
+
hasStandardBrowserEnv: ed,
|
|
4115
|
+
hasStandardBrowserWebWorkerEnv: td
|
|
4110
4116
|
}, Symbol.toStringTag, { value: "Module" })), He = {
|
|
4111
|
-
...
|
|
4112
|
-
...
|
|
4117
|
+
...nd,
|
|
4118
|
+
...Qu
|
|
4113
4119
|
};
|
|
4114
|
-
function
|
|
4120
|
+
function od(t, e) {
|
|
4115
4121
|
return vn(t, new He.classes.URLSearchParams(), Object.assign({
|
|
4116
4122
|
visitor: function(n, o, r, s) {
|
|
4117
4123
|
return He.isNode && h.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
4118
4124
|
}
|
|
4119
4125
|
}, e));
|
|
4120
4126
|
}
|
|
4121
|
-
function
|
|
4127
|
+
function rd(t) {
|
|
4122
4128
|
return h.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
4123
4129
|
}
|
|
4124
|
-
function
|
|
4130
|
+
function sd(t) {
|
|
4125
4131
|
const e = {}, n = Object.keys(t);
|
|
4126
4132
|
let o;
|
|
4127
4133
|
const r = n.length;
|
|
@@ -4136,17 +4142,17 @@ function _s(t) {
|
|
|
4136
4142
|
if (a === "__proto__")
|
|
4137
4143
|
return !0;
|
|
4138
4144
|
const d = Number.isFinite(+a), l = s >= n.length;
|
|
4139
|
-
return a = !a && h.isArray(r) ? r.length : a, l ? (h.hasOwnProp(r, a) ? r[a] = [r[a], o] : r[a] = o, !d) : ((!r[a] || !h.isObject(r[a])) && (r[a] = []), e(n, o, r[a], s) && h.isArray(r[a]) && (r[a] =
|
|
4145
|
+
return a = !a && h.isArray(r) ? r.length : a, l ? (h.hasOwnProp(r, a) ? r[a] = [r[a], o] : r[a] = o, !d) : ((!r[a] || !h.isObject(r[a])) && (r[a] = []), e(n, o, r[a], s) && h.isArray(r[a]) && (r[a] = sd(r[a])), !d);
|
|
4140
4146
|
}
|
|
4141
4147
|
if (h.isFormData(t) && h.isFunction(t.entries)) {
|
|
4142
4148
|
const n = {};
|
|
4143
4149
|
return h.forEachEntry(t, (o, r) => {
|
|
4144
|
-
e(
|
|
4150
|
+
e(rd(o), r, n, 0);
|
|
4145
4151
|
}), n;
|
|
4146
4152
|
}
|
|
4147
4153
|
return null;
|
|
4148
4154
|
}
|
|
4149
|
-
function
|
|
4155
|
+
function id(t, e, n) {
|
|
4150
4156
|
if (h.isString(t))
|
|
4151
4157
|
try {
|
|
4152
4158
|
return (e || JSON.parse)(t), h.trim(t);
|
|
@@ -4156,7 +4162,7 @@ function ad(t, e, n) {
|
|
|
4156
4162
|
}
|
|
4157
4163
|
return (n || JSON.stringify)(t);
|
|
4158
4164
|
}
|
|
4159
|
-
const
|
|
4165
|
+
const yo = {
|
|
4160
4166
|
transitional: xs,
|
|
4161
4167
|
adapter: ["xhr", "http"],
|
|
4162
4168
|
transformRequest: [function(e, n) {
|
|
@@ -4172,7 +4178,7 @@ const bo = {
|
|
|
4172
4178
|
let d;
|
|
4173
4179
|
if (s) {
|
|
4174
4180
|
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4175
|
-
return
|
|
4181
|
+
return od(e, this.formSerializer).toString();
|
|
4176
4182
|
if ((d = h.isFileList(e)) || o.indexOf("multipart/form-data") > -1) {
|
|
4177
4183
|
const l = this.env && this.env.FormData;
|
|
4178
4184
|
return vn(
|
|
@@ -4182,10 +4188,10 @@ const bo = {
|
|
|
4182
4188
|
);
|
|
4183
4189
|
}
|
|
4184
4190
|
}
|
|
4185
|
-
return s || r ? (n.setContentType("application/json", !1),
|
|
4191
|
+
return s || r ? (n.setContentType("application/json", !1), id(e)) : e;
|
|
4186
4192
|
}],
|
|
4187
4193
|
transformResponse: [function(e) {
|
|
4188
|
-
const n = this.transitional ||
|
|
4194
|
+
const n = this.transitional || yo.transitional, o = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
4189
4195
|
if (e && h.isString(e) && (o && !this.responseType || r)) {
|
|
4190
4196
|
const a = !(n && n.silentJSONParsing) && r;
|
|
4191
4197
|
try {
|
|
@@ -4221,9 +4227,9 @@ const bo = {
|
|
|
4221
4227
|
}
|
|
4222
4228
|
};
|
|
4223
4229
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4224
|
-
|
|
4230
|
+
yo.headers[t] = {};
|
|
4225
4231
|
});
|
|
4226
|
-
const wo =
|
|
4232
|
+
const wo = yo, ad = h.toObjectSet([
|
|
4227
4233
|
"age",
|
|
4228
4234
|
"authorization",
|
|
4229
4235
|
"content-length",
|
|
@@ -4241,12 +4247,12 @@ const wo = bo, cd = h.toObjectSet([
|
|
|
4241
4247
|
"referer",
|
|
4242
4248
|
"retry-after",
|
|
4243
4249
|
"user-agent"
|
|
4244
|
-
]),
|
|
4250
|
+
]), cd = (t) => {
|
|
4245
4251
|
const e = {};
|
|
4246
4252
|
let n, o, r;
|
|
4247
4253
|
return t && t.split(`
|
|
4248
4254
|
`).forEach(function(a) {
|
|
4249
|
-
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || e[n] &&
|
|
4255
|
+
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || e[n] && ad[n]) && (n === "set-cookie" ? e[n] ? e[n].push(o) : e[n] = [o] : e[n] = e[n] ? e[n] + ", " + o : o);
|
|
4250
4256
|
}), e;
|
|
4251
4257
|
}, pr = Symbol("internals");
|
|
4252
4258
|
function Rt(t) {
|
|
@@ -4255,14 +4261,14 @@ function Rt(t) {
|
|
|
4255
4261
|
function nn(t) {
|
|
4256
4262
|
return t === !1 || t == null ? t : h.isArray(t) ? t.map(nn) : String(t);
|
|
4257
4263
|
}
|
|
4258
|
-
function
|
|
4264
|
+
function ld(t) {
|
|
4259
4265
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
4260
4266
|
let o;
|
|
4261
4267
|
for (; o = n.exec(t); )
|
|
4262
4268
|
e[o[1]] = o[2];
|
|
4263
4269
|
return e;
|
|
4264
4270
|
}
|
|
4265
|
-
const
|
|
4271
|
+
const ud = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
4266
4272
|
function Mn(t, e, n, o, r) {
|
|
4267
4273
|
if (h.isFunction(o))
|
|
4268
4274
|
return o.call(this, e, n);
|
|
@@ -4273,10 +4279,10 @@ function Mn(t, e, n, o, r) {
|
|
|
4273
4279
|
return o.test(e);
|
|
4274
4280
|
}
|
|
4275
4281
|
}
|
|
4276
|
-
function
|
|
4282
|
+
function dd(t) {
|
|
4277
4283
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, o) => n.toUpperCase() + o);
|
|
4278
4284
|
}
|
|
4279
|
-
function
|
|
4285
|
+
function fd(t, e) {
|
|
4280
4286
|
const n = h.toCamelCase(" " + e);
|
|
4281
4287
|
["get", "set", "has"].forEach((o) => {
|
|
4282
4288
|
Object.defineProperty(t, o + n, {
|
|
@@ -4293,15 +4299,15 @@ class An {
|
|
|
4293
4299
|
}
|
|
4294
4300
|
set(e, n, o) {
|
|
4295
4301
|
const r = this;
|
|
4296
|
-
function s(d, l,
|
|
4302
|
+
function s(d, l, y) {
|
|
4297
4303
|
const x = Rt(l);
|
|
4298
4304
|
if (!x)
|
|
4299
4305
|
throw new Error("header name must be a non-empty string");
|
|
4300
|
-
const
|
|
4301
|
-
(!
|
|
4306
|
+
const b = h.findKey(r, x);
|
|
4307
|
+
(!b || r[b] === void 0 || y === !0 || y === void 0 && r[b] !== !1) && (r[b || l] = nn(d));
|
|
4302
4308
|
}
|
|
4303
|
-
const a = (d, l) => h.forEach(d, (
|
|
4304
|
-
return h.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : h.isString(e) && (e = e.trim()) && !
|
|
4309
|
+
const a = (d, l) => h.forEach(d, (y, x) => s(y, x, l));
|
|
4310
|
+
return h.isPlainObject(e) || e instanceof this.constructor ? a(e, n) : h.isString(e) && (e = e.trim()) && !ud(e) ? a(cd(e), n) : e != null && s(n, e, o), this;
|
|
4305
4311
|
}
|
|
4306
4312
|
get(e, n) {
|
|
4307
4313
|
if (e = Rt(e), e) {
|
|
@@ -4311,7 +4317,7 @@ class An {
|
|
|
4311
4317
|
if (!n)
|
|
4312
4318
|
return r;
|
|
4313
4319
|
if (n === !0)
|
|
4314
|
-
return
|
|
4320
|
+
return ld(r);
|
|
4315
4321
|
if (h.isFunction(n))
|
|
4316
4322
|
return n.call(this, r, o);
|
|
4317
4323
|
if (h.isRegExp(n))
|
|
@@ -4355,7 +4361,7 @@ class An {
|
|
|
4355
4361
|
n[a] = nn(r), delete n[s];
|
|
4356
4362
|
return;
|
|
4357
4363
|
}
|
|
4358
|
-
const d = e ?
|
|
4364
|
+
const d = e ? dd(s) : String(s).trim();
|
|
4359
4365
|
d !== s && delete n[s], n[d] = nn(r), o[d] = !0;
|
|
4360
4366
|
}), this;
|
|
4361
4367
|
}
|
|
@@ -4391,7 +4397,7 @@ class An {
|
|
|
4391
4397
|
}).accessors, r = this.prototype;
|
|
4392
4398
|
function s(a) {
|
|
4393
4399
|
const d = Rt(a);
|
|
4394
|
-
o[d] || (
|
|
4400
|
+
o[d] || (fd(r, a), o[d] = !0);
|
|
4395
4401
|
}
|
|
4396
4402
|
return h.isArray(e) ? e.forEach(s) : s(e), this;
|
|
4397
4403
|
}
|
|
@@ -4424,7 +4430,7 @@ function qt(t, e, n) {
|
|
|
4424
4430
|
h.inherits(qt, G, {
|
|
4425
4431
|
__CANCEL__: !0
|
|
4426
4432
|
});
|
|
4427
|
-
function
|
|
4433
|
+
function hd(t, e, n) {
|
|
4428
4434
|
const o = n.config.validateStatus;
|
|
4429
4435
|
!n.status || !o || o(n.status) ? t(n) : e(new G(
|
|
4430
4436
|
"Request failed with status code " + n.status,
|
|
@@ -4434,7 +4440,7 @@ function pd(t, e, n) {
|
|
|
4434
4440
|
n
|
|
4435
4441
|
));
|
|
4436
4442
|
}
|
|
4437
|
-
const
|
|
4443
|
+
const pd = He.hasStandardBrowserEnv ? (
|
|
4438
4444
|
// Standard browser envs support document.cookie
|
|
4439
4445
|
{
|
|
4440
4446
|
write(t, e, n, o, r, s) {
|
|
@@ -4461,14 +4467,14 @@ const md = He.hasStandardBrowserEnv ? (
|
|
|
4461
4467
|
}
|
|
4462
4468
|
}
|
|
4463
4469
|
);
|
|
4464
|
-
function
|
|
4470
|
+
function md(t) {
|
|
4465
4471
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
4466
4472
|
}
|
|
4467
|
-
function
|
|
4473
|
+
function gd(t, e) {
|
|
4468
4474
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
4469
4475
|
}
|
|
4470
4476
|
function Ts(t, e) {
|
|
4471
|
-
return t && !
|
|
4477
|
+
return t && !md(e) ? gd(t, e) : e;
|
|
4472
4478
|
}
|
|
4473
4479
|
const bd = He.hasStandardBrowserEnv ? (
|
|
4474
4480
|
// Standard browser envs have full support of the APIs needed to test
|
|
@@ -4502,31 +4508,31 @@ const bd = He.hasStandardBrowserEnv ? (
|
|
|
4502
4508
|
};
|
|
4503
4509
|
}()
|
|
4504
4510
|
);
|
|
4505
|
-
function
|
|
4511
|
+
function yd(t) {
|
|
4506
4512
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
4507
4513
|
return e && e[1] || "";
|
|
4508
4514
|
}
|
|
4509
|
-
function
|
|
4515
|
+
function wd(t, e) {
|
|
4510
4516
|
t = t || 10;
|
|
4511
4517
|
const n = new Array(t), o = new Array(t);
|
|
4512
4518
|
let r = 0, s = 0, a;
|
|
4513
4519
|
return e = e !== void 0 ? e : 1e3, function(l) {
|
|
4514
|
-
const
|
|
4515
|
-
a || (a =
|
|
4516
|
-
let
|
|
4517
|
-
for (;
|
|
4518
|
-
K += n[
|
|
4519
|
-
if (r = (r + 1) % t, r === s && (s = (s + 1) % t),
|
|
4520
|
+
const y = Date.now(), x = o[s];
|
|
4521
|
+
a || (a = y), n[r] = l, o[r] = y;
|
|
4522
|
+
let b = s, K = 0;
|
|
4523
|
+
for (; b !== r; )
|
|
4524
|
+
K += n[b++], b = b % t;
|
|
4525
|
+
if (r = (r + 1) % t, r === s && (s = (s + 1) % t), y - a < e)
|
|
4520
4526
|
return;
|
|
4521
|
-
const H = x &&
|
|
4527
|
+
const H = x && y - x;
|
|
4522
4528
|
return H ? Math.round(K * 1e3 / H) : void 0;
|
|
4523
4529
|
};
|
|
4524
4530
|
}
|
|
4525
4531
|
function mr(t, e) {
|
|
4526
4532
|
let n = 0;
|
|
4527
|
-
const o =
|
|
4533
|
+
const o = wd(50, 250);
|
|
4528
4534
|
return (r) => {
|
|
4529
|
-
const s = r.loaded, a = r.lengthComputable ? r.total : void 0, d = s - n, l = o(d),
|
|
4535
|
+
const s = r.loaded, a = r.lengthComputable ? r.total : void 0, d = s - n, l = o(d), y = s <= a;
|
|
4530
4536
|
n = s;
|
|
4531
4537
|
const x = {
|
|
4532
4538
|
loaded: s,
|
|
@@ -4534,18 +4540,18 @@ function mr(t, e) {
|
|
|
4534
4540
|
progress: a ? s / a : void 0,
|
|
4535
4541
|
bytes: d,
|
|
4536
4542
|
rate: l || void 0,
|
|
4537
|
-
estimated: l && a &&
|
|
4543
|
+
estimated: l && a && y ? (a - s) / l : void 0,
|
|
4538
4544
|
event: r
|
|
4539
4545
|
};
|
|
4540
4546
|
x[e ? "download" : "upload"] = !0, t(x);
|
|
4541
4547
|
};
|
|
4542
4548
|
}
|
|
4543
|
-
const
|
|
4549
|
+
const vd = typeof XMLHttpRequest < "u", Ad = vd && function(t) {
|
|
4544
4550
|
return new Promise(function(n, o) {
|
|
4545
4551
|
let r = t.data;
|
|
4546
4552
|
const s = Ge.from(t.headers).normalize();
|
|
4547
4553
|
let { responseType: a, withXSRFToken: d } = t, l;
|
|
4548
|
-
function
|
|
4554
|
+
function y() {
|
|
4549
4555
|
t.cancelToken && t.cancelToken.unsubscribe(l), t.signal && t.signal.removeEventListener("abort", l);
|
|
4550
4556
|
}
|
|
4551
4557
|
let x;
|
|
@@ -4557,66 +4563,66 @@ const Ad = typeof XMLHttpRequest < "u", Ed = Ad && function(t) {
|
|
|
4557
4563
|
s.setContentType([B || "multipart/form-data", ...Y].join("; "));
|
|
4558
4564
|
}
|
|
4559
4565
|
}
|
|
4560
|
-
let
|
|
4566
|
+
let b = new XMLHttpRequest();
|
|
4561
4567
|
if (t.auth) {
|
|
4562
4568
|
const B = t.auth.username || "", Y = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
4563
4569
|
s.set("Authorization", "Basic " + btoa(B + ":" + Y));
|
|
4564
4570
|
}
|
|
4565
4571
|
const K = Ts(t.baseURL, t.url);
|
|
4566
|
-
|
|
4572
|
+
b.open(t.method.toUpperCase(), ks(K, t.params, t.paramsSerializer), !0), b.timeout = t.timeout;
|
|
4567
4573
|
function H() {
|
|
4568
|
-
if (!
|
|
4574
|
+
if (!b)
|
|
4569
4575
|
return;
|
|
4570
4576
|
const B = Ge.from(
|
|
4571
|
-
"getAllResponseHeaders" in
|
|
4577
|
+
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
4572
4578
|
), ne = {
|
|
4573
|
-
data: !a || a === "text" || a === "json" ?
|
|
4574
|
-
status:
|
|
4575
|
-
statusText:
|
|
4579
|
+
data: !a || a === "text" || a === "json" ? b.responseText : b.response,
|
|
4580
|
+
status: b.status,
|
|
4581
|
+
statusText: b.statusText,
|
|
4576
4582
|
headers: B,
|
|
4577
4583
|
config: t,
|
|
4578
|
-
request:
|
|
4584
|
+
request: b
|
|
4579
4585
|
};
|
|
4580
|
-
|
|
4581
|
-
n(M),
|
|
4586
|
+
hd(function(M) {
|
|
4587
|
+
n(M), y();
|
|
4582
4588
|
}, function(M) {
|
|
4583
|
-
o(M),
|
|
4584
|
-
}, ne),
|
|
4589
|
+
o(M), y();
|
|
4590
|
+
}, ne), b = null;
|
|
4585
4591
|
}
|
|
4586
|
-
if ("onloadend" in
|
|
4587
|
-
!
|
|
4588
|
-
},
|
|
4589
|
-
|
|
4590
|
-
},
|
|
4591
|
-
o(new G("Network Error", G.ERR_NETWORK, t,
|
|
4592
|
-
},
|
|
4592
|
+
if ("onloadend" in b ? b.onloadend = H : b.onreadystatechange = function() {
|
|
4593
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(H);
|
|
4594
|
+
}, b.onabort = function() {
|
|
4595
|
+
b && (o(new G("Request aborted", G.ECONNABORTED, t, b)), b = null);
|
|
4596
|
+
}, b.onerror = function() {
|
|
4597
|
+
o(new G("Network Error", G.ERR_NETWORK, t, b)), b = null;
|
|
4598
|
+
}, b.ontimeout = function() {
|
|
4593
4599
|
let Y = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
4594
4600
|
const ne = t.transitional || xs;
|
|
4595
4601
|
t.timeoutErrorMessage && (Y = t.timeoutErrorMessage), o(new G(
|
|
4596
4602
|
Y,
|
|
4597
4603
|
ne.clarifyTimeoutError ? G.ETIMEDOUT : G.ECONNABORTED,
|
|
4598
4604
|
t,
|
|
4599
|
-
|
|
4600
|
-
)),
|
|
4605
|
+
b
|
|
4606
|
+
)), b = null;
|
|
4601
4607
|
}, He.hasStandardBrowserEnv && (d && h.isFunction(d) && (d = d(t)), d || d !== !1 && bd(K))) {
|
|
4602
|
-
const B = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
4608
|
+
const B = t.xsrfHeaderName && t.xsrfCookieName && pd.read(t.xsrfCookieName);
|
|
4603
4609
|
B && s.set(t.xsrfHeaderName, B);
|
|
4604
4610
|
}
|
|
4605
|
-
r === void 0 && s.setContentType(null), "setRequestHeader" in
|
|
4606
|
-
|
|
4607
|
-
}), h.isUndefined(t.withCredentials) || (
|
|
4608
|
-
|
|
4611
|
+
r === void 0 && s.setContentType(null), "setRequestHeader" in b && h.forEach(s.toJSON(), function(Y, ne) {
|
|
4612
|
+
b.setRequestHeader(ne, Y);
|
|
4613
|
+
}), h.isUndefined(t.withCredentials) || (b.withCredentials = !!t.withCredentials), a && a !== "json" && (b.responseType = t.responseType), typeof t.onDownloadProgress == "function" && b.addEventListener("progress", mr(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", mr(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (B) => {
|
|
4614
|
+
b && (o(!B || B.type ? new qt(null, t, b) : B), b.abort(), b = null);
|
|
4609
4615
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
4610
|
-
const I =
|
|
4616
|
+
const I = yd(K);
|
|
4611
4617
|
if (I && He.protocols.indexOf(I) === -1) {
|
|
4612
4618
|
o(new G("Unsupported protocol " + I + ":", G.ERR_BAD_REQUEST, t));
|
|
4613
4619
|
return;
|
|
4614
4620
|
}
|
|
4615
|
-
|
|
4621
|
+
b.send(r || null);
|
|
4616
4622
|
});
|
|
4617
4623
|
}, Zn = {
|
|
4618
|
-
http:
|
|
4619
|
-
xhr:
|
|
4624
|
+
http: Wu,
|
|
4625
|
+
xhr: Ad
|
|
4620
4626
|
};
|
|
4621
4627
|
h.forEach(Zn, (t, e) => {
|
|
4622
4628
|
if (t) {
|
|
@@ -4627,7 +4633,7 @@ h.forEach(Zn, (t, e) => {
|
|
|
4627
4633
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
4628
4634
|
}
|
|
4629
4635
|
});
|
|
4630
|
-
const gr = (t) => `- ${t}`,
|
|
4636
|
+
const gr = (t) => `- ${t}`, Ed = (t) => h.isFunction(t) || t === null || t === !1, Ps = {
|
|
4631
4637
|
getAdapter: (t) => {
|
|
4632
4638
|
t = h.isArray(t) ? t : [t];
|
|
4633
4639
|
const { length: e } = t;
|
|
@@ -4636,7 +4642,7 @@ const gr = (t) => `- ${t}`, kd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4636
4642
|
for (let s = 0; s < e; s++) {
|
|
4637
4643
|
n = t[s];
|
|
4638
4644
|
let a;
|
|
4639
|
-
if (o = n, !
|
|
4645
|
+
if (o = n, !Ed(n) && (o = Zn[(a = String(n)).toLowerCase()], o === void 0))
|
|
4640
4646
|
throw new G(`Unknown adapter '${a}'`);
|
|
4641
4647
|
if (o)
|
|
4642
4648
|
break;
|
|
@@ -4662,7 +4668,7 @@ function $n(t) {
|
|
|
4662
4668
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
4663
4669
|
throw new qt(null, t);
|
|
4664
4670
|
}
|
|
4665
|
-
function
|
|
4671
|
+
function br(t) {
|
|
4666
4672
|
return $n(t), t.headers = Ge.from(t.headers), t.data = Hn.call(
|
|
4667
4673
|
t,
|
|
4668
4674
|
t.transformRequest
|
|
@@ -4680,36 +4686,36 @@ function yr(t) {
|
|
|
4680
4686
|
), o.response.headers = Ge.from(o.response.headers))), Promise.reject(o);
|
|
4681
4687
|
});
|
|
4682
4688
|
}
|
|
4683
|
-
const
|
|
4689
|
+
const yr = (t) => t instanceof Ge ? t.toJSON() : t;
|
|
4684
4690
|
function vt(t, e) {
|
|
4685
4691
|
e = e || {};
|
|
4686
4692
|
const n = {};
|
|
4687
|
-
function o(
|
|
4688
|
-
return h.isPlainObject(
|
|
4693
|
+
function o(y, x, b) {
|
|
4694
|
+
return h.isPlainObject(y) && h.isPlainObject(x) ? h.merge.call({ caseless: b }, y, x) : h.isPlainObject(x) ? h.merge({}, x) : h.isArray(x) ? x.slice() : x;
|
|
4689
4695
|
}
|
|
4690
|
-
function r(
|
|
4696
|
+
function r(y, x, b) {
|
|
4691
4697
|
if (h.isUndefined(x)) {
|
|
4692
|
-
if (!h.isUndefined(
|
|
4693
|
-
return o(void 0,
|
|
4698
|
+
if (!h.isUndefined(y))
|
|
4699
|
+
return o(void 0, y, b);
|
|
4694
4700
|
} else
|
|
4695
|
-
return o(
|
|
4701
|
+
return o(y, x, b);
|
|
4696
4702
|
}
|
|
4697
|
-
function s(
|
|
4703
|
+
function s(y, x) {
|
|
4698
4704
|
if (!h.isUndefined(x))
|
|
4699
4705
|
return o(void 0, x);
|
|
4700
4706
|
}
|
|
4701
|
-
function a(
|
|
4707
|
+
function a(y, x) {
|
|
4702
4708
|
if (h.isUndefined(x)) {
|
|
4703
|
-
if (!h.isUndefined(
|
|
4704
|
-
return o(void 0,
|
|
4709
|
+
if (!h.isUndefined(y))
|
|
4710
|
+
return o(void 0, y);
|
|
4705
4711
|
} else
|
|
4706
4712
|
return o(void 0, x);
|
|
4707
4713
|
}
|
|
4708
|
-
function d(
|
|
4709
|
-
if (
|
|
4710
|
-
return o(
|
|
4711
|
-
if (
|
|
4712
|
-
return o(void 0,
|
|
4714
|
+
function d(y, x, b) {
|
|
4715
|
+
if (b in e)
|
|
4716
|
+
return o(y, x);
|
|
4717
|
+
if (b in t)
|
|
4718
|
+
return o(void 0, y);
|
|
4713
4719
|
}
|
|
4714
4720
|
const l = {
|
|
4715
4721
|
url: s,
|
|
@@ -4740,11 +4746,11 @@ function vt(t, e) {
|
|
|
4740
4746
|
socketPath: a,
|
|
4741
4747
|
responseEncoding: a,
|
|
4742
4748
|
validateStatus: d,
|
|
4743
|
-
headers: (
|
|
4749
|
+
headers: (y, x) => r(yr(y), yr(x), !0)
|
|
4744
4750
|
};
|
|
4745
4751
|
return h.forEach(Object.keys(Object.assign({}, t, e)), function(x) {
|
|
4746
|
-
const
|
|
4747
|
-
h.isUndefined(K) &&
|
|
4752
|
+
const b = l[x] || r, K = b(t[x], e[x], x);
|
|
4753
|
+
h.isUndefined(K) && b !== d || (n[x] = K);
|
|
4748
4754
|
}), n;
|
|
4749
4755
|
}
|
|
4750
4756
|
const Rs = "1.6.5", vo = {};
|
|
@@ -4772,7 +4778,7 @@ vo.transitional = function(e, n, o) {
|
|
|
4772
4778
|
)), e ? e(s, a, d) : !0;
|
|
4773
4779
|
};
|
|
4774
4780
|
};
|
|
4775
|
-
function
|
|
4781
|
+
function kd(t, e, n) {
|
|
4776
4782
|
if (typeof t != "object")
|
|
4777
4783
|
throw new G("options must be an object", G.ERR_BAD_OPTION_VALUE);
|
|
4778
4784
|
const o = Object.keys(t);
|
|
@@ -4790,7 +4796,7 @@ function xd(t, e, n) {
|
|
|
4790
4796
|
}
|
|
4791
4797
|
}
|
|
4792
4798
|
const Qn = {
|
|
4793
|
-
assertOptions:
|
|
4799
|
+
assertOptions: kd,
|
|
4794
4800
|
validators: vo
|
|
4795
4801
|
}, Ye = Qn.validators;
|
|
4796
4802
|
class cn {
|
|
@@ -4836,21 +4842,21 @@ class cn {
|
|
|
4836
4842
|
this.interceptors.request.forEach(function(B) {
|
|
4837
4843
|
typeof B.runWhen == "function" && B.runWhen(n) === !1 || (l = l && B.synchronous, d.unshift(B.fulfilled, B.rejected));
|
|
4838
4844
|
});
|
|
4839
|
-
const
|
|
4845
|
+
const y = [];
|
|
4840
4846
|
this.interceptors.response.forEach(function(B) {
|
|
4841
|
-
|
|
4847
|
+
y.push(B.fulfilled, B.rejected);
|
|
4842
4848
|
});
|
|
4843
|
-
let x,
|
|
4849
|
+
let x, b = 0, K;
|
|
4844
4850
|
if (!l) {
|
|
4845
|
-
const I = [
|
|
4846
|
-
for (I.unshift.apply(I, d), I.push.apply(I,
|
|
4847
|
-
x = x.then(I[
|
|
4851
|
+
const I = [br.bind(this), void 0];
|
|
4852
|
+
for (I.unshift.apply(I, d), I.push.apply(I, y), K = I.length, x = Promise.resolve(n); b < K; )
|
|
4853
|
+
x = x.then(I[b++], I[b++]);
|
|
4848
4854
|
return x;
|
|
4849
4855
|
}
|
|
4850
4856
|
K = d.length;
|
|
4851
4857
|
let H = n;
|
|
4852
|
-
for (
|
|
4853
|
-
const I = d[
|
|
4858
|
+
for (b = 0; b < K; ) {
|
|
4859
|
+
const I = d[b++], B = d[b++];
|
|
4854
4860
|
try {
|
|
4855
4861
|
H = I(H);
|
|
4856
4862
|
} catch (Y) {
|
|
@@ -4859,12 +4865,12 @@ class cn {
|
|
|
4859
4865
|
}
|
|
4860
4866
|
}
|
|
4861
4867
|
try {
|
|
4862
|
-
x =
|
|
4868
|
+
x = br.call(this, H);
|
|
4863
4869
|
} catch (I) {
|
|
4864
4870
|
return Promise.reject(I);
|
|
4865
4871
|
}
|
|
4866
|
-
for (
|
|
4867
|
-
x = x.then(b
|
|
4872
|
+
for (b = 0, K = y.length; b < K; )
|
|
4873
|
+
x = x.then(y[b++], y[b++]);
|
|
4868
4874
|
return x;
|
|
4869
4875
|
}
|
|
4870
4876
|
getUri(e) {
|
|
@@ -4966,13 +4972,13 @@ class Ao {
|
|
|
4966
4972
|
};
|
|
4967
4973
|
}
|
|
4968
4974
|
}
|
|
4969
|
-
const
|
|
4970
|
-
function
|
|
4975
|
+
const xd = Ao;
|
|
4976
|
+
function Sd(t) {
|
|
4971
4977
|
return function(n) {
|
|
4972
4978
|
return t.apply(null, n);
|
|
4973
4979
|
};
|
|
4974
4980
|
}
|
|
4975
|
-
function
|
|
4981
|
+
function _d(t) {
|
|
4976
4982
|
return h.isObject(t) && t.isAxiosError === !0;
|
|
4977
4983
|
}
|
|
4978
4984
|
const eo = {
|
|
@@ -5043,7 +5049,7 @@ const eo = {
|
|
|
5043
5049
|
Object.entries(eo).forEach(([t, e]) => {
|
|
5044
5050
|
eo[e] = t;
|
|
5045
5051
|
});
|
|
5046
|
-
const
|
|
5052
|
+
const Cd = eo;
|
|
5047
5053
|
function Ls(t) {
|
|
5048
5054
|
const e = new on(t), n = ds(on.prototype.request, e);
|
|
5049
5055
|
return h.extend(n, on.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
@@ -5053,7 +5059,7 @@ function Ls(t) {
|
|
|
5053
5059
|
const re = Ls(wo);
|
|
5054
5060
|
re.Axios = on;
|
|
5055
5061
|
re.CanceledError = qt;
|
|
5056
|
-
re.CancelToken =
|
|
5062
|
+
re.CancelToken = xd;
|
|
5057
5063
|
re.isCancel = Cs;
|
|
5058
5064
|
re.VERSION = Rs;
|
|
5059
5065
|
re.toFormData = vn;
|
|
@@ -5062,21 +5068,21 @@ re.Cancel = re.CanceledError;
|
|
|
5062
5068
|
re.all = function(e) {
|
|
5063
5069
|
return Promise.all(e);
|
|
5064
5070
|
};
|
|
5065
|
-
re.spread =
|
|
5066
|
-
re.isAxiosError =
|
|
5071
|
+
re.spread = Sd;
|
|
5072
|
+
re.isAxiosError = _d;
|
|
5067
5073
|
re.mergeConfig = vt;
|
|
5068
5074
|
re.AxiosHeaders = Ge;
|
|
5069
5075
|
re.formToJSON = (t) => _s(h.isHTMLForm(t) ? new FormData(t) : t);
|
|
5070
5076
|
re.getAdapter = Ps.getAdapter;
|
|
5071
|
-
re.HttpStatusCode =
|
|
5077
|
+
re.HttpStatusCode = Cd;
|
|
5072
5078
|
re.default = re;
|
|
5073
|
-
const
|
|
5074
|
-
class
|
|
5079
|
+
const Td = re;
|
|
5080
|
+
class Pd {
|
|
5075
5081
|
constructor(e) {
|
|
5076
5082
|
We(this, "keycloak");
|
|
5077
5083
|
We(this, "axios");
|
|
5078
5084
|
We(this, "fileName", "silent-login.html");
|
|
5079
|
-
this.keycloak = e, this.axios =
|
|
5085
|
+
this.keycloak = e, this.axios = Td.create(), this.axios.defaults.baseURL = "https://localhost:5001/api", this.axios.defaults.headers.common["content-type"] = "application/json", this.axios.defaults.timeout = 1e3 * 60 * 5, this.axios.interceptors.request.use(async (n) => {
|
|
5080
5086
|
await this.SilentLogin();
|
|
5081
5087
|
const o = this.keycloak.token;
|
|
5082
5088
|
return n.headers.Authorization = `Bearer ${o}`, n;
|
|
@@ -5124,14 +5130,14 @@ class Rd {
|
|
|
5124
5130
|
e(!1);
|
|
5125
5131
|
return;
|
|
5126
5132
|
}
|
|
5127
|
-
const
|
|
5128
|
-
|
|
5133
|
+
const y = new XMLHttpRequest();
|
|
5134
|
+
y.open("POST", this.tokenExchangeUrl, !0), y.setRequestHeader(
|
|
5129
5135
|
"Content-type",
|
|
5130
5136
|
"application/x-www-form-urlencoded"
|
|
5131
|
-
),
|
|
5132
|
-
if (
|
|
5133
|
-
if (
|
|
5134
|
-
const x = JSON.parse(
|
|
5137
|
+
), y.onreadystatechange = () => {
|
|
5138
|
+
if (y.readyState === 4) {
|
|
5139
|
+
if (y.status === 200) {
|
|
5140
|
+
const x = JSON.parse(y.responseText);
|
|
5135
5141
|
this.keycloak.setToken(
|
|
5136
5142
|
x.access_token,
|
|
5137
5143
|
null,
|
|
@@ -5142,7 +5148,7 @@ class Rd {
|
|
|
5142
5148
|
}
|
|
5143
5149
|
e(!1);
|
|
5144
5150
|
}
|
|
5145
|
-
},
|
|
5151
|
+
}, y.send(this.TokenExchangeParams(a, d));
|
|
5146
5152
|
};
|
|
5147
5153
|
window.addEventListener("message", o);
|
|
5148
5154
|
}).then((e) => (e || (this.keycloak.clearToken(), this.keycloak.login()), e));
|
|
@@ -5178,38 +5184,22 @@ class Rd {
|
|
|
5178
5184
|
return !e || !n ? !0 : n - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + (this.keycloak.timeSkew ?? 0) < 10;
|
|
5179
5185
|
}
|
|
5180
5186
|
}
|
|
5181
|
-
const
|
|
5182
|
-
(() => {
|
|
5183
|
-
function t() {
|
|
5184
|
-
Js(() => {
|
|
5185
|
-
setTimeout(() => {
|
|
5186
|
-
var n;
|
|
5187
|
-
const e = document.querySelector(":root");
|
|
5188
|
-
e && // @ts-ignore
|
|
5189
|
-
e.style.setProperty(
|
|
5190
|
-
"--window-height",
|
|
5191
|
-
`${((n = window.visualViewport) == null ? void 0 : n.height) ?? window.innerHeight}px`
|
|
5192
|
-
);
|
|
5193
|
-
}, 1);
|
|
5194
|
-
});
|
|
5195
|
-
}
|
|
5196
|
-
t(), window.addEventListener("resize", t);
|
|
5197
|
-
})();
|
|
5187
|
+
const Dd = (t) => new Pd(t);
|
|
5198
5188
|
Jn.SetInitialTheme();
|
|
5199
5189
|
export {
|
|
5200
5190
|
cr as AppResult,
|
|
5201
|
-
|
|
5191
|
+
Pd as AxiosClient,
|
|
5202
5192
|
xr as Cor,
|
|
5203
|
-
|
|
5204
|
-
|
|
5193
|
+
Nd as SfButton,
|
|
5194
|
+
Fd as SfContent,
|
|
5205
5195
|
rn as SfIcon,
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5196
|
+
Od as SfLayout,
|
|
5197
|
+
Id as SfNavMenuLink,
|
|
5198
|
+
Bd as SfTabNavigation,
|
|
5209
5199
|
Ot as Tamanho,
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5200
|
+
Ud as UseAuthService,
|
|
5201
|
+
Dd as UseAxiosClient,
|
|
5202
|
+
hl as UseDialogService,
|
|
5213
5203
|
kr as UseNavMenuService
|
|
5214
5204
|
};
|
|
5215
5205
|
//# sourceMappingURL=lib.es.js.map
|