@luizleon/sf.prefeiturasp.vuecomponents 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.es.js +262 -261
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +12 -12
- package/dist/lib.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/drawer/Drawer.vue +1 -0
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Vs = Object.defineProperty;
|
|
2
2
|
var Ws = (t, e, n) => e in t ? Vs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Je = (t, e, n) => (Ws(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { ref as ze, openBlock as oe, createElementBlock as pe, createElementVNode as Y, defineComponent as We, normalizeStyle as Dt, normalizeClass as ve, mergeProps as qs, createBlock as at, Fragment as
|
|
4
|
+
import { ref as ze, openBlock as oe, createElementBlock as pe, createElementVNode as Y, defineComponent as We, normalizeStyle as Dt, normalizeClass as ve, mergeProps as qs, createBlock as at, Fragment as io, createTextVNode as qn, toDisplayString as fn, createCommentVNode as bt, useSlots as Ks, watch as Wo, Teleport as Gs, unref as He, withModifiers as On, createVNode as et, Transition as Js, withCtx as yt, renderSlot as Oe, computed as Ys, onMounted as hn, createStaticVNode as Xs, resolveComponent as _r, onBeforeUnmount as Zs, renderList as Qs } from "vue";
|
|
5
5
|
class ei {
|
|
6
6
|
constructor() {
|
|
7
7
|
Je(this, "_visible", ze(!1));
|
|
@@ -66,7 +66,7 @@ function ni(t = []) {
|
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
let oi = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
|
|
69
|
-
var
|
|
69
|
+
var ao = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Help = "help", t.Warn = "warn", t.Error = "error", t))(ao || {}), Ft = /* @__PURE__ */ ((t) => (t.Pequeno = "sm", t.Medio = "md", t.Grande = "lg", t))(Ft || {});
|
|
70
70
|
const Tr = (t, e) => {
|
|
71
71
|
const n = t.__vccOpts || t;
|
|
72
72
|
for (const [o, r] of e)
|
|
@@ -101,7 +101,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
101
101
|
button: { type: Boolean },
|
|
102
102
|
tamanho: { default: Ft.Medio },
|
|
103
103
|
dot: { type: Boolean },
|
|
104
|
-
dotColor: { default:
|
|
104
|
+
dotColor: { default: ao.Error },
|
|
105
105
|
buttonProps: {}
|
|
106
106
|
},
|
|
107
107
|
setup(t) {
|
|
@@ -119,8 +119,8 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
119
119
|
}, e.buttonProps, {
|
|
120
120
|
tabindex: e.button ? void 0 : -1
|
|
121
121
|
}), [
|
|
122
|
-
e.loading ? (oe(), at(li, { key: 0 })) : (oe(), pe(
|
|
123
|
-
|
|
122
|
+
e.loading ? (oe(), at(li, { key: 0 })) : (oe(), pe(io, { key: 1 }, [
|
|
123
|
+
qn(fn(e.icone), 1)
|
|
124
124
|
], 64))
|
|
125
125
|
], 16, ui),
|
|
126
126
|
e.dot ? (oe(), pe("span", {
|
|
@@ -145,18 +145,18 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
145
145
|
function y() {
|
|
146
146
|
s.value = !1;
|
|
147
147
|
}
|
|
148
|
-
function w(
|
|
149
|
-
(
|
|
148
|
+
function w(D) {
|
|
149
|
+
(D.key === "Escape" || D.code === "Escape") && y();
|
|
150
150
|
}
|
|
151
151
|
function b() {
|
|
152
152
|
o("open"), window.document.addEventListener("keydown", w, !0);
|
|
153
153
|
}
|
|
154
|
-
function G(
|
|
155
|
-
d.value = ni(),
|
|
154
|
+
function G(D) {
|
|
155
|
+
d.value = ni(), D.style.zIndex = `${d.value}`;
|
|
156
156
|
}
|
|
157
|
-
function D
|
|
157
|
+
function M(D) {
|
|
158
158
|
var Q;
|
|
159
|
-
o("before-close"), (Q =
|
|
159
|
+
o("before-close"), (Q = D == null ? void 0 : D.parentElement) == null || Q.classList.add("sf-mask-overlay-leave");
|
|
160
160
|
}
|
|
161
161
|
function I() {
|
|
162
162
|
window.document.removeEventListener("keydown", w, !0), a.value = !1;
|
|
@@ -164,30 +164,30 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
164
164
|
function F() {
|
|
165
165
|
return new it("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return Wo(
|
|
168
168
|
() => n.visible,
|
|
169
|
-
(
|
|
170
|
-
s.value =
|
|
169
|
+
(D) => {
|
|
170
|
+
s.value = D;
|
|
171
171
|
}
|
|
172
|
-
),
|
|
172
|
+
), Wo(
|
|
173
173
|
() => s.value,
|
|
174
|
-
(
|
|
175
|
-
o("update:visible",
|
|
174
|
+
(D) => {
|
|
175
|
+
o("update:visible", D), D && (a.value = !0);
|
|
176
176
|
}
|
|
177
|
-
), (
|
|
177
|
+
), (D, Q) => (oe(), at(Gs, { to: "body" }, [
|
|
178
178
|
a.value ? (oe(), pe("div", {
|
|
179
179
|
key: 0,
|
|
180
180
|
id: He(l),
|
|
181
181
|
class: ve(F()),
|
|
182
182
|
style: Dt({ zIndex: d.value - 1 }),
|
|
183
|
-
onClick:
|
|
183
|
+
onClick: On(y, ["stop"])
|
|
184
184
|
}, [
|
|
185
185
|
et(Js, {
|
|
186
186
|
name: "sf-drawer",
|
|
187
187
|
appear: "",
|
|
188
188
|
onBeforeEnter: G,
|
|
189
189
|
onEnter: b,
|
|
190
|
-
onBeforeLeave:
|
|
190
|
+
onBeforeLeave: M,
|
|
191
191
|
onAfterLeave: I
|
|
192
192
|
}, {
|
|
193
193
|
default: yt(() => [
|
|
@@ -200,23 +200,24 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
200
200
|
}
|
|
201
201
|
]),
|
|
202
202
|
style: Dt(n.style),
|
|
203
|
-
role: "dialog"
|
|
203
|
+
role: "dialog",
|
|
204
|
+
onClick: Q[0] || (Q[0] = On((ne) => D.void, ["stop"]))
|
|
204
205
|
}, [
|
|
205
206
|
Y("div", hi, [
|
|
206
207
|
Y("span", pi, [
|
|
207
|
-
Oe(
|
|
208
|
+
Oe(D.$slots, "title")
|
|
208
209
|
]),
|
|
209
210
|
et(cn, {
|
|
210
211
|
button: !0,
|
|
211
212
|
icone: "close",
|
|
212
|
-
onClick:
|
|
213
|
+
onClick: On(y, ["stop"])
|
|
213
214
|
}, null, 8, ["onClick"])
|
|
214
215
|
]),
|
|
215
216
|
Y("div", mi, [
|
|
216
|
-
Oe(
|
|
217
|
+
Oe(D.$slots, "default")
|
|
217
218
|
]),
|
|
218
219
|
He(r).footer ? (oe(), pe("div", gi, [
|
|
219
|
-
Oe(
|
|
220
|
+
Oe(D.$slots, "footer")
|
|
220
221
|
])) : bt("", !0)
|
|
221
222
|
], 6)) : bt("", !0)
|
|
222
223
|
]),
|
|
@@ -281,7 +282,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
281
282
|
for (let n = 0; n < t.length; n++)
|
|
282
283
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
283
284
|
return e;
|
|
284
|
-
},
|
|
285
|
+
}, co = (t) => t.charAt(0).toUpperCase() + t.slice(1), Re = (t) => Array.prototype.slice.call(t), Ce = (t) => {
|
|
285
286
|
console.warn(`${Pr} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
286
287
|
}, ut = (t) => {
|
|
287
288
|
console.error(`${Pr} ${t}`);
|
|
@@ -291,7 +292,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
291
292
|
Ei(
|
|
292
293
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
293
294
|
);
|
|
294
|
-
}, pn = (t) => typeof t == "function" ? t() : t,
|
|
295
|
+
}, pn = (t) => typeof t == "function" ? t() : t, lo = (t) => t && typeof t.toPromise == "function", jt = (t) => lo(t) ? t.toPromise() : Promise.resolve(t), uo = (t) => t && Promise.resolve(t) === t, wt = {
|
|
295
296
|
title: "",
|
|
296
297
|
titleText: "",
|
|
297
298
|
text: "",
|
|
@@ -433,12 +434,12 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
433
434
|
"returnFocus",
|
|
434
435
|
"heightAuto",
|
|
435
436
|
"keydownListenerCapture"
|
|
436
|
-
], Rr = (t) => Object.prototype.hasOwnProperty.call(wt, t), Lr = (t) => xi.indexOf(t) !== -1,
|
|
437
|
+
], Rr = (t) => Object.prototype.hasOwnProperty.call(wt, t), Lr = (t) => xi.indexOf(t) !== -1, Kn = (t) => Si[t], Ci = (t) => {
|
|
437
438
|
Rr(t) || Ce(`Unknown parameter "${t}"`);
|
|
438
439
|
}, Ti = (t) => {
|
|
439
440
|
_i.includes(t) && Ce(`The parameter "${t}" is incompatible with toasts`);
|
|
440
441
|
}, Pi = (t) => {
|
|
441
|
-
|
|
442
|
+
Kn(t) && ki(t, Kn(t));
|
|
442
443
|
}, Ri = (t) => {
|
|
443
444
|
!t.backdrop && t.allowOutsideClick && Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
444
445
|
for (const e in t)
|
|
@@ -521,7 +522,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
521
522
|
]), Nt = Or(["success", "warning", "info", "question", "error"]), me = () => document.body.querySelector(`.${f.container}`), zt = (t) => {
|
|
522
523
|
const e = me();
|
|
523
524
|
return e ? e.querySelector(t) : null;
|
|
524
|
-
}, Ne = (t) => zt(`.${t}`), Z = () => Ne(f.popup), Vt = () => Ne(f.icon), Ir = () => Ne(f.title), ln = () => Ne(f["html-container"]), Fr = () => Ne(f.image), Br = () => Ne(f["progress-steps"]), mn = () => Ne(f["validation-message"]), Ue = () => zt(`.${f.actions} .${f.confirm}`), tt = () => zt(`.${f.actions} .${f.deny}`), Oi = () => Ne(f["input-label"]), xt = () => zt(`.${f.loader}`), ct = () => zt(`.${f.actions} .${f.cancel}`), Wt = () => Ne(f.actions), Nr = () => Ne(f.footer), gn = () => Ne(f["timer-progress-bar"]),
|
|
525
|
+
}, Ne = (t) => zt(`.${t}`), Z = () => Ne(f.popup), Vt = () => Ne(f.icon), Ir = () => Ne(f.title), ln = () => Ne(f["html-container"]), Fr = () => Ne(f.image), Br = () => Ne(f["progress-steps"]), mn = () => Ne(f["validation-message"]), Ue = () => zt(`.${f.actions} .${f.confirm}`), tt = () => zt(`.${f.actions} .${f.deny}`), Oi = () => Ne(f["input-label"]), xt = () => zt(`.${f.loader}`), ct = () => zt(`.${f.actions} .${f.cancel}`), Wt = () => Ne(f.actions), Nr = () => Ne(f.footer), gn = () => Ne(f["timer-progress-bar"]), fo = () => Ne(f.close), Ii = `
|
|
525
526
|
a[href],
|
|
526
527
|
area[href],
|
|
527
528
|
input:not([disabled]),
|
|
@@ -536,7 +537,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
536
537
|
audio[controls],
|
|
537
538
|
video[controls],
|
|
538
539
|
summary
|
|
539
|
-
`,
|
|
540
|
+
`, ho = () => {
|
|
540
541
|
const t = Re(
|
|
541
542
|
Z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')
|
|
542
543
|
).sort((n, o) => {
|
|
@@ -546,7 +547,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
546
547
|
(n) => n.getAttribute("tabindex") !== "-1"
|
|
547
548
|
);
|
|
548
549
|
return Ai(t.concat(e)).filter((n) => Pe(n));
|
|
549
|
-
},
|
|
550
|
+
}, po = () => Ye(document.body, f.shown) && !Ye(document.body, f["toast-shown"]) && !Ye(document.body, f["no-backdrop"]), bn = () => Z() && Ye(Z(), f.toast), Fi = () => Z().hasAttribute("data-loading"), vt = {
|
|
550
551
|
previousBodyPadding: null
|
|
551
552
|
}, he = (t, e) => {
|
|
552
553
|
if (t.textContent = "", e) {
|
|
@@ -577,7 +578,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
577
578
|
);
|
|
578
579
|
X(t, e.customClass[n]);
|
|
579
580
|
}
|
|
580
|
-
},
|
|
581
|
+
}, mo = (t, e) => {
|
|
581
582
|
if (!e)
|
|
582
583
|
return null;
|
|
583
584
|
switch (e) {
|
|
@@ -628,7 +629,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
628
629
|
}, Pe = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Ni = () => !Pe(Ue()) && !Pe(tt()) && !Pe(ct()), Go = (t) => t.scrollHeight > t.clientHeight, Mr = (t) => {
|
|
629
630
|
const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
|
|
630
631
|
return n > 0 || o > 0;
|
|
631
|
-
},
|
|
632
|
+
}, go = (t, e = !1) => {
|
|
632
633
|
const n = gn();
|
|
633
634
|
Pe(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
634
635
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
@@ -710,7 +711,7 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
710
711
|
n.className = f.container, e && X(n, f["no-transition"]), he(n, Hi);
|
|
711
712
|
const o = Vi(t.target);
|
|
712
713
|
o.appendChild(n), Wi(t), qi(o), zi();
|
|
713
|
-
},
|
|
714
|
+
}, bo = (t, e) => {
|
|
714
715
|
t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Gi(t, e) : t && he(e, t);
|
|
715
716
|
}, Gi = (t, e) => {
|
|
716
717
|
t.jquery ? Ji(e, t) : he(e, t.toString());
|
|
@@ -744,15 +745,15 @@ const li = /* @__PURE__ */ Tr(ri, [["render", ci]]), ui = ["disabled", "tabindex
|
|
|
744
745
|
};
|
|
745
746
|
function Zi(t, e, n) {
|
|
746
747
|
const o = Ue(), r = tt(), s = ct();
|
|
747
|
-
|
|
748
|
+
In(o, "confirm", n), In(r, "deny", n), In(s, "cancel", n), Qi(o, r, s, n), n.reverseButtons && (n.toast ? (t.insertBefore(s, o), t.insertBefore(r, o)) : (t.insertBefore(s, e), t.insertBefore(r, e), t.insertBefore(o, e)));
|
|
748
749
|
}
|
|
749
750
|
function Qi(t, e, n, o) {
|
|
750
751
|
if (!o.buttonsStyling)
|
|
751
752
|
return Ve([t, e, n], f.styled);
|
|
752
753
|
X([t, e, n], f.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor, X(t, f["default-outline"])), o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor, X(e, f["default-outline"])), o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor, X(n, f["default-outline"]));
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
-
yn(t, n[`show${
|
|
755
|
+
function In(t, e, n) {
|
|
756
|
+
yn(t, n[`show${co(e)}Button`], "inline-block"), he(t, n[`${e}ButtonText`]), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`]), t.className = f[e], Fe(t, n, `${e}Button`), X(t, n[`${e}ButtonClass`]);
|
|
756
757
|
}
|
|
757
758
|
function ea(t, e) {
|
|
758
759
|
typeof e == "string" ? t.style.background = e : e || X([document.documentElement, document.body], f["no-backdrop"]);
|
|
@@ -795,7 +796,7 @@ const oa = (t, e) => {
|
|
|
795
796
|
["type", "value", "style"].includes(n) || t.removeAttribute(n);
|
|
796
797
|
}
|
|
797
798
|
}, ca = (t, e) => {
|
|
798
|
-
const n =
|
|
799
|
+
const n = mo(Z(), t);
|
|
799
800
|
if (n) {
|
|
800
801
|
aa(n);
|
|
801
802
|
for (const o in e)
|
|
@@ -804,7 +805,7 @@ const oa = (t, e) => {
|
|
|
804
805
|
}, la = (t) => {
|
|
805
806
|
const e = Hr(t.input);
|
|
806
807
|
t.customClass && X(e, t.customClass.input);
|
|
807
|
-
},
|
|
808
|
+
}, yo = (t, e) => {
|
|
808
809
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
809
810
|
}, qt = (t, e, n) => {
|
|
810
811
|
if (n.inputLabel) {
|
|
@@ -816,10 +817,10 @@ const oa = (t, e) => {
|
|
|
816
817
|
const e = f[t] ? f[t] : f.input;
|
|
817
818
|
return Qe(Z(), e);
|
|
818
819
|
}, _e = {};
|
|
819
|
-
_e.text = _e.email = _e.password = _e.number = _e.tel = _e.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue :
|
|
820
|
+
_e.text = _e.email = _e.password = _e.number = _e.tel = _e.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : uo(e.inputValue) || Ce(
|
|
820
821
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
821
|
-
), qt(t, t, e),
|
|
822
|
-
_e.file = (t, e) => (qt(t, t, e),
|
|
822
|
+
), qt(t, t, e), yo(t, e), t.type = e.input, t);
|
|
823
|
+
_e.file = (t, e) => (qt(t, t, e), yo(t, e), t);
|
|
823
824
|
_e.range = (t, e) => {
|
|
824
825
|
const n = t.querySelector("input"), o = t.querySelector("output");
|
|
825
826
|
return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, qt(n, t, e), t;
|
|
@@ -833,13 +834,13 @@ _e.select = (t, e) => {
|
|
|
833
834
|
};
|
|
834
835
|
_e.radio = (t) => (t.textContent = "", t);
|
|
835
836
|
_e.checkbox = (t, e) => {
|
|
836
|
-
const n =
|
|
837
|
+
const n = mo(Z(), "checkbox");
|
|
837
838
|
n.value = "1", n.id = f.checkbox, n.checked = !!e.inputValue;
|
|
838
839
|
const o = t.querySelector("span");
|
|
839
840
|
return he(o, e.inputPlaceholder), t;
|
|
840
841
|
};
|
|
841
842
|
_e.textarea = (t, e) => {
|
|
842
|
-
t.value = e.inputValue,
|
|
843
|
+
t.value = e.inputValue, yo(t, e), qt(t, t, e);
|
|
843
844
|
const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
|
|
844
845
|
return setTimeout(() => {
|
|
845
846
|
if ("MutationObserver" in window) {
|
|
@@ -856,12 +857,12 @@ _e.textarea = (t, e) => {
|
|
|
856
857
|
};
|
|
857
858
|
const ua = (t, e) => {
|
|
858
859
|
const n = ln();
|
|
859
|
-
Fe(n, e, "htmlContainer"), e.html ? (
|
|
860
|
+
Fe(n, e, "htmlContainer"), e.html ? (bo(e.html, n), ue(n, "block")) : e.text ? (n.textContent = e.text, ue(n, "block")) : ge(n), sa(t, e);
|
|
860
861
|
}, da = (t, e) => {
|
|
861
862
|
const n = Nr();
|
|
862
|
-
yn(n, e.footer), e.footer &&
|
|
863
|
+
yn(n, e.footer), e.footer && bo(e.footer, n), Fe(n, e, "footer");
|
|
863
864
|
}, fa = (t, e) => {
|
|
864
|
-
const n =
|
|
865
|
+
const n = fo();
|
|
865
866
|
he(n, e.closeButtonHtml), Fe(n, e, "closeButton"), yn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
866
867
|
}, ha = (t, e) => {
|
|
867
868
|
const n = q.innerParams.get(t), o = Vt();
|
|
@@ -936,7 +937,7 @@ const ua = (t, e) => {
|
|
|
936
937
|
});
|
|
937
938
|
}, Ea = (t, e) => {
|
|
938
939
|
const n = Ir();
|
|
939
|
-
yn(n, e.title || e.titleText, "block"), e.title &&
|
|
940
|
+
yn(n, e.title || e.titleText, "block"), e.title && bo(e.title, n), e.titleText && (n.innerText = e.titleText), Fe(n, e, "title");
|
|
940
941
|
}, ka = (t, e) => {
|
|
941
942
|
const n = me(), o = Z();
|
|
942
943
|
e.toast ? (Ut(n, "width", e.width), o.style.width = "100%", o.insertBefore(xt(), Vt())) : Ut(o, "width", e.width), Ut(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), ge(mn()), xa(o, e);
|
|
@@ -983,7 +984,7 @@ const ua = (t, e) => {
|
|
|
983
984
|
return Re(t.querySelectorAll("swal-button")).forEach((n) => {
|
|
984
985
|
lt(n, ["type", "color", "aria-label"]);
|
|
985
986
|
const o = n.getAttribute("type");
|
|
986
|
-
e[`${o}ButtonText`] = n.innerHTML, e[`show${
|
|
987
|
+
e[`${o}ButtonText`] = n.innerHTML, e[`show${co(o)}Button`] = !0, n.hasAttribute("color") && (e[`${o}ButtonColor`] = n.getAttribute("color")), n.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = n.getAttribute("aria-label"));
|
|
987
988
|
}), e;
|
|
988
989
|
}, Pa = (t) => {
|
|
989
990
|
const e = {}, n = t.querySelector("swal-image");
|
|
@@ -1106,7 +1107,7 @@ const Da = () => {
|
|
|
1106
1107
|
const r = window.getComputedStyle(document.body).overflowY;
|
|
1107
1108
|
Ya(e, n, t), setTimeout(() => {
|
|
1108
1109
|
Ga(e, n);
|
|
1109
|
-
}, Wr),
|
|
1110
|
+
}, Wr), po() && (Ja(e, t.scrollbarPadding, r), Sa()), !bn() && !V.previousActiveElement && (V.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), Ve(e, f["no-transition"]);
|
|
1110
1111
|
}, qr = (t) => {
|
|
1111
1112
|
const e = Z();
|
|
1112
1113
|
if (t.target !== e)
|
|
@@ -1132,7 +1133,7 @@ const Da = () => {
|
|
|
1132
1133
|
const n = Wt(), o = xt();
|
|
1133
1134
|
!e && Pe(Ue()) && (e = Ue()), ue(n), e && (ge(e), o.setAttribute("data-button-to-replace", e.className)), o.parentNode.insertBefore(o, e), X([t, n], f.loading);
|
|
1134
1135
|
}, Za = (t, e) => {
|
|
1135
|
-
e.input === "select" || e.input === "radio" ? oc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (
|
|
1136
|
+
e.input === "select" || e.input === "radio" ? oc(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (lo(e.inputValue) || uo(e.inputValue)) && (Et(Ue()), rc(t, e));
|
|
1136
1137
|
}, Qa = (t, e) => {
|
|
1137
1138
|
const n = t.getInput();
|
|
1138
1139
|
if (!n)
|
|
@@ -1148,8 +1149,8 @@ const Da = () => {
|
|
|
1148
1149
|
return e.inputAutoTrim ? n.value.trim() : n.value;
|
|
1149
1150
|
}
|
|
1150
1151
|
}, ec = (t) => t.checked ? 1 : 0, tc = (t) => t.checked ? t.value : null, nc = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, oc = (t, e) => {
|
|
1151
|
-
const n = Z(), o = (r) => sc[e.input](n,
|
|
1152
|
-
|
|
1152
|
+
const n = Z(), o = (r) => sc[e.input](n, Gn(r), e);
|
|
1153
|
+
lo(e.inputOptions) || uo(e.inputOptions) ? (Et(Ue()), jt(e.inputOptions).then((r) => {
|
|
1153
1154
|
t.hideLoading(), o(r);
|
|
1154
1155
|
})) : typeof e.inputOptions == "object" ? o(e.inputOptions) : ut(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
1155
1156
|
}, rc = (t, e) => {
|
|
@@ -1185,14 +1186,14 @@ const Da = () => {
|
|
|
1185
1186
|
const r = o.querySelectorAll("input");
|
|
1186
1187
|
r.length && r[0].focus();
|
|
1187
1188
|
}
|
|
1188
|
-
},
|
|
1189
|
+
}, Gn = (t) => {
|
|
1189
1190
|
const e = [];
|
|
1190
1191
|
return typeof Map < "u" && t instanceof Map ? t.forEach((n, o) => {
|
|
1191
1192
|
let r = n;
|
|
1192
|
-
typeof r == "object" && (r =
|
|
1193
|
+
typeof r == "object" && (r = Gn(r)), e.push([o, r]);
|
|
1193
1194
|
}) : Object.keys(t).forEach((n) => {
|
|
1194
1195
|
let o = t[n];
|
|
1195
|
-
typeof o == "object" && (o =
|
|
1196
|
+
typeof o == "object" && (o = Gn(o)), e.push([n, o]);
|
|
1196
1197
|
}), e;
|
|
1197
1198
|
}, Qo = (t, e) => e && e.toString() === t.toString();
|
|
1198
1199
|
function er() {
|
|
@@ -1208,7 +1209,7 @@ const ic = (t) => {
|
|
|
1208
1209
|
};
|
|
1209
1210
|
function ac(t) {
|
|
1210
1211
|
const e = q.innerParams.get(t || this), n = q.domCache.get(t || this);
|
|
1211
|
-
return n ?
|
|
1212
|
+
return n ? mo(n.popup, e.input) : null;
|
|
1212
1213
|
}
|
|
1213
1214
|
const $t = {
|
|
1214
1215
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
@@ -1221,8 +1222,8 @@ const $t = {
|
|
|
1221
1222
|
Gr(e), n.toast || (e.keydownHandler = (r) => hc(t, r, o), e.keydownTarget = n.keydownListenerCapture ? window : Z(), e.keydownListenerCapture = n.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
|
|
1222
1223
|
capture: e.keydownListenerCapture
|
|
1223
1224
|
}), e.keydownHandlerAdded = !0);
|
|
1224
|
-
},
|
|
1225
|
-
const o =
|
|
1225
|
+
}, Jn = (t, e, n) => {
|
|
1226
|
+
const o = ho();
|
|
1226
1227
|
if (o.length)
|
|
1227
1228
|
return e = e + n, e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
|
|
1228
1229
|
Z().focus();
|
|
@@ -1236,14 +1237,14 @@ const $t = {
|
|
|
1236
1237
|
Kr(), e.preventDefault();
|
|
1237
1238
|
}
|
|
1238
1239
|
}, mc = (t, e) => {
|
|
1239
|
-
const n = t.target, o =
|
|
1240
|
+
const n = t.target, o = ho();
|
|
1240
1241
|
let r = -1;
|
|
1241
1242
|
for (let s = 0; s < o.length; s++)
|
|
1242
1243
|
if (n === o[s]) {
|
|
1243
1244
|
r = s;
|
|
1244
1245
|
break;
|
|
1245
1246
|
}
|
|
1246
|
-
t.shiftKey ?
|
|
1247
|
+
t.shiftKey ? Jn(e, r, -1) : Jn(e, r, 1), t.stopPropagation(), t.preventDefault();
|
|
1247
1248
|
}, gc = (t) => {
|
|
1248
1249
|
const e = Ue(), n = tt(), o = ct();
|
|
1249
1250
|
if (![e, n, o].includes(document.activeElement))
|
|
@@ -1261,7 +1262,7 @@ const $t = {
|
|
|
1261
1262
|
pn(e.allowEscapeKey) && (t.preventDefault(), n(St.esc));
|
|
1262
1263
|
};
|
|
1263
1264
|
function Yr(t, e, n, o) {
|
|
1264
|
-
bn() ? tr(t, o) : ($i(n).then(() => tr(t, o)), Gr(V)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(),
|
|
1265
|
+
bn() ? tr(t, o) : ($i(n).then(() => tr(t, o)), Gr(V)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), po() && (Ma(), qa(), zr()), yc();
|
|
1265
1266
|
}
|
|
1266
1267
|
function yc() {
|
|
1267
1268
|
Ve(
|
|
@@ -1402,8 +1403,8 @@ function Fc() {
|
|
|
1402
1403
|
const Bc = (t) => {
|
|
1403
1404
|
Qr(t), delete t.params, delete V.keydownHandler, delete V.keydownTarget, delete V.currentInstance;
|
|
1404
1405
|
}, Qr = (t) => {
|
|
1405
|
-
t.isAwaitingPromise() ? (
|
|
1406
|
-
},
|
|
1406
|
+
t.isAwaitingPromise() ? (Fn(q, t), q.awaitingPromise.set(t, !0)) : (Fn($t, t), Fn(q, t));
|
|
1407
|
+
}, Fn = (t, e) => {
|
|
1407
1408
|
for (const n in t)
|
|
1408
1409
|
t[n].delete(e);
|
|
1409
1410
|
}, es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1429,28 +1430,28 @@ const Bc = (t) => {
|
|
|
1429
1430
|
update: Oc
|
|
1430
1431
|
}, Symbol.toStringTag, { value: "Module" })), Nc = (t) => {
|
|
1431
1432
|
const e = q.innerParams.get(t);
|
|
1432
|
-
t.disableButtons(), e.input ? ts(t, "confirm") :
|
|
1433
|
+
t.disableButtons(), e.input ? ts(t, "confirm") : vo(t, !0);
|
|
1433
1434
|
}, Uc = (t) => {
|
|
1434
1435
|
const e = q.innerParams.get(t);
|
|
1435
|
-
t.disableButtons(), e.returnInputValueOnDeny ? ts(t, "deny") :
|
|
1436
|
+
t.disableButtons(), e.returnInputValueOnDeny ? ts(t, "deny") : wo(t, !1);
|
|
1436
1437
|
}, Dc = (t, e) => {
|
|
1437
1438
|
t.disableButtons(), e(St.cancel);
|
|
1438
1439
|
}, ts = (t, e) => {
|
|
1439
1440
|
const n = q.innerParams.get(t);
|
|
1440
1441
|
if (!n.input)
|
|
1441
1442
|
return ut(
|
|
1442
|
-
`The "input" parameter is needed to be set when using returnInputValueOn${
|
|
1443
|
+
`The "input" parameter is needed to be set when using returnInputValueOn${co(e)}`
|
|
1443
1444
|
);
|
|
1444
1445
|
const o = Qa(t, n);
|
|
1445
|
-
n.inputValidator ? Mc(t, o, e) : t.getInput().checkValidity() ? e === "deny" ?
|
|
1446
|
+
n.inputValidator ? Mc(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? wo(t, o) : vo(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
1446
1447
|
}, Mc = (t, e, n) => {
|
|
1447
1448
|
const o = q.innerParams.get(t);
|
|
1448
1449
|
t.disableInput(), Promise.resolve().then(
|
|
1449
1450
|
() => jt(o.inputValidator(e, o.validationMessage))
|
|
1450
1451
|
).then((s) => {
|
|
1451
|
-
t.enableButtons(), t.enableInput(), s ? t.showValidationMessage(s) : n === "deny" ?
|
|
1452
|
+
t.enableButtons(), t.enableInput(), s ? t.showValidationMessage(s) : n === "deny" ? wo(t, e) : vo(t, e);
|
|
1452
1453
|
});
|
|
1453
|
-
},
|
|
1454
|
+
}, wo = (t, e) => {
|
|
1454
1455
|
const n = q.innerParams.get(t || globalThis);
|
|
1455
1456
|
n.showLoaderOnDeny && Et(tt()), n.preDeny ? (q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1456
1457
|
() => jt(n.preDeny(e, n.validationMessage))
|
|
@@ -1461,7 +1462,7 @@ const Bc = (t) => {
|
|
|
1461
1462
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
1462
1463
|
}, ns = (t, e) => {
|
|
1463
1464
|
t.rejectPromise(e);
|
|
1464
|
-
},
|
|
1465
|
+
}, vo = (t, e) => {
|
|
1465
1466
|
const n = q.innerParams.get(t || globalThis);
|
|
1466
1467
|
n.showLoaderOnConfirm && Et(), n.preConfirm ? (t.resetValidationMessage(), q.awaitingPromise.set(t || globalThis, !0), Promise.resolve().then(
|
|
1467
1468
|
() => jt(n.preConfirm(e, n.validationMessage))
|
|
@@ -1523,7 +1524,7 @@ const Yc = () => V.timeout && V.timeout.getTimerLeft(), os = () => {
|
|
|
1523
1524
|
}, rs = () => {
|
|
1524
1525
|
if (V.timeout) {
|
|
1525
1526
|
const t = V.timeout.start();
|
|
1526
|
-
return
|
|
1527
|
+
return go(t), t;
|
|
1527
1528
|
}
|
|
1528
1529
|
}, Xc = () => {
|
|
1529
1530
|
const t = V.timeout;
|
|
@@ -1531,20 +1532,20 @@ const Yc = () => V.timeout && V.timeout.getTimerLeft(), os = () => {
|
|
|
1531
1532
|
}, Zc = (t) => {
|
|
1532
1533
|
if (V.timeout) {
|
|
1533
1534
|
const e = V.timeout.increase(t);
|
|
1534
|
-
return
|
|
1535
|
+
return go(e, !0), e;
|
|
1535
1536
|
}
|
|
1536
1537
|
}, Qc = () => V.timeout && V.timeout.isRunning();
|
|
1537
1538
|
let rr = !1;
|
|
1538
|
-
const
|
|
1539
|
+
const Yn = {};
|
|
1539
1540
|
function el(t = "data-swal-template") {
|
|
1540
|
-
|
|
1541
|
+
Yn[t] = this, rr || (document.body.addEventListener("click", tl), rr = !0);
|
|
1541
1542
|
}
|
|
1542
1543
|
const tl = (t) => {
|
|
1543
1544
|
for (let e = t.target; e && e !== document; e = e.parentNode)
|
|
1544
|
-
for (const n in
|
|
1545
|
+
for (const n in Yn) {
|
|
1545
1546
|
const o = e.getAttribute(n);
|
|
1546
1547
|
if (o) {
|
|
1547
|
-
|
|
1548
|
+
Yn[n].fire({ template: o });
|
|
1548
1549
|
return;
|
|
1549
1550
|
}
|
|
1550
1551
|
}
|
|
@@ -1559,11 +1560,11 @@ const tl = (t) => {
|
|
|
1559
1560
|
fire: Gc,
|
|
1560
1561
|
getActions: Wt,
|
|
1561
1562
|
getCancelButton: ct,
|
|
1562
|
-
getCloseButton:
|
|
1563
|
+
getCloseButton: fo,
|
|
1563
1564
|
getConfirmButton: Ue,
|
|
1564
1565
|
getContainer: me,
|
|
1565
1566
|
getDenyButton: tt,
|
|
1566
|
-
getFocusableElements:
|
|
1567
|
+
getFocusableElements: ho,
|
|
1567
1568
|
getFooter: Nr,
|
|
1568
1569
|
getHtmlContainer: ln,
|
|
1569
1570
|
getIcon: Vt,
|
|
@@ -1576,7 +1577,7 @@ const tl = (t) => {
|
|
|
1576
1577
|
getTitle: Ir,
|
|
1577
1578
|
getValidationMessage: mn,
|
|
1578
1579
|
increaseTimer: Zc,
|
|
1579
|
-
isDeprecatedParameter:
|
|
1580
|
+
isDeprecatedParameter: Kn,
|
|
1580
1581
|
isLoading: Fi,
|
|
1581
1582
|
isTimerRunning: Qc,
|
|
1582
1583
|
isUpdatableParameter: Lr,
|
|
@@ -1588,12 +1589,12 @@ const tl = (t) => {
|
|
|
1588
1589
|
stopTimer: os,
|
|
1589
1590
|
toggleTimer: Xc
|
|
1590
1591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1591
|
-
let
|
|
1592
|
+
let Xn;
|
|
1592
1593
|
class _t {
|
|
1593
1594
|
constructor(...e) {
|
|
1594
1595
|
if (typeof window > "u")
|
|
1595
1596
|
return;
|
|
1596
|
-
|
|
1597
|
+
Xn = this;
|
|
1597
1598
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
1598
1599
|
Object.defineProperties(this, {
|
|
1599
1600
|
params: {
|
|
@@ -1607,7 +1608,7 @@ class _t {
|
|
|
1607
1608
|
q.promise.set(this, o);
|
|
1608
1609
|
}
|
|
1609
1610
|
_main(e, n = {}) {
|
|
1610
|
-
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(),
|
|
1611
|
+
Ri(Object.assign({}, n, e)), V.currentInstance && (V.currentInstance._destroy(), po() && zr()), V.currentInstance = this;
|
|
1611
1612
|
const o = rl(e, n);
|
|
1612
1613
|
Na(o), Object.freeze(o), V.timeout && (V.timeout.stop(), delete V.timeout), clearTimeout(V.restoreFocusTimeout);
|
|
1613
1614
|
const r = sl(this);
|
|
@@ -1640,7 +1641,7 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1640
1641
|
denyButton: tt(),
|
|
1641
1642
|
cancelButton: ct(),
|
|
1642
1643
|
loader: xt(),
|
|
1643
|
-
closeButton:
|
|
1644
|
+
closeButton: fo(),
|
|
1644
1645
|
validationMessage: mn(),
|
|
1645
1646
|
progressSteps: Br()
|
|
1646
1647
|
};
|
|
@@ -1650,13 +1651,13 @@ const ol = (t, e, n) => new Promise((o, r) => {
|
|
|
1650
1651
|
ge(o), e.timer && (t.timeout = new Ua(() => {
|
|
1651
1652
|
n("timer"), delete t.timeout;
|
|
1652
1653
|
}, e.timer), e.timerProgressBar && (ue(o), Fe(o, e, "timerProgressBar"), setTimeout(() => {
|
|
1653
|
-
t.timeout && t.timeout.running &&
|
|
1654
|
+
t.timeout && t.timeout.running && go(e.timer);
|
|
1654
1655
|
})));
|
|
1655
1656
|
}, al = (t, e) => {
|
|
1656
1657
|
if (!e.toast) {
|
|
1657
1658
|
if (!pn(e.allowEnterKey))
|
|
1658
1659
|
return ll();
|
|
1659
|
-
cl(t, e) ||
|
|
1660
|
+
cl(t, e) || Jn(e, -1, 1);
|
|
1660
1661
|
}
|
|
1661
1662
|
}, cl = (t, e) => e.focusDeny && Pe(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Pe(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Pe(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, ll = () => {
|
|
1662
1663
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
@@ -1665,8 +1666,8 @@ Object.assign(_t.prototype, es);
|
|
|
1665
1666
|
Object.assign(_t, nl);
|
|
1666
1667
|
Object.keys(es).forEach((t) => {
|
|
1667
1668
|
_t[t] = function(...e) {
|
|
1668
|
-
if (
|
|
1669
|
-
return
|
|
1669
|
+
if (Xn)
|
|
1670
|
+
return Xn[t](...e);
|
|
1670
1671
|
};
|
|
1671
1672
|
});
|
|
1672
1673
|
_t.DismissReason = St;
|
|
@@ -1686,8 +1687,8 @@ let {
|
|
|
1686
1687
|
seal: De,
|
|
1687
1688
|
create: as
|
|
1688
1689
|
} = Object, {
|
|
1689
|
-
apply:
|
|
1690
|
-
construct:
|
|
1690
|
+
apply: Zn,
|
|
1691
|
+
construct: Qn
|
|
1691
1692
|
} = typeof Reflect < "u" && Reflect;
|
|
1692
1693
|
Ae || (Ae = function(e) {
|
|
1693
1694
|
return e;
|
|
@@ -1695,25 +1696,25 @@ Ae || (Ae = function(e) {
|
|
|
1695
1696
|
De || (De = function(e) {
|
|
1696
1697
|
return e;
|
|
1697
1698
|
});
|
|
1698
|
-
|
|
1699
|
+
Zn || (Zn = function(e, n, o) {
|
|
1699
1700
|
return e.apply(n, o);
|
|
1700
1701
|
});
|
|
1701
|
-
|
|
1702
|
+
Qn || (Qn = function(e, n) {
|
|
1702
1703
|
return new e(...n);
|
|
1703
1704
|
});
|
|
1704
|
-
const en = Be(Array.prototype.forEach), ir = Be(Array.prototype.pop), Rt = Be(Array.prototype.push), on = Be(String.prototype.toLowerCase),
|
|
1705
|
+
const en = Be(Array.prototype.forEach), ir = Be(Array.prototype.pop), Rt = Be(Array.prototype.push), on = Be(String.prototype.toLowerCase), Bn = Be(String.prototype.toString), fl = Be(String.prototype.match), Lt = Be(String.prototype.replace), hl = Be(String.prototype.indexOf), pl = Be(String.prototype.trim), Te = Be(RegExp.prototype.test), Ot = ml(TypeError);
|
|
1705
1706
|
function Be(t) {
|
|
1706
1707
|
return function(e) {
|
|
1707
1708
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
1708
1709
|
o[r - 1] = arguments[r];
|
|
1709
|
-
return
|
|
1710
|
+
return Zn(t, e, o);
|
|
1710
1711
|
};
|
|
1711
1712
|
}
|
|
1712
1713
|
function ml(t) {
|
|
1713
1714
|
return function() {
|
|
1714
1715
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
1715
1716
|
n[o] = arguments[o];
|
|
1716
|
-
return
|
|
1717
|
+
return Qn(t, n);
|
|
1717
1718
|
};
|
|
1718
1719
|
}
|
|
1719
1720
|
function W(t, e) {
|
|
@@ -1752,7 +1753,7 @@ function tn(t, e) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
return n;
|
|
1754
1755
|
}
|
|
1755
|
-
const ar = Ae(["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"]),
|
|
1756
|
+
const ar = Ae(["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"]), Nn = Ae(["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 = Ae(["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"]), gl = Ae(["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 = Ae(["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"]), bl = Ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), cr = Ae(["#text"]), lr = Ae(["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"]), Mn = Ae(["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"]), ur = Ae(["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"]), nn = Ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), yl = De(/\{\{[\w\W]*|[\w\W]*\}\}/gm), wl = De(/<%[\w\W]*|[\w\W]*%>/gm), vl = De(/\${[\w\W]*}/gm), Al = De(/^data-[\-\w.\u00B7-\uFFFF]/), El = De(/^aria-[\-\w]+$/), cs = De(
|
|
1756
1757
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1757
1758
|
// eslint-disable-line no-useless-escape
|
|
1758
1759
|
), kl = De(/^(?:\w+script|data):/i), xl = De(
|
|
@@ -1810,8 +1811,8 @@ function us() {
|
|
|
1810
1811
|
NamedNodeMap: w = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
1811
1812
|
HTMLFormElement: b,
|
|
1812
1813
|
DOMParser: G,
|
|
1813
|
-
trustedTypes:
|
|
1814
|
-
} = t, I = l.prototype, F = tn(I, "cloneNode"),
|
|
1814
|
+
trustedTypes: M
|
|
1815
|
+
} = t, I = l.prototype, F = tn(I, "cloneNode"), D = tn(I, "nextSibling"), Q = tn(I, "childNodes"), ne = tn(I, "parentNode");
|
|
1815
1816
|
if (typeof a == "function") {
|
|
1816
1817
|
const B = n.createElement("template");
|
|
1817
1818
|
B.content && B.content.ownerDocument && (n = B.content.ownerDocument);
|
|
@@ -1839,9 +1840,9 @@ function us() {
|
|
|
1839
1840
|
let {
|
|
1840
1841
|
IS_ALLOWED_URI: ye
|
|
1841
1842
|
} = dr, U = null;
|
|
1842
|
-
const Ee = W({}, [...ar, ...
|
|
1843
|
+
const Ee = W({}, [...ar, ...Nn, ...Un, ...Dn, ...cr]);
|
|
1843
1844
|
let i = null;
|
|
1844
|
-
const u = W({}, [...lr, ...
|
|
1845
|
+
const u = W({}, [...lr, ...Mn, ...ur, ...nn]);
|
|
1845
1846
|
let p = Object.seal(as(null, {
|
|
1846
1847
|
tagNameCheck: {
|
|
1847
1848
|
writable: !0,
|
|
@@ -1861,52 +1862,52 @@ function us() {
|
|
|
1861
1862
|
enumerable: !0,
|
|
1862
1863
|
value: !1
|
|
1863
1864
|
}
|
|
1864
|
-
})), E = null, g = null, P = !0, A = !0, k = !1, L = !0, R = !1, $ = !1, K = !1, ke = !1, we = !1, le = !1, Me = !1,
|
|
1865
|
+
})), E = null, g = null, P = !0, A = !0, k = !1, L = !0, R = !1, $ = !1, K = !1, ke = !1, we = !1, le = !1, Me = !1, Co = !0, To = !1;
|
|
1865
1866
|
const Bs = "user-content-";
|
|
1866
1867
|
let Sn = !0, Tt = !1, dt = {}, ft = null;
|
|
1867
|
-
const
|
|
1868
|
-
let
|
|
1869
|
-
const
|
|
1868
|
+
const Po = W({}, ["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"]);
|
|
1869
|
+
let Ro = null;
|
|
1870
|
+
const Lo = W({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1870
1871
|
let _n = null;
|
|
1871
|
-
const
|
|
1872
|
+
const Oo = W({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Yt = "http://www.w3.org/1998/Math/MathML", Xt = "http://www.w3.org/2000/svg", Ke = "http://www.w3.org/1999/xhtml";
|
|
1872
1873
|
let ht = Ke, Cn = !1, Tn = null;
|
|
1873
|
-
const Ns = W({}, [Yt, Xt, Ke],
|
|
1874
|
+
const Ns = W({}, [Yt, Xt, Ke], Bn);
|
|
1874
1875
|
let nt = null;
|
|
1875
1876
|
const Us = ["application/xhtml+xml", "text/html"], Ds = "text/html";
|
|
1876
1877
|
let ce = null, pt = null;
|
|
1877
|
-
const Ms = n.createElement("form"),
|
|
1878
|
+
const Ms = n.createElement("form"), Io = function(c) {
|
|
1878
1879
|
return c instanceof RegExp || c instanceof Function;
|
|
1879
1880
|
}, Pn = function() {
|
|
1880
1881
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1881
1882
|
if (!(pt && pt === c)) {
|
|
1882
1883
|
if ((!c || typeof c != "object") && (c = {}), c = mt(c), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1883
|
-
Us.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? nt = Ds : nt = c.PARSER_MEDIA_TYPE, ce = nt === "application/xhtml+xml" ?
|
|
1884
|
-
mt(
|
|
1884
|
+
Us.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? nt = Ds : nt = c.PARSER_MEDIA_TYPE, ce = nt === "application/xhtml+xml" ? Bn : on, U = "ALLOWED_TAGS" in c ? W({}, c.ALLOWED_TAGS, ce) : Ee, i = "ALLOWED_ATTR" in c ? W({}, c.ALLOWED_ATTR, ce) : u, Tn = "ALLOWED_NAMESPACES" in c ? W({}, c.ALLOWED_NAMESPACES, Bn) : Ns, _n = "ADD_URI_SAFE_ATTR" in c ? W(
|
|
1885
|
+
mt(Oo),
|
|
1885
1886
|
// eslint-disable-line indent
|
|
1886
1887
|
c.ADD_URI_SAFE_ATTR,
|
|
1887
1888
|
// eslint-disable-line indent
|
|
1888
1889
|
ce
|
|
1889
1890
|
// eslint-disable-line indent
|
|
1890
|
-
) :
|
|
1891
|
-
mt(
|
|
1891
|
+
) : Oo, Ro = "ADD_DATA_URI_TAGS" in c ? W(
|
|
1892
|
+
mt(Lo),
|
|
1892
1893
|
// eslint-disable-line indent
|
|
1893
1894
|
c.ADD_DATA_URI_TAGS,
|
|
1894
1895
|
// eslint-disable-line indent
|
|
1895
1896
|
ce
|
|
1896
1897
|
// eslint-disable-line indent
|
|
1897
|
-
) :
|
|
1898
|
+
) : Lo, ft = "FORBID_CONTENTS" in c ? W({}, c.FORBID_CONTENTS, ce) : Po, E = "FORBID_TAGS" in c ? W({}, c.FORBID_TAGS, ce) : {}, g = "FORBID_ATTR" in c ? W({}, c.FORBID_ATTR, ce) : {}, dt = "USE_PROFILES" in c ? c.USE_PROFILES : !1, P = c.ALLOW_ARIA_ATTR !== !1, A = c.ALLOW_DATA_ATTR !== !1, k = c.ALLOW_UNKNOWN_PROTOCOLS || !1, L = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = c.SAFE_FOR_TEMPLATES || !1, $ = c.WHOLE_DOCUMENT || !1, we = c.RETURN_DOM || !1, le = c.RETURN_DOM_FRAGMENT || !1, Me = c.RETURN_TRUSTED_TYPE || !1, ke = c.FORCE_BODY || !1, Co = c.SANITIZE_DOM !== !1, To = c.SANITIZE_NAMED_PROPS || !1, Sn = c.KEEP_CONTENT !== !1, Tt = c.IN_PLACE || !1, ye = c.ALLOWED_URI_REGEXP || cs, ht = c.NAMESPACE || Ke, p = c.CUSTOM_ELEMENT_HANDLING || {}, c.CUSTOM_ELEMENT_HANDLING && Io(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (p.tagNameCheck = c.CUSTOM_ELEMENT_HANDLING.tagNameCheck), c.CUSTOM_ELEMENT_HANDLING && Io(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (p.attributeNameCheck = c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (p.allowCustomizedBuiltInElements = c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), R && (A = !1), le && (we = !0), dt && (U = W({}, [...cr]), i = [], dt.html === !0 && (W(U, ar), W(i, lr)), dt.svg === !0 && (W(U, Nn), W(i, Mn), W(i, nn)), dt.svgFilters === !0 && (W(U, Un), W(i, Mn), W(i, nn)), dt.mathMl === !0 && (W(U, Dn), W(i, ur), W(i, nn))), c.ADD_TAGS && (U === Ee && (U = mt(U)), W(U, c.ADD_TAGS, ce)), c.ADD_ATTR && (i === u && (i = mt(i)), W(i, c.ADD_ATTR, ce)), c.ADD_URI_SAFE_ATTR && W(_n, c.ADD_URI_SAFE_ATTR, ce), c.FORBID_CONTENTS && (ft === Po && (ft = mt(ft)), W(ft, c.FORBID_CONTENTS, ce)), Sn && (U["#text"] = !0), $ && W(U, ["html", "head", "body"]), U.table && (W(U, ["tbody"]), delete E.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
1898
1899
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1899
1900
|
throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1900
1901
|
if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1901
1902
|
throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1902
1903
|
H = c.TRUSTED_TYPES_POLICY, be = H.createHTML("");
|
|
1903
1904
|
} else
|
|
1904
|
-
H === void 0 && (H = _l(
|
|
1905
|
+
H === void 0 && (H = _l(M, r)), H !== null && typeof be == "string" && (be = H.createHTML(""));
|
|
1905
1906
|
Ae && Ae(c), pt = c;
|
|
1906
1907
|
}
|
|
1907
|
-
},
|
|
1908
|
-
W(Zt,
|
|
1909
|
-
const Rn = W({},
|
|
1908
|
+
}, Fo = W({}, ["mi", "mo", "mn", "ms", "mtext"]), Bo = W({}, ["foreignobject", "desc", "title", "annotation-xml"]), $s = W({}, ["title", "style", "font", "a", "script"]), Zt = W({}, Nn);
|
|
1909
|
+
W(Zt, Un), W(Zt, gl);
|
|
1910
|
+
const Rn = W({}, Dn);
|
|
1910
1911
|
W(Rn, bl);
|
|
1911
1912
|
const Hs = function(c) {
|
|
1912
1913
|
let x = ne(c);
|
|
@@ -1915,7 +1916,7 @@ function us() {
|
|
|
1915
1916
|
tagName: "template"
|
|
1916
1917
|
});
|
|
1917
1918
|
const O = on(c.tagName), te = on(x.tagName);
|
|
1918
|
-
return Tn[c.namespaceURI] ? c.namespaceURI === Xt ? x.namespaceURI === Ke ? O === "svg" : x.namespaceURI === Yt ? O === "svg" && (te === "annotation-xml" ||
|
|
1919
|
+
return Tn[c.namespaceURI] ? c.namespaceURI === Xt ? x.namespaceURI === Ke ? O === "svg" : x.namespaceURI === Yt ? O === "svg" && (te === "annotation-xml" || Fo[te]) : !!Zt[O] : c.namespaceURI === Yt ? x.namespaceURI === Ke ? O === "math" : x.namespaceURI === Xt ? O === "math" && Bo[te] : !!Rn[O] : c.namespaceURI === Ke ? x.namespaceURI === Xt && !Bo[te] || x.namespaceURI === Yt && !Fo[te] ? !1 : !Rn[O] && ($s[O] || !Zt[O]) : !!(nt === "application/xhtml+xml" && Tn[c.namespaceURI]) : !1;
|
|
1919
1920
|
}, ot = function(c) {
|
|
1920
1921
|
Rt(e.removed, {
|
|
1921
1922
|
element: c
|
|
@@ -1948,7 +1949,7 @@ function us() {
|
|
|
1948
1949
|
x.setAttribute(c, "");
|
|
1949
1950
|
} catch {
|
|
1950
1951
|
}
|
|
1951
|
-
},
|
|
1952
|
+
}, No = function(c) {
|
|
1952
1953
|
let x = null, O = null;
|
|
1953
1954
|
if (ke)
|
|
1954
1955
|
c = "<remove></remove>" + c;
|
|
@@ -1972,7 +1973,7 @@ function us() {
|
|
|
1972
1973
|
}
|
|
1973
1974
|
const de = x.body || x.documentElement;
|
|
1974
1975
|
return c && O && de.insertBefore(n.createTextNode(O), de.childNodes[0] || null), ht === Ke ? N.call(x, $ ? "html" : "body")[0] : $ ? x.documentElement : de;
|
|
1975
|
-
},
|
|
1976
|
+
}, Uo = function(c) {
|
|
1976
1977
|
return m.call(
|
|
1977
1978
|
c.ownerDocument || c,
|
|
1978
1979
|
c,
|
|
@@ -1982,13 +1983,13 @@ function us() {
|
|
|
1982
1983
|
);
|
|
1983
1984
|
}, js = function(c) {
|
|
1984
1985
|
return c instanceof b && (typeof c.nodeName != "string" || typeof c.textContent != "string" || typeof c.removeChild != "function" || !(c.attributes instanceof w) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function");
|
|
1985
|
-
},
|
|
1986
|
+
}, Do = function(c) {
|
|
1986
1987
|
return typeof d == "function" && c instanceof d;
|
|
1987
1988
|
}, Ge = function(c, x, O) {
|
|
1988
1989
|
_[c] && en(_[c], (te) => {
|
|
1989
1990
|
te.call(e, x, O, pt);
|
|
1990
1991
|
});
|
|
1991
|
-
},
|
|
1992
|
+
}, Mo = function(c) {
|
|
1992
1993
|
let x = null;
|
|
1993
1994
|
if (Ge("beforeSanitizeElements", c, null), js(c))
|
|
1994
1995
|
return ot(c), !0;
|
|
@@ -1996,17 +1997,17 @@ function us() {
|
|
|
1996
1997
|
if (Ge("uponSanitizeElement", c, {
|
|
1997
1998
|
tagName: O,
|
|
1998
1999
|
allowedTags: U
|
|
1999
|
-
}), c.hasChildNodes() && !
|
|
2000
|
+
}), c.hasChildNodes() && !Do(c.firstElementChild) && Te(/<[/\w]/g, c.innerHTML) && Te(/<[/\w]/g, c.textContent))
|
|
2000
2001
|
return ot(c), !0;
|
|
2001
2002
|
if (!U[O] || E[O]) {
|
|
2002
|
-
if (!E[O] &&
|
|
2003
|
+
if (!E[O] && Ho(O) && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, O) || p.tagNameCheck instanceof Function && p.tagNameCheck(O)))
|
|
2003
2004
|
return !1;
|
|
2004
2005
|
if (Sn && !ft[O]) {
|
|
2005
2006
|
const te = ne(c) || c.parentNode, de = Q(c) || c.childNodes;
|
|
2006
2007
|
if (de && te) {
|
|
2007
2008
|
const fe = de.length;
|
|
2008
2009
|
for (let xe = fe - 1; xe >= 0; --xe)
|
|
2009
|
-
te.insertBefore(F(de[xe], !0),
|
|
2010
|
+
te.insertBefore(F(de[xe], !0), D(c));
|
|
2010
2011
|
}
|
|
2011
2012
|
}
|
|
2012
2013
|
return ot(c), !0;
|
|
@@ -2016,8 +2017,8 @@ function us() {
|
|
|
2016
2017
|
}), c.textContent !== x && (Rt(e.removed, {
|
|
2017
2018
|
element: c.cloneNode()
|
|
2018
2019
|
}), c.textContent = x)), Ge("afterSanitizeElements", c, null), !1);
|
|
2019
|
-
},
|
|
2020
|
-
if (
|
|
2020
|
+
}, $o = function(c, x, O) {
|
|
2021
|
+
if (Co && (x === "id" || x === "name") && (O in n || O in Ms))
|
|
2021
2022
|
return !1;
|
|
2022
2023
|
if (!(A && !g[x] && Te(z, x))) {
|
|
2023
2024
|
if (!(P && Te(ee, x))) {
|
|
@@ -2026,14 +2027,14 @@ function us() {
|
|
|
2026
2027
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2027
2028
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2028
2029
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2029
|
-
!(
|
|
2030
|
+
!(Ho(c) && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, c) || p.tagNameCheck instanceof Function && p.tagNameCheck(c)) && (p.attributeNameCheck instanceof RegExp && Te(p.attributeNameCheck, x) || p.attributeNameCheck instanceof Function && p.attributeNameCheck(x)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2030
2031
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2031
2032
|
x === "is" && p.allowCustomizedBuiltInElements && (p.tagNameCheck instanceof RegExp && Te(p.tagNameCheck, O) || p.tagNameCheck instanceof Function && p.tagNameCheck(O)))
|
|
2032
2033
|
)
|
|
2033
2034
|
return !1;
|
|
2034
2035
|
} else if (!_n[x]) {
|
|
2035
2036
|
if (!Te(ye, Lt(O, re, ""))) {
|
|
2036
|
-
if (!((x === "src" || x === "xlink:href" || x === "href") && c !== "script" && hl(O, "data:") === 0 &&
|
|
2037
|
+
if (!((x === "src" || x === "xlink:href" || x === "href") && c !== "script" && hl(O, "data:") === 0 && Ro[c])) {
|
|
2037
2038
|
if (!(k && !Te(ie, Lt(O, re, "")))) {
|
|
2038
2039
|
if (O)
|
|
2039
2040
|
return !1;
|
|
@@ -2044,9 +2045,9 @@ function us() {
|
|
|
2044
2045
|
}
|
|
2045
2046
|
}
|
|
2046
2047
|
return !0;
|
|
2047
|
-
}, $o = function(c) {
|
|
2048
|
-
return c.indexOf("-") > 0;
|
|
2049
2048
|
}, Ho = function(c) {
|
|
2049
|
+
return c.indexOf("-") > 0;
|
|
2050
|
+
}, jo = function(c) {
|
|
2050
2051
|
Ge("beforeSanitizeAttributes", c, null);
|
|
2051
2052
|
const {
|
|
2052
2053
|
attributes: x
|
|
@@ -2073,13 +2074,13 @@ function us() {
|
|
|
2073
2074
|
Ln(fe, c);
|
|
2074
2075
|
continue;
|
|
2075
2076
|
}
|
|
2076
|
-
R && en([S, j, v], (
|
|
2077
|
-
Se = Lt(Se,
|
|
2077
|
+
R && en([S, j, v], (Vo) => {
|
|
2078
|
+
Se = Lt(Se, Vo, " ");
|
|
2078
2079
|
});
|
|
2079
|
-
const
|
|
2080
|
-
if (
|
|
2081
|
-
if (
|
|
2082
|
-
switch (
|
|
2080
|
+
const zo = ce(c.nodeName);
|
|
2081
|
+
if ($o(zo, Pt, Se)) {
|
|
2082
|
+
if (To && (Pt === "id" || Pt === "name") && (Ln(fe, c), Se = Bs + Se), H && typeof M == "object" && typeof M.getAttributeType == "function" && !xe)
|
|
2083
|
+
switch (M.getAttributeType(zo, Pt)) {
|
|
2083
2084
|
case "TrustedHTML": {
|
|
2084
2085
|
Se = H.createHTML(Se);
|
|
2085
2086
|
break;
|
|
@@ -2098,14 +2099,14 @@ function us() {
|
|
|
2098
2099
|
Ge("afterSanitizeAttributes", c, null);
|
|
2099
2100
|
}, zs = function B(c) {
|
|
2100
2101
|
let x = null;
|
|
2101
|
-
const O =
|
|
2102
|
+
const O = Uo(c);
|
|
2102
2103
|
for (Ge("beforeSanitizeShadowDOM", c, null); x = O.nextNode(); )
|
|
2103
|
-
Ge("uponSanitizeShadowNode", x, null), !
|
|
2104
|
+
Ge("uponSanitizeShadowNode", x, null), !Mo(x) && (x.content instanceof s && B(x.content), jo(x));
|
|
2104
2105
|
Ge("afterSanitizeShadowDOM", c, null);
|
|
2105
2106
|
};
|
|
2106
2107
|
return e.sanitize = function(B) {
|
|
2107
2108
|
let c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, O = null, te = null, de = null;
|
|
2108
|
-
if (Cn = !B, Cn && (B = "<!-->"), typeof B != "string" && !
|
|
2109
|
+
if (Cn = !B, Cn && (B = "<!-->"), typeof B != "string" && !Do(B))
|
|
2109
2110
|
if (typeof B.toString == "function") {
|
|
2110
2111
|
if (B = B.toString(), typeof B != "string")
|
|
2111
2112
|
throw Ot("dirty is not a string, aborting");
|
|
@@ -2120,18 +2121,18 @@ function us() {
|
|
|
2120
2121
|
throw Ot("root node is forbidden and cannot be sanitized in-place");
|
|
2121
2122
|
}
|
|
2122
2123
|
} else if (B instanceof d)
|
|
2123
|
-
x =
|
|
2124
|
+
x = No("<!---->"), O = x.ownerDocument.importNode(B, !0), O.nodeType === 1 && O.nodeName === "BODY" || O.nodeName === "HTML" ? x = O : x.appendChild(O);
|
|
2124
2125
|
else {
|
|
2125
2126
|
if (!we && !R && !$ && // eslint-disable-next-line unicorn/prefer-includes
|
|
2126
2127
|
B.indexOf("<") === -1)
|
|
2127
2128
|
return H && Me ? H.createHTML(B) : B;
|
|
2128
|
-
if (x =
|
|
2129
|
+
if (x = No(B), !x)
|
|
2129
2130
|
return we ? null : Me ? be : "";
|
|
2130
2131
|
}
|
|
2131
2132
|
x && ke && ot(x.firstChild);
|
|
2132
|
-
const fe =
|
|
2133
|
+
const fe = Uo(Tt ? B : x);
|
|
2133
2134
|
for (; te = fe.nextNode(); )
|
|
2134
|
-
|
|
2135
|
+
Mo(te) || (te.content instanceof s && zs(te.content), jo(te));
|
|
2135
2136
|
if (Tt)
|
|
2136
2137
|
return B;
|
|
2137
2138
|
if (we) {
|
|
@@ -2155,7 +2156,7 @@ function us() {
|
|
|
2155
2156
|
}, e.isValidAttribute = function(B, c, x) {
|
|
2156
2157
|
pt || Pn({});
|
|
2157
2158
|
const O = ce(B), te = ce(c);
|
|
2158
|
-
return
|
|
2159
|
+
return $o(O, te, x);
|
|
2159
2160
|
}, e.addHook = function(B, c) {
|
|
2160
2161
|
typeof c == "function" && (_[B] = _[B] || [], Rt(_[B], c));
|
|
2161
2162
|
}, e.removeHook = function(B) {
|
|
@@ -2220,7 +2221,7 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2220
2221
|
let w = "?";
|
|
2221
2222
|
if (!y)
|
|
2222
2223
|
return w;
|
|
2223
|
-
const b = y.split(" ").filter((
|
|
2224
|
+
const b = y.split(" ").filter((M) => M.length > 0).map((M) => M[0].toUpperCase()), G = Math.min(2, b.length);
|
|
2224
2225
|
return w = b.slice(0, G).join(""), w.length > 0 ? w : "?";
|
|
2225
2226
|
}
|
|
2226
2227
|
const d = Ys(() => {
|
|
@@ -2229,7 +2230,7 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2229
2230
|
}), l = ze(!1);
|
|
2230
2231
|
return hn(() => {
|
|
2231
2232
|
o.value = a();
|
|
2232
|
-
}), (y, w) => (oe(), pe(
|
|
2233
|
+
}), (y, w) => (oe(), pe(io, null, [
|
|
2233
2234
|
Y("div", {
|
|
2234
2235
|
id: "sf-header-avatar",
|
|
2235
2236
|
"data-cor": d.value,
|
|
@@ -2241,16 +2242,16 @@ const Tl = new Cl(), Pl = () => Tl, Rl = ["data-cor"], Ll = { class: "sf-p-4" },
|
|
|
2241
2242
|
position: "right"
|
|
2242
2243
|
}, {
|
|
2243
2244
|
title: yt(() => [
|
|
2244
|
-
|
|
2245
|
+
qn("Minha conta")
|
|
2245
2246
|
]),
|
|
2246
2247
|
default: yt(() => [
|
|
2247
2248
|
Y("div", Ll, [
|
|
2248
2249
|
et(vi, {
|
|
2249
|
-
color: He(
|
|
2250
|
+
color: He(ao).Error,
|
|
2250
2251
|
onClick: s
|
|
2251
2252
|
}, {
|
|
2252
2253
|
default: yt(() => [
|
|
2253
|
-
|
|
2254
|
+
qn("Sair")
|
|
2254
2255
|
]),
|
|
2255
2256
|
_: 1
|
|
2256
2257
|
}, 8, ["color"])
|
|
@@ -2299,7 +2300,7 @@ class Ml {
|
|
|
2299
2300
|
this.EnableLightMode();
|
|
2300
2301
|
}
|
|
2301
2302
|
}
|
|
2302
|
-
const
|
|
2303
|
+
const eo = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<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), Hl = [
|
|
2303
2304
|
$l
|
|
2304
2305
|
], jl = /* @__PURE__ */ We({
|
|
2305
2306
|
__name: "ThemeToggle",
|
|
@@ -2307,7 +2308,7 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2307
2308
|
return (e, n) => (oe(), pe("button", {
|
|
2308
2309
|
id: "sf-theme-toggle",
|
|
2309
2310
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2310
|
-
(...o) => He(
|
|
2311
|
+
(...o) => He(eo).Toggle && He(eo).Toggle(...o))
|
|
2311
2312
|
}, Hl));
|
|
2312
2313
|
}
|
|
2313
2314
|
}), zl = { id: "sf-layout" }, Vl = /* @__PURE__ */ Y("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), Wl = { class: "title" }, ql = { class: "sf-layout-nav-content" }, Kl = /* @__PURE__ */ Y("section", { id: "sf-layout-page-title" }, null, -1), Gl = { id: "sf-layout-content" }, Wd = /* @__PURE__ */ We({
|
|
@@ -2528,20 +2529,20 @@ const Qn = (() => new Ml())(), $l = /* @__PURE__ */ Xs('<svg xmlns="http://www.w
|
|
|
2528
2529
|
ref_key: "trackerContainer",
|
|
2529
2530
|
ref: n
|
|
2530
2531
|
}, [
|
|
2531
|
-
(oe(!0), pe(
|
|
2532
|
+
(oe(!0), pe(io, null, Qs(e.tabs, (b) => (oe(), at(w, {
|
|
2532
2533
|
to: b.route,
|
|
2533
2534
|
custom: !0
|
|
2534
2535
|
}, {
|
|
2535
|
-
default: yt(({ navigate: G, isActive:
|
|
2536
|
-
Y("li", { "data-active":
|
|
2536
|
+
default: yt(({ navigate: G, isActive: M }) => [
|
|
2537
|
+
Y("li", { "data-active": M }, [
|
|
2537
2538
|
Oe(l.$slots, "item", {
|
|
2538
2539
|
item: b,
|
|
2539
2540
|
navigate: G,
|
|
2540
|
-
isActive:
|
|
2541
|
+
isActive: M
|
|
2541
2542
|
}, () => [
|
|
2542
2543
|
Y("a", {
|
|
2543
2544
|
href: b.route,
|
|
2544
|
-
class: ve({ active:
|
|
2545
|
+
class: ve({ active: M }),
|
|
2545
2546
|
onClick: G
|
|
2546
2547
|
}, fn(b.text), 11, nu)
|
|
2547
2548
|
])
|
|
@@ -2587,9 +2588,9 @@ var wn = {};
|
|
|
2587
2588
|
wn.byteLength = uu;
|
|
2588
2589
|
wn.toByteArray = fu;
|
|
2589
2590
|
wn.fromByteArray = mu;
|
|
2590
|
-
var $e = [], Le = [], cu = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
2591
|
-
for (var gt = 0, lu =
|
|
2592
|
-
$e[gt] =
|
|
2591
|
+
var $e = [], Le = [], cu = typeof Uint8Array < "u" ? Uint8Array : Array, $n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2592
|
+
for (var gt = 0, lu = $n.length; gt < lu; ++gt)
|
|
2593
|
+
$e[gt] = $n[gt], Le[$n.charCodeAt(gt)] = gt;
|
|
2593
2594
|
Le["-".charCodeAt(0)] = 62;
|
|
2594
2595
|
Le["_".charCodeAt(0)] = 63;
|
|
2595
2596
|
function ds(t) {
|
|
@@ -2715,7 +2716,7 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2715
2716
|
2756734187,
|
|
2716
2717
|
3204031479,
|
|
2717
2718
|
3329325298
|
|
2718
|
-
], G = ["hex", "array", "digest", "arrayBuffer"],
|
|
2719
|
+
], G = ["hex", "array", "digest", "arrayBuffer"], M = [];
|
|
2719
2720
|
(o.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(m) {
|
|
2720
2721
|
return Object.prototype.toString.call(m) === "[object Array]";
|
|
2721
2722
|
}), d && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(m) {
|
|
@@ -2727,7 +2728,7 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2727
2728
|
};
|
|
2728
2729
|
}, F = function(m) {
|
|
2729
2730
|
var C = I("hex", m);
|
|
2730
|
-
s && (C =
|
|
2731
|
+
s && (C = D(C, m)), C.create = function() {
|
|
2731
2732
|
return new H(m);
|
|
2732
2733
|
}, C.update = function(_) {
|
|
2733
2734
|
return C.create().update(_);
|
|
@@ -2737,7 +2738,7 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2737
2738
|
C[T] = I(T, m);
|
|
2738
2739
|
}
|
|
2739
2740
|
return C;
|
|
2740
|
-
},
|
|
2741
|
+
}, D = function(m, C) {
|
|
2741
2742
|
var N = hr, T = hr.Buffer, _ = C ? "sha224" : "sha256", S;
|
|
2742
2743
|
T.from && !o.JS_SHA256_NO_BUFFER_FROM ? S = T.from : S = function(v) {
|
|
2743
2744
|
return new T(v);
|
|
@@ -2768,7 +2769,7 @@ const gu = {}, bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2768
2769
|
return C;
|
|
2769
2770
|
};
|
|
2770
2771
|
function H(m, C) {
|
|
2771
|
-
C ? (
|
|
2772
|
+
C ? (M[0] = M[16] = M[1] = M[2] = M[3] = M[4] = M[5] = M[6] = M[7] = M[8] = M[9] = M[10] = M[11] = M[12] = M[13] = M[14] = M[15] = 0, this.blocks = M) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], m ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = m;
|
|
2772
2773
|
}
|
|
2773
2774
|
H.prototype.update = function(m) {
|
|
2774
2775
|
if (!this.finalized) {
|
|
@@ -2917,7 +2918,7 @@ function Au(t) {
|
|
|
2917
2918
|
return atob(e);
|
|
2918
2919
|
}
|
|
2919
2920
|
}
|
|
2920
|
-
function
|
|
2921
|
+
function Hn(t, e) {
|
|
2921
2922
|
if (typeof t != "string")
|
|
2922
2923
|
throw new Bt("Invalid token specified: must be a string");
|
|
2923
2924
|
e || (e = {});
|
|
@@ -3071,9 +3072,9 @@ function hs(t) {
|
|
|
3071
3072
|
return u;
|
|
3072
3073
|
}
|
|
3073
3074
|
function G(i) {
|
|
3074
|
-
return
|
|
3075
|
+
return M(i, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
|
|
3075
3076
|
}
|
|
3076
|
-
function
|
|
3077
|
+
function M(i, u) {
|
|
3077
3078
|
for (var p = b(i), E = new Array(i), g = 0; g < i; g++)
|
|
3078
3079
|
E[g] = u.charCodeAt(p[g] % u.length);
|
|
3079
3080
|
return String.fromCharCode.apply(null, E);
|
|
@@ -3128,7 +3129,7 @@ function hs(t) {
|
|
|
3128
3129
|
}, e.createRegisterUrl = function(i) {
|
|
3129
3130
|
return i || (i = {}), i.action = "register", e.createLoginUrl(i);
|
|
3130
3131
|
}, e.createAccountUrl = function(i) {
|
|
3131
|
-
var u =
|
|
3132
|
+
var u = D(), p = void 0;
|
|
3132
3133
|
return typeof u < "u" && (p = u + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(i))), p;
|
|
3133
3134
|
}, e.accountManagement = function() {
|
|
3134
3135
|
return n.accountManagement();
|
|
@@ -3141,7 +3142,7 @@ function hs(t) {
|
|
|
3141
3142
|
var p = e.resourceAccess[u || e.clientId];
|
|
3142
3143
|
return !!p && p.roles.indexOf(i) >= 0;
|
|
3143
3144
|
}, e.loadUserProfile = function() {
|
|
3144
|
-
var i =
|
|
3145
|
+
var i = D() + "/account", u = new XMLHttpRequest();
|
|
3145
3146
|
u.open("GET", i, !0), u.setRequestHeader("Accept", "application/json"), u.setRequestHeader("Authorization", "bearer " + e.token);
|
|
3146
3147
|
var p = _();
|
|
3147
3148
|
return u.onreadystatechange = function() {
|
|
@@ -3211,7 +3212,7 @@ function hs(t) {
|
|
|
3211
3212
|
}, e.clearToken = function() {
|
|
3212
3213
|
e.token && (ae(null, null, null), e.onAuthLogout && e.onAuthLogout(), e.loginRequired && e.login());
|
|
3213
3214
|
}, e.setToken = ae;
|
|
3214
|
-
function
|
|
3215
|
+
function D() {
|
|
3215
3216
|
if (typeof e.authServerUrl < "u")
|
|
3216
3217
|
return e.authServerUrl.charAt(e.authServerUrl.length - 1) == "/" ? e.authServerUrl + "realms/" + encodeURIComponent(e.realm) : e.authServerUrl + "/realms/" + encodeURIComponent(e.realm);
|
|
3217
3218
|
}
|
|
@@ -3275,27 +3276,27 @@ function hs(t) {
|
|
|
3275
3276
|
}
|
|
3276
3277
|
} : e.endpoints = {
|
|
3277
3278
|
authorize: function() {
|
|
3278
|
-
return
|
|
3279
|
+
return D() + "/protocol/openid-connect/auth";
|
|
3279
3280
|
},
|
|
3280
3281
|
token: function() {
|
|
3281
|
-
return
|
|
3282
|
+
return D() + "/protocol/openid-connect/token";
|
|
3282
3283
|
},
|
|
3283
3284
|
logout: function() {
|
|
3284
|
-
return
|
|
3285
|
+
return D() + "/protocol/openid-connect/logout";
|
|
3285
3286
|
},
|
|
3286
3287
|
checkSessionIframe: function() {
|
|
3287
|
-
var $ =
|
|
3288
|
+
var $ = D() + "/protocol/openid-connect/login-status-iframe.html";
|
|
3288
3289
|
return e.iframeVersion && ($ = $ + "?version=" + e.iframeVersion), $;
|
|
3289
3290
|
},
|
|
3290
3291
|
thirdPartyCookiesIframe: function() {
|
|
3291
|
-
var $ =
|
|
3292
|
+
var $ = D() + "/protocol/openid-connect/3p-cookies/step1.html";
|
|
3292
3293
|
return e.iframeVersion && ($ = $ + "?version=" + e.iframeVersion), $;
|
|
3293
3294
|
},
|
|
3294
3295
|
register: function() {
|
|
3295
|
-
return
|
|
3296
|
+
return D() + "/protocol/openid-connect/registrations";
|
|
3296
3297
|
},
|
|
3297
3298
|
userinfo: function() {
|
|
3298
|
-
return
|
|
3299
|
+
return D() + "/protocol/openid-connect/userinfo";
|
|
3299
3300
|
}
|
|
3300
3301
|
};
|
|
3301
3302
|
}
|
|
@@ -3348,8 +3349,8 @@ function hs(t) {
|
|
|
3348
3349
|
return i.status == 0 && i.responseText && i.responseURL.startsWith("file:");
|
|
3349
3350
|
}
|
|
3350
3351
|
function ae(i, u, p, E) {
|
|
3351
|
-
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), u ? (e.refreshToken = u, e.refreshTokenParsed =
|
|
3352
|
-
if (e.token = i, e.tokenParsed =
|
|
3352
|
+
if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), u ? (e.refreshToken = u, e.refreshTokenParsed = Hn(u)) : (delete e.refreshToken, delete e.refreshTokenParsed), p ? (e.idToken = p, e.idTokenParsed = Hn(p)) : (delete e.idToken, delete e.idTokenParsed), i) {
|
|
3353
|
+
if (e.token = i, e.tokenParsed = Hn(i), e.sessionId = e.tokenParsed.session_state, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, E && (e.timeSkew = Math.floor(E / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (y("[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"), e.onTokenExpired)) {
|
|
3353
3354
|
var g = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
|
|
3354
3355
|
y("[KEYCLOAK] Token expires in " + Math.round(g / 1e3) + " s"), g <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(e.onTokenExpired, g);
|
|
3355
3356
|
}
|
|
@@ -3357,7 +3358,7 @@ function hs(t) {
|
|
|
3357
3358
|
delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
|
|
3358
3359
|
}
|
|
3359
3360
|
function m() {
|
|
3360
|
-
var i = "0123456789abcdef", u =
|
|
3361
|
+
var i = "0123456789abcdef", u = M(36, i).split("");
|
|
3361
3362
|
u[14] = "4", u[19] = i.substr(u[19] & 3 | 8, 1), u[8] = u[13] = u[18] = u[23] = "-";
|
|
3362
3363
|
var p = u.join("");
|
|
3363
3364
|
return p;
|
|
@@ -3773,7 +3774,7 @@ function ps(t, e) {
|
|
|
3773
3774
|
return t.apply(e, arguments);
|
|
3774
3775
|
};
|
|
3775
3776
|
}
|
|
3776
|
-
const { toString: xu } = Object.prototype, { getPrototypeOf:
|
|
3777
|
+
const { toString: xu } = Object.prototype, { getPrototypeOf: Ao } = Object, vn = ((t) => (e) => {
|
|
3777
3778
|
const n = xu.call(e);
|
|
3778
3779
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
3779
3780
|
})(/* @__PURE__ */ Object.create(null)), qe = (t) => (t = t.toLowerCase(), (e) => vn(e) === t), An = (t) => (e) => typeof e === t, { isArray: Ct } = Array, Ht = An("undefined");
|
|
@@ -3788,7 +3789,7 @@ function _u(t) {
|
|
|
3788
3789
|
const Cu = An("string"), Ie = An("function"), gs = An("number"), En = (t) => t !== null && typeof t == "object", Tu = (t) => t === !0 || t === !1, rn = (t) => {
|
|
3789
3790
|
if (vn(t) !== "object")
|
|
3790
3791
|
return !1;
|
|
3791
|
-
const e =
|
|
3792
|
+
const e = Ao(t);
|
|
3792
3793
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
3793
3794
|
}, Pu = qe("Date"), Ru = qe("File"), Lu = qe("Blob"), Ou = qe("FileList"), Iu = (t) => En(t) && Ie(t.pipe), Fu = (t) => {
|
|
3794
3795
|
let e;
|
|
@@ -3819,10 +3820,10 @@ function bs(t, e) {
|
|
|
3819
3820
|
return null;
|
|
3820
3821
|
}
|
|
3821
3822
|
const ys = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), ws = (t) => !Ht(t) && t !== ys;
|
|
3822
|
-
function
|
|
3823
|
+
function to() {
|
|
3823
3824
|
const { caseless: t } = ws(this) && this || {}, e = {}, n = (o, r) => {
|
|
3824
3825
|
const s = t && bs(e, r) || r;
|
|
3825
|
-
rn(e[s]) && rn(o) ? e[s] =
|
|
3826
|
+
rn(e[s]) && rn(o) ? e[s] = to(e[s], o) : rn(o) ? e[s] = to({}, o) : Ct(o) ? e[s] = o.slice() : e[s] = o;
|
|
3826
3827
|
};
|
|
3827
3828
|
for (let o = 0, r = arguments.length; o < r; o++)
|
|
3828
3829
|
arguments[o] && Gt(arguments[o], n);
|
|
@@ -3842,7 +3843,7 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
|
3842
3843
|
do {
|
|
3843
3844
|
for (r = Object.getOwnPropertyNames(t), s = r.length; s-- > 0; )
|
|
3844
3845
|
a = r[s], (!o || o(a, t, e)) && !d[a] && (e[a] = t[a], d[a] = !0);
|
|
3845
|
-
t = n !== !1 &&
|
|
3846
|
+
t = n !== !1 && Ao(t);
|
|
3846
3847
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
3847
3848
|
return e;
|
|
3848
3849
|
}, Hu = (t, e, n) => {
|
|
@@ -3861,7 +3862,7 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
|
3861
3862
|
for (; e-- > 0; )
|
|
3862
3863
|
n[e] = t[e];
|
|
3863
3864
|
return n;
|
|
3864
|
-
}, zu = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
3865
|
+
}, zu = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ao(Uint8Array)), Vu = (t, e) => {
|
|
3865
3866
|
const o = (t && t[Symbol.iterator]).call(t);
|
|
3866
3867
|
let r;
|
|
3867
3868
|
for (; (r = o.next()) && !r.done; ) {
|
|
@@ -3908,10 +3909,10 @@ const Uu = (t, e, n, { allOwnKeys: o } = {}) => (Gt(e, (r, s) => {
|
|
|
3908
3909
|
};
|
|
3909
3910
|
return Ct(t) ? o(t) : o(String(t).split(e)), n;
|
|
3910
3911
|
}, Xu = () => {
|
|
3911
|
-
}, Zu = (t, e) => (t = +t, Number.isFinite(t) ? t : e),
|
|
3912
|
+
}, Zu = (t, e) => (t = +t, Number.isFinite(t) ? t : e), jn = "abcdefghijklmnopqrstuvwxyz", gr = "0123456789", As = {
|
|
3912
3913
|
DIGIT: gr,
|
|
3913
|
-
ALPHA:
|
|
3914
|
-
ALPHA_DIGIT:
|
|
3914
|
+
ALPHA: jn,
|
|
3915
|
+
ALPHA_DIGIT: jn + jn.toUpperCase() + gr
|
|
3915
3916
|
}, Qu = (t = 16, e = As.ALPHA_DIGIT) => {
|
|
3916
3917
|
let n = "";
|
|
3917
3918
|
const { length: o } = e;
|
|
@@ -3961,7 +3962,7 @@ const td = (t) => {
|
|
|
3961
3962
|
isTypedArray: zu,
|
|
3962
3963
|
isFileList: Ou,
|
|
3963
3964
|
forEach: Gt,
|
|
3964
|
-
merge:
|
|
3965
|
+
merge: to,
|
|
3965
3966
|
extend: Uu,
|
|
3966
3967
|
trim: Nu,
|
|
3967
3968
|
stripBOM: Du,
|
|
@@ -4044,7 +4045,7 @@ J.from = (t, e, n, o, r, s) => {
|
|
|
4044
4045
|
}, (d) => d !== "isAxiosError"), J.call(a, t.message, e, n, o, r), a.cause = t, a.name = t.name, s && Object.assign(a, s), a;
|
|
4045
4046
|
};
|
|
4046
4047
|
const rd = null;
|
|
4047
|
-
function
|
|
4048
|
+
function no(t) {
|
|
4048
4049
|
return h.isPlainObject(t) || h.isArray(t);
|
|
4049
4050
|
}
|
|
4050
4051
|
function xs(t) {
|
|
@@ -4056,7 +4057,7 @@ function br(t, e, n) {
|
|
|
4056
4057
|
}).join(n ? "." : "") : e;
|
|
4057
4058
|
}
|
|
4058
4059
|
function sd(t) {
|
|
4059
|
-
return h.isArray(t) && !t.some(
|
|
4060
|
+
return h.isArray(t) && !t.some(no);
|
|
4060
4061
|
}
|
|
4061
4062
|
const id = h.toFlatObject(h, {}, null, function(e) {
|
|
4062
4063
|
return /^is[A-Z]/.test(e);
|
|
@@ -4068,8 +4069,8 @@ function kn(t, e, n) {
|
|
|
4068
4069
|
metaTokens: !0,
|
|
4069
4070
|
dots: !1,
|
|
4070
4071
|
indexes: !1
|
|
4071
|
-
}, !1, function(F,
|
|
4072
|
-
return !h.isUndefined(
|
|
4072
|
+
}, !1, function(F, D) {
|
|
4073
|
+
return !h.isUndefined(D[F]);
|
|
4073
4074
|
});
|
|
4074
4075
|
const o = n.metaTokens, r = n.visitor || w, s = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(e);
|
|
4075
4076
|
if (!h.isFunction(r))
|
|
@@ -4083,9 +4084,9 @@ function kn(t, e, n) {
|
|
|
4083
4084
|
throw new J("Blob is not supported. Use a Buffer instead.");
|
|
4084
4085
|
return h.isArrayBuffer(I) || h.isTypedArray(I) ? l && typeof Blob == "function" ? new Blob([I]) : Buffer.from(I) : I;
|
|
4085
4086
|
}
|
|
4086
|
-
function w(I, F,
|
|
4087
|
+
function w(I, F, D) {
|
|
4087
4088
|
let Q = I;
|
|
4088
|
-
if (I && !
|
|
4089
|
+
if (I && !D && typeof I == "object") {
|
|
4089
4090
|
if (h.endsWith(F, "{}"))
|
|
4090
4091
|
F = o ? F : F.slice(0, -2), I = JSON.stringify(I);
|
|
4091
4092
|
else if (h.isArray(I) && sd(I) || (h.isFileList(I) || h.endsWith(F, "[]")) && (Q = h.toArray(I)))
|
|
@@ -4097,14 +4098,14 @@ function kn(t, e, n) {
|
|
|
4097
4098
|
);
|
|
4098
4099
|
}), !1;
|
|
4099
4100
|
}
|
|
4100
|
-
return
|
|
4101
|
+
return no(I) ? !0 : (e.append(br(D, F, s), y(I)), !1);
|
|
4101
4102
|
}
|
|
4102
4103
|
const b = [], G = Object.assign(id, {
|
|
4103
4104
|
defaultVisitor: w,
|
|
4104
4105
|
convertValue: y,
|
|
4105
|
-
isVisitable:
|
|
4106
|
+
isVisitable: no
|
|
4106
4107
|
});
|
|
4107
|
-
function
|
|
4108
|
+
function M(I, F) {
|
|
4108
4109
|
if (!h.isUndefined(I)) {
|
|
4109
4110
|
if (b.indexOf(I) !== -1)
|
|
4110
4111
|
throw Error("Circular reference detected in " + F.join("."));
|
|
@@ -4115,13 +4116,13 @@ function kn(t, e, n) {
|
|
|
4115
4116
|
h.isString(ne) ? ne.trim() : ne,
|
|
4116
4117
|
F,
|
|
4117
4118
|
G
|
|
4118
|
-
)) === !0 &&
|
|
4119
|
+
)) === !0 && M(Q, F ? F.concat(ne) : [ne]);
|
|
4119
4120
|
}), b.pop();
|
|
4120
4121
|
}
|
|
4121
4122
|
}
|
|
4122
4123
|
if (!h.isObject(t))
|
|
4123
4124
|
throw new TypeError("data must be an object");
|
|
4124
|
-
return
|
|
4125
|
+
return M(t), e;
|
|
4125
4126
|
}
|
|
4126
4127
|
function yr(t) {
|
|
4127
4128
|
const e = {
|
|
@@ -4137,10 +4138,10 @@ function yr(t) {
|
|
|
4137
4138
|
return e[o];
|
|
4138
4139
|
});
|
|
4139
4140
|
}
|
|
4140
|
-
function
|
|
4141
|
+
function Eo(t, e) {
|
|
4141
4142
|
this._pairs = [], t && kn(t, this, e);
|
|
4142
4143
|
}
|
|
4143
|
-
const Ss =
|
|
4144
|
+
const Ss = Eo.prototype;
|
|
4144
4145
|
Ss.append = function(e, n) {
|
|
4145
4146
|
this._pairs.push([e, n]);
|
|
4146
4147
|
};
|
|
@@ -4160,7 +4161,7 @@ function _s(t, e, n) {
|
|
|
4160
4161
|
return t;
|
|
4161
4162
|
const o = n && n.encode || ad, r = n && n.serialize;
|
|
4162
4163
|
let s;
|
|
4163
|
-
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new
|
|
4164
|
+
if (r ? s = r(e, n) : s = h.isURLSearchParams(e) ? e.toString() : new Eo(e, n).toString(o), s) {
|
|
4164
4165
|
const a = t.indexOf("#");
|
|
4165
4166
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
4166
4167
|
}
|
|
@@ -4224,7 +4225,7 @@ const wr = cd, Cs = {
|
|
|
4224
4225
|
silentJSONParsing: !0,
|
|
4225
4226
|
forcedJSONParsing: !0,
|
|
4226
4227
|
clarifyTimeoutError: !1
|
|
4227
|
-
}, ld = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
4228
|
+
}, ld = typeof URLSearchParams < "u" ? URLSearchParams : Eo, ud = typeof FormData < "u" ? FormData : null, dd = typeof Blob < "u" ? Blob : null, fd = {
|
|
4228
4229
|
isBrowser: !0,
|
|
4229
4230
|
classes: {
|
|
4230
4231
|
URLSearchParams: ld,
|
|
@@ -4287,7 +4288,7 @@ function wd(t, e, n) {
|
|
|
4287
4288
|
}
|
|
4288
4289
|
return (n || JSON.stringify)(t);
|
|
4289
4290
|
}
|
|
4290
|
-
const
|
|
4291
|
+
const ko = {
|
|
4291
4292
|
transitional: Cs,
|
|
4292
4293
|
adapter: ["xhr", "http"],
|
|
4293
4294
|
transformRequest: [function(e, n) {
|
|
@@ -4316,7 +4317,7 @@ const Eo = {
|
|
|
4316
4317
|
return s || r ? (n.setContentType("application/json", !1), wd(e)) : e;
|
|
4317
4318
|
}],
|
|
4318
4319
|
transformResponse: [function(e) {
|
|
4319
|
-
const n = this.transitional ||
|
|
4320
|
+
const n = this.transitional || ko.transitional, o = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
4320
4321
|
if (e && h.isString(e) && (o && !this.responseType || r)) {
|
|
4321
4322
|
const a = !(n && n.silentJSONParsing) && r;
|
|
4322
4323
|
try {
|
|
@@ -4352,9 +4353,9 @@ const Eo = {
|
|
|
4352
4353
|
}
|
|
4353
4354
|
};
|
|
4354
4355
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4355
|
-
|
|
4356
|
+
ko.headers[t] = {};
|
|
4356
4357
|
});
|
|
4357
|
-
const
|
|
4358
|
+
const xo = ko, vd = h.toObjectSet([
|
|
4358
4359
|
"age",
|
|
4359
4360
|
"authorization",
|
|
4360
4361
|
"content-length",
|
|
@@ -4394,7 +4395,7 @@ function Ed(t) {
|
|
|
4394
4395
|
return e;
|
|
4395
4396
|
}
|
|
4396
4397
|
const kd = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
4397
|
-
function
|
|
4398
|
+
function zn(t, e, n, o, r) {
|
|
4398
4399
|
if (h.isFunction(o))
|
|
4399
4400
|
return o.call(this, e, n);
|
|
4400
4401
|
if (r && (e = n), !!h.isString(e)) {
|
|
@@ -4454,7 +4455,7 @@ class xn {
|
|
|
4454
4455
|
has(e, n) {
|
|
4455
4456
|
if (e = It(e), e) {
|
|
4456
4457
|
const o = h.findKey(this, e);
|
|
4457
|
-
return !!(o && this[o] !== void 0 && (!n ||
|
|
4458
|
+
return !!(o && this[o] !== void 0 && (!n || zn(this, this[o], o, n)));
|
|
4458
4459
|
}
|
|
4459
4460
|
return !1;
|
|
4460
4461
|
}
|
|
@@ -4464,7 +4465,7 @@ class xn {
|
|
|
4464
4465
|
function s(a) {
|
|
4465
4466
|
if (a = It(a), a) {
|
|
4466
4467
|
const d = h.findKey(o, a);
|
|
4467
|
-
d && (!n ||
|
|
4468
|
+
d && (!n || zn(o, o[d], d, n)) && (delete o[d], r = !0);
|
|
4468
4469
|
}
|
|
4469
4470
|
}
|
|
4470
4471
|
return h.isArray(e) ? e.forEach(s) : s(e), r;
|
|
@@ -4474,7 +4475,7 @@ class xn {
|
|
|
4474
4475
|
let o = n.length, r = !1;
|
|
4475
4476
|
for (; o--; ) {
|
|
4476
4477
|
const s = n[o];
|
|
4477
|
-
(!e ||
|
|
4478
|
+
(!e || zn(this, this[s], s, e, !0)) && (delete this[s], r = !0);
|
|
4478
4479
|
}
|
|
4479
4480
|
return r;
|
|
4480
4481
|
}
|
|
@@ -4539,8 +4540,8 @@ h.reduceDescriptors(xn.prototype, ({ value: t }, e) => {
|
|
|
4539
4540
|
});
|
|
4540
4541
|
h.freezeMethods(xn);
|
|
4541
4542
|
const Xe = xn;
|
|
4542
|
-
function
|
|
4543
|
-
const n = this ||
|
|
4543
|
+
function Vn(t, e) {
|
|
4544
|
+
const n = this || xo, o = e || n, r = Xe.from(o.headers);
|
|
4544
4545
|
let s = o.data;
|
|
4545
4546
|
return h.forEach(t, function(d) {
|
|
4546
4547
|
s = d.call(n, s, r.normalize(), e ? e.status : void 0);
|
|
@@ -4649,8 +4650,8 @@ function Od(t, e) {
|
|
|
4649
4650
|
G += n[b++], b = b % t;
|
|
4650
4651
|
if (r = (r + 1) % t, r === s && (s = (s + 1) % t), y - a < e)
|
|
4651
4652
|
return;
|
|
4652
|
-
const
|
|
4653
|
-
return
|
|
4653
|
+
const M = w && y - w;
|
|
4654
|
+
return M ? Math.round(G * 1e3 / M) : void 0;
|
|
4654
4655
|
};
|
|
4655
4656
|
}
|
|
4656
4657
|
function Ar(t, e) {
|
|
@@ -4684,18 +4685,18 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4684
4685
|
if (je.hasStandardBrowserEnv || je.hasStandardBrowserWebWorkerEnv)
|
|
4685
4686
|
s.setContentType(!1);
|
|
4686
4687
|
else if ((w = s.getContentType()) !== !1) {
|
|
4687
|
-
const [F, ...
|
|
4688
|
-
s.setContentType([F || "multipart/form-data", ...
|
|
4688
|
+
const [F, ...D] = w ? w.split(";").map((Q) => Q.trim()).filter(Boolean) : [];
|
|
4689
|
+
s.setContentType([F || "multipart/form-data", ...D].join("; "));
|
|
4689
4690
|
}
|
|
4690
4691
|
}
|
|
4691
4692
|
let b = new XMLHttpRequest();
|
|
4692
4693
|
if (t.auth) {
|
|
4693
|
-
const F = t.auth.username || "",
|
|
4694
|
-
s.set("Authorization", "Basic " + btoa(F + ":" +
|
|
4694
|
+
const F = t.auth.username || "", D = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
4695
|
+
s.set("Authorization", "Basic " + btoa(F + ":" + D));
|
|
4695
4696
|
}
|
|
4696
4697
|
const G = Ls(t.baseURL, t.url);
|
|
4697
4698
|
b.open(t.method.toUpperCase(), _s(G, t.params, t.paramsSerializer), !0), b.timeout = t.timeout;
|
|
4698
|
-
function
|
|
4699
|
+
function M() {
|
|
4699
4700
|
if (!b)
|
|
4700
4701
|
return;
|
|
4701
4702
|
const F = Xe.from(
|
|
@@ -4714,17 +4715,17 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4714
4715
|
o(H), y();
|
|
4715
4716
|
}, Q), b = null;
|
|
4716
4717
|
}
|
|
4717
|
-
if ("onloadend" in b ? b.onloadend =
|
|
4718
|
-
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
4718
|
+
if ("onloadend" in b ? b.onloadend = M : b.onreadystatechange = function() {
|
|
4719
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(M);
|
|
4719
4720
|
}, b.onabort = function() {
|
|
4720
4721
|
b && (o(new J("Request aborted", J.ECONNABORTED, t, b)), b = null);
|
|
4721
4722
|
}, b.onerror = function() {
|
|
4722
4723
|
o(new J("Network Error", J.ERR_NETWORK, t, b)), b = null;
|
|
4723
4724
|
}, b.ontimeout = function() {
|
|
4724
|
-
let
|
|
4725
|
+
let D = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
4725
4726
|
const Q = t.transitional || Cs;
|
|
4726
|
-
t.timeoutErrorMessage && (
|
|
4727
|
-
|
|
4727
|
+
t.timeoutErrorMessage && (D = t.timeoutErrorMessage), o(new J(
|
|
4728
|
+
D,
|
|
4728
4729
|
Q.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
|
|
4729
4730
|
t,
|
|
4730
4731
|
b
|
|
@@ -4733,8 +4734,8 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4733
4734
|
const F = t.xsrfHeaderName && t.xsrfCookieName && Cd.read(t.xsrfCookieName);
|
|
4734
4735
|
F && s.set(t.xsrfHeaderName, F);
|
|
4735
4736
|
}
|
|
4736
|
-
r === void 0 && s.setContentType(null), "setRequestHeader" in b && h.forEach(s.toJSON(), function(
|
|
4737
|
-
b.setRequestHeader(Q,
|
|
4737
|
+
r === void 0 && s.setContentType(null), "setRequestHeader" in b && h.forEach(s.toJSON(), function(D, Q) {
|
|
4738
|
+
b.setRequestHeader(Q, D);
|
|
4738
4739
|
}), h.isUndefined(t.withCredentials) || (b.withCredentials = !!t.withCredentials), a && a !== "json" && (b.responseType = t.responseType), typeof t.onDownloadProgress == "function" && b.addEventListener("progress", Ar(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", Ar(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (F) => {
|
|
4739
4740
|
b && (o(!F || F.type ? new Jt(null, t, b) : F), b.abort(), b = null);
|
|
4740
4741
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
@@ -4745,11 +4746,11 @@ const Id = typeof XMLHttpRequest < "u", Fd = Id && function(t) {
|
|
|
4745
4746
|
}
|
|
4746
4747
|
b.send(r || null);
|
|
4747
4748
|
});
|
|
4748
|
-
},
|
|
4749
|
+
}, oo = {
|
|
4749
4750
|
http: rd,
|
|
4750
4751
|
xhr: Fd
|
|
4751
4752
|
};
|
|
4752
|
-
h.forEach(
|
|
4753
|
+
h.forEach(oo, (t, e) => {
|
|
4753
4754
|
if (t) {
|
|
4754
4755
|
try {
|
|
4755
4756
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -4767,7 +4768,7 @@ const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4767
4768
|
for (let s = 0; s < e; s++) {
|
|
4768
4769
|
n = t[s];
|
|
4769
4770
|
let a;
|
|
4770
|
-
if (o = n, !Bd(n) && (o =
|
|
4771
|
+
if (o = n, !Bd(n) && (o = oo[(a = String(n)).toLowerCase()], o === void 0))
|
|
4771
4772
|
throw new J(`Unknown adapter '${a}'`);
|
|
4772
4773
|
if (o)
|
|
4773
4774
|
break;
|
|
@@ -4787,24 +4788,24 @@ const Er = (t) => `- ${t}`, Bd = (t) => h.isFunction(t) || t === null || t === !
|
|
|
4787
4788
|
}
|
|
4788
4789
|
return o;
|
|
4789
4790
|
},
|
|
4790
|
-
adapters:
|
|
4791
|
+
adapters: oo
|
|
4791
4792
|
};
|
|
4792
|
-
function
|
|
4793
|
+
function Wn(t) {
|
|
4793
4794
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
4794
4795
|
throw new Jt(null, t);
|
|
4795
4796
|
}
|
|
4796
4797
|
function kr(t) {
|
|
4797
|
-
return
|
|
4798
|
+
return Wn(t), t.headers = Xe.from(t.headers), t.data = Vn.call(
|
|
4798
4799
|
t,
|
|
4799
4800
|
t.transformRequest
|
|
4800
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Os.getAdapter(t.adapter ||
|
|
4801
|
-
return
|
|
4801
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Os.getAdapter(t.adapter || xo.adapter)(t).then(function(o) {
|
|
4802
|
+
return Wn(t), o.data = Vn.call(
|
|
4802
4803
|
t,
|
|
4803
4804
|
t.transformResponse,
|
|
4804
4805
|
o
|
|
4805
4806
|
), o.headers = Xe.from(o.headers), o;
|
|
4806
4807
|
}, function(o) {
|
|
4807
|
-
return Rs(o) || (
|
|
4808
|
+
return Rs(o) || (Wn(t), o && o.response && (o.response.data = Vn.call(
|
|
4808
4809
|
t,
|
|
4809
4810
|
t.transformResponse,
|
|
4810
4811
|
o.response
|
|
@@ -4878,14 +4879,14 @@ function kt(t, e) {
|
|
|
4878
4879
|
h.isUndefined(G) && b !== d || (n[w] = G);
|
|
4879
4880
|
}), n;
|
|
4880
4881
|
}
|
|
4881
|
-
const Is = "1.6.5",
|
|
4882
|
+
const Is = "1.6.5", So = {};
|
|
4882
4883
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
4883
|
-
|
|
4884
|
+
So[t] = function(o) {
|
|
4884
4885
|
return typeof o === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
4885
4886
|
};
|
|
4886
4887
|
});
|
|
4887
4888
|
const Sr = {};
|
|
4888
|
-
|
|
4889
|
+
So.transitional = function(e, n, o) {
|
|
4889
4890
|
function r(s, a) {
|
|
4890
4891
|
return "[Axios v" + Is + "] Transitional option '" + s + "'" + a + (o ? ". " + o : "");
|
|
4891
4892
|
}
|
|
@@ -4920,10 +4921,10 @@ function Nd(t, e, n) {
|
|
|
4920
4921
|
throw new J("Unknown option " + s, J.ERR_BAD_OPTION);
|
|
4921
4922
|
}
|
|
4922
4923
|
}
|
|
4923
|
-
const
|
|
4924
|
+
const ro = {
|
|
4924
4925
|
assertOptions: Nd,
|
|
4925
|
-
validators:
|
|
4926
|
-
}, Ze =
|
|
4926
|
+
validators: So
|
|
4927
|
+
}, Ze = ro.validators;
|
|
4927
4928
|
class dn {
|
|
4928
4929
|
constructor(e) {
|
|
4929
4930
|
this.defaults = e, this.interceptors = {
|
|
@@ -4942,13 +4943,13 @@ class dn {
|
|
|
4942
4943
|
request(e, n) {
|
|
4943
4944
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = kt(this.defaults, n);
|
|
4944
4945
|
const { transitional: o, paramsSerializer: r, headers: s } = n;
|
|
4945
|
-
o !== void 0 &&
|
|
4946
|
+
o !== void 0 && ro.assertOptions(o, {
|
|
4946
4947
|
silentJSONParsing: Ze.transitional(Ze.boolean),
|
|
4947
4948
|
forcedJSONParsing: Ze.transitional(Ze.boolean),
|
|
4948
4949
|
clarifyTimeoutError: Ze.transitional(Ze.boolean)
|
|
4949
4950
|
}, !1), r != null && (h.isFunction(r) ? n.paramsSerializer = {
|
|
4950
4951
|
serialize: r
|
|
4951
|
-
} :
|
|
4952
|
+
} : ro.assertOptions(r, {
|
|
4952
4953
|
encode: Ze.function,
|
|
4953
4954
|
serialize: Ze.function
|
|
4954
4955
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -4979,18 +4980,18 @@ class dn {
|
|
|
4979
4980
|
return w;
|
|
4980
4981
|
}
|
|
4981
4982
|
G = d.length;
|
|
4982
|
-
let
|
|
4983
|
+
let M = n;
|
|
4983
4984
|
for (b = 0; b < G; ) {
|
|
4984
4985
|
const I = d[b++], F = d[b++];
|
|
4985
4986
|
try {
|
|
4986
|
-
|
|
4987
|
-
} catch (
|
|
4988
|
-
F.call(this,
|
|
4987
|
+
M = I(M);
|
|
4988
|
+
} catch (D) {
|
|
4989
|
+
F.call(this, D);
|
|
4989
4990
|
break;
|
|
4990
4991
|
}
|
|
4991
4992
|
}
|
|
4992
4993
|
try {
|
|
4993
|
-
w = kr.call(this,
|
|
4994
|
+
w = kr.call(this, M);
|
|
4994
4995
|
} catch (I) {
|
|
4995
4996
|
return Promise.reject(I);
|
|
4996
4997
|
}
|
|
@@ -5029,7 +5030,7 @@ h.forEach(["post", "put", "patch"], function(e) {
|
|
|
5029
5030
|
dn.prototype[e] = n(), dn.prototype[e + "Form"] = n(!0);
|
|
5030
5031
|
});
|
|
5031
5032
|
const an = dn;
|
|
5032
|
-
class
|
|
5033
|
+
class _o {
|
|
5033
5034
|
constructor(e) {
|
|
5034
5035
|
if (typeof e != "function")
|
|
5035
5036
|
throw new TypeError("executor must be a function.");
|
|
@@ -5090,14 +5091,14 @@ class So {
|
|
|
5090
5091
|
static source() {
|
|
5091
5092
|
let e;
|
|
5092
5093
|
return {
|
|
5093
|
-
token: new
|
|
5094
|
+
token: new _o(function(r) {
|
|
5094
5095
|
e = r;
|
|
5095
5096
|
}),
|
|
5096
5097
|
cancel: e
|
|
5097
5098
|
};
|
|
5098
5099
|
}
|
|
5099
5100
|
}
|
|
5100
|
-
const Ud =
|
|
5101
|
+
const Ud = _o;
|
|
5101
5102
|
function Dd(t) {
|
|
5102
5103
|
return function(n) {
|
|
5103
5104
|
return t.apply(null, n);
|
|
@@ -5106,7 +5107,7 @@ function Dd(t) {
|
|
|
5106
5107
|
function Md(t) {
|
|
5107
5108
|
return h.isObject(t) && t.isAxiosError === !0;
|
|
5108
5109
|
}
|
|
5109
|
-
const
|
|
5110
|
+
const so = {
|
|
5110
5111
|
Continue: 100,
|
|
5111
5112
|
SwitchingProtocols: 101,
|
|
5112
5113
|
Processing: 102,
|
|
@@ -5171,17 +5172,17 @@ const ro = {
|
|
|
5171
5172
|
NotExtended: 510,
|
|
5172
5173
|
NetworkAuthenticationRequired: 511
|
|
5173
5174
|
};
|
|
5174
|
-
Object.entries(
|
|
5175
|
-
|
|
5175
|
+
Object.entries(so).forEach(([t, e]) => {
|
|
5176
|
+
so[e] = t;
|
|
5176
5177
|
});
|
|
5177
|
-
const $d =
|
|
5178
|
+
const $d = so;
|
|
5178
5179
|
function Fs(t) {
|
|
5179
5180
|
const e = new an(t), n = ps(an.prototype.request, e);
|
|
5180
5181
|
return h.extend(n, an.prototype, e, { allOwnKeys: !0 }), h.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
5181
5182
|
return Fs(kt(t, r));
|
|
5182
5183
|
}, n;
|
|
5183
5184
|
}
|
|
5184
|
-
const se = Fs(
|
|
5185
|
+
const se = Fs(xo);
|
|
5185
5186
|
se.Axios = an;
|
|
5186
5187
|
se.CanceledError = Jt;
|
|
5187
5188
|
se.CancelToken = Ud;
|
|
@@ -5310,11 +5311,11 @@ class jd {
|
|
|
5310
5311
|
}
|
|
5311
5312
|
}
|
|
5312
5313
|
const Yd = (t) => new jd(t);
|
|
5313
|
-
|
|
5314
|
+
eo.SetInitialTheme();
|
|
5314
5315
|
export {
|
|
5315
5316
|
pr as AppResult,
|
|
5316
5317
|
jd as AxiosClient,
|
|
5317
|
-
|
|
5318
|
+
ao as Cor,
|
|
5318
5319
|
vi as SfButton,
|
|
5319
5320
|
Kd as SfContent,
|
|
5320
5321
|
bi as SfDrawer,
|