@luizleon/sf.prefeiturasp.vuecomponents 0.0.28 → 0.0.30
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/components/layout/Layout.d.ts +1 -0
- package/dist/lib.es.js +375 -374
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +10 -10
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/Layout.d.ts +1 -0
- package/src/components/layout/Layout.vue +7 -1
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var xr = Object.defineProperty;
|
|
2
2
|
var Cr = (t, e, n) => e in t ? xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var nt = (t, e, n) => (Cr(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as it, openBlock as X, createElementBlock as Ae, createElementVNode as j, defineComponent as Ne, normalizeStyle as
|
|
4
|
+
import { ref as it, openBlock as X, createElementBlock as Ae, createElementVNode as j, defineComponent as Ne, normalizeStyle as _n, normalizeClass as ke, mergeProps as Er, createBlock as ut, Fragment as xo, createTextVNode as Tr, toDisplayString as Vt, createCommentVNode as xn, computed as Sr, onMounted as Wt, unref as qe, createStaticVNode as Lr, createVNode as wt, renderSlot as Ue, resolveComponent as Co, withCtx as Eo, onBeforeUnmount as Ir, renderList as Pr, nextTick as Rr } from "vue";
|
|
5
5
|
class Or {
|
|
6
6
|
constructor() {
|
|
7
7
|
nt(this, "_visible", it(!1));
|
|
@@ -23,8 +23,8 @@ const Fr = new Or(), To = () => Fr;
|
|
|
23
23
|
var So = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(So || {}), kt = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(kt || {});
|
|
24
24
|
const Lo = (t, e) => {
|
|
25
25
|
const n = t.__vccOpts || t;
|
|
26
|
-
for (const [o,
|
|
27
|
-
n[o] =
|
|
26
|
+
for (const [o, i] of e)
|
|
27
|
+
n[o] = i;
|
|
28
28
|
return n;
|
|
29
29
|
}, Br = {}, Mr = { class: "sf-loading-circle" }, Ur = /* @__PURE__ */ j("div", null, [
|
|
30
30
|
/* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
@@ -98,8 +98,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
98
98
|
function n() {
|
|
99
99
|
return new st(`${e.class} sf-icon`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-icon-button", e.button).AddClass("sf-icon-small", e.tamanho === kt.Pequeno).AddClass("sf-icon-medium", e.tamanho === kt.Medio).AddClass("sf-icon-large", e.tamanho === kt.Grande).AddClass("sf-ripple", e.button === !0).Build();
|
|
100
100
|
}
|
|
101
|
-
return (o,
|
|
102
|
-
style:
|
|
101
|
+
return (o, i) => (X(), Ae("div", {
|
|
102
|
+
style: _n(e.style),
|
|
103
103
|
class: ke(n())
|
|
104
104
|
}, [
|
|
105
105
|
j("button", Er({
|
|
@@ -115,7 +115,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
115
115
|
e.dot ? (X(), Ae("span", {
|
|
116
116
|
key: 0,
|
|
117
117
|
"data-color": e.dotColor
|
|
118
|
-
}, null, 8, jr)) :
|
|
118
|
+
}, null, 8, jr)) : xn("", !0)
|
|
119
119
|
], 6));
|
|
120
120
|
}
|
|
121
121
|
}), Io = "SweetAlert2:", zr = (t) => {
|
|
@@ -133,7 +133,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
133
133
|
Vr(
|
|
134
134
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
135
135
|
);
|
|
136
|
-
},
|
|
136
|
+
}, qt = (t) => typeof t == "function" ? t() : t, En = (t) => t && typeof t.toPromise == "function", Tt = (t) => En(t) ? t.toPromise() : Promise.resolve(t), Tn = (t) => t && Promise.resolve(t) === t, at = {
|
|
137
137
|
title: "",
|
|
138
138
|
titleText: "",
|
|
139
139
|
text: "",
|
|
@@ -275,12 +275,12 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
275
275
|
"returnFocus",
|
|
276
276
|
"heightAuto",
|
|
277
277
|
"keydownListenerCapture"
|
|
278
|
-
], Po = (t) => Object.prototype.hasOwnProperty.call(at, t), Ro = (t) => qr.indexOf(t) !== -1,
|
|
278
|
+
], Po = (t) => Object.prototype.hasOwnProperty.call(at, t), Ro = (t) => qr.indexOf(t) !== -1, mn = (t) => Kr[t], Yr = (t) => {
|
|
279
279
|
Po(t) || be(`Unknown parameter "${t}"`);
|
|
280
280
|
}, Jr = (t) => {
|
|
281
281
|
Gr.includes(t) && be(`The parameter "${t}" is incompatible with toasts`);
|
|
282
282
|
}, Xr = (t) => {
|
|
283
|
-
|
|
283
|
+
mn(t) && Wr(t, mn(t));
|
|
284
284
|
}, Zr = (t) => {
|
|
285
285
|
!t.backdrop && t.allowOutsideClick && be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
286
286
|
for (const e in t)
|
|
@@ -363,7 +363,7 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
363
363
|
]), _t = Oo(["success", "warning", "info", "question", "error"]), se = () => document.body.querySelector(`.${l.container}`), St = (t) => {
|
|
364
364
|
const e = se();
|
|
365
365
|
return e ? e.querySelector(t) : null;
|
|
366
|
-
}, Se = (t) => St(`.${t}`), V = () => Se(l.popup), Lt = () => Se(l.icon), Fo = () => Se(l.title), jt = () => Se(l["html-container"]), Bo = () => Se(l.image), Mo = () => Se(l["progress-steps"]),
|
|
366
|
+
}, Se = (t) => St(`.${t}`), V = () => Se(l.popup), Lt = () => Se(l.icon), Fo = () => Se(l.title), jt = () => Se(l["html-container"]), Bo = () => Se(l.image), Mo = () => Se(l["progress-steps"]), Kt = () => Se(l["validation-message"]), Le = () => St(`.${l.actions} .${l.confirm}`), He = () => St(`.${l.actions} .${l.deny}`), es = () => Se(l["input-label"]), ft = () => St(`.${l.loader}`), Ke = () => St(`.${l.actions} .${l.cancel}`), It = () => Se(l.actions), Uo = () => Se(l.footer), Gt = () => Se(l["timer-progress-bar"]), Sn = () => Se(l.close), ts = `
|
|
367
367
|
a[href],
|
|
368
368
|
area[href],
|
|
369
369
|
input:not([disabled]),
|
|
@@ -382,21 +382,21 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
382
382
|
const t = xe(
|
|
383
383
|
V().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')
|
|
384
384
|
).sort((n, o) => {
|
|
385
|
-
const
|
|
386
|
-
return
|
|
385
|
+
const i = parseInt(n.getAttribute("tabindex")), c = parseInt(o.getAttribute("tabindex"));
|
|
386
|
+
return i > c ? 1 : i < c ? -1 : 0;
|
|
387
387
|
}), e = xe(V().querySelectorAll(ts)).filter(
|
|
388
388
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
389
389
|
);
|
|
390
390
|
return zr(t.concat(e)).filter((n) => _e(n));
|
|
391
|
-
}, In = () => De(document.body, l.shown) && !De(document.body, l["toast-shown"]) && !De(document.body, l["no-backdrop"]),
|
|
391
|
+
}, In = () => De(document.body, l.shown) && !De(document.body, l["toast-shown"]) && !De(document.body, l["no-backdrop"]), Yt = () => V() && De(V(), l.toast), ns = () => V().hasAttribute("data-loading"), ct = {
|
|
392
392
|
previousBodyPadding: null
|
|
393
393
|
}, re = (t, e) => {
|
|
394
394
|
if (t.textContent = "", e) {
|
|
395
395
|
const o = new DOMParser().parseFromString(e, "text/html");
|
|
396
|
-
xe(o.querySelector("head").childNodes).forEach((
|
|
397
|
-
t.appendChild(
|
|
398
|
-
}), xe(o.querySelector("body").childNodes).forEach((
|
|
399
|
-
t.appendChild(
|
|
396
|
+
xe(o.querySelector("head").childNodes).forEach((i) => {
|
|
397
|
+
t.appendChild(i);
|
|
398
|
+
}), xe(o.querySelector("body").childNodes).forEach((i) => {
|
|
399
|
+
t.appendChild(i);
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}, De = (t, e) => {
|
|
@@ -443,8 +443,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
443
443
|
}
|
|
444
444
|
}, No = (t, e, n) => {
|
|
445
445
|
!t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
|
|
446
|
-
Array.isArray(t) ? t.forEach((
|
|
447
|
-
n ?
|
|
446
|
+
Array.isArray(t) ? t.forEach((i) => {
|
|
447
|
+
n ? i.classList.add(o) : i.classList.remove(o);
|
|
448
448
|
}) : n ? t.classList.add(o) : t.classList.remove(o);
|
|
449
449
|
}));
|
|
450
450
|
}, H = (t, e) => {
|
|
@@ -463,20 +463,20 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
463
463
|
}, ie = (t) => {
|
|
464
464
|
t.style.display = "none";
|
|
465
465
|
}, no = (t, e, n, o) => {
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
},
|
|
466
|
+
const i = t.querySelector(e);
|
|
467
|
+
i && (i.style[n] = o);
|
|
468
|
+
}, Jt = (t, e, n) => {
|
|
469
469
|
e ? te(t, n) : ie(t);
|
|
470
470
|
}, _e = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), rs = () => !_e(Le()) && !_e(He()) && !_e(Ke()), oo = (t) => t.scrollHeight > t.clientHeight, $o = (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
|
}, Rn = (t, e = !1) => {
|
|
474
|
-
const n =
|
|
474
|
+
const n = Gt();
|
|
475
475
|
_e(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
|
}, ss = () => {
|
|
479
|
-
const t =
|
|
479
|
+
const t = Gt(), 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}%`;
|
|
@@ -531,9 +531,9 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
531
531
|
}, We = () => {
|
|
532
532
|
B.currentInstance.resetValidationMessage();
|
|
533
533
|
}, ds = () => {
|
|
534
|
-
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`),
|
|
535
|
-
e.oninput = We, n.onchange = We, c.onchange = We,
|
|
536
|
-
We(),
|
|
534
|
+
const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), A = t.querySelector(`.${l.checkbox} input`), L = $e(t, l.textarea);
|
|
535
|
+
e.oninput = We, n.onchange = We, c.onchange = We, A.onchange = We, L.oninput = We, o.oninput = () => {
|
|
536
|
+
We(), i.value = o.value;
|
|
537
537
|
}, o.onchange = () => {
|
|
538
538
|
We(), o.nextSibling.value = o.value;
|
|
539
539
|
};
|
|
@@ -585,16 +585,16 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
|
|
|
585
585
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ie(n) : te(n), Ee(n, e, "actions"), ws(n, o, e), re(o, e.loaderHtml), Ee(o, e, "loader");
|
|
586
586
|
};
|
|
587
587
|
function ws(t, e, n) {
|
|
588
|
-
const o = Le(),
|
|
589
|
-
|
|
588
|
+
const o = Le(), i = He(), c = Ke();
|
|
589
|
+
sn(o, "confirm", n), sn(i, "deny", n), sn(c, "cancel", n), ks(o, i, c, n), n.reverseButtons && (n.toast ? (t.insertBefore(c, o), t.insertBefore(i, o)) : (t.insertBefore(c, e), t.insertBefore(i, e), t.insertBefore(o, e)));
|
|
590
590
|
}
|
|
591
591
|
function ks(t, e, n, o) {
|
|
592
592
|
if (!o.buttonsStyling)
|
|
593
593
|
return Oe([t, e, n], l.styled);
|
|
594
594
|
H([t, e, n], l.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor, H(t, l["default-outline"])), o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor, H(e, l["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, H(n, l["default-outline"]));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
|
|
596
|
+
function sn(t, e, n) {
|
|
597
|
+
Jt(t, n[`show${Cn(e)}Button`], "inline-block"), re(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = l[e], Ee(t, n, `${e}Button`), H(t, n[`${e}ButtonClass`]);
|
|
598
598
|
}
|
|
599
599
|
function As(t, e) {
|
|
600
600
|
typeof e == "string" ? t.style.background = e : e || H([document.documentElement, document.body], l["no-backdrop"]);
|
|
@@ -617,11 +617,11 @@ const Cs = (t, e) => {
|
|
|
617
617
|
innerParams: /* @__PURE__ */ new WeakMap(),
|
|
618
618
|
domCache: /* @__PURE__ */ new WeakMap()
|
|
619
619
|
}, Es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ts = (t, e) => {
|
|
620
|
-
const n = V(), o = U.innerParams.get(t),
|
|
620
|
+
const n = V(), o = U.innerParams.get(t), i = !o || e.input !== o.input;
|
|
621
621
|
Es.forEach((c) => {
|
|
622
|
-
const
|
|
623
|
-
Is(c, e.inputAttributes), L.className =
|
|
624
|
-
}), e.input && (
|
|
622
|
+
const A = l[c], L = $e(n, A);
|
|
623
|
+
Is(c, e.inputAttributes), L.className = A, i && ie(L);
|
|
624
|
+
}), e.input && (i && Ss(e), Ps(e));
|
|
625
625
|
}, Ss = (t) => {
|
|
626
626
|
if (!ge[t.input])
|
|
627
627
|
return Ye(
|
|
@@ -651,8 +651,8 @@ const Cs = (t, e) => {
|
|
|
651
651
|
}, Pt = (t, e, n) => {
|
|
652
652
|
if (n.inputLabel) {
|
|
653
653
|
t.id = l.input;
|
|
654
|
-
const o = document.createElement("label"),
|
|
655
|
-
o.setAttribute("for", t.id), o.className =
|
|
654
|
+
const o = document.createElement("label"), i = l["input-label"];
|
|
655
|
+
o.setAttribute("for", t.id), o.className = i, H(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
|
|
656
656
|
}
|
|
657
657
|
}, jo = (t) => {
|
|
658
658
|
const e = l[t] ? l[t] : l.input;
|
|
@@ -685,11 +685,11 @@ ge.textarea = (t, e) => {
|
|
|
685
685
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
686
686
|
return setTimeout(() => {
|
|
687
687
|
if ("MutationObserver" in window) {
|
|
688
|
-
const o = parseInt(window.getComputedStyle(V()).width),
|
|
688
|
+
const o = parseInt(window.getComputedStyle(V()).width), i = () => {
|
|
689
689
|
const c = t.offsetWidth + n(t);
|
|
690
690
|
c > o ? V().style.width = `${c}px` : V().style.width = null;
|
|
691
691
|
};
|
|
692
|
-
new MutationObserver(
|
|
692
|
+
new MutationObserver(i).observe(t, {
|
|
693
693
|
attributes: !0,
|
|
694
694
|
attributeFilter: ["style"]
|
|
695
695
|
});
|
|
@@ -701,10 +701,10 @@ const Rs = (t, e) => {
|
|
|
701
701
|
Ee(n, e, "htmlContainer"), e.html ? (On(e.html, n), te(n, "block")) : e.text ? (n.textContent = e.text, te(n, "block")) : ie(n), Ts(t, e);
|
|
702
702
|
}, Os = (t, e) => {
|
|
703
703
|
const n = Uo();
|
|
704
|
-
|
|
704
|
+
Jt(n, e.footer), e.footer && On(e.footer, n), Ee(n, e, "footer");
|
|
705
705
|
}, Fs = (t, e) => {
|
|
706
706
|
const n = Sn();
|
|
707
|
-
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"),
|
|
707
|
+
re(n, e.closeButtonHtml), Ee(n, e, "closeButton"), Jt(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
708
708
|
}, Bs = (t, e) => {
|
|
709
709
|
const n = U.innerParams.get(t), o = Lt();
|
|
710
710
|
if (n && e.icon === n.icon) {
|
|
@@ -769,19 +769,19 @@ const Rs = (t, e) => {
|
|
|
769
769
|
return ie(n);
|
|
770
770
|
te(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && be(
|
|
771
771
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
772
|
-
), e.progressSteps.forEach((o,
|
|
772
|
+
), e.progressSteps.forEach((o, i) => {
|
|
773
773
|
const c = Hs(o);
|
|
774
|
-
if (n.appendChild(c),
|
|
775
|
-
const
|
|
776
|
-
n.appendChild(
|
|
774
|
+
if (n.appendChild(c), i === e.currentProgressStep && H(c, l["active-progress-step"]), i !== e.progressSteps.length - 1) {
|
|
775
|
+
const A = js(e);
|
|
776
|
+
n.appendChild(A);
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
779
|
}, Vs = (t, e) => {
|
|
780
780
|
const n = Fo();
|
|
781
|
-
|
|
781
|
+
Jt(n, e.title || e.titleText, "block"), e.title && On(e.title, n), e.titleText && (n.innerText = e.titleText), Ee(n, e, "title");
|
|
782
782
|
}, Ws = (t, e) => {
|
|
783
783
|
const n = se(), o = V();
|
|
784
|
-
e.toast ? (xt(n, "width", e.width), o.style.width = "100%", o.insertBefore(ft(), Lt())) : xt(o, "width", e.width), xt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(
|
|
784
|
+
e.toast ? (xt(n, "width", e.width), o.style.width = "100%", o.insertBefore(ft(), Lt())) : xt(o, "width", e.width), xt(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ie(Kt()), qs(o, e);
|
|
785
785
|
}, qs = (t, e) => {
|
|
786
786
|
t.className = `${l.popup} ${_e(t) ? e.showClass.popup : ""}`, e.toast ? (H([document.documentElement, document.body], l["toast-shown"]), H(t, l.toast)) : H(t, l.modal), Ee(t, e, "popup"), typeof e.customClass == "string" && H(t, e.customClass), e.icon && H(t, l[`icon-${e.icon}`]);
|
|
787
787
|
}, zo = (t, e) => {
|
|
@@ -817,8 +817,8 @@ const Rs = (t, e) => {
|
|
|
817
817
|
const e = {};
|
|
818
818
|
return xe(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
819
819
|
Ge(n, ["name", "value"]);
|
|
820
|
-
const o = n.getAttribute("name"),
|
|
821
|
-
typeof at[o] == "boolean" &&
|
|
820
|
+
const o = n.getAttribute("name"), i = n.getAttribute("value");
|
|
821
|
+
typeof at[o] == "boolean" && i === "false" && (e[o] = !1), typeof at[o] == "object" && (e[o] = JSON.parse(i));
|
|
822
822
|
}), e;
|
|
823
823
|
}, Js = (t) => {
|
|
824
824
|
const e = {};
|
|
@@ -837,16 +837,16 @@ const Rs = (t, e) => {
|
|
|
837
837
|
const e = {}, n = t.querySelector("swal-input");
|
|
838
838
|
n && (Ge(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");
|
|
840
|
-
return o.length && (e.inputOptions = {}, xe(o).forEach((
|
|
841
|
-
Ge(
|
|
842
|
-
const c =
|
|
843
|
-
e.inputOptions[c] =
|
|
840
|
+
return o.length && (e.inputOptions = {}, xe(o).forEach((i) => {
|
|
841
|
+
Ge(i, ["value"]);
|
|
842
|
+
const c = i.getAttribute("value"), A = i.innerHTML;
|
|
843
|
+
e.inputOptions[c] = A;
|
|
844
844
|
})), e;
|
|
845
845
|
}, ei = (t, e) => {
|
|
846
846
|
const n = {};
|
|
847
847
|
for (const o in e) {
|
|
848
|
-
const
|
|
849
|
-
c && (Ge(c, []), n[
|
|
848
|
+
const i = e[o], c = t.querySelector(i);
|
|
849
|
+
c && (Ge(c, []), n[i.replace(/^swal-/, "")] = c.innerHTML.trim());
|
|
850
850
|
}
|
|
851
851
|
return n;
|
|
852
852
|
}, ti = (t) => {
|
|
@@ -945,10 +945,10 @@ const ii = () => {
|
|
|
945
945
|
}, qo = 10, mi = (t) => {
|
|
946
946
|
const e = se(), n = V();
|
|
947
947
|
typeof t.willOpen == "function" && t.willOpen(n);
|
|
948
|
-
const
|
|
948
|
+
const i = window.getComputedStyle(document.body).overflowY;
|
|
949
949
|
vi(e, n, t), setTimeout(() => {
|
|
950
950
|
gi(e, n);
|
|
951
|
-
}, qo), In() && (bi(e, t.scrollbarPadding,
|
|
951
|
+
}, qo), In() && (bi(e, t.scrollbarPadding, i), Ks()), !Yt() && !B.previousActiveElement && (B.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), Oe(e, l["no-transition"]);
|
|
952
952
|
}, Ko = (t) => {
|
|
953
953
|
const e = V();
|
|
954
954
|
if (t.target !== e)
|
|
@@ -969,7 +969,7 @@ const ii = () => {
|
|
|
969
969
|
let e = V();
|
|
970
970
|
e || new lt(), e = V();
|
|
971
971
|
const n = ft();
|
|
972
|
-
|
|
972
|
+
Yt() ? ie(Lt()) : yi(e, t), te(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
973
973
|
}, yi = (t, e) => {
|
|
974
974
|
const n = It(), o = ft();
|
|
975
975
|
!e && _e(Le()) && (e = Le()), te(n), e && (ie(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), H([t, n], l.loading);
|
|
@@ -990,9 +990,9 @@ const ii = () => {
|
|
|
990
990
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
991
991
|
}
|
|
992
992
|
}, Ai = (t) => t.checked ? 1 : 0, _i = (t) => t.checked ? t.value : null, xi = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Ci = (t, e) => {
|
|
993
|
-
const n = V(), o = (
|
|
994
|
-
En(e.inputOptions) || Tn(e.inputOptions) ? (dt(Le()), Tt(e.inputOptions).then((
|
|
995
|
-
t.hideLoading(), o(
|
|
993
|
+
const n = V(), o = (i) => Ti[e.input](n, gn(i), e);
|
|
994
|
+
En(e.inputOptions) || Tn(e.inputOptions) ? (dt(Le()), Tt(e.inputOptions).then((i) => {
|
|
995
|
+
t.hideLoading(), o(i);
|
|
996
996
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : Ye(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
997
997
|
}, Ei = (t, e) => {
|
|
998
998
|
const n = t.getInput();
|
|
@@ -1003,38 +1003,38 @@ const ii = () => {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}, Ti = {
|
|
1005
1005
|
select: (t, e, n) => {
|
|
1006
|
-
const o = $e(t, l.select),
|
|
1006
|
+
const o = $e(t, l.select), i = (c, A, L) => {
|
|
1007
1007
|
const u = document.createElement("option");
|
|
1008
|
-
u.value = L, re(u,
|
|
1008
|
+
u.value = L, re(u, A), u.selected = co(L, n.inputValue), c.appendChild(u);
|
|
1009
1009
|
};
|
|
1010
1010
|
e.forEach((c) => {
|
|
1011
|
-
const
|
|
1011
|
+
const A = c[0], L = c[1];
|
|
1012
1012
|
if (Array.isArray(L)) {
|
|
1013
1013
|
const u = document.createElement("optgroup");
|
|
1014
|
-
u.label =
|
|
1014
|
+
u.label = A, u.disabled = !1, o.appendChild(u), L.forEach((D) => i(u, D[1], D[0]));
|
|
1015
1015
|
} else
|
|
1016
|
-
|
|
1016
|
+
i(o, L, A);
|
|
1017
1017
|
}), o.focus();
|
|
1018
1018
|
},
|
|
1019
1019
|
radio: (t, e, n) => {
|
|
1020
1020
|
const o = $e(t, l.radio);
|
|
1021
1021
|
e.forEach((c) => {
|
|
1022
|
-
const
|
|
1023
|
-
u.type = "radio", u.name = l.radio, u.value =
|
|
1022
|
+
const A = c[0], L = c[1], u = document.createElement("input"), D = document.createElement("label");
|
|
1023
|
+
u.type = "radio", u.name = l.radio, u.value = A, co(A, n.inputValue) && (u.checked = !0);
|
|
1024
1024
|
const W = document.createElement("span");
|
|
1025
1025
|
re(W, L), W.className = l.label, D.appendChild(u), D.appendChild(W), o.appendChild(D);
|
|
1026
1026
|
});
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1027
|
+
const i = o.querySelectorAll("input");
|
|
1028
|
+
i.length && i[0].focus();
|
|
1029
1029
|
}
|
|
1030
|
-
},
|
|
1030
|
+
}, gn = (t) => {
|
|
1031
1031
|
const e = [];
|
|
1032
1032
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, o) => {
|
|
1033
|
-
let
|
|
1034
|
-
typeof
|
|
1033
|
+
let i = n;
|
|
1034
|
+
typeof i == "object" && (i = gn(i)), e.push([o, i]);
|
|
1035
1035
|
}) : Object.keys(t).forEach((n) => {
|
|
1036
1036
|
let o = t[n];
|
|
1037
|
-
typeof o == "object" && (o =
|
|
1037
|
+
typeof o == "object" && (o = gn(o)), e.push([n, o]);
|
|
1038
1038
|
}), e;
|
|
1039
1039
|
}, co = (t, e) => e && e.toString() === t.toString();
|
|
1040
1040
|
function lo() {
|
|
@@ -1042,7 +1042,7 @@ function lo() {
|
|
|
1042
1042
|
if (!t)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const e = U.domCache.get(this);
|
|
1045
|
-
ie(e.loader),
|
|
1045
|
+
ie(e.loader), Yt() ? t.icon && te(Lt()) : Si(e), Oe([e.popup, e.actions], l.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
1047
|
const Si = (t) => {
|
|
1048
1048
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -1060,10 +1060,10 @@ const Et = {
|
|
|
1060
1060
|
capture: t.keydownListenerCapture
|
|
1061
1061
|
}), t.keydownHandlerAdded = !1);
|
|
1062
1062
|
}, Oi = (t, e, n, o) => {
|
|
1063
|
-
Yo(e), n.toast || (e.keydownHandler = (
|
|
1063
|
+
Yo(e), n.toast || (e.keydownHandler = (i) => Bi(t, i, o), e.keydownTarget = n.keydownListenerCapture ? window : V(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
1064
1064
|
capture: e.keydownListenerCapture
|
|
1065
1065
|
}), e.keydownHandlerAdded = !0);
|
|
1066
|
-
},
|
|
1066
|
+
}, bn = (t, e, n) => {
|
|
1067
1067
|
const o = Ln();
|
|
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();
|
|
@@ -1072,38 +1072,38 @@ const Et = {
|
|
|
1072
1072
|
const o = U.innerParams.get(t);
|
|
1073
1073
|
o && (e.isComposing || e.keyCode === 229 || (o.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Mi(t, e, o) : e.key === "Tab" ? Ui(e, o) : [...Jo, ...Fi].includes(e.key) ? Di(e.key) : e.key === "Escape" && Ni(e, o, n)));
|
|
1074
1074
|
}, Mi = (t, e, n) => {
|
|
1075
|
-
if (
|
|
1075
|
+
if (qt(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
|
Go(), e.preventDefault();
|
|
1079
1079
|
}
|
|
1080
1080
|
}, Ui = (t, e) => {
|
|
1081
1081
|
const n = t.target, o = Ln();
|
|
1082
|
-
let
|
|
1082
|
+
let i = -1;
|
|
1083
1083
|
for (let c = 0; c < o.length; c++)
|
|
1084
1084
|
if (n === o[c]) {
|
|
1085
|
-
|
|
1085
|
+
i = c;
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
|
-
t.shiftKey ?
|
|
1088
|
+
t.shiftKey ? bn(e, i, -1) : bn(e, i, 1), t.stopPropagation(), t.preventDefault();
|
|
1089
1089
|
}, Di = (t) => {
|
|
1090
1090
|
const e = Le(), n = He(), o = Ke();
|
|
1091
1091
|
if (![e, n, o].includes(document.activeElement))
|
|
1092
1092
|
return;
|
|
1093
|
-
const
|
|
1093
|
+
const i = Jo.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1094
1094
|
let c = document.activeElement;
|
|
1095
|
-
for (let
|
|
1096
|
-
if (c = c[
|
|
1095
|
+
for (let A = 0; A < It().children.length; A++) {
|
|
1096
|
+
if (c = c[i], !c)
|
|
1097
1097
|
return;
|
|
1098
1098
|
if (_e(c) && c instanceof HTMLButtonElement)
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
1101
|
c instanceof HTMLButtonElement && c.focus();
|
|
1102
1102
|
}, Ni = (t, e, n) => {
|
|
1103
|
-
|
|
1103
|
+
qt(e.allowEscapeKey) && (t.preventDefault(), n(ht.esc));
|
|
1104
1104
|
};
|
|
1105
1105
|
function Xo(t, e, n, o) {
|
|
1106
|
-
|
|
1106
|
+
Yt() ? uo(t, o) : (cs(n).then(() => uo(t, o)), Yo(B)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), In() && (ai(), pi(), Vo()), $i();
|
|
1107
1107
|
}
|
|
1108
1108
|
function $i() {
|
|
1109
1109
|
Oe(
|
|
@@ -1148,15 +1148,15 @@ const Rt = (t) => {
|
|
|
1148
1148
|
},
|
|
1149
1149
|
t
|
|
1150
1150
|
), Wi = (t, e, n) => {
|
|
1151
|
-
const o = se(),
|
|
1152
|
-
typeof n.willClose == "function" && n.willClose(e),
|
|
1153
|
-
}, qi = (t, e, n, o,
|
|
1151
|
+
const o = se(), i = Ct && $o(e);
|
|
1152
|
+
typeof n.willClose == "function" && n.willClose(e), i ? qi(t, e, o, n.returnFocus, n.didClose) : Xo(t, o, n.returnFocus, n.didClose);
|
|
1153
|
+
}, qi = (t, e, n, o, i) => {
|
|
1154
1154
|
B.swalCloseEventFinishedCallback = Xo.bind(
|
|
1155
1155
|
null,
|
|
1156
1156
|
t,
|
|
1157
1157
|
n,
|
|
1158
1158
|
o,
|
|
1159
|
-
|
|
1159
|
+
i
|
|
1160
1160
|
), e.addEventListener(Ct, function(c) {
|
|
1161
1161
|
c.target === e && (B.swalCloseEventFinishedCallback(), delete B.swalCloseEventFinishedCallback);
|
|
1162
1162
|
});
|
|
@@ -1167,8 +1167,8 @@ const Rt = (t) => {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
function Zo(t, e, n) {
|
|
1169
1169
|
const o = U.domCache.get(t);
|
|
1170
|
-
e.forEach((
|
|
1171
|
-
o[
|
|
1170
|
+
e.forEach((i) => {
|
|
1171
|
+
o[i].disabled = n;
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
function Qo(t, e) {
|
|
@@ -1176,8 +1176,8 @@ function Qo(t, e) {
|
|
|
1176
1176
|
return !1;
|
|
1177
1177
|
if (t.type === "radio") {
|
|
1178
1178
|
const o = t.parentNode.parentNode.querySelectorAll("input");
|
|
1179
|
-
for (let
|
|
1180
|
-
o[
|
|
1179
|
+
for (let i = 0; i < o.length; i++)
|
|
1180
|
+
o[i].disabled = e;
|
|
1181
1181
|
} else
|
|
1182
1182
|
t.disabled = e;
|
|
1183
1183
|
}
|
|
@@ -1214,8 +1214,8 @@ function ea(t) {
|
|
|
1214
1214
|
return be(
|
|
1215
1215
|
"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup."
|
|
1216
1216
|
);
|
|
1217
|
-
const o = ta(t),
|
|
1218
|
-
zo(this,
|
|
1217
|
+
const o = ta(t), i = Object.assign({}, n, o);
|
|
1218
|
+
zo(this, i), U.innerParams.set(this, i), Object.defineProperties(this, {
|
|
1219
1219
|
params: {
|
|
1220
1220
|
value: Object.assign({}, this.params, t),
|
|
1221
1221
|
writable: !1,
|
|
@@ -1244,8 +1244,8 @@ function na() {
|
|
|
1244
1244
|
const oa = (t) => {
|
|
1245
1245
|
er(t), delete t.params, delete B.keydownHandler, delete B.keydownTarget, delete B.currentInstance;
|
|
1246
1246
|
}, er = (t) => {
|
|
1247
|
-
t.isAwaitingPromise() ? (
|
|
1248
|
-
},
|
|
1247
|
+
t.isAwaitingPromise() ? (an(U, t), U.awaitingPromise.set(t, !0)) : (an(Et, t), an(U, t));
|
|
1248
|
+
}, an = (t, e) => {
|
|
1249
1249
|
for (const n in t)
|
|
1250
1250
|
t[n].delete(e);
|
|
1251
1251
|
}, tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1296,9 +1296,9 @@ const oa = (t) => {
|
|
|
1296
1296
|
const n = U.innerParams.get(t || globalThis);
|
|
1297
1297
|
n.showLoaderOnDeny && dt(He()), n.preDeny ? (U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1298
1298
|
() => Tt(n.preDeny(e, n.validationMessage))
|
|
1299
|
-
).then((
|
|
1300
|
-
|
|
1301
|
-
}).catch((
|
|
1299
|
+
).then((i) => {
|
|
1300
|
+
i === !1 ? (t.hideLoading(), Rt(t)) : t.closePopup({ isDenied: !0, value: typeof i > "u" ? e : i });
|
|
1301
|
+
}).catch((i) => or(t || globalThis, i))) : t.closePopup({ isDenied: !0, value: e });
|
|
1302
1302
|
}, fo = (t, e) => {
|
|
1303
1303
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
1304
1304
|
}, or = (t, e) => {
|
|
@@ -1307,9 +1307,9 @@ const oa = (t) => {
|
|
|
1307
1307
|
const n = U.innerParams.get(t || globalThis);
|
|
1308
1308
|
n.showLoaderOnConfirm && dt(), n.preConfirm ? (t.resetValidationMessage(), U.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1309
1309
|
() => Tt(n.preConfirm(e, n.validationMessage))
|
|
1310
|
-
).then((
|
|
1311
|
-
_e(
|
|
1312
|
-
}).catch((
|
|
1310
|
+
).then((i) => {
|
|
1311
|
+
_e(Kt()) || i === !1 ? (t.hideLoading(), Rt(t)) : fo(t, typeof i > "u" ? e : i);
|
|
1312
|
+
}).catch((i) => or(t || globalThis, i))) : fo(t, e);
|
|
1313
1313
|
}, ca = (t, e, n) => {
|
|
1314
1314
|
U.innerParams.get(t).toast ? la(t, e, n) : (da(e), fa(e), ha(t, e, n));
|
|
1315
1315
|
}, la = (t, e, n) => {
|
|
@@ -1333,18 +1333,18 @@ const da = (t) => {
|
|
|
1333
1333
|
};
|
|
1334
1334
|
}, ha = (t, e, n) => {
|
|
1335
1335
|
e.container.onclick = (o) => {
|
|
1336
|
-
const
|
|
1336
|
+
const i = U.innerParams.get(t);
|
|
1337
1337
|
if (zt) {
|
|
1338
1338
|
zt = !1;
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
|
-
o.target === e.container &&
|
|
1341
|
+
o.target === e.container && qt(i.allowOutsideClick) && n(ht.backdrop);
|
|
1342
1342
|
};
|
|
1343
1343
|
}, pa = (t) => typeof t == "object" && t.jquery, ho = (t) => t instanceof Element || pa(t), ma = (t) => {
|
|
1344
1344
|
const e = {};
|
|
1345
1345
|
return typeof t[0] == "object" && !ho(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
|
|
1346
|
-
const
|
|
1347
|
-
typeof
|
|
1346
|
+
const i = t[o];
|
|
1347
|
+
typeof i == "string" || ho(i) ? e[n] = i : i !== void 0 && Ye(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`);
|
|
1348
1348
|
}), e;
|
|
1349
1349
|
};
|
|
1350
1350
|
function ga(...t) {
|
|
@@ -1353,8 +1353,8 @@ function ga(...t) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
function ba(t) {
|
|
1355
1355
|
class e extends this {
|
|
1356
|
-
_main(o,
|
|
1357
|
-
return super._main(o, Object.assign({}, t,
|
|
1356
|
+
_main(o, i) {
|
|
1357
|
+
return super._main(o, Object.assign({}, t, i));
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
return e;
|
|
@@ -1377,16 +1377,16 @@ const va = () => B.timeout && B.timeout.getTimerLeft(), rr = () => {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}, ka = () => B.timeout && B.timeout.isRunning();
|
|
1379
1379
|
let po = !1;
|
|
1380
|
-
const
|
|
1380
|
+
const vn = {};
|
|
1381
1381
|
function Aa(t = "data-swal-template") {
|
|
1382
|
-
|
|
1382
|
+
vn[t] = this, po || (document.body.addEventListener("click", _a), po = !0);
|
|
1383
1383
|
}
|
|
1384
1384
|
const _a = (t) => {
|
|
1385
1385
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
1386
|
-
for (const n in
|
|
1386
|
+
for (const n in vn) {
|
|
1387
1387
|
const o = e.getAttribute(n);
|
|
1388
1388
|
if (o) {
|
|
1389
|
-
|
|
1389
|
+
vn[n].fire({ template: o });
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
@@ -1414,11 +1414,11 @@ const _a = (t) => {
|
|
|
1414
1414
|
getLoader: ft,
|
|
1415
1415
|
getPopup: V,
|
|
1416
1416
|
getTimerLeft: va,
|
|
1417
|
-
getTimerProgressBar:
|
|
1417
|
+
getTimerProgressBar: Gt,
|
|
1418
1418
|
getTitle: Fo,
|
|
1419
|
-
getValidationMessage:
|
|
1419
|
+
getValidationMessage: Kt,
|
|
1420
1420
|
increaseTimer: wa,
|
|
1421
|
-
isDeprecatedParameter:
|
|
1421
|
+
isDeprecatedParameter: mn,
|
|
1422
1422
|
isLoading: ns,
|
|
1423
1423
|
isTimerRunning: ka,
|
|
1424
1424
|
isUpdatableParameter: Ro,
|
|
@@ -1430,12 +1430,12 @@ const _a = (t) => {
|
|
|
1430
1430
|
stopTimer: rr,
|
|
1431
1431
|
toggleTimer: ya
|
|
1432
1432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1433
|
-
let
|
|
1433
|
+
let yn;
|
|
1434
1434
|
class pt {
|
|
1435
1435
|
constructor(...e) {
|
|
1436
1436
|
if (typeof window > "u")
|
|
1437
1437
|
return;
|
|
1438
|
-
|
|
1438
|
+
yn = this;
|
|
1439
1439
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
1440
1440
|
Object.defineProperties(this, {
|
|
1441
1441
|
params: {
|
|
@@ -1452,8 +1452,8 @@ class pt {
|
|
|
1452
1452
|
Zr(Object.assign({}, n, e)), B.currentInstance && (B.currentInstance._destroy(), In() && Vo()), B.currentInstance = this;
|
|
1453
1453
|
const o = Ea(e, n);
|
|
1454
1454
|
ri(o), Object.freeze(o), B.timeout && (B.timeout.stop(), delete B.timeout), clearTimeout(B.restoreFocusTimeout);
|
|
1455
|
-
const
|
|
1456
|
-
return zo(this, o), U.innerParams.set(this, o), Ca(this,
|
|
1455
|
+
const i = Ta(this);
|
|
1456
|
+
return zo(this, o), U.innerParams.set(this, o), Ca(this, i, 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,11 +1463,11 @@ class pt {
|
|
|
1463
1463
|
return U.promise.get(this).finally(e);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
const Ca = (t, e, n) => new Promise((o,
|
|
1467
|
-
const c = (
|
|
1468
|
-
t.closePopup({ isDismissed: !0, dismiss:
|
|
1466
|
+
const Ca = (t, e, n) => new Promise((o, i) => {
|
|
1467
|
+
const c = (A) => {
|
|
1468
|
+
t.closePopup({ isDismissed: !0, dismiss: A });
|
|
1469
1469
|
};
|
|
1470
|
-
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t,
|
|
1470
|
+
Et.swalPromiseResolve.set(t, o), Et.swalPromiseReject.set(t, i), e.confirmButton.onclick = () => ra(t), e.denyButton.onclick = () => sa(t), e.cancelButton.onclick = () => ia(t, c), e.closeButton.onclick = () => c(ht.close), ca(t, e, c), Oi(t, B, n, c), wi(t, n), mi(n), Sa(B, n, c), La(e, n), setTimeout(() => {
|
|
1471
1471
|
e.container.scrollTop = 0;
|
|
1472
1472
|
});
|
|
1473
1473
|
}), Ea = (t, e) => {
|
|
@@ -1483,12 +1483,12 @@ const Ca = (t, e, n) => new Promise((o, s) => {
|
|
|
1483
1483
|
cancelButton: Ke(),
|
|
1484
1484
|
loader: ft(),
|
|
1485
1485
|
closeButton: Sn(),
|
|
1486
|
-
validationMessage:
|
|
1486
|
+
validationMessage: Kt(),
|
|
1487
1487
|
progressSteps: Mo()
|
|
1488
1488
|
};
|
|
1489
1489
|
return U.domCache.set(t, e), e;
|
|
1490
1490
|
}, Sa = (t, e, n) => {
|
|
1491
|
-
const o =
|
|
1491
|
+
const o = Gt();
|
|
1492
1492
|
ie(o), e.timer && (t.timeout = new si(() => {
|
|
1493
1493
|
n("timer"), delete t.timeout;
|
|
1494
1494
|
}, e.timer), e.timerProgressBar && (te(o), Ee(o, e, "timerProgressBar"), setTimeout(() => {
|
|
@@ -1496,9 +1496,9 @@ const Ca = (t, e, n) => new Promise((o, s) => {
|
|
|
1496
1496
|
})));
|
|
1497
1497
|
}, La = (t, e) => {
|
|
1498
1498
|
if (!e.toast) {
|
|
1499
|
-
if (!
|
|
1499
|
+
if (!qt(e.allowEnterKey))
|
|
1500
1500
|
return Pa();
|
|
1501
|
-
Ia(t, e) ||
|
|
1501
|
+
Ia(t, e) || bn(e, -1, 1);
|
|
1502
1502
|
}
|
|
1503
1503
|
}, Ia = (t, e) => e.focusDeny && _e(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && _e(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && _e(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Pa = () => {
|
|
1504
1504
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
@@ -1507,8 +1507,8 @@ Object.assign(pt.prototype, tr);
|
|
|
1507
1507
|
Object.assign(pt, xa);
|
|
1508
1508
|
Object.keys(tr).forEach((t) => {
|
|
1509
1509
|
pt[t] = function(...e) {
|
|
1510
|
-
if (
|
|
1511
|
-
return
|
|
1510
|
+
if (yn)
|
|
1511
|
+
return yn[t](...e);
|
|
1512
1512
|
};
|
|
1513
1513
|
});
|
|
1514
1514
|
pt.DismissReason = ht;
|
|
@@ -1528,8 +1528,8 @@ let {
|
|
|
1528
1528
|
seal: Ie,
|
|
1529
1529
|
create: cr
|
|
1530
1530
|
} = Object, {
|
|
1531
|
-
apply:
|
|
1532
|
-
construct:
|
|
1531
|
+
apply: wn,
|
|
1532
|
+
construct: kn
|
|
1533
1533
|
} = typeof Reflect < "u" && Reflect;
|
|
1534
1534
|
ue || (ue = function(e) {
|
|
1535
1535
|
return e;
|
|
@@ -1537,25 +1537,25 @@ ue || (ue = function(e) {
|
|
|
1537
1537
|
Ie || (Ie = function(e) {
|
|
1538
1538
|
return e;
|
|
1539
1539
|
});
|
|
1540
|
-
|
|
1540
|
+
wn || (wn = function(e, n, o) {
|
|
1541
1541
|
return e.apply(n, o);
|
|
1542
1542
|
});
|
|
1543
|
-
|
|
1543
|
+
kn || (kn = function(e, n) {
|
|
1544
1544
|
return new e(...n);
|
|
1545
1545
|
});
|
|
1546
|
-
const Ut = Te(Array.prototype.forEach), go = Te(Array.prototype.pop), bt = Te(Array.prototype.push), $t = Te(String.prototype.toLowerCase),
|
|
1546
|
+
const Ut = Te(Array.prototype.forEach), go = Te(Array.prototype.pop), bt = Te(Array.prototype.push), $t = Te(String.prototype.toLowerCase), cn = Te(String.prototype.toString), Fa = Te(String.prototype.match), vt = Te(String.prototype.replace), Ba = Te(String.prototype.indexOf), Ma = Te(String.prototype.trim), we = Te(RegExp.prototype.test), yt = Ua(TypeError);
|
|
1547
1547
|
function Te(t) {
|
|
1548
1548
|
return function(e) {
|
|
1549
|
-
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0),
|
|
1550
|
-
o[
|
|
1551
|
-
return
|
|
1549
|
+
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
1550
|
+
o[i - 1] = arguments[i];
|
|
1551
|
+
return wn(t, e, o);
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
1554
|
function Ua(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];
|
|
1558
|
-
return
|
|
1558
|
+
return kn(t, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
1561
|
function M(t, e) {
|
|
@@ -1563,12 +1563,12 @@ function M(t, e) {
|
|
|
1563
1563
|
mo && mo(t, null);
|
|
1564
1564
|
let o = e.length;
|
|
1565
1565
|
for (; o--; ) {
|
|
1566
|
-
let
|
|
1567
|
-
if (typeof
|
|
1568
|
-
const c = n(
|
|
1569
|
-
c !==
|
|
1566
|
+
let i = e[o];
|
|
1567
|
+
if (typeof i == "string") {
|
|
1568
|
+
const c = n(i);
|
|
1569
|
+
c !== i && (Ra(e) || (e[o] = c), i = c);
|
|
1570
1570
|
}
|
|
1571
|
-
t[
|
|
1571
|
+
t[i] = !0;
|
|
1572
1572
|
}
|
|
1573
1573
|
return t;
|
|
1574
1574
|
}
|
|
@@ -1594,7 +1594,7 @@ function Dt(t, e) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return n;
|
|
1596
1596
|
}
|
|
1597
|
-
const bo = ue(["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"]),
|
|
1597
|
+
const bo = ue(["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"]), ln = ue(["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"]), un = ue(["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"]), Da = ue(["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"]), dn = ue(["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"]), Na = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vo = ue(["#text"]), yo = ue(["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"]), fn = ue(["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"]), wo = ue(["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"]), Nt = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $a = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ha = Ie(/<%[\w\W]*|[\w\W]*%>/gm), ja = Ie(/\${[\w\W]*}/gm), za = Ie(/^data-[\-\w.\u00B7-\uFFFF]/), Va = Ie(/^aria-[\-\w]+$/), lr = Ie(
|
|
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
|
), Wa = Ie(/^(?:\w+script|data):/i), qa = Ie(
|
|
@@ -1619,16 +1619,16 @@ const Ka = function() {
|
|
|
1619
1619
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
1620
1620
|
return null;
|
|
1621
1621
|
let o = null;
|
|
1622
|
-
const
|
|
1623
|
-
n && n.hasAttribute(
|
|
1622
|
+
const i = "data-tt-policy-suffix";
|
|
1623
|
+
n && n.hasAttribute(i) && (o = n.getAttribute(i));
|
|
1624
1624
|
const c = "dompurify" + (o ? "#" + o : "");
|
|
1625
1625
|
try {
|
|
1626
1626
|
return e.createPolicy(c, {
|
|
1627
|
-
createHTML(
|
|
1628
|
-
return
|
|
1627
|
+
createHTML(A) {
|
|
1628
|
+
return A;
|
|
1629
1629
|
},
|
|
1630
|
-
createScriptURL(
|
|
1631
|
-
return
|
|
1630
|
+
createScriptURL(A) {
|
|
1631
|
+
return A;
|
|
1632
1632
|
}
|
|
1633
1633
|
});
|
|
1634
1634
|
} catch {
|
|
@@ -1643,9 +1643,9 @@ function dr() {
|
|
|
1643
1643
|
let {
|
|
1644
1644
|
document: n
|
|
1645
1645
|
} = t;
|
|
1646
|
-
const o = n,
|
|
1646
|
+
const o = n, i = o.currentScript, {
|
|
1647
1647
|
DocumentFragment: c,
|
|
1648
|
-
HTMLTemplateElement:
|
|
1648
|
+
HTMLTemplateElement: A,
|
|
1649
1649
|
Node: L,
|
|
1650
1650
|
Element: u,
|
|
1651
1651
|
NodeFilter: D,
|
|
@@ -1654,7 +1654,7 @@ function dr() {
|
|
|
1654
1654
|
DOMParser: ae,
|
|
1655
1655
|
trustedTypes: z
|
|
1656
1656
|
} = t, Fe = u.prototype, Je = Dt(Fe, "cloneNode"), ve = Dt(Fe, "nextSibling"), Xe = Dt(Fe, "childNodes"), de = Dt(Fe, "parentNode");
|
|
1657
|
-
if (typeof
|
|
1657
|
+
if (typeof A == "function") {
|
|
1658
1658
|
const S = n.createElement("template");
|
|
1659
1659
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
1660
1660
|
}
|
|
@@ -1665,7 +1665,7 @@ function dr() {
|
|
|
1665
1665
|
createDocumentFragment: k,
|
|
1666
1666
|
getElementsByTagName: I
|
|
1667
1667
|
} = n, {
|
|
1668
|
-
importNode:
|
|
1668
|
+
importNode: _
|
|
1669
1669
|
} = o;
|
|
1670
1670
|
let w = {};
|
|
1671
1671
|
e.isSupported = typeof ir == "function" && typeof de == "function" && Z && Z.createHTMLDocument !== void 0;
|
|
@@ -1681,9 +1681,9 @@ function dr() {
|
|
|
1681
1681
|
let {
|
|
1682
1682
|
IS_ALLOWED_URI: ce
|
|
1683
1683
|
} = ko, P = null;
|
|
1684
|
-
const fe = M({}, [...bo, ...
|
|
1684
|
+
const fe = M({}, [...bo, ...ln, ...un, ...dn, ...vo]);
|
|
1685
1685
|
let r = null;
|
|
1686
|
-
const a = M({}, [...yo, ...
|
|
1686
|
+
const a = M({}, [...yo, ...fn, ...wo, ...Nt]);
|
|
1687
1687
|
let d = Object.seal(cr(null, {
|
|
1688
1688
|
tagNameCheck: {
|
|
1689
1689
|
writable: !0,
|
|
@@ -1705,72 +1705,72 @@ function dr() {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
})), g = null, h = null, x = !0, m = !0, b = !1, E = !0, C = !1, R = !1, $ = !1, he = !1, le = !1, ee = !1, Pe = !1, Un = !0, Dn = !1;
|
|
1707
1707
|
const mr = "user-content-";
|
|
1708
|
-
let
|
|
1708
|
+
let Zt = !0, mt = !1, Ze = {}, Qe = null;
|
|
1709
1709
|
const Nn = M({}, ["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"]);
|
|
1710
1710
|
let $n = null;
|
|
1711
1711
|
const Hn = M({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1712
|
-
let
|
|
1712
|
+
let Qt = null;
|
|
1713
1713
|
const jn = M({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ot = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
|
|
1714
|
-
let et = Be,
|
|
1715
|
-
const gr = M({}, [Ot, Ft, Be],
|
|
1714
|
+
let et = Be, en = !1, tn = null;
|
|
1715
|
+
const gr = M({}, [Ot, Ft, Be], cn);
|
|
1716
1716
|
let je = null;
|
|
1717
1717
|
const br = ["application/xhtml+xml", "text/html"], vr = "text/html";
|
|
1718
1718
|
let Q = null, tt = null;
|
|
1719
|
-
const yr = n.createElement("form"), zn = function(
|
|
1720
|
-
return
|
|
1721
|
-
},
|
|
1722
|
-
let
|
|
1723
|
-
if (!(tt && tt ===
|
|
1724
|
-
if ((!
|
|
1725
|
-
br.indexOf(
|
|
1719
|
+
const yr = n.createElement("form"), zn = function(s) {
|
|
1720
|
+
return s instanceof RegExp || s instanceof Function;
|
|
1721
|
+
}, nn = function() {
|
|
1722
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1723
|
+
if (!(tt && tt === s)) {
|
|
1724
|
+
if ((!s || typeof s != "object") && (s = {}), s = ot(s), je = // eslint-disable-next-line unicorn/prefer-includes
|
|
1725
|
+
br.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? je = vr : je = s.PARSER_MEDIA_TYPE, Q = je === "application/xhtml+xml" ? cn : $t, P = "ALLOWED_TAGS" in s ? M({}, s.ALLOWED_TAGS, Q) : fe, r = "ALLOWED_ATTR" in s ? M({}, s.ALLOWED_ATTR, Q) : a, tn = "ALLOWED_NAMESPACES" in s ? M({}, s.ALLOWED_NAMESPACES, cn) : gr, Qt = "ADD_URI_SAFE_ATTR" in s ? M(
|
|
1726
1726
|
ot(jn),
|
|
1727
1727
|
// eslint-disable-line indent
|
|
1728
|
-
|
|
1728
|
+
s.ADD_URI_SAFE_ATTR,
|
|
1729
1729
|
// eslint-disable-line indent
|
|
1730
1730
|
Q
|
|
1731
1731
|
// eslint-disable-line indent
|
|
1732
|
-
) : jn, $n = "ADD_DATA_URI_TAGS" in
|
|
1732
|
+
) : jn, $n = "ADD_DATA_URI_TAGS" in s ? M(
|
|
1733
1733
|
ot(Hn),
|
|
1734
1734
|
// eslint-disable-line indent
|
|
1735
|
-
|
|
1735
|
+
s.ADD_DATA_URI_TAGS,
|
|
1736
1736
|
// eslint-disable-line indent
|
|
1737
1737
|
Q
|
|
1738
1738
|
// eslint-disable-line indent
|
|
1739
|
-
) : Hn, Qe = "FORBID_CONTENTS" in
|
|
1740
|
-
if (typeof
|
|
1739
|
+
) : Hn, Qe = "FORBID_CONTENTS" in s ? M({}, s.FORBID_CONTENTS, Q) : Nn, g = "FORBID_TAGS" in s ? M({}, s.FORBID_TAGS, Q) : {}, h = "FORBID_ATTR" in s ? M({}, s.FORBID_ATTR, Q) : {}, Ze = "USE_PROFILES" in s ? s.USE_PROFILES : !1, x = s.ALLOW_ARIA_ATTR !== !1, m = s.ALLOW_DATA_ATTR !== !1, b = s.ALLOW_UNKNOWN_PROTOCOLS || !1, E = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = s.SAFE_FOR_TEMPLATES || !1, R = s.WHOLE_DOCUMENT || !1, le = s.RETURN_DOM || !1, ee = s.RETURN_DOM_FRAGMENT || !1, Pe = s.RETURN_TRUSTED_TYPE || !1, he = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, Dn = s.SANITIZE_NAMED_PROPS || !1, Zt = s.KEEP_CONTENT !== !1, mt = s.IN_PLACE || !1, ce = s.ALLOWED_URI_REGEXP || lr, et = s.NAMESPACE || Be, d = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (d.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (d.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (d.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), C && (m = !1), ee && (le = !0), Ze && (P = M({}, [...vo]), r = [], Ze.html === !0 && (M(P, bo), M(r, yo)), Ze.svg === !0 && (M(P, ln), M(r, fn), M(r, Nt)), Ze.svgFilters === !0 && (M(P, un), M(r, fn), M(r, Nt)), Ze.mathMl === !0 && (M(P, dn), M(r, wo), M(r, Nt))), s.ADD_TAGS && (P === fe && (P = ot(P)), M(P, s.ADD_TAGS, Q)), s.ADD_ATTR && (r === a && (r = ot(r)), M(r, s.ADD_ATTR, Q)), s.ADD_URI_SAFE_ATTR && M(Qt, s.ADD_URI_SAFE_ATTR, Q), s.FORBID_CONTENTS && (Qe === Nn && (Qe = ot(Qe)), M(Qe, s.FORBID_CONTENTS, Q)), Zt && (P["#text"] = !0), R && M(P, ["html", "head", "body"]), P.table && (M(P, ["tbody"]), delete g.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
1740
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1741
1741
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1742
|
-
if (typeof
|
|
1742
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1743
1743
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1744
|
-
N =
|
|
1744
|
+
N = s.TRUSTED_TYPES_POLICY, ye = N.createHTML("");
|
|
1745
1745
|
} else
|
|
1746
|
-
N === void 0 && (N = Ga(z,
|
|
1747
|
-
ue && ue(
|
|
1746
|
+
N === void 0 && (N = Ga(z, i)), N !== null && typeof ye == "string" && (ye = N.createHTML(""));
|
|
1747
|
+
ue && ue(s), tt = s;
|
|
1748
1748
|
}
|
|
1749
|
-
}, Vn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = M({}, ["title", "style", "font", "a", "script"]), Bt = M({},
|
|
1750
|
-
M(Bt,
|
|
1751
|
-
const
|
|
1752
|
-
M(
|
|
1753
|
-
const kr = function(
|
|
1754
|
-
let v = de(
|
|
1749
|
+
}, Vn = M({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = M({}, ["foreignobject", "desc", "title", "annotation-xml"]), wr = M({}, ["title", "style", "font", "a", "script"]), Bt = M({}, ln);
|
|
1750
|
+
M(Bt, un), M(Bt, Da);
|
|
1751
|
+
const on = M({}, dn);
|
|
1752
|
+
M(on, Na);
|
|
1753
|
+
const kr = function(s) {
|
|
1754
|
+
let v = de(s);
|
|
1755
1755
|
(!v || !v.tagName) && (v = {
|
|
1756
1756
|
namespaceURI: et,
|
|
1757
1757
|
tagName: "template"
|
|
1758
1758
|
});
|
|
1759
|
-
const T = $t(
|
|
1760
|
-
return
|
|
1761
|
-
}, ze = function(
|
|
1759
|
+
const T = $t(s.tagName), K = $t(v.tagName);
|
|
1760
|
+
return tn[s.namespaceURI] ? s.namespaceURI === Ft ? v.namespaceURI === Be ? T === "svg" : v.namespaceURI === Ot ? T === "svg" && (K === "annotation-xml" || Vn[K]) : !!Bt[T] : s.namespaceURI === Ot ? v.namespaceURI === Be ? T === "math" : v.namespaceURI === Ft ? T === "math" && Wn[K] : !!on[T] : s.namespaceURI === Be ? v.namespaceURI === Ft && !Wn[K] || v.namespaceURI === Ot && !Vn[K] ? !1 : !on[T] && (wr[T] || !Bt[T]) : !!(je === "application/xhtml+xml" && tn[s.namespaceURI]) : !1;
|
|
1761
|
+
}, ze = function(s) {
|
|
1762
1762
|
bt(e.removed, {
|
|
1763
|
-
element:
|
|
1763
|
+
element: s
|
|
1764
1764
|
});
|
|
1765
1765
|
try {
|
|
1766
|
-
|
|
1766
|
+
s.parentNode.removeChild(s);
|
|
1767
1767
|
} catch {
|
|
1768
|
-
|
|
1768
|
+
s.remove();
|
|
1769
1769
|
}
|
|
1770
|
-
},
|
|
1770
|
+
}, rn = function(s, v) {
|
|
1771
1771
|
try {
|
|
1772
1772
|
bt(e.removed, {
|
|
1773
|
-
attribute: v.getAttributeNode(
|
|
1773
|
+
attribute: v.getAttributeNode(s),
|
|
1774
1774
|
from: v
|
|
1775
1775
|
});
|
|
1776
1776
|
} catch {
|
|
@@ -1779,7 +1779,7 @@ function dr() {
|
|
|
1779
1779
|
from: v
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
|
-
if (v.removeAttribute(
|
|
1782
|
+
if (v.removeAttribute(s), s === "is" && !r[s])
|
|
1783
1783
|
if (le || ee)
|
|
1784
1784
|
try {
|
|
1785
1785
|
ze(v);
|
|
@@ -1787,19 +1787,19 @@ function dr() {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
else
|
|
1789
1789
|
try {
|
|
1790
|
-
v.setAttribute(
|
|
1790
|
+
v.setAttribute(s, "");
|
|
1791
1791
|
} catch {
|
|
1792
1792
|
}
|
|
1793
|
-
}, qn = function(
|
|
1793
|
+
}, qn = function(s) {
|
|
1794
1794
|
let v = null, T = null;
|
|
1795
1795
|
if (he)
|
|
1796
|
-
|
|
1796
|
+
s = "<remove></remove>" + s;
|
|
1797
1797
|
else {
|
|
1798
|
-
const oe = Fa(
|
|
1798
|
+
const oe = Fa(s, /^[\r\n\t ]+/);
|
|
1799
1799
|
T = oe && oe[0];
|
|
1800
1800
|
}
|
|
1801
|
-
je === "application/xhtml+xml" && et === Be && (
|
|
1802
|
-
const K = N ? N.createHTML(
|
|
1801
|
+
je === "application/xhtml+xml" && et === Be && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
1802
|
+
const K = N ? N.createHTML(s) : s;
|
|
1803
1803
|
if (et === Be)
|
|
1804
1804
|
try {
|
|
1805
1805
|
v = new ae().parseFromString(K, je);
|
|
@@ -1808,57 +1808,57 @@ function dr() {
|
|
|
1808
1808
|
if (!v || !v.documentElement) {
|
|
1809
1809
|
v = Z.createDocument(et, "template", null);
|
|
1810
1810
|
try {
|
|
1811
|
-
v.documentElement.innerHTML =
|
|
1811
|
+
v.documentElement.innerHTML = en ? ye : K;
|
|
1812
1812
|
} catch {
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
const ne = v.body || v.documentElement;
|
|
1816
|
-
return
|
|
1817
|
-
}, Kn = function(
|
|
1816
|
+
return s && T && ne.insertBefore(n.createTextNode(T), ne.childNodes[0] || null), et === Be ? I.call(v, R ? "html" : "body")[0] : R ? v.documentElement : ne;
|
|
1817
|
+
}, Kn = function(s) {
|
|
1818
1818
|
return f.call(
|
|
1819
|
-
|
|
1820
|
-
|
|
1819
|
+
s.ownerDocument || s,
|
|
1820
|
+
s,
|
|
1821
1821
|
// eslint-disable-next-line no-bitwise
|
|
1822
1822
|
D.SHOW_ELEMENT | D.SHOW_COMMENT | D.SHOW_TEXT,
|
|
1823
1823
|
null
|
|
1824
1824
|
);
|
|
1825
|
-
}, Ar = function(
|
|
1826
|
-
return
|
|
1827
|
-
}, Gn = function(
|
|
1828
|
-
return typeof L == "function" &&
|
|
1829
|
-
}, Me = function(
|
|
1830
|
-
w[
|
|
1825
|
+
}, Ar = function(s) {
|
|
1826
|
+
return s instanceof Y && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof W) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
1827
|
+
}, Gn = function(s) {
|
|
1828
|
+
return typeof L == "function" && s instanceof L;
|
|
1829
|
+
}, Me = function(s, v, T) {
|
|
1830
|
+
w[s] && Ut(w[s], (K) => {
|
|
1831
1831
|
K.call(e, v, T, tt);
|
|
1832
1832
|
});
|
|
1833
|
-
}, Yn = function(
|
|
1833
|
+
}, Yn = function(s) {
|
|
1834
1834
|
let v = null;
|
|
1835
|
-
if (Me("beforeSanitizeElements",
|
|
1836
|
-
return ze(
|
|
1837
|
-
const T = Q(
|
|
1838
|
-
if (Me("uponSanitizeElement",
|
|
1835
|
+
if (Me("beforeSanitizeElements", s, null), Ar(s))
|
|
1836
|
+
return ze(s), !0;
|
|
1837
|
+
const T = Q(s.nodeName);
|
|
1838
|
+
if (Me("uponSanitizeElement", s, {
|
|
1839
1839
|
tagName: T,
|
|
1840
1840
|
allowedTags: P
|
|
1841
|
-
}),
|
|
1842
|
-
return ze(
|
|
1841
|
+
}), s.hasChildNodes() && !Gn(s.firstElementChild) && we(/<[/\w]/g, s.innerHTML) && we(/<[/\w]/g, s.textContent))
|
|
1842
|
+
return ze(s), !0;
|
|
1843
1843
|
if (!P[T] || g[T]) {
|
|
1844
1844
|
if (!g[T] && Xn(T) && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, T) || d.tagNameCheck instanceof Function && d.tagNameCheck(T)))
|
|
1845
1845
|
return !1;
|
|
1846
|
-
if (
|
|
1847
|
-
const K = de(
|
|
1846
|
+
if (Zt && !Qe[T]) {
|
|
1847
|
+
const K = de(s) || s.parentNode, ne = Xe(s) || s.childNodes;
|
|
1848
1848
|
if (ne && K) {
|
|
1849
1849
|
const oe = ne.length;
|
|
1850
1850
|
for (let pe = oe - 1; pe >= 0; --pe)
|
|
1851
|
-
K.insertBefore(Je(ne[pe], !0), ve(
|
|
1851
|
+
K.insertBefore(Je(ne[pe], !0), ve(s));
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
return ze(
|
|
1854
|
+
return ze(s), !0;
|
|
1855
1855
|
}
|
|
1856
|
-
return
|
|
1856
|
+
return s instanceof u && !kr(s) || (T === "noscript" || T === "noembed" || T === "noframes") && we(/<\/no(script|embed|frames)/i, s.innerHTML) ? (ze(s), !0) : (C && s.nodeType === 3 && (v = s.textContent, Ut([y, O, p], (K) => {
|
|
1857
1857
|
v = vt(v, K, " ");
|
|
1858
|
-
}),
|
|
1859
|
-
element:
|
|
1860
|
-
}),
|
|
1861
|
-
}, Jn = function(
|
|
1858
|
+
}), s.textContent !== v && (bt(e.removed, {
|
|
1859
|
+
element: s.cloneNode()
|
|
1860
|
+
}), s.textContent = v)), Me("afterSanitizeElements", s, null), !1);
|
|
1861
|
+
}, Jn = function(s, v, T) {
|
|
1862
1862
|
if (Un && (v === "id" || v === "name") && (T in n || T in yr))
|
|
1863
1863
|
return !1;
|
|
1864
1864
|
if (!(m && !h[v] && we(F, v))) {
|
|
@@ -1868,14 +1868,14 @@ function dr() {
|
|
|
1868
1868
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1869
1869
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1870
1870
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1871
|
-
!(Xn(
|
|
1871
|
+
!(Xn(s) && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, s) || d.tagNameCheck instanceof Function && d.tagNameCheck(s)) && (d.attributeNameCheck instanceof RegExp && we(d.attributeNameCheck, v) || d.attributeNameCheck instanceof Function && d.attributeNameCheck(v)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1872
1872
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1873
1873
|
v === "is" && d.allowCustomizedBuiltInElements && (d.tagNameCheck instanceof RegExp && we(d.tagNameCheck, T) || d.tagNameCheck instanceof Function && d.tagNameCheck(T)))
|
|
1874
1874
|
)
|
|
1875
1875
|
return !1;
|
|
1876
|
-
} else if (!
|
|
1876
|
+
} else if (!Qt[v]) {
|
|
1877
1877
|
if (!we(ce, vt(T, G, ""))) {
|
|
1878
|
-
if (!((v === "src" || v === "xlink:href" || v === "href") &&
|
|
1878
|
+
if (!((v === "src" || v === "xlink:href" || v === "href") && s !== "script" && Ba(T, "data:") === 0 && $n[s])) {
|
|
1879
1879
|
if (!(b && !we(J, vt(T, G, "")))) {
|
|
1880
1880
|
if (T)
|
|
1881
1881
|
return !1;
|
|
@@ -1886,13 +1886,13 @@ function dr() {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
return !0;
|
|
1889
|
-
}, Xn = function(
|
|
1890
|
-
return
|
|
1891
|
-
}, Zn = function(
|
|
1892
|
-
Me("beforeSanitizeAttributes",
|
|
1889
|
+
}, Xn = function(s) {
|
|
1890
|
+
return s.indexOf("-") > 0;
|
|
1891
|
+
}, Zn = function(s) {
|
|
1892
|
+
Me("beforeSanitizeAttributes", s, null);
|
|
1893
1893
|
const {
|
|
1894
1894
|
attributes: v
|
|
1895
|
-
} =
|
|
1895
|
+
} = s;
|
|
1896
1896
|
if (!v)
|
|
1897
1897
|
return;
|
|
1898
1898
|
const T = {
|
|
@@ -1909,18 +1909,18 @@ function dr() {
|
|
|
1909
1909
|
value: Ve
|
|
1910
1910
|
} = ne, gt = Q(oe);
|
|
1911
1911
|
let me = oe === "value" ? Ve : Ma(Ve);
|
|
1912
|
-
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Me("uponSanitizeAttribute",
|
|
1912
|
+
if (T.attrName = gt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Me("uponSanitizeAttribute", s, T), me = T.attrValue, T.forceKeepAttr || (rn(oe, s), !T.keepAttr))
|
|
1913
1913
|
continue;
|
|
1914
1914
|
if (!E && we(/\/>/i, me)) {
|
|
1915
|
-
|
|
1915
|
+
rn(oe, s);
|
|
1916
1916
|
continue;
|
|
1917
1917
|
}
|
|
1918
1918
|
C && Ut([y, O, p], (eo) => {
|
|
1919
1919
|
me = vt(me, eo, " ");
|
|
1920
1920
|
});
|
|
1921
|
-
const Qn = Q(
|
|
1921
|
+
const Qn = Q(s.nodeName);
|
|
1922
1922
|
if (Jn(Qn, gt, me)) {
|
|
1923
|
-
if (Dn && (gt === "id" || gt === "name") && (
|
|
1923
|
+
if (Dn && (gt === "id" || gt === "name") && (rn(oe, s), me = mr + me), N && typeof z == "object" && typeof z.getAttributeType == "function" && !pe)
|
|
1924
1924
|
switch (z.getAttributeType(Qn, gt)) {
|
|
1925
1925
|
case "TrustedHTML": {
|
|
1926
1926
|
me = N.createHTML(me);
|
|
@@ -1932,22 +1932,22 @@ function dr() {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
try {
|
|
1935
|
-
pe ?
|
|
1935
|
+
pe ? s.setAttributeNS(pe, oe, me) : s.setAttribute(oe, me), go(e.removed);
|
|
1936
1936
|
} catch {
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
Me("afterSanitizeAttributes",
|
|
1941
|
-
}, _r = function S(
|
|
1940
|
+
Me("afterSanitizeAttributes", s, null);
|
|
1941
|
+
}, _r = function S(s) {
|
|
1942
1942
|
let v = null;
|
|
1943
|
-
const T = Kn(
|
|
1944
|
-
for (Me("beforeSanitizeShadowDOM",
|
|
1943
|
+
const T = Kn(s);
|
|
1944
|
+
for (Me("beforeSanitizeShadowDOM", s, null); v = T.nextNode(); )
|
|
1945
1945
|
Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c && S(v.content), Zn(v));
|
|
1946
|
-
Me("afterSanitizeShadowDOM",
|
|
1946
|
+
Me("afterSanitizeShadowDOM", s, null);
|
|
1947
1947
|
};
|
|
1948
1948
|
return e.sanitize = function(S) {
|
|
1949
|
-
let
|
|
1950
|
-
if (
|
|
1949
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, T = null, K = null, ne = null;
|
|
1950
|
+
if (en = !S, en && (S = "<!-->"), typeof S != "string" && !Gn(S))
|
|
1951
1951
|
if (typeof S.toString == "function") {
|
|
1952
1952
|
if (S = S.toString(), typeof S != "string")
|
|
1953
1953
|
throw yt("dirty is not a string, aborting");
|
|
@@ -1955,7 +1955,7 @@ function dr() {
|
|
|
1955
1955
|
throw yt("toString is not a function");
|
|
1956
1956
|
if (!e.isSupported)
|
|
1957
1957
|
return S;
|
|
1958
|
-
if ($ ||
|
|
1958
|
+
if ($ || nn(s), e.removed = [], typeof S == "string" && (mt = !1), mt) {
|
|
1959
1959
|
if (S.nodeName) {
|
|
1960
1960
|
const Ve = Q(S.nodeName);
|
|
1961
1961
|
if (!P[Ve] || g[Ve])
|
|
@@ -1982,7 +1982,7 @@ function dr() {
|
|
|
1982
1982
|
ne.appendChild(v.firstChild);
|
|
1983
1983
|
else
|
|
1984
1984
|
ne = v;
|
|
1985
|
-
return (r.shadowroot || r.shadowrootmode) && (ne =
|
|
1985
|
+
return (r.shadowroot || r.shadowrootmode) && (ne = _.call(o, ne, !0)), ne;
|
|
1986
1986
|
}
|
|
1987
1987
|
let pe = R ? v.outerHTML : v.innerHTML;
|
|
1988
1988
|
return R && P["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && we(ur, v.ownerDocument.doctype.name) && (pe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
@@ -1991,15 +1991,15 @@ function dr() {
|
|
|
1991
1991
|
}), N && Pe ? N.createHTML(pe) : pe;
|
|
1992
1992
|
}, e.setConfig = function() {
|
|
1993
1993
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1994
|
-
|
|
1994
|
+
nn(S), $ = !0;
|
|
1995
1995
|
}, e.clearConfig = function() {
|
|
1996
1996
|
tt = null, $ = !1;
|
|
1997
|
-
}, e.isValidAttribute = function(S,
|
|
1998
|
-
tt ||
|
|
1999
|
-
const T = Q(S), K = Q(
|
|
1997
|
+
}, e.isValidAttribute = function(S, s, v) {
|
|
1998
|
+
tt || nn({});
|
|
1999
|
+
const T = Q(S), K = Q(s);
|
|
2000
2000
|
return Jn(T, K, v);
|
|
2001
|
-
}, e.addHook = function(S,
|
|
2002
|
-
typeof
|
|
2001
|
+
}, e.addHook = function(S, s) {
|
|
2002
|
+
typeof s == "function" && (w[S] = w[S] || [], bt(w[S], s));
|
|
2003
2003
|
}, e.removeHook = function(S) {
|
|
2004
2004
|
if (w[S])
|
|
2005
2005
|
return go(w[S]);
|
|
@@ -2035,14 +2035,14 @@ class Ya {
|
|
|
2035
2035
|
let o;
|
|
2036
2036
|
return Array.isArray(e.text) ? o = `<div style="max-height: 50vh; overflow: auto">
|
|
2037
2037
|
${e.text.join("<br />")}
|
|
2038
|
-
</div>` : o = e.text, new Promise((
|
|
2038
|
+
</div>` : o = e.text, new Promise((i) => {
|
|
2039
2039
|
lt.fire({
|
|
2040
2040
|
allowEscapeKey: !1,
|
|
2041
2041
|
allowOutsideClick: !1,
|
|
2042
2042
|
icon: n,
|
|
2043
2043
|
title: e.title,
|
|
2044
2044
|
html: Ao.sanitize(o)
|
|
2045
|
-
}).then(() =>
|
|
2045
|
+
}).then(() => i(!0));
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
@@ -2050,14 +2050,14 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2050
2050
|
__name: "HeaderAvatar",
|
|
2051
2051
|
emits: ["logout"],
|
|
2052
2052
|
setup(t, { emit: e }) {
|
|
2053
|
-
const n = Xa(), o = it(""),
|
|
2053
|
+
const n = Xa(), o = it(""), i = e;
|
|
2054
2054
|
async function c() {
|
|
2055
2055
|
await n.ConfirmAsync({
|
|
2056
2056
|
text: "Você deseja sair da conta?",
|
|
2057
2057
|
confirmLabel: "sair"
|
|
2058
|
-
}) &&
|
|
2058
|
+
}) && i("logout");
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function A() {
|
|
2061
2061
|
const u = sessionStorage.getItem("name");
|
|
2062
2062
|
let D = "?";
|
|
2063
2063
|
if (!u)
|
|
@@ -2069,8 +2069,8 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
|
|
|
2069
2069
|
const u = o.value[0], D = u === "?" ? 0 : (u.charCodeAt(0) - 64) % 19;
|
|
2070
2070
|
return Math.max(D, 0);
|
|
2071
2071
|
});
|
|
2072
|
-
return
|
|
2073
|
-
o.value =
|
|
2072
|
+
return Wt(() => {
|
|
2073
|
+
o.value = A();
|
|
2074
2074
|
}), (u, D) => (X(), Ae("div", {
|
|
2075
2075
|
id: "sf-header-avatar",
|
|
2076
2076
|
"data-cor": L.value,
|
|
@@ -2116,7 +2116,7 @@ class ic {
|
|
|
2116
2116
|
this.EnableLightMode();
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2119
|
+
const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<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), cc = [
|
|
2120
2120
|
ac
|
|
2121
2121
|
], lc = /* @__PURE__ */ Ne({
|
|
2122
2122
|
__name: "ThemeToggle",
|
|
@@ -2124,34 +2124,35 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2124
2124
|
return (e, n) => (X(), Ae("button", {
|
|
2125
2125
|
id: "sf-theme-toggle",
|
|
2126
2126
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2127
|
-
(...o) => qe(
|
|
2127
|
+
(...o) => qe(An).Toggle && qe(An).Toggle(...o))
|
|
2128
2128
|
}, cc));
|
|
2129
2129
|
}
|
|
2130
2130
|
}), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" }, Jc = /* @__PURE__ */ Ne({
|
|
2131
2131
|
__name: "Layout",
|
|
2132
|
-
emits: ["logout"],
|
|
2132
|
+
emits: ["mounted", "logout"],
|
|
2133
2133
|
setup(t, { emit: e }) {
|
|
2134
|
-
const n = To();
|
|
2135
|
-
return (
|
|
2134
|
+
const n = To(), o = e;
|
|
2135
|
+
return Wt(() => {
|
|
2136
|
+
o("mounted");
|
|
2137
|
+
}), (i, c) => (X(), Ae("div", uc, [
|
|
2136
2138
|
j("header", null, [
|
|
2137
2139
|
j("div", {
|
|
2138
2140
|
class: ke([
|
|
2139
2141
|
"sf-layout-menu-toggler",
|
|
2140
2142
|
{ invert: qe(n).IsVisible }
|
|
2141
2143
|
]),
|
|
2142
|
-
onClick:
|
|
2144
|
+
onClick: c[0] || (c[0] = (A) => qe(n).Toggle())
|
|
2143
2145
|
}, [
|
|
2144
2146
|
dc,
|
|
2145
2147
|
wt(sc)
|
|
2146
2148
|
], 2),
|
|
2147
2149
|
j("div", fc, [
|
|
2148
|
-
Ue(
|
|
2150
|
+
Ue(i.$slots, "title")
|
|
2149
2151
|
]),
|
|
2150
|
-
Ue(
|
|
2152
|
+
Ue(i.$slots, "action"),
|
|
2151
2153
|
wt(lc),
|
|
2152
2154
|
wt(Qa, {
|
|
2153
|
-
onLogout:
|
|
2154
|
-
})
|
|
2155
|
+
onLogout: c[1] || (c[1] = (A) => o("logout"))
|
|
2155
2156
|
})
|
|
2156
2157
|
]),
|
|
2157
2158
|
j("nav", {
|
|
@@ -2162,11 +2163,11 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2162
2163
|
wt(Ht, {
|
|
2163
2164
|
icone: "close",
|
|
2164
2165
|
button: "",
|
|
2165
|
-
onClick:
|
|
2166
|
+
onClick: c[2] || (c[2] = (A) => qe(n).Close())
|
|
2166
2167
|
})
|
|
2167
2168
|
]),
|
|
2168
2169
|
j("div", mc, [
|
|
2169
|
-
Ue(
|
|
2170
|
+
Ue(i.$slots, "menu")
|
|
2170
2171
|
])
|
|
2171
2172
|
], 2),
|
|
2172
2173
|
j("main", {
|
|
@@ -2174,7 +2175,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2174
2175
|
}, [
|
|
2175
2176
|
gc,
|
|
2176
2177
|
j("section", bc, [
|
|
2177
|
-
Ue(
|
|
2178
|
+
Ue(i.$slots, "content")
|
|
2178
2179
|
])
|
|
2179
2180
|
], 2)
|
|
2180
2181
|
]));
|
|
@@ -2189,14 +2190,14 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2189
2190
|
},
|
|
2190
2191
|
setup(t) {
|
|
2191
2192
|
const e = t, n = To();
|
|
2192
|
-
function o(
|
|
2193
|
-
|
|
2194
|
-
const L =
|
|
2193
|
+
function o(i, c) {
|
|
2194
|
+
i.preventDefault();
|
|
2195
|
+
const L = i.target.closest(".sf-layout-nav-content");
|
|
2195
2196
|
c(), L && L.clientWidth + 10 > document.body.clientWidth && n.Close();
|
|
2196
2197
|
}
|
|
2197
|
-
return (
|
|
2198
|
-
const
|
|
2199
|
-
return X(), ut(
|
|
2198
|
+
return (i, c) => {
|
|
2199
|
+
const A = Co("router-link");
|
|
2200
|
+
return X(), ut(A, {
|
|
2200
2201
|
to: e.href,
|
|
2201
2202
|
custom: ""
|
|
2202
2203
|
}, {
|
|
@@ -2211,7 +2212,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2211
2212
|
key: 0,
|
|
2212
2213
|
icone: e.icon,
|
|
2213
2214
|
"button-props": { tabindex: -1 }
|
|
2214
|
-
}, null, 8, ["icone"])) :
|
|
2215
|
+
}, null, 8, ["icone"])) : xn("", !0),
|
|
2215
2216
|
j("span", yc, Vt(e.text), 1)
|
|
2216
2217
|
], 8, vc)
|
|
2217
2218
|
]),
|
|
@@ -2224,18 +2225,18 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2224
2225
|
setup(t) {
|
|
2225
2226
|
const e = it(!1), n = `--${+/* @__PURE__ */ new Date()}`;
|
|
2226
2227
|
let o = null;
|
|
2227
|
-
function
|
|
2228
|
+
function i() {
|
|
2228
2229
|
o == null || o.scrollTo(0, 0);
|
|
2229
2230
|
}
|
|
2230
|
-
return
|
|
2231
|
+
return Wt(() => {
|
|
2231
2232
|
var c;
|
|
2232
2233
|
o = ((c = document.getElementById(n)) == null ? void 0 : c.parentElement) ?? null, o && o.addEventListener("scroll", function() {
|
|
2233
2234
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
2234
2235
|
});
|
|
2235
|
-
}), (c,
|
|
2236
|
+
}), (c, A) => (X(), Ae("button", {
|
|
2236
2237
|
id: n,
|
|
2237
2238
|
class: ke(["sf-scrollToTop", { "sf-scrollToTop-visible": e.value }]),
|
|
2238
|
-
onClick:
|
|
2239
|
+
onClick: i
|
|
2239
2240
|
}, null, 2));
|
|
2240
2241
|
}
|
|
2241
2242
|
}), Zc = /* @__PURE__ */ Ne({
|
|
@@ -2255,31 +2256,31 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2255
2256
|
function o() {
|
|
2256
2257
|
return new st("sf-content-body").AddClass("sf-content-no-padding", e.disableBodyPadding).Build();
|
|
2257
2258
|
}
|
|
2258
|
-
function
|
|
2259
|
+
function i() {
|
|
2259
2260
|
return new st("sf-content-header").AddClass("sf-content-no-padding", e.disableHeaderPadding).Build();
|
|
2260
2261
|
}
|
|
2261
2262
|
function c() {
|
|
2262
2263
|
return new st("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
|
|
2263
2264
|
}
|
|
2264
|
-
return (
|
|
2265
|
+
return (A, L) => (X(), Ae("div", {
|
|
2265
2266
|
class: ke(n()),
|
|
2266
|
-
style:
|
|
2267
|
+
style: _n(e.style)
|
|
2267
2268
|
}, [
|
|
2268
2269
|
j("div", {
|
|
2269
|
-
class: ke(
|
|
2270
|
+
class: ke(i())
|
|
2270
2271
|
}, [
|
|
2271
|
-
Ue(
|
|
2272
|
+
Ue(A.$slots, "header")
|
|
2272
2273
|
], 2),
|
|
2273
2274
|
j("div", {
|
|
2274
2275
|
class: ke(o())
|
|
2275
2276
|
}, [
|
|
2276
|
-
Ue(
|
|
2277
|
+
Ue(A.$slots, "default"),
|
|
2277
2278
|
wt(wc)
|
|
2278
2279
|
], 2),
|
|
2279
2280
|
j("div", {
|
|
2280
2281
|
class: ke(c())
|
|
2281
2282
|
}, [
|
|
2282
|
-
Ue(
|
|
2283
|
+
Ue(A.$slots, "footer")
|
|
2283
2284
|
], 2)
|
|
2284
2285
|
], 6));
|
|
2285
2286
|
}
|
|
@@ -2321,16 +2322,16 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2321
2322
|
setup(t) {
|
|
2322
2323
|
const e = t, n = it(null), o = new ResizeObserver((u) => {
|
|
2323
2324
|
L();
|
|
2324
|
-
}),
|
|
2325
|
-
function
|
|
2325
|
+
}), i = it(!1), c = it(!1);
|
|
2326
|
+
function A(u = !1) {
|
|
2326
2327
|
const D = n.value.clientWidth;
|
|
2327
2328
|
n.value.scrollLeft += u ? -D : D;
|
|
2328
2329
|
}
|
|
2329
2330
|
function L() {
|
|
2330
2331
|
const u = n.value.scrollWidth - n.value.clientWidth;
|
|
2331
|
-
|
|
2332
|
+
i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
|
|
2332
2333
|
}
|
|
2333
|
-
return
|
|
2334
|
+
return Wt(() => {
|
|
2334
2335
|
n.value.addEventListener("scroll", L), o.observe(n.value);
|
|
2335
2336
|
}), Ir(() => {
|
|
2336
2337
|
var u;
|
|
@@ -2345,8 +2346,8 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2345
2346
|
const W = Co("RouterLink");
|
|
2346
2347
|
return X(), Ae("div", kc, [
|
|
2347
2348
|
j("div", {
|
|
2348
|
-
class: ke(["left-arrow", { active:
|
|
2349
|
-
onClick: D[0] || (D[0] = (Y) =>
|
|
2349
|
+
class: ke(["left-arrow", { active: i.value }]),
|
|
2350
|
+
onClick: D[0] || (D[0] = (Y) => A(!0))
|
|
2350
2351
|
}, _c, 2),
|
|
2351
2352
|
j("ul", {
|
|
2352
2353
|
ref_key: "trackerContainer",
|
|
@@ -2376,7 +2377,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2376
2377
|
], 512),
|
|
2377
2378
|
j("div", {
|
|
2378
2379
|
class: ke(["right-arrow", { active: c.value }]),
|
|
2379
|
-
onClick: D[1] || (D[1] = (Y) =>
|
|
2380
|
+
onClick: D[1] || (D[1] = (Y) => A())
|
|
2380
2381
|
}, Tc, 2)
|
|
2381
2382
|
]);
|
|
2382
2383
|
};
|
|
@@ -2405,11 +2406,11 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2405
2406
|
function n() {
|
|
2406
2407
|
return new st(`${e.class ?? ""} sf-button`).AddClass("sf-component-loading", e.loading).AddClass("sf-component-disabled", e.disabled).AddClass("sf-button-small", e.size === "sm").AddClass("sf-button-medium", e.size === "md").AddClass("sf-button-large", e.size === "lg").AddClass("sf-button-filled", e.variant === "filled").AddClass("sf-button-text", e.variant === "text").AddClass("sf-button-outlined", e.variant === "outlined").AddClass("sf-button-with-icon", !!e.icon).AddClass("sf-ripple").Build();
|
|
2407
2408
|
}
|
|
2408
|
-
return (o,
|
|
2409
|
+
return (o, i) => (X(), Ae("button", {
|
|
2409
2410
|
id: e.id,
|
|
2410
2411
|
name: e.name,
|
|
2411
2412
|
class: ke(n()),
|
|
2412
|
-
style:
|
|
2413
|
+
style: _n(e.style),
|
|
2413
2414
|
disabled: e.disabled || e.loading,
|
|
2414
2415
|
"data-color": e.color,
|
|
2415
2416
|
form: e.form,
|
|
@@ -2426,7 +2427,7 @@ const kn = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
|
|
|
2426
2427
|
loading: !0,
|
|
2427
2428
|
size: e.size,
|
|
2428
2429
|
"button-props": { tabindex: -1 }
|
|
2429
|
-
}, null, 8, ["size"])) :
|
|
2430
|
+
}, null, 8, ["size"])) : xn("", !0),
|
|
2430
2431
|
j("span", Lc, [
|
|
2431
2432
|
Ue(o.$slots, "default")
|
|
2432
2433
|
])
|
|
@@ -2449,8 +2450,8 @@ function Rc(t) {
|
|
|
2449
2450
|
} else
|
|
2450
2451
|
n = {};
|
|
2451
2452
|
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(o) {
|
|
2452
|
-
var
|
|
2453
|
-
Object.defineProperty(n, o,
|
|
2453
|
+
var i = Object.getOwnPropertyDescriptor(t, o);
|
|
2454
|
+
Object.defineProperty(n, o, i.get ? i : {
|
|
2454
2455
|
enumerable: !0,
|
|
2455
2456
|
get: function() {
|
|
2456
2457
|
return t[o];
|
|
@@ -2458,13 +2459,13 @@ function Rc(t) {
|
|
|
2458
2459
|
});
|
|
2459
2460
|
}), n;
|
|
2460
2461
|
}
|
|
2461
|
-
var
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
2466
|
-
for (var rt = 0, Fc =
|
|
2467
|
-
Re[rt] =
|
|
2462
|
+
var Xt = {};
|
|
2463
|
+
Xt.byteLength = Bc;
|
|
2464
|
+
Xt.toByteArray = Uc;
|
|
2465
|
+
Xt.fromByteArray = $c;
|
|
2466
|
+
var Re = [], Ce = [], Oc = typeof Uint8Array < "u" ? Uint8Array : Array, hn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2467
|
+
for (var rt = 0, Fc = hn.length; rt < Fc; ++rt)
|
|
2468
|
+
Re[rt] = hn[rt], Ce[hn.charCodeAt(rt)] = rt;
|
|
2468
2469
|
Ce["-".charCodeAt(0)] = 62;
|
|
2469
2470
|
Ce["_".charCodeAt(0)] = 63;
|
|
2470
2471
|
function fr(t) {
|
|
@@ -2484,27 +2485,27 @@ function Mc(t, e, n) {
|
|
|
2484
2485
|
return (e + n) * 3 / 4 - n;
|
|
2485
2486
|
}
|
|
2486
2487
|
function Uc(t) {
|
|
2487
|
-
var e, n = fr(t), o = n[0],
|
|
2488
|
+
var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), A = 0, L = i > 0 ? o - 4 : o, u;
|
|
2488
2489
|
for (u = 0; u < L; u += 4)
|
|
2489
|
-
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[
|
|
2490
|
-
return
|
|
2490
|
+
e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[A++] = e >> 16 & 255, c[A++] = e >> 8 & 255, c[A++] = e & 255;
|
|
2491
|
+
return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[A++] = e & 255), i === 1 && (e = Ce[t.charCodeAt(u)] << 10 | Ce[t.charCodeAt(u + 1)] << 4 | Ce[t.charCodeAt(u + 2)] >> 2, c[A++] = e >> 8 & 255, c[A++] = e & 255), c;
|
|
2491
2492
|
}
|
|
2492
2493
|
function Dc(t) {
|
|
2493
2494
|
return Re[t >> 18 & 63] + Re[t >> 12 & 63] + Re[t >> 6 & 63] + Re[t & 63];
|
|
2494
2495
|
}
|
|
2495
2496
|
function Nc(t, e, n) {
|
|
2496
|
-
for (var o,
|
|
2497
|
-
o = (t[c] << 16 & 16711680) + (t[c + 1] << 8 & 65280) + (t[c + 2] & 255),
|
|
2498
|
-
return
|
|
2497
|
+
for (var o, i = [], c = e; c < n; c += 3)
|
|
2498
|
+
o = (t[c] << 16 & 16711680) + (t[c + 1] << 8 & 65280) + (t[c + 2] & 255), i.push(Dc(o));
|
|
2499
|
+
return i.join("");
|
|
2499
2500
|
}
|
|
2500
2501
|
function $c(t) {
|
|
2501
|
-
for (var e, n = t.length, o = n % 3,
|
|
2502
|
-
|
|
2503
|
-
return o === 1 ? (e = t[n - 1],
|
|
2502
|
+
for (var e, n = t.length, o = n % 3, i = [], c = 16383, A = 0, L = n - o; A < L; A += c)
|
|
2503
|
+
i.push(Nc(t, A, A + c > L ? L : A + c));
|
|
2504
|
+
return o === 1 ? (e = t[n - 1], i.push(
|
|
2504
2505
|
Re[e >> 2] + Re[e << 4 & 63] + "=="
|
|
2505
|
-
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1],
|
|
2506
|
+
)) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
|
|
2506
2507
|
Re[e >> 10] + Re[e >> 4 & 63] + Re[e << 2 & 63] + "="
|
|
2507
|
-
)),
|
|
2508
|
+
)), i.join("");
|
|
2508
2509
|
}
|
|
2509
2510
|
var hr = { exports: {} };
|
|
2510
2511
|
const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2523,9 +2524,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2523
2524
|
(function() {
|
|
2524
2525
|
var e = "input is invalid type", n = typeof window == "object", o = n ? window : {};
|
|
2525
2526
|
o.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2526
|
-
var
|
|
2527
|
-
c ? o = Ic :
|
|
2528
|
-
var
|
|
2527
|
+
var i = !n && typeof self == "object", c = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
2528
|
+
c ? o = Ic : i && (o = self);
|
|
2529
|
+
var A = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, L = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), D = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
|
|
2529
2530
|
1116352408,
|
|
2530
2531
|
1899447441,
|
|
2531
2532
|
3049323471,
|
|
@@ -2608,26 +2609,26 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2608
2609
|
return k.create().update(w);
|
|
2609
2610
|
};
|
|
2610
2611
|
for (var I = 0; I < ae.length; ++I) {
|
|
2611
|
-
var
|
|
2612
|
-
k[
|
|
2612
|
+
var _ = ae[I];
|
|
2613
|
+
k[_] = Fe(_, f);
|
|
2613
2614
|
}
|
|
2614
2615
|
return k;
|
|
2615
2616
|
}, ve = function(f, k) {
|
|
2616
|
-
var I = _o,
|
|
2617
|
-
|
|
2618
|
-
return new
|
|
2617
|
+
var I = _o, _ = _o.Buffer, w = k ? "sha224" : "sha256", y;
|
|
2618
|
+
_.from && !o.JS_SHA256_NO_BUFFER_FROM ? y = _.from : y = function(p) {
|
|
2619
|
+
return new _(p);
|
|
2619
2620
|
};
|
|
2620
2621
|
var O = function(p) {
|
|
2621
2622
|
if (typeof p == "string")
|
|
2622
2623
|
return I.createHash(w).update(p, "utf8").digest("hex");
|
|
2623
2624
|
if (p == null)
|
|
2624
2625
|
throw new Error(e);
|
|
2625
|
-
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor ===
|
|
2626
|
+
return p.constructor === ArrayBuffer && (p = new Uint8Array(p)), Array.isArray(p) || ArrayBuffer.isView(p) || p.constructor === _ ? I.createHash(w).update(y(p)).digest("hex") : f(p);
|
|
2626
2627
|
};
|
|
2627
2628
|
return O;
|
|
2628
2629
|
}, Xe = function(f, k) {
|
|
2629
|
-
return function(I,
|
|
2630
|
-
return new ye(I, k, !0).update(
|
|
2630
|
+
return function(I, _) {
|
|
2631
|
+
return new ye(I, k, !0).update(_)[f]();
|
|
2631
2632
|
};
|
|
2632
2633
|
}, de = function(f) {
|
|
2633
2634
|
var k = Xe("hex", f);
|
|
@@ -2637,8 +2638,8 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2637
2638
|
return k.create(w).update(y);
|
|
2638
2639
|
};
|
|
2639
2640
|
for (var I = 0; I < ae.length; ++I) {
|
|
2640
|
-
var
|
|
2641
|
-
k[
|
|
2641
|
+
var _ = ae[I];
|
|
2642
|
+
k[_] = Xe(_, f);
|
|
2642
2643
|
}
|
|
2643
2644
|
return k;
|
|
2644
2645
|
};
|
|
@@ -2660,13 +2661,13 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2660
2661
|
throw new Error(e);
|
|
2661
2662
|
k = !0;
|
|
2662
2663
|
}
|
|
2663
|
-
for (var
|
|
2664
|
+
for (var _, w = 0, y, O = f.length, p = this.blocks; w < O; ) {
|
|
2664
2665
|
if (this.hashed && (this.hashed = !1, p[0] = this.block, p[16] = p[1] = p[2] = p[3] = p[4] = p[5] = p[6] = p[7] = p[8] = p[9] = p[10] = p[11] = p[12] = p[13] = p[14] = p[15] = 0), k)
|
|
2665
2666
|
for (y = this.start; w < O && y < 64; ++w)
|
|
2666
2667
|
p[y >> 2] |= f[w] << W[y++ & 3];
|
|
2667
2668
|
else
|
|
2668
2669
|
for (y = this.start; w < O && y < 64; ++w)
|
|
2669
|
-
|
|
2670
|
+
_ = f.charCodeAt(w), _ < 128 ? p[y >> 2] |= _ << W[y++ & 3] : _ < 2048 ? (p[y >> 2] |= (192 | _ >> 6) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : _ < 55296 || _ >= 57344 ? (p[y >> 2] |= (224 | _ >> 12) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]) : (_ = 65536 + ((_ & 1023) << 10 | f.charCodeAt(++w) & 1023), p[y >> 2] |= (240 | _ >> 18) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 12 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ >> 6 & 63) << W[y++ & 3], p[y >> 2] |= (128 | _ & 63) << W[y++ & 3]);
|
|
2670
2671
|
this.lastByteIndex = y, this.bytes += y - this.start, y >= 64 ? (this.block = p[16], this.start = y - 64, this.hash(), this.hashed = !0) : this.start = y;
|
|
2671
2672
|
}
|
|
2672
2673
|
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
@@ -2678,19 +2679,19 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2678
2679
|
f[16] = this.block, f[k >> 2] |= D[k & 3], this.block = f[16], k >= 56 && (this.hashed || this.hash(), f[0] = this.block, f[16] = f[1] = f[2] = f[3] = f[4] = f[5] = f[6] = f[7] = f[8] = f[9] = f[10] = f[11] = f[12] = f[13] = f[14] = f[15] = 0), f[14] = this.hBytes << 3 | this.bytes >>> 29, f[15] = this.bytes << 3, this.hash();
|
|
2679
2680
|
}
|
|
2680
2681
|
}, N.prototype.hash = function() {
|
|
2681
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2682
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = this.blocks, q, J, G, ce, P, fe, r, a, d, g, h;
|
|
2682
2683
|
for (q = 16; q < 64; ++q)
|
|
2683
2684
|
P = F[q - 15], J = (P >>> 7 | P << 25) ^ (P >>> 18 | P << 14) ^ P >>> 3, P = F[q - 2], G = (P >>> 17 | P << 15) ^ (P >>> 19 | P << 13) ^ P >>> 10, F[q] = F[q - 16] + J + F[q - 7] + G << 0;
|
|
2684
2685
|
for (h = k & I, q = 0; q < 64; q += 4)
|
|
2685
|
-
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0,
|
|
2686
|
-
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 +
|
|
2686
|
+
this.first ? (this.is224 ? (a = 300032, P = F[0] - 1413257819, p = P - 150054599 << 0, _ = P + 24177077 << 0) : (a = 704751109, P = F[0] - 210244248, p = P - 1521486534 << 0, _ = P + 143694565 << 0), this.first = !1) : (J = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), G = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), a = f & k, ce = a ^ f & I ^ h, r = w & y ^ ~w & O, P = p + G + r + Y[q] + F[q], fe = J + ce, p = _ + P << 0, _ = P + fe << 0), J = (_ >>> 2 | _ << 30) ^ (_ >>> 13 | _ << 19) ^ (_ >>> 22 | _ << 10), G = (p >>> 6 | p << 26) ^ (p >>> 11 | p << 21) ^ (p >>> 25 | p << 7), d = _ & f, ce = d ^ _ & k ^ a, r = p & w ^ ~p & y, P = O + G + r + Y[q + 1] + F[q + 1], fe = J + ce, O = I + P << 0, I = P + fe << 0, J = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), G = (O >>> 6 | O << 26) ^ (O >>> 11 | O << 21) ^ (O >>> 25 | O << 7), g = I & _, ce = g ^ I & f ^ d, r = O & p ^ ~O & w, P = y + G + r + Y[q + 2] + F[q + 2], fe = J + ce, y = k + P << 0, k = P + fe << 0, J = (k >>> 2 | k << 30) ^ (k >>> 13 | k << 19) ^ (k >>> 22 | k << 10), G = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), h = k & I, ce = h ^ k & _ ^ g, r = y & O ^ ~y & p, P = w + G + r + Y[q + 3] + F[q + 3], fe = J + ce, w = f + P << 0, f = P + fe << 0, this.chromeBugWorkAround = !0;
|
|
2687
|
+
this.h0 = this.h0 + f << 0, this.h1 = this.h1 + k << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + _ << 0, this.h4 = this.h4 + w << 0, this.h5 = this.h5 + y << 0, this.h6 = this.h6 + O << 0, this.h7 = this.h7 + p << 0;
|
|
2687
2688
|
}, N.prototype.hex = function() {
|
|
2688
2689
|
this.finalize();
|
|
2689
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2690
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = u[f >> 28 & 15] + u[f >> 24 & 15] + u[f >> 20 & 15] + u[f >> 16 & 15] + u[f >> 12 & 15] + u[f >> 8 & 15] + u[f >> 4 & 15] + u[f & 15] + u[k >> 28 & 15] + u[k >> 24 & 15] + u[k >> 20 & 15] + u[k >> 16 & 15] + u[k >> 12 & 15] + u[k >> 8 & 15] + u[k >> 4 & 15] + u[k & 15] + u[I >> 28 & 15] + u[I >> 24 & 15] + u[I >> 20 & 15] + u[I >> 16 & 15] + u[I >> 12 & 15] + u[I >> 8 & 15] + u[I >> 4 & 15] + u[I & 15] + u[_ >> 28 & 15] + u[_ >> 24 & 15] + u[_ >> 20 & 15] + u[_ >> 16 & 15] + u[_ >> 12 & 15] + u[_ >> 8 & 15] + u[_ >> 4 & 15] + u[_ & 15] + u[w >> 28 & 15] + u[w >> 24 & 15] + u[w >> 20 & 15] + u[w >> 16 & 15] + u[w >> 12 & 15] + u[w >> 8 & 15] + u[w >> 4 & 15] + u[w & 15] + u[y >> 28 & 15] + u[y >> 24 & 15] + u[y >> 20 & 15] + u[y >> 16 & 15] + u[y >> 12 & 15] + u[y >> 8 & 15] + u[y >> 4 & 15] + u[y & 15] + u[O >> 28 & 15] + u[O >> 24 & 15] + u[O >> 20 & 15] + u[O >> 16 & 15] + u[O >> 12 & 15] + u[O >> 8 & 15] + u[O >> 4 & 15] + u[O & 15];
|
|
2690
2691
|
return this.is224 || (F += u[p >> 28 & 15] + u[p >> 24 & 15] + u[p >> 20 & 15] + u[p >> 16 & 15] + u[p >> 12 & 15] + u[p >> 8 & 15] + u[p >> 4 & 15] + u[p & 15]), F;
|
|
2691
2692
|
}, N.prototype.toString = N.prototype.hex, N.prototype.digest = function() {
|
|
2692
2693
|
this.finalize();
|
|
2693
|
-
var f = this.h0, k = this.h1, I = this.h2,
|
|
2694
|
+
var f = this.h0, k = this.h1, I = this.h2, _ = this.h3, w = this.h4, y = this.h5, O = this.h6, p = this.h7, F = [
|
|
2694
2695
|
f >> 24 & 255,
|
|
2695
2696
|
f >> 16 & 255,
|
|
2696
2697
|
f >> 8 & 255,
|
|
@@ -2703,10 +2704,10 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2703
2704
|
I >> 16 & 255,
|
|
2704
2705
|
I >> 8 & 255,
|
|
2705
2706
|
I & 255,
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2707
|
+
_ >> 24 & 255,
|
|
2708
|
+
_ >> 16 & 255,
|
|
2709
|
+
_ >> 8 & 255,
|
|
2710
|
+
_ & 255,
|
|
2710
2711
|
w >> 24 & 255,
|
|
2711
2712
|
w >> 16 & 255,
|
|
2712
2713
|
w >> 8 & 255,
|
|
@@ -2727,11 +2728,11 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2727
2728
|
return k.setUint32(0, this.h0), k.setUint32(4, this.h1), k.setUint32(8, this.h2), k.setUint32(12, this.h3), k.setUint32(16, this.h4), k.setUint32(20, this.h5), k.setUint32(24, this.h6), this.is224 || k.setUint32(28, this.h7), f;
|
|
2728
2729
|
};
|
|
2729
2730
|
function ye(f, k, I) {
|
|
2730
|
-
var
|
|
2731
|
+
var _, w = typeof f;
|
|
2731
2732
|
if (w === "string") {
|
|
2732
2733
|
var y = [], O = f.length, p = 0, F;
|
|
2733
|
-
for (
|
|
2734
|
-
F = f.charCodeAt(
|
|
2734
|
+
for (_ = 0; _ < O; ++_)
|
|
2735
|
+
F = f.charCodeAt(_), F < 128 ? y[p++] = F : F < 2048 ? (y[p++] = 192 | F >> 6, y[p++] = 128 | F & 63) : F < 55296 || F >= 57344 ? (y[p++] = 224 | F >> 12, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63) : (F = 65536 + ((F & 1023) << 10 | f.charCodeAt(++_) & 1023), y[p++] = 240 | F >> 18, y[p++] = 128 | F >> 12 & 63, y[p++] = 128 | F >> 6 & 63, y[p++] = 128 | F & 63);
|
|
2735
2736
|
f = y;
|
|
2736
2737
|
} else if (w === "object") {
|
|
2737
2738
|
if (f === null)
|
|
@@ -2744,9 +2745,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2744
2745
|
throw new Error(e);
|
|
2745
2746
|
f.length > 64 && (f = new N(k, !0).update(f).array());
|
|
2746
2747
|
var q = [], J = [];
|
|
2747
|
-
for (
|
|
2748
|
-
var G = f[
|
|
2749
|
-
q[
|
|
2748
|
+
for (_ = 0; _ < 64; ++_) {
|
|
2749
|
+
var G = f[_] || 0;
|
|
2750
|
+
q[_] = 92 ^ G, J[_] = 54 ^ G;
|
|
2750
2751
|
}
|
|
2751
2752
|
N.call(this, k, I), this.update(J), this.oKeyPad = q, this.inner = !0, this.sharedMemory = I;
|
|
2752
2753
|
}
|
|
@@ -2758,7 +2759,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2758
2759
|
}
|
|
2759
2760
|
};
|
|
2760
2761
|
var Z = Je();
|
|
2761
|
-
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0),
|
|
2762
|
+
Z.sha256 = Z, Z.sha224 = Je(!0), Z.sha256.hmac = de(), Z.sha224.hmac = de(!0), A ? t.exports = Z : (o.sha256 = Z.sha256, o.sha224 = Z.sha224);
|
|
2762
2763
|
})();
|
|
2763
2764
|
})(hr);
|
|
2764
2765
|
var zc = hr.exports;
|
|
@@ -2792,21 +2793,21 @@ function qc(t) {
|
|
|
2792
2793
|
return atob(e);
|
|
2793
2794
|
}
|
|
2794
2795
|
}
|
|
2795
|
-
function
|
|
2796
|
+
function pn(t, e) {
|
|
2796
2797
|
if (typeof t != "string")
|
|
2797
2798
|
throw new At("Invalid token specified: must be a string");
|
|
2798
2799
|
e || (e = {});
|
|
2799
2800
|
const n = e.header === !0 ? 0 : 1, o = t.split(".")[n];
|
|
2800
2801
|
if (typeof o != "string")
|
|
2801
2802
|
throw new At(`Invalid token specified: missing part #${n + 1}`);
|
|
2802
|
-
let
|
|
2803
|
+
let i;
|
|
2803
2804
|
try {
|
|
2804
|
-
|
|
2805
|
+
i = qc(o);
|
|
2805
2806
|
} catch (c) {
|
|
2806
2807
|
throw new At(`Invalid token specified: invalid base64 for part #${n + 1} (${c.message})`);
|
|
2807
2808
|
}
|
|
2808
2809
|
try {
|
|
2809
|
-
return JSON.parse(
|
|
2810
|
+
return JSON.parse(i);
|
|
2810
2811
|
} catch (c) {
|
|
2811
2812
|
throw new At(`Invalid token specified: invalid json for part #${n + 1} (${c.message})`);
|
|
2812
2813
|
}
|
|
@@ -2816,17 +2817,17 @@ if (typeof Promise > "u")
|
|
|
2816
2817
|
function pr(t) {
|
|
2817
2818
|
if (!(this instanceof pr))
|
|
2818
2819
|
throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
|
|
2819
|
-
for (var e = this, n, o = [],
|
|
2820
|
+
for (var e = this, n, o = [], i, c = {
|
|
2820
2821
|
enable: !0,
|
|
2821
2822
|
callbackList: [],
|
|
2822
2823
|
interval: 5
|
|
2823
|
-
},
|
|
2824
|
-
(
|
|
2824
|
+
}, A = document.getElementsByTagName("script"), L = 0; L < A.length; L++)
|
|
2825
|
+
(A[L].src.indexOf("keycloak.js") !== -1 || A[L].src.indexOf("keycloak.min.js") !== -1) && A[L].src.indexOf("version=") !== -1 && (e.iframeVersion = A[L].src.substring(A[L].src.indexOf("version=") + 8).split("&")[0]);
|
|
2825
2826
|
var u = !0, D = fe(console.info), W = fe(console.warn);
|
|
2826
2827
|
e.init = function(r) {
|
|
2827
2828
|
if (e.didInitialize)
|
|
2828
2829
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
2829
|
-
e.didInitialize = !0, e.authenticated = !1,
|
|
2830
|
+
e.didInitialize = !0, e.authenticated = !1, i = P();
|
|
2830
2831
|
var a = ["default", "cordova", "cordova-native"];
|
|
2831
2832
|
if (r && a.indexOf(r.adapter) > -1 ? n = J(r.adapter) : r && typeof r.adapter == "object" ? n = r.adapter : window.Cordova || window.cordova ? n = J("cordova") : n = J(), r) {
|
|
2832
2833
|
if (typeof r.useNonce < "u" && (u = r.useNonce), typeof r.checkLoginIframe < "u" && (c.enable = r.checkLoginIframe), r.checkLoginIframeInterval && (c.interval = r.checkLoginIframeInterval), r.onLoad === "login-required" && (e.loginRequired = !0), r.responseMode)
|
|
@@ -2956,7 +2957,7 @@ function pr(t) {
|
|
|
2956
2957
|
function Fe(r, a) {
|
|
2957
2958
|
switch (r) {
|
|
2958
2959
|
case "S256":
|
|
2959
|
-
var d = new Uint8Array(Vc.arrayBuffer(a)), g =
|
|
2960
|
+
var d = new Uint8Array(Vc.arrayBuffer(a)), g = Xt.fromByteArray(d).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
2960
2961
|
return g;
|
|
2961
2962
|
default:
|
|
2962
2963
|
throw "Invalid value for pkceMethod";
|
|
@@ -2992,7 +2993,7 @@ function pr(t) {
|
|
|
2992
2993
|
var R = Fe(e.pkceMethod, C);
|
|
2993
2994
|
b += "&code_challenge=" + R, b += "&code_challenge_method=" + e.pkceMethod;
|
|
2994
2995
|
}
|
|
2995
|
-
return
|
|
2996
|
+
return i.add(h), b;
|
|
2996
2997
|
}, e.logout = function(r) {
|
|
2997
2998
|
return n.logout(r);
|
|
2998
2999
|
}, e.createLogoutUrl = function(r) {
|
|
@@ -3223,8 +3224,8 @@ function pr(t) {
|
|
|
3223
3224
|
return r.status == 0 && r.responseText && r.responseURL.startsWith("file:");
|
|
3224
3225
|
}
|
|
3225
3226
|
function Z(r, a, d, g) {
|
|
3226
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), a ? (e.refreshToken = a, e.refreshTokenParsed =
|
|
3227
|
-
if (e.token = r, e.tokenParsed =
|
|
3227
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), a ? (e.refreshToken = a, e.refreshTokenParsed = pn(a)) : (delete e.refreshToken, delete e.refreshTokenParsed), d ? (e.idToken = d, e.idTokenParsed = pn(d)) : (delete e.idToken, delete e.idTokenParsed), r) {
|
|
3228
|
+
if (e.token = r, e.tokenParsed = pn(r), 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, g && (e.timeSkew = Math.floor(g / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (D("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3228
3229
|
var h = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3229
3230
|
D("[KEYCLOAK] Token expires in " + Math.round(h / 1e3) + " s"), h <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, h);
|
|
3230
3231
|
}
|
|
@@ -3240,7 +3241,7 @@ function pr(t) {
|
|
|
3240
3241
|
function k(r) {
|
|
3241
3242
|
var a = I(r);
|
|
3242
3243
|
if (a) {
|
|
3243
|
-
var d =
|
|
3244
|
+
var d = i.get(a.state);
|
|
3244
3245
|
return d && (a.valid = !0, a.redirectUri = d.redirectUri, a.storedNonce = d.nonce, a.prompt = d.prompt, a.pkceCodeVerifier = d.pkceCodeVerifier), a;
|
|
3245
3246
|
}
|
|
3246
3247
|
}
|
|
@@ -3259,7 +3260,7 @@ function pr(t) {
|
|
|
3259
3260
|
}
|
|
3260
3261
|
a.push("error"), a.push("error_description"), a.push("error_uri");
|
|
3261
3262
|
var d = r.indexOf("?"), g = r.indexOf("#"), h, x;
|
|
3262
|
-
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d), x =
|
|
3263
|
+
if (e.responseMode === "query" && d !== -1 ? (h = r.substring(0, d), x = _(r.substring(d + 1, g !== -1 ? g : r.length), a), x.paramsString !== "" && (h += "?" + x.paramsString), g !== -1 && (h += r.substring(g))) : e.responseMode === "fragment" && g !== -1 && (h = r.substring(0, g), x = _(r.substring(g + 1), a), x.paramsString !== "" && (h += "#" + x.paramsString)), x && x.oauthParams) {
|
|
3263
3264
|
if (e.flow === "standard" || e.flow === "hybrid") {
|
|
3264
3265
|
if ((x.oauthParams.code || x.oauthParams.error) && x.oauthParams.state)
|
|
3265
3266
|
return x.oauthParams.newUrl = h, x.oauthParams;
|
|
@@ -3267,7 +3268,7 @@ function pr(t) {
|
|
|
3267
3268
|
return x.oauthParams.newUrl = h, x.oauthParams;
|
|
3268
3269
|
}
|
|
3269
3270
|
}
|
|
3270
|
-
function
|
|
3271
|
+
function _(r, a) {
|
|
3271
3272
|
for (var d = r.split("&"), g = {
|
|
3272
3273
|
paramsString: "",
|
|
3273
3274
|
oauthParams: {}
|
|
@@ -3572,15 +3573,15 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
3572
3573
|
}
|
|
3573
3574
|
}
|
|
3574
3575
|
function Kc(t) {
|
|
3575
|
-
const e = new pr(t), n = {}, o = (
|
|
3576
|
+
const e = new pr(t), n = {}, o = (A, L) => {
|
|
3576
3577
|
e.init({ onLoad: "login-required" }).then(async (u) => {
|
|
3577
|
-
u && await
|
|
3578
|
+
u && await i(), A();
|
|
3578
3579
|
}).catch((u) => {
|
|
3579
3580
|
L(u);
|
|
3580
3581
|
});
|
|
3581
|
-
},
|
|
3582
|
-
const
|
|
3583
|
-
n.email =
|
|
3582
|
+
}, i = async () => {
|
|
3583
|
+
const A = await e.loadUserInfo();
|
|
3584
|
+
n.email = A.email ?? "", n.emailVerified = A.email_verified === !0, n.firstName = A.given_name ?? "", n.lastName = A.family_name ?? "", n.name = A.name ?? "", n.sub = A.sub ?? "", n.username = A.preferred_username ?? "", n.roles = [...A.role ?? []], n.groups = [...A.group ?? []], n.IsInRole = (L) => n.roles.includes(L), sessionStorage.setItem("name", n.name);
|
|
3584
3585
|
};
|
|
3585
3586
|
return {
|
|
3586
3587
|
Instance: e,
|
|
@@ -3644,7 +3645,7 @@ class nl {
|
|
|
3644
3645
|
}
|
|
3645
3646
|
t(), window.addEventListener("resize", t);
|
|
3646
3647
|
})();
|
|
3647
|
-
|
|
3648
|
+
An.SetInitialTheme();
|
|
3648
3649
|
export {
|
|
3649
3650
|
nl as AppResult,
|
|
3650
3651
|
So as Cor,
|