@luizleon/sf.prefeiturasp.vuecomponents 4.0.14 → 4.0.16
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/index.d.ts +3 -1
- package/dist/sf.prefeiturasp.vuecomponents.cjs +22 -22
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +294 -280
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +22 -22
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var za = Object.defineProperty;
|
|
2
2
|
var Wa = (t, e, n) => e in t ? za(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Je = (t, e, n) => Wa(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { ref as Ve, openBlock as K, createElementBlock as ee, createElementVNode as q, defineComponent as Ze, onBeforeUnmount as ss, unref as _e, renderSlot as Le, computed as Vt, createBlock as Te, resolveDynamicComponent as wt, normalizeClass as ge, withCtx as ot, normalizeStyle as
|
|
4
|
+
import { ref as Ve, openBlock as K, createElementBlock as ee, createElementVNode as q, defineComponent as Ze, onBeforeUnmount as ss, unref as _e, renderSlot as Le, computed as Vt, createBlock as Te, resolveDynamicComponent as wt, normalizeClass as ge, withCtx as ot, normalizeStyle as yn, mergeProps as re, Fragment as kt, createTextVNode as Wn, toDisplayString as dt, createCommentVNode as Se, useSlots as qa, watch as jr, Teleport as Ga, withModifiers as Cr, createVNode as je, Transition as co, reactive as Ja, onMounted as xn, createStaticVNode as Ya, resolveComponent as In, renderList as uo, readonly as Xa, getCurrentInstance as Za, nextTick as Qa, resolveDirective as el, withDirectives as Vr, vShow as as, pushScopeId as tl, popScopeId as nl } from "vue";
|
|
5
5
|
class rl {
|
|
6
6
|
constructor() {
|
|
7
7
|
Je(this, "_visible", Ve(!1));
|
|
@@ -115,14 +115,20 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
115
115
|
this.wrapper.classList.remove("visible"), this.wrapper.remove();
|
|
116
116
|
}
|
|
117
117
|
Position(i) {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
this.FixWidth();
|
|
119
|
+
const s = 10, l = i.top, a = i.bottom, c = i.left, u = i.right, f = this.wrapper;
|
|
120
|
+
f.style.top = `${a + s}px`, f.style.left = `${c}px`, this.OutOfBottom() && (f.style.top = `${l - f.clientHeight - s}px`, f.classList.add("top")), this.OutOfRight() && (f.style.left = `${u - f.clientWidth}px`, f.classList.add("left"));
|
|
121
|
+
}
|
|
122
|
+
FixWidth() {
|
|
123
|
+
this.wrapper.style.width = "fit-content", this.wrapper.style.wordBreak = "normal", this.wrapper.style.whiteSpace = "nowrap";
|
|
124
|
+
const i = window.innerWidth / 2;
|
|
125
|
+
this.wrapper.clientWidth > i && (this.wrapper.style.width = `${i}px`, this.wrapper.style.wordBreak = "break-word", this.wrapper.style.whiteSpace = "normal");
|
|
120
126
|
}
|
|
121
127
|
OutOfBottom() {
|
|
122
128
|
return this.wrapper.getBoundingClientRect().bottom > (window.innerHeight || document.documentElement.clientHeight);
|
|
123
129
|
}
|
|
124
130
|
OutOfRight() {
|
|
125
|
-
return this.wrapper.getBoundingClientRect().right > (window.innerWidth || document.documentElement.clientWidth);
|
|
131
|
+
return this.wrapper.getBoundingClientRect().right > (window.innerWidth || document.documentElement.clientWidth) - 10;
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
const r = new n();
|
|
@@ -172,7 +178,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
172
178
|
default: ot(() => [
|
|
173
179
|
e.visible ? (K(), ee("div", {
|
|
174
180
|
key: 0,
|
|
175
|
-
style:
|
|
181
|
+
style: yn(e.style),
|
|
176
182
|
class: ge(o.value)
|
|
177
183
|
}, [
|
|
178
184
|
q("button", re({
|
|
@@ -185,7 +191,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
185
191
|
tabindex: e.button ? void 0 : -1
|
|
186
192
|
}), [
|
|
187
193
|
e.loading ? (K(), Te(dl, { key: 0 })) : (K(), ee(kt, { key: 1 }, [
|
|
188
|
-
|
|
194
|
+
Wn(dt(e.icon), 1)
|
|
189
195
|
], 64))
|
|
190
196
|
], 16, fl),
|
|
191
197
|
e.dot ? (K(), ee("span", {
|
|
@@ -247,7 +253,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
247
253
|
key: 0,
|
|
248
254
|
id: _e(a),
|
|
249
255
|
class: ge(R()),
|
|
250
|
-
style:
|
|
256
|
+
style: yn({ zIndex: l.value - 1 }),
|
|
251
257
|
onClick: Cr(c, ["stop"])
|
|
252
258
|
}, [
|
|
253
259
|
je(co, {
|
|
@@ -267,7 +273,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
267
273
|
"sf-drawer-with-footer": !!_e(o).footer
|
|
268
274
|
}
|
|
269
275
|
]),
|
|
270
|
-
style:
|
|
276
|
+
style: yn(n.style),
|
|
271
277
|
role: "dialog",
|
|
272
278
|
onClick: H[0] || (H[0] = Cr((A) => w.void, ["stop"]))
|
|
273
279
|
}, [
|
|
@@ -324,7 +330,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
324
330
|
id: e.id,
|
|
325
331
|
name: e.name,
|
|
326
332
|
class: ge(n()),
|
|
327
|
-
style:
|
|
333
|
+
style: yn(e.style),
|
|
328
334
|
disabled: e.disabled || e.loading,
|
|
329
335
|
"data-color": e.color,
|
|
330
336
|
form: e.form,
|
|
@@ -364,7 +370,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
364
370
|
Al(
|
|
365
371
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
366
372
|
);
|
|
367
|
-
}, ir = (t) => typeof t == "function" ? t() : t, mo = (t) => t && typeof t.toPromise == "function",
|
|
373
|
+
}, ir = (t) => typeof t == "function" ? t() : t, mo = (t) => t && typeof t.toPromise == "function", Pn = (t) => mo(t) ? t.toPromise() : Promise.resolve(t), po = (t) => t && Promise.resolve(t) === t, Kt = {
|
|
368
374
|
title: "",
|
|
369
375
|
titleText: "",
|
|
370
376
|
text: "",
|
|
@@ -591,10 +597,10 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
591
597
|
"icon-info",
|
|
592
598
|
"icon-question",
|
|
593
599
|
"icon-error"
|
|
594
|
-
]),
|
|
600
|
+
]), pn = ps(["success", "warning", "info", "question", "error"]), xe = () => document.body.querySelector(`.${b.container}`), On = (t) => {
|
|
595
601
|
const e = xe();
|
|
596
602
|
return e ? e.querySelector(t) : null;
|
|
597
|
-
}, Qe = (t) =>
|
|
603
|
+
}, Qe = (t) => On(`.${t}`), ue = () => Qe(b.popup), Ln = () => Qe(b.icon), hs = () => Qe(b.title), Xn = () => Qe(b["html-container"]), gs = () => Qe(b.image), ys = () => Qe(b["progress-steps"]), sr = () => Qe(b["validation-message"]), st = () => On(`.${b.actions} .${b.confirm}`), Ct = () => On(`.${b.actions} .${b.deny}`), Nl = () => Qe(b["input-label"]), Jt = () => On(`.${b.loader}`), Rt = () => On(`.${b.actions} .${b.cancel}`), Rn = () => Qe(b.actions), vs = () => Qe(b.footer), ar = () => Qe(b["timer-progress-bar"]), ho = () => Qe(b.close), Dl = `
|
|
598
604
|
a[href],
|
|
599
605
|
area[href],
|
|
600
606
|
input:not([disabled]),
|
|
@@ -640,7 +646,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
640
646
|
return !0;
|
|
641
647
|
}, Bl = (t, e) => {
|
|
642
648
|
qe(t.classList).forEach((n) => {
|
|
643
|
-
!Object.values(b).includes(n) && !Object.values(
|
|
649
|
+
!Object.values(b).includes(n) && !Object.values(pn).includes(n) && !Object.values(e.showClass).includes(n) && t.classList.remove(n);
|
|
644
650
|
});
|
|
645
651
|
}, Xe = (t, e, n) => {
|
|
646
652
|
if (Bl(t, e), e.customClass && e.customClass[n]) {
|
|
@@ -687,7 +693,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
687
693
|
for (let r = 0; r < n.length; r++)
|
|
688
694
|
if (yt(n[r], e))
|
|
689
695
|
return n[r];
|
|
690
|
-
},
|
|
696
|
+
}, hn = (t, e, n) => {
|
|
691
697
|
n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? t.style[e] = typeof n == "number" ? `${n}px` : n : t.style.removeProperty(e);
|
|
692
698
|
}, ke = (t, e = "flex") => {
|
|
693
699
|
t.style.display = e;
|
|
@@ -793,7 +799,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
793
799
|
t.appendChild(e[n].cloneNode(!0));
|
|
794
800
|
else
|
|
795
801
|
t.appendChild(e.cloneNode(!0));
|
|
796
|
-
},
|
|
802
|
+
}, vn = (() => {
|
|
797
803
|
if (Ss())
|
|
798
804
|
return !1;
|
|
799
805
|
const t = document.createElement("div"), e = {
|
|
@@ -812,7 +818,7 @@ const dl = /* @__PURE__ */ or(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
812
818
|
const e = t.getBoundingClientRect().width - t.clientWidth;
|
|
813
819
|
return document.body.removeChild(t), e;
|
|
814
820
|
}, ec = (t, e) => {
|
|
815
|
-
const n =
|
|
821
|
+
const n = Rn(), r = Jt();
|
|
816
822
|
!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? Ie(n) : ke(n), Xe(n, e, "actions"), tc(n, r, e), Ee(r, e.loaderHtml), Xe(r, e, "loader");
|
|
817
823
|
};
|
|
818
824
|
function tc(t, e, n) {
|
|
@@ -879,7 +885,7 @@ const sc = (t, e) => {
|
|
|
879
885
|
t.customClass && se(e, t.customClass.input);
|
|
880
886
|
}, _o = (t, e) => {
|
|
881
887
|
(!t.placeholder || e.inputPlaceholder) && (t.placeholder = e.inputPlaceholder);
|
|
882
|
-
},
|
|
888
|
+
}, $n = (t, e, n) => {
|
|
883
889
|
if (n.inputLabel) {
|
|
884
890
|
t.id = b.input;
|
|
885
891
|
const r = document.createElement("label"), o = b["input-label"];
|
|
@@ -891,18 +897,18 @@ const sc = (t, e) => {
|
|
|
891
897
|
}, Fe = {};
|
|
892
898
|
Fe.text = Fe.email = Fe.password = Fe.number = Fe.tel = Fe.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : po(e.inputValue) || Ue(
|
|
893
899
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
894
|
-
),
|
|
895
|
-
Fe.file = (t, e) => (
|
|
900
|
+
), $n(t, t, e), _o(t, e), t.type = e.input, t);
|
|
901
|
+
Fe.file = (t, e) => ($n(t, t, e), _o(t, e), t);
|
|
896
902
|
Fe.range = (t, e) => {
|
|
897
903
|
const n = t.querySelector("input"), r = t.querySelector("output");
|
|
898
|
-
return n.value = e.inputValue, n.type = e.input, r.value = e.inputValue,
|
|
904
|
+
return n.value = e.inputValue, n.type = e.input, r.value = e.inputValue, $n(n, t, e), t;
|
|
899
905
|
};
|
|
900
906
|
Fe.select = (t, e) => {
|
|
901
907
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
902
908
|
const n = document.createElement("option");
|
|
903
909
|
Ee(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
904
910
|
}
|
|
905
|
-
return
|
|
911
|
+
return $n(t, t, e), t;
|
|
906
912
|
};
|
|
907
913
|
Fe.radio = (t) => (t.textContent = "", t);
|
|
908
914
|
Fe.checkbox = (t, e) => {
|
|
@@ -912,7 +918,7 @@ Fe.checkbox = (t, e) => {
|
|
|
912
918
|
return Ee(r, e.inputPlaceholder), t;
|
|
913
919
|
};
|
|
914
920
|
Fe.textarea = (t, e) => {
|
|
915
|
-
t.value = e.inputValue, _o(t, e),
|
|
921
|
+
t.value = e.inputValue, _o(t, e), $n(t, t, e);
|
|
916
922
|
const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
|
|
917
923
|
return setTimeout(() => {
|
|
918
924
|
if ("MutationObserver" in window) {
|
|
@@ -928,7 +934,7 @@ Fe.textarea = (t, e) => {
|
|
|
928
934
|
}), t;
|
|
929
935
|
};
|
|
930
936
|
const mc = (t, e) => {
|
|
931
|
-
const n =
|
|
937
|
+
const n = Xn();
|
|
932
938
|
Xe(n, e, "htmlContainer"), e.html ? (wo(e.html, n), ke(n, "block")) : e.text ? (n.textContent = e.text, ke(n, "block")) : Ie(n), lc(t, e);
|
|
933
939
|
}, pc = (t, e) => {
|
|
934
940
|
const n = vs();
|
|
@@ -937,20 +943,20 @@ const mc = (t, e) => {
|
|
|
937
943
|
const n = ho();
|
|
938
944
|
Ee(n, e.closeButtonHtml), Xe(n, e, "closeButton"), cr(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel);
|
|
939
945
|
}, gc = (t, e) => {
|
|
940
|
-
const n = Z.innerParams.get(t), r =
|
|
946
|
+
const n = Z.innerParams.get(t), r = Ln();
|
|
941
947
|
if (n && e.icon === n.icon) {
|
|
942
948
|
oi(r, e), ri(r, e);
|
|
943
949
|
return;
|
|
944
950
|
}
|
|
945
951
|
if (!e.icon && !e.iconHtml)
|
|
946
952
|
return Ie(r);
|
|
947
|
-
if (e.icon && Object.keys(
|
|
953
|
+
if (e.icon && Object.keys(pn).indexOf(e.icon) === -1)
|
|
948
954
|
return Dt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), Ie(r);
|
|
949
955
|
ke(r), oi(r, e), ri(r, e), se(r, e.showClass.icon);
|
|
950
956
|
}, ri = (t, e) => {
|
|
951
|
-
for (const n in
|
|
952
|
-
e.icon !== n && ft(t,
|
|
953
|
-
se(t,
|
|
957
|
+
for (const n in pn)
|
|
958
|
+
e.icon !== n && ft(t, pn[n]);
|
|
959
|
+
se(t, pn[e.icon]), wc(t, e), yc(), Xe(t, e, "icon");
|
|
954
960
|
}, yc = () => {
|
|
955
961
|
const t = ue(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
|
|
956
962
|
for (let r = 0; r < n.length; r++)
|
|
@@ -987,7 +993,7 @@ const mc = (t, e) => {
|
|
|
987
993
|
const n = gs();
|
|
988
994
|
if (!e.imageUrl)
|
|
989
995
|
return Ie(n);
|
|
990
|
-
ke(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt),
|
|
996
|
+
ke(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt), hn(n, "width", e.imageWidth), hn(n, "height", e.imageHeight), n.className = b.image, Xe(n, e, "image");
|
|
991
997
|
}, Sc = (t) => {
|
|
992
998
|
const e = document.createElement("li");
|
|
993
999
|
return se(e, b["progress-step"]), Ee(e, t), e;
|
|
@@ -1012,12 +1018,12 @@ const mc = (t, e) => {
|
|
|
1012
1018
|
cr(n, e.title || e.titleText, "block"), e.title && wo(e.title, n), e.titleText && (n.innerText = e.titleText), Xe(n, e, "title");
|
|
1013
1019
|
}, Tc = (t, e) => {
|
|
1014
1020
|
const n = xe(), r = ue();
|
|
1015
|
-
e.toast ? (
|
|
1021
|
+
e.toast ? (hn(n, "width", e.width), r.style.width = "100%", r.insertBefore(Jt(), Ln())) : hn(r, "width", e.width), hn(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), Ie(sr()), Ec(r, e);
|
|
1016
1022
|
}, Ec = (t, e) => {
|
|
1017
1023
|
t.className = `${b.popup} ${Ke(t) ? e.showClass.popup : ""}`, e.toast ? (se([document.documentElement, document.body], b["toast-shown"]), se(t, b.toast)) : se(t, b.modal), Xe(t, e, "popup"), typeof e.customClass == "string" && se(t, e.customClass), e.icon && se(t, b[`icon-${e.icon}`]);
|
|
1018
1024
|
}, Cs = (t, e) => {
|
|
1019
1025
|
Tc(t, e), sc(t, e), Cc(t, e), gc(t, e), _c(t, e), Ac(t, e), hc(t, e), mc(t, e), ec(t, e), pc(t, e), typeof e.didRender == "function" && e.didRender(ue());
|
|
1020
|
-
},
|
|
1026
|
+
}, Yt = Object.freeze({
|
|
1021
1027
|
cancel: "cancel",
|
|
1022
1028
|
backdrop: "backdrop",
|
|
1023
1029
|
close: "close",
|
|
@@ -1166,8 +1172,8 @@ const Hc = () => {
|
|
|
1166
1172
|
const e = t.target, n = xe();
|
|
1167
1173
|
return qc(t) || Gc(t) ? !1 : e === n || !ni(n) && e.tagName !== "INPUT" && // #1603
|
|
1168
1174
|
e.tagName !== "TEXTAREA" && // #2266
|
|
1169
|
-
!(ni(
|
|
1170
|
-
|
|
1175
|
+
!(ni(Xn()) && // #1944
|
|
1176
|
+
Xn().contains(e));
|
|
1171
1177
|
}, qc = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Gc = (t) => t.touches && t.touches.length > 1, Jc = () => {
|
|
1172
1178
|
if (yt(document.body, b.iosfix)) {
|
|
1173
1179
|
const t = parseInt(document.body.style.top, 10);
|
|
@@ -1185,9 +1191,9 @@ const Hc = () => {
|
|
|
1185
1191
|
if (t.target !== e)
|
|
1186
1192
|
return;
|
|
1187
1193
|
const n = xe();
|
|
1188
|
-
e.removeEventListener(
|
|
1194
|
+
e.removeEventListener(vn, xs), n.style.overflowY = "auto";
|
|
1189
1195
|
}, Xc = (t, e) => {
|
|
1190
|
-
|
|
1196
|
+
vn && _s(e) ? (t.style.overflowY = "hidden", e.addEventListener(vn, xs)) : t.style.overflowY = "auto";
|
|
1191
1197
|
}, Zc = (t, e, n) => {
|
|
1192
1198
|
Vc(), e && n !== "hidden" && Hc(), setTimeout(() => {
|
|
1193
1199
|
t.scrollTop = 0;
|
|
@@ -1199,10 +1205,10 @@ const Hc = () => {
|
|
|
1199
1205
|
}, Wt = (t) => {
|
|
1200
1206
|
let e = ue();
|
|
1201
1207
|
e || new qt(), e = ue();
|
|
1202
|
-
const n =
|
|
1203
|
-
lr() ? Ie(
|
|
1208
|
+
const n = Jt();
|
|
1209
|
+
lr() ? Ie(Ln()) : eu(e, t), ke(n), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus();
|
|
1204
1210
|
}, eu = (t, e) => {
|
|
1205
|
-
const n =
|
|
1211
|
+
const n = Rn(), r = Jt();
|
|
1206
1212
|
!e && Ke(st()) && (e = st()), ke(n), e && (Ie(e), r.setAttribute("data-button-to-replace", e.className)), r.parentNode.insertBefore(r, e), se([t, n], b.loading);
|
|
1207
1213
|
}, tu = (t, e) => {
|
|
1208
1214
|
e.input === "select" || e.input === "radio" ? su(t, e) : ["text", "email", "number", "tel", "textarea"].includes(e.input) && (mo(e.inputValue) || po(e.inputValue)) && (Wt(st()), au(t, e));
|
|
@@ -1222,12 +1228,12 @@ const Hc = () => {
|
|
|
1222
1228
|
}
|
|
1223
1229
|
}, ru = (t) => t.checked ? 1 : 0, ou = (t) => t.checked ? t.value : null, iu = (t) => t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, su = (t, e) => {
|
|
1224
1230
|
const n = ue(), r = (o) => lu[e.input](n, Wr(o), e);
|
|
1225
|
-
mo(e.inputOptions) || po(e.inputOptions) ? (Wt(st()),
|
|
1231
|
+
mo(e.inputOptions) || po(e.inputOptions) ? (Wt(st()), Pn(e.inputOptions).then((o) => {
|
|
1226
1232
|
t.hideLoading(), r(o);
|
|
1227
1233
|
})) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Dt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
|
|
1228
1234
|
}, au = (t, e) => {
|
|
1229
1235
|
const n = t.getInput();
|
|
1230
|
-
Ie(n),
|
|
1236
|
+
Ie(n), Pn(e.inputValue).then((r) => {
|
|
1231
1237
|
n.value = e.input === "number" ? parseFloat(r) || 0 : `${r}`, ke(n), n.focus(), t.hideLoading();
|
|
1232
1238
|
}).catch((r) => {
|
|
1233
1239
|
Dt(`Error in inputValue promise: ${r}`), n.value = "", ke(n), n.focus(), t.hideLoading();
|
|
@@ -1273,7 +1279,7 @@ function li() {
|
|
|
1273
1279
|
if (!t)
|
|
1274
1280
|
return;
|
|
1275
1281
|
const e = Z.domCache.get(this);
|
|
1276
|
-
Ie(e.loader), lr() ? t.icon && ke(
|
|
1282
|
+
Ie(e.loader), lr() ? t.icon && ke(Ln()) : cu(e), ft([e.popup, e.actions], b.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
|
|
1277
1283
|
}
|
|
1278
1284
|
const cu = (t) => {
|
|
1279
1285
|
const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
|
|
@@ -1283,7 +1289,7 @@ function uu(t) {
|
|
|
1283
1289
|
const e = Z.innerParams.get(t || this), n = Z.domCache.get(t || this);
|
|
1284
1290
|
return n ? vo(n.popup, e.input) : null;
|
|
1285
1291
|
}
|
|
1286
|
-
const
|
|
1292
|
+
const bn = {
|
|
1287
1293
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
1288
1294
|
swalPromiseReject: /* @__PURE__ */ new WeakMap()
|
|
1289
1295
|
}, du = () => Ke(ue()), Is = () => st() && st().click(), fu = () => Ct() && Ct().click(), mu = () => Rt() && Rt().click(), Ps = (t) => {
|
|
@@ -1323,7 +1329,7 @@ const vn = {
|
|
|
1323
1329
|
return;
|
|
1324
1330
|
const o = Os.includes(t) ? "nextElementSibling" : "previousElementSibling";
|
|
1325
1331
|
let i = document.activeElement;
|
|
1326
|
-
for (let s = 0; s <
|
|
1332
|
+
for (let s = 0; s < Rn().children.length; s++) {
|
|
1327
1333
|
if (i = i[o], !i)
|
|
1328
1334
|
return;
|
|
1329
1335
|
if (Ke(i) && i instanceof HTMLButtonElement)
|
|
@@ -1331,7 +1337,7 @@ const vn = {
|
|
|
1331
1337
|
}
|
|
1332
1338
|
i instanceof HTMLButtonElement && i.focus();
|
|
1333
1339
|
}, wu = (t, e, n) => {
|
|
1334
|
-
ir(e.allowEscapeKey) && (t.preventDefault(), n(
|
|
1340
|
+
ir(e.allowEscapeKey) && (t.preventDefault(), n(Yt.esc));
|
|
1335
1341
|
};
|
|
1336
1342
|
function Ls(t, e, n, r) {
|
|
1337
1343
|
lr() ? ci(t, r) : (Vl(n).then(() => ci(t, r)), Ps(X)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), yo() && (jc(), Jc(), As()), _u();
|
|
@@ -1342,10 +1348,10 @@ function _u() {
|
|
|
1342
1348
|
[b.shown, b["height-auto"], b["no-backdrop"], b["toast-shown"]]
|
|
1343
1349
|
);
|
|
1344
1350
|
}
|
|
1345
|
-
function
|
|
1351
|
+
function Un(t) {
|
|
1346
1352
|
t = Au(t);
|
|
1347
|
-
const e =
|
|
1348
|
-
this.isAwaitingPromise() ? t.isDismissed || (
|
|
1353
|
+
const e = bn.swalPromiseResolve.get(this), n = ku(this);
|
|
1354
|
+
this.isAwaitingPromise() ? t.isDismissed || (Nn(this), e(t)) : n && e(t);
|
|
1349
1355
|
}
|
|
1350
1356
|
function Su() {
|
|
1351
1357
|
return !!Z.awaitingPromise.get(this);
|
|
@@ -1362,10 +1368,10 @@ const ku = (t) => {
|
|
|
1362
1368
|
return ft(r, n.showClass.backdrop), se(r, n.hideClass.backdrop), Tu(t, e, n), !0;
|
|
1363
1369
|
};
|
|
1364
1370
|
function Cu(t) {
|
|
1365
|
-
const e =
|
|
1366
|
-
|
|
1371
|
+
const e = bn.swalPromiseReject.get(this);
|
|
1372
|
+
Nn(this), e && e(t);
|
|
1367
1373
|
}
|
|
1368
|
-
const
|
|
1374
|
+
const Nn = (t) => {
|
|
1369
1375
|
t.isAwaitingPromise() && (Z.awaitingPromise.delete(t), Z.innerParams.get(t) || t._destroy());
|
|
1370
1376
|
}, Au = (t) => typeof t > "u" ? {
|
|
1371
1377
|
isConfirmed: !1,
|
|
@@ -1379,7 +1385,7 @@ const $n = (t) => {
|
|
|
1379
1385
|
},
|
|
1380
1386
|
t
|
|
1381
1387
|
), Tu = (t, e, n) => {
|
|
1382
|
-
const r = xe(), o =
|
|
1388
|
+
const r = xe(), o = vn && _s(e);
|
|
1383
1389
|
typeof n.willClose == "function" && n.willClose(e), o ? Eu(t, e, r, n.returnFocus, n.didClose) : Ls(t, r, n.returnFocus, n.didClose);
|
|
1384
1390
|
}, Eu = (t, e, n, r, o) => {
|
|
1385
1391
|
X.swalCloseEventFinishedCallback = Ls.bind(
|
|
@@ -1388,7 +1394,7 @@ const $n = (t) => {
|
|
|
1388
1394
|
n,
|
|
1389
1395
|
r,
|
|
1390
1396
|
o
|
|
1391
|
-
), e.addEventListener(
|
|
1397
|
+
), e.addEventListener(vn, function(i) {
|
|
1392
1398
|
i.target === e && (X.swalCloseEventFinishedCallback(), delete X.swalCloseEventFinishedCallback);
|
|
1393
1399
|
});
|
|
1394
1400
|
}, ci = (t, e) => {
|
|
@@ -1475,17 +1481,17 @@ function Fu() {
|
|
|
1475
1481
|
const Bu = (t) => {
|
|
1476
1482
|
Ns(t), delete t.params, delete X.keydownHandler, delete X.keydownTarget, delete X.currentInstance;
|
|
1477
1483
|
}, Ns = (t) => {
|
|
1478
|
-
t.isAwaitingPromise() ? (Tr(Z, t), Z.awaitingPromise.set(t, !0)) : (Tr(
|
|
1484
|
+
t.isAwaitingPromise() ? (Tr(Z, t), Z.awaitingPromise.set(t, !0)) : (Tr(bn, t), Tr(Z, t));
|
|
1479
1485
|
}, Tr = (t, e) => {
|
|
1480
1486
|
for (const n in t)
|
|
1481
1487
|
t[n].delete(e);
|
|
1482
1488
|
}, Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1483
1489
|
__proto__: null,
|
|
1484
1490
|
_destroy: Fu,
|
|
1485
|
-
close:
|
|
1486
|
-
closeModal:
|
|
1487
|
-
closePopup:
|
|
1488
|
-
closeToast:
|
|
1491
|
+
close: Un,
|
|
1492
|
+
closeModal: Un,
|
|
1493
|
+
closePopup: Un,
|
|
1494
|
+
closeToast: Un,
|
|
1489
1495
|
disableButtons: Iu,
|
|
1490
1496
|
disableInput: Ou,
|
|
1491
1497
|
disableLoading: li,
|
|
@@ -1493,7 +1499,7 @@ const Bu = (t) => {
|
|
|
1493
1499
|
enableInput: Pu,
|
|
1494
1500
|
getInput: uu,
|
|
1495
1501
|
getProgressSteps: $u,
|
|
1496
|
-
handleAwaitingPromise:
|
|
1502
|
+
handleAwaitingPromise: Nn,
|
|
1497
1503
|
hideLoading: li,
|
|
1498
1504
|
isAwaitingPromise: Su,
|
|
1499
1505
|
rejectPromise: Cu,
|
|
@@ -1507,7 +1513,7 @@ const Bu = (t) => {
|
|
|
1507
1513
|
const e = Z.innerParams.get(t);
|
|
1508
1514
|
t.disableButtons(), e.returnInputValueOnDeny ? Fs(t, "deny") : So(t, !1);
|
|
1509
1515
|
}, Hu = (t, e) => {
|
|
1510
|
-
t.disableButtons(), e(
|
|
1516
|
+
t.disableButtons(), e(Yt.cancel);
|
|
1511
1517
|
}, Fs = (t, e) => {
|
|
1512
1518
|
const n = Z.innerParams.get(t);
|
|
1513
1519
|
if (!n.input)
|
|
@@ -1519,16 +1525,16 @@ const Bu = (t) => {
|
|
|
1519
1525
|
}, ju = (t, e, n) => {
|
|
1520
1526
|
const r = Z.innerParams.get(t);
|
|
1521
1527
|
t.disableInput(), Promise.resolve().then(
|
|
1522
|
-
() =>
|
|
1528
|
+
() => Pn(r.inputValidator(e, r.validationMessage))
|
|
1523
1529
|
).then((i) => {
|
|
1524
1530
|
t.enableButtons(), t.enableInput(), i ? t.showValidationMessage(i) : n === "deny" ? So(t, e) : ko(t, e);
|
|
1525
1531
|
});
|
|
1526
1532
|
}, So = (t, e) => {
|
|
1527
1533
|
const n = Z.innerParams.get(t || void 0);
|
|
1528
1534
|
n.showLoaderOnDeny && Wt(Ct()), n.preDeny ? (Z.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
1529
|
-
() =>
|
|
1535
|
+
() => Pn(n.preDeny(e, n.validationMessage))
|
|
1530
1536
|
).then((o) => {
|
|
1531
|
-
o === !1 ? (t.hideLoading(),
|
|
1537
|
+
o === !1 ? (t.hideLoading(), Nn(t)) : t.closePopup({ isDenied: !0, value: typeof o > "u" ? e : o });
|
|
1532
1538
|
}).catch((o) => Bs(t || void 0, o))) : t.closePopup({ isDenied: !0, value: e });
|
|
1533
1539
|
}, ui = (t, e) => {
|
|
1534
1540
|
t.closePopup({ isConfirmed: !0, value: e });
|
|
@@ -1537,39 +1543,39 @@ const Bu = (t) => {
|
|
|
1537
1543
|
}, ko = (t, e) => {
|
|
1538
1544
|
const n = Z.innerParams.get(t || void 0);
|
|
1539
1545
|
n.showLoaderOnConfirm && Wt(), n.preConfirm ? (t.resetValidationMessage(), Z.awaitingPromise.set(t || void 0, !0), Promise.resolve().then(
|
|
1540
|
-
() =>
|
|
1546
|
+
() => Pn(n.preConfirm(e, n.validationMessage))
|
|
1541
1547
|
).then((o) => {
|
|
1542
|
-
Ke(sr()) || o === !1 ? (t.hideLoading(),
|
|
1548
|
+
Ke(sr()) || o === !1 ? (t.hideLoading(), Nn(t)) : ui(t, typeof o > "u" ? e : o);
|
|
1543
1549
|
}).catch((o) => Bs(t || void 0, o))) : ui(t, e);
|
|
1544
1550
|
}, Vu = (t, e, n) => {
|
|
1545
1551
|
Z.innerParams.get(t).toast ? Ku(t, e, n) : (Wu(e), qu(e), Gu(t, e, n));
|
|
1546
1552
|
}, Ku = (t, e, n) => {
|
|
1547
1553
|
e.popup.onclick = () => {
|
|
1548
1554
|
const r = Z.innerParams.get(t);
|
|
1549
|
-
r && (zu(r) || r.timer || r.input) || n(
|
|
1555
|
+
r && (zu(r) || r.timer || r.input) || n(Yt.close);
|
|
1550
1556
|
};
|
|
1551
1557
|
}, zu = (t) => t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton;
|
|
1552
|
-
let
|
|
1558
|
+
let Zn = !1;
|
|
1553
1559
|
const Wu = (t) => {
|
|
1554
1560
|
t.popup.onmousedown = () => {
|
|
1555
1561
|
t.container.onmouseup = function(e) {
|
|
1556
|
-
t.container.onmouseup = void 0, e.target === t.container && (
|
|
1562
|
+
t.container.onmouseup = void 0, e.target === t.container && (Zn = !0);
|
|
1557
1563
|
};
|
|
1558
1564
|
};
|
|
1559
1565
|
}, qu = (t) => {
|
|
1560
1566
|
t.container.onmousedown = () => {
|
|
1561
1567
|
t.popup.onmouseup = function(e) {
|
|
1562
|
-
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (
|
|
1568
|
+
t.popup.onmouseup = void 0, (e.target === t.popup || t.popup.contains(e.target)) && (Zn = !0);
|
|
1563
1569
|
};
|
|
1564
1570
|
};
|
|
1565
1571
|
}, Gu = (t, e, n) => {
|
|
1566
1572
|
e.container.onclick = (r) => {
|
|
1567
1573
|
const o = Z.innerParams.get(t);
|
|
1568
|
-
if (
|
|
1569
|
-
|
|
1574
|
+
if (Zn) {
|
|
1575
|
+
Zn = !1;
|
|
1570
1576
|
return;
|
|
1571
1577
|
}
|
|
1572
|
-
r.target === e.container && ir(o.allowOutsideClick) && n(
|
|
1578
|
+
r.target === e.container && ir(o.allowOutsideClick) && n(Yt.backdrop);
|
|
1573
1579
|
};
|
|
1574
1580
|
}, Ju = (t) => typeof t == "object" && t.jquery, di = (t) => t instanceof Element || Ju(t), Yu = (t) => {
|
|
1575
1581
|
const e = {};
|
|
@@ -1630,7 +1636,7 @@ const od = (t) => {
|
|
|
1630
1636
|
clickDeny: fu,
|
|
1631
1637
|
enableLoading: Wt,
|
|
1632
1638
|
fire: Xu,
|
|
1633
|
-
getActions:
|
|
1639
|
+
getActions: Rn,
|
|
1634
1640
|
getCancelButton: Rt,
|
|
1635
1641
|
getCloseButton: ho,
|
|
1636
1642
|
getConfirmButton: st,
|
|
@@ -1638,11 +1644,11 @@ const od = (t) => {
|
|
|
1638
1644
|
getDenyButton: Ct,
|
|
1639
1645
|
getFocusableElements: go,
|
|
1640
1646
|
getFooter: vs,
|
|
1641
|
-
getHtmlContainer:
|
|
1642
|
-
getIcon:
|
|
1647
|
+
getHtmlContainer: Xn,
|
|
1648
|
+
getIcon: Ln,
|
|
1643
1649
|
getImage: gs,
|
|
1644
1650
|
getInputLabel: Nl,
|
|
1645
|
-
getLoader:
|
|
1651
|
+
getLoader: Jt,
|
|
1646
1652
|
getPopup: ue,
|
|
1647
1653
|
getTimerLeft: Qu,
|
|
1648
1654
|
getTimerProgressBar: ar,
|
|
@@ -1662,7 +1668,7 @@ const od = (t) => {
|
|
|
1662
1668
|
toggleTimer: ed
|
|
1663
1669
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1664
1670
|
let Jr;
|
|
1665
|
-
class
|
|
1671
|
+
class Xt {
|
|
1666
1672
|
constructor(...e) {
|
|
1667
1673
|
if (typeof window > "u")
|
|
1668
1674
|
return;
|
|
@@ -1698,7 +1704,7 @@ const sd = (t, e, n) => new Promise((r, o) => {
|
|
|
1698
1704
|
const i = (s) => {
|
|
1699
1705
|
t.closePopup({ isDismissed: !0, dismiss: s });
|
|
1700
1706
|
};
|
|
1701
|
-
|
|
1707
|
+
bn.swalPromiseResolve.set(t, r), bn.swalPromiseReject.set(t, o), e.confirmButton.onclick = () => Mu(t), e.denyButton.onclick = () => Uu(t), e.cancelButton.onclick = () => Hu(t, i), e.closeButton.onclick = () => i(Yt.close), Vu(t, e, i), pu(t, X, n, i), tu(t, n), Yc(n), cd(X, n, i), ud(e, n), setTimeout(() => {
|
|
1702
1708
|
e.container.scrollTop = 0;
|
|
1703
1709
|
});
|
|
1704
1710
|
}), ad = (t, e) => {
|
|
@@ -1708,11 +1714,11 @@ const sd = (t, e, n) => new Promise((r, o) => {
|
|
|
1708
1714
|
const e = {
|
|
1709
1715
|
popup: ue(),
|
|
1710
1716
|
container: xe(),
|
|
1711
|
-
actions:
|
|
1717
|
+
actions: Rn(),
|
|
1712
1718
|
confirmButton: st(),
|
|
1713
1719
|
denyButton: Ct(),
|
|
1714
1720
|
cancelButton: Rt(),
|
|
1715
|
-
loader:
|
|
1721
|
+
loader: Jt(),
|
|
1716
1722
|
closeButton: ho(),
|
|
1717
1723
|
validationMessage: sr(),
|
|
1718
1724
|
progressSteps: ys()
|
|
@@ -1734,17 +1740,17 @@ const sd = (t, e, n) => new Promise((r, o) => {
|
|
|
1734
1740
|
}, dd = (t, e) => e.focusDeny && Ke(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Ke(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Ke(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, fd = () => {
|
|
1735
1741
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
1736
1742
|
};
|
|
1737
|
-
Object.assign(
|
|
1738
|
-
Object.assign(
|
|
1743
|
+
Object.assign(Xt.prototype, Ds);
|
|
1744
|
+
Object.assign(Xt, id);
|
|
1739
1745
|
Object.keys(Ds).forEach((t) => {
|
|
1740
|
-
|
|
1746
|
+
Xt[t] = function(...e) {
|
|
1741
1747
|
if (Jr)
|
|
1742
1748
|
return Jr[t](...e);
|
|
1743
1749
|
};
|
|
1744
1750
|
});
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
const qt =
|
|
1751
|
+
Xt.DismissReason = Yt;
|
|
1752
|
+
Xt.version = "11.4.8";
|
|
1753
|
+
const qt = Xt;
|
|
1748
1754
|
qt.default = qt;
|
|
1749
1755
|
/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */
|
|
1750
1756
|
const {
|
|
@@ -1774,7 +1780,7 @@ Yr || (Yr = function(e, n, r) {
|
|
|
1774
1780
|
Xr || (Xr = function(e, n) {
|
|
1775
1781
|
return new e(...n);
|
|
1776
1782
|
});
|
|
1777
|
-
const
|
|
1783
|
+
const Hn = Ge(Array.prototype.forEach), pi = Ge(Array.prototype.pop), rn = Ge(Array.prototype.push), qn = Ge(String.prototype.toLowerCase), Er = Ge(String.prototype.toString), gd = Ge(String.prototype.match), on = Ge(String.prototype.replace), yd = Ge(String.prototype.indexOf), vd = Ge(String.prototype.trim), tt = Ge(Object.prototype.hasOwnProperty), He = Ge(RegExp.prototype.test), sn = bd(TypeError);
|
|
1778
1784
|
function Ge(t) {
|
|
1779
1785
|
return function(e) {
|
|
1780
1786
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -1790,7 +1796,7 @@ function bd(t) {
|
|
|
1790
1796
|
};
|
|
1791
1797
|
}
|
|
1792
1798
|
function ne(t, e) {
|
|
1793
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
1799
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : qn;
|
|
1794
1800
|
mi && mi(t, null);
|
|
1795
1801
|
let r = e.length;
|
|
1796
1802
|
for (; r--; ) {
|
|
@@ -1814,7 +1820,7 @@ function It(t) {
|
|
|
1814
1820
|
tt(t, n) && (Array.isArray(r) ? e[n] = wd(r) : r && typeof r == "object" && r.constructor === Object ? e[n] = It(r) : e[n] = r);
|
|
1815
1821
|
return e;
|
|
1816
1822
|
}
|
|
1817
|
-
function
|
|
1823
|
+
function jn(t, e) {
|
|
1818
1824
|
for (; t !== null; ) {
|
|
1819
1825
|
const r = hd(t, e);
|
|
1820
1826
|
if (r) {
|
|
@@ -1830,7 +1836,7 @@ function Hn(t, e) {
|
|
|
1830
1836
|
}
|
|
1831
1837
|
return n;
|
|
1832
1838
|
}
|
|
1833
|
-
const hi = Re(["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"]), xr = Re(["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"]), Ir = Re(["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"]), _d = Re(["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"]), Pr = Re(["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"]), Sd = Re(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gi = Re(["#text"]), yi = Re(["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"]), Or = Re(["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"]), vi = Re(["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"]),
|
|
1839
|
+
const hi = Re(["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"]), xr = Re(["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"]), Ir = Re(["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"]), _d = Re(["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"]), Pr = Re(["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"]), Sd = Re(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gi = Re(["#text"]), yi = Re(["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"]), Or = Re(["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"]), vi = Re(["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"]), Vn = Re(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), kd = at(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Cd = at(/<%[\w\W]*|[\w\W]*%>/gm), Ad = at(/\${[\w\W]*}/gm), Td = at(/^data-[\-\w.\u00B7-\uFFFF]/), Ed = at(/^aria-[\-\w]+$/), Vs = at(
|
|
1834
1840
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1835
1841
|
// eslint-disable-line no-useless-escape
|
|
1836
1842
|
), xd = at(/^(?:\w+script|data):/i), Id = at(
|
|
@@ -1889,7 +1895,7 @@ function zs() {
|
|
|
1889
1895
|
HTMLFormElement: f,
|
|
1890
1896
|
DOMParser: h,
|
|
1891
1897
|
trustedTypes: _
|
|
1892
|
-
} = t, y = a.prototype, R =
|
|
1898
|
+
} = t, y = a.prototype, R = jn(y, "cloneNode"), w = jn(y, "nextSibling"), H = jn(y, "childNodes"), A = jn(y, "parentNode");
|
|
1893
1899
|
if (typeof s == "function") {
|
|
1894
1900
|
const j = n.createElement("template");
|
|
1895
1901
|
j.content && j.content.ownerDocument && (n = j.content.ownerDocument);
|
|
@@ -1919,7 +1925,7 @@ function zs() {
|
|
|
1919
1925
|
} = bi, V = null;
|
|
1920
1926
|
const he = ne({}, [...hi, ...xr, ...Ir, ...Pr, ...gi]);
|
|
1921
1927
|
let d = null;
|
|
1922
|
-
const p = ne({}, [...yi, ...Or, ...vi, ...
|
|
1928
|
+
const p = ne({}, [...yi, ...Or, ...vi, ...Vn]);
|
|
1923
1929
|
let S = Object.seal(js(null, {
|
|
1924
1930
|
tagNameCheck: {
|
|
1925
1931
|
writable: !0,
|
|
@@ -1941,15 +1947,15 @@ function zs() {
|
|
|
1941
1947
|
}
|
|
1942
1948
|
})), x = null, k = null, D = !0, L = !0, $ = !1, M = !0, F = !1, W = !1, oe = !1, $e = !1, Pe = !1, we = !1, ct = !1, $o = !0, No = !1;
|
|
1943
1949
|
const Da = "user-content-";
|
|
1944
|
-
let vr = !0,
|
|
1950
|
+
let vr = !0, en = !1, Ft = {}, Bt = null;
|
|
1945
1951
|
const Do = ne({}, ["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"]);
|
|
1946
1952
|
let Fo = null;
|
|
1947
1953
|
const Bo = ne({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1948
1954
|
let br = null;
|
|
1949
|
-
const Mo = ne({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
1955
|
+
const Mo = ne({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Bn = "http://www.w3.org/1998/Math/MathML", Mn = "http://www.w3.org/2000/svg", mt = "http://www.w3.org/1999/xhtml";
|
|
1950
1956
|
let Mt = mt, wr = !1, _r = null;
|
|
1951
|
-
const Fa = ne({}, [
|
|
1952
|
-
let
|
|
1957
|
+
const Fa = ne({}, [Bn, Mn, mt], Er);
|
|
1958
|
+
let tn = null;
|
|
1953
1959
|
const Ba = ["application/xhtml+xml", "text/html"], Ma = "text/html";
|
|
1954
1960
|
let be = null, Ut = null;
|
|
1955
1961
|
const Ua = n.createElement("form"), Uo = function(m) {
|
|
@@ -1957,8 +1963,8 @@ function zs() {
|
|
|
1957
1963
|
}, Sr = function() {
|
|
1958
1964
|
let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1959
1965
|
if (!(Ut && Ut === m)) {
|
|
1960
|
-
if ((!m || typeof m != "object") && (m = {}), m = It(m),
|
|
1961
|
-
Ba.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? Ma : m.PARSER_MEDIA_TYPE, be =
|
|
1966
|
+
if ((!m || typeof m != "object") && (m = {}), m = It(m), tn = // eslint-disable-next-line unicorn/prefer-includes
|
|
1967
|
+
Ba.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? Ma : m.PARSER_MEDIA_TYPE, be = tn === "application/xhtml+xml" ? Er : qn, V = tt(m, "ALLOWED_TAGS") ? ne({}, m.ALLOWED_TAGS, be) : he, d = tt(m, "ALLOWED_ATTR") ? ne({}, m.ALLOWED_ATTR, be) : p, _r = tt(m, "ALLOWED_NAMESPACES") ? ne({}, m.ALLOWED_NAMESPACES, Er) : Fa, br = tt(m, "ADD_URI_SAFE_ATTR") ? ne(
|
|
1962
1968
|
It(Mo),
|
|
1963
1969
|
// eslint-disable-line indent
|
|
1964
1970
|
m.ADD_URI_SAFE_ATTR,
|
|
@@ -1972,11 +1978,11 @@ function zs() {
|
|
|
1972
1978
|
// eslint-disable-line indent
|
|
1973
1979
|
be
|
|
1974
1980
|
// eslint-disable-line indent
|
|
1975
|
-
) : Bo, Bt = tt(m, "FORBID_CONTENTS") ? ne({}, m.FORBID_CONTENTS, be) : Do, x = tt(m, "FORBID_TAGS") ? ne({}, m.FORBID_TAGS, be) : {}, k = tt(m, "FORBID_ATTR") ? ne({}, m.FORBID_ATTR, be) : {}, Ft = tt(m, "USE_PROFILES") ? m.USE_PROFILES : !1, D = m.ALLOW_ARIA_ATTR !== !1, L = m.ALLOW_DATA_ATTR !== !1, $ = m.ALLOW_UNKNOWN_PROTOCOLS || !1, M = m.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = m.SAFE_FOR_TEMPLATES || !1, W = m.WHOLE_DOCUMENT || !1, Pe = m.RETURN_DOM || !1, we = m.RETURN_DOM_FRAGMENT || !1, ct = m.RETURN_TRUSTED_TYPE || !1, $e = m.FORCE_BODY || !1, $o = m.SANITIZE_DOM !== !1, No = m.SANITIZE_NAMED_PROPS || !1, vr = m.KEEP_CONTENT !== !1,
|
|
1981
|
+
) : Bo, Bt = tt(m, "FORBID_CONTENTS") ? ne({}, m.FORBID_CONTENTS, be) : Do, x = tt(m, "FORBID_TAGS") ? ne({}, m.FORBID_TAGS, be) : {}, k = tt(m, "FORBID_ATTR") ? ne({}, m.FORBID_ATTR, be) : {}, Ft = tt(m, "USE_PROFILES") ? m.USE_PROFILES : !1, D = m.ALLOW_ARIA_ATTR !== !1, L = m.ALLOW_DATA_ATTR !== !1, $ = m.ALLOW_UNKNOWN_PROTOCOLS || !1, M = m.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = m.SAFE_FOR_TEMPLATES || !1, W = m.WHOLE_DOCUMENT || !1, Pe = m.RETURN_DOM || !1, we = m.RETURN_DOM_FRAGMENT || !1, ct = m.RETURN_TRUSTED_TYPE || !1, $e = m.FORCE_BODY || !1, $o = m.SANITIZE_DOM !== !1, No = m.SANITIZE_NAMED_PROPS || !1, vr = m.KEEP_CONTENT !== !1, en = m.IN_PLACE || !1, ve = m.ALLOWED_URI_REGEXP || Vs, Mt = m.NAMESPACE || mt, S = m.CUSTOM_ELEMENT_HANDLING || {}, m.CUSTOM_ELEMENT_HANDLING && Uo(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (S.tagNameCheck = m.CUSTOM_ELEMENT_HANDLING.tagNameCheck), m.CUSTOM_ELEMENT_HANDLING && Uo(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (S.attributeNameCheck = m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), m.CUSTOM_ELEMENT_HANDLING && typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (S.allowCustomizedBuiltInElements = m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), F && (L = !1), we && (Pe = !0), Ft && (V = ne({}, gi), d = [], Ft.html === !0 && (ne(V, hi), ne(d, yi)), Ft.svg === !0 && (ne(V, xr), ne(d, Or), ne(d, Vn)), Ft.svgFilters === !0 && (ne(V, Ir), ne(d, Or), ne(d, Vn)), Ft.mathMl === !0 && (ne(V, Pr), ne(d, vi), ne(d, Vn))), m.ADD_TAGS && (V === he && (V = It(V)), ne(V, m.ADD_TAGS, be)), m.ADD_ATTR && (d === p && (d = It(d)), ne(d, m.ADD_ATTR, be)), m.ADD_URI_SAFE_ATTR && ne(br, m.ADD_URI_SAFE_ATTR, be), m.FORBID_CONTENTS && (Bt === Do && (Bt = It(Bt)), ne(Bt, m.FORBID_CONTENTS, be)), vr && (V["#text"] = !0), W && ne(V, ["html", "head", "body"]), V.table && (ne(V, ["tbody"]), delete x.tbody), m.TRUSTED_TYPES_POLICY) {
|
|
1976
1982
|
if (typeof m.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1977
|
-
throw
|
|
1983
|
+
throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1978
1984
|
if (typeof m.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1979
|
-
throw
|
|
1985
|
+
throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1980
1986
|
C = m.TRUSTED_TYPES_POLICY, J = C.createHTML("");
|
|
1981
1987
|
} else
|
|
1982
1988
|
C === void 0 && (C = Od(_, o)), C !== null && typeof J == "string" && (J = C.createHTML(""));
|
|
@@ -1988,10 +1994,10 @@ function zs() {
|
|
|
1988
1994
|
namespaceURI: Mt,
|
|
1989
1995
|
tagName: "template"
|
|
1990
1996
|
});
|
|
1991
|
-
const U =
|
|
1992
|
-
return _r[m.namespaceURI] ? m.namespaceURI ===
|
|
1997
|
+
const U = qn(m.tagName), de = qn(N.tagName);
|
|
1998
|
+
return _r[m.namespaceURI] ? m.namespaceURI === Mn ? N.namespaceURI === mt ? U === "svg" : N.namespaceURI === Bn ? U === "svg" && (de === "annotation-xml" || Ho[de]) : !!Vo[U] : m.namespaceURI === Bn ? N.namespaceURI === mt ? U === "math" : N.namespaceURI === Mn ? U === "math" && jo[de] : !!Ko[U] : m.namespaceURI === mt ? N.namespaceURI === Mn && !jo[de] || N.namespaceURI === Bn && !Ho[de] ? !1 : !Ko[U] && (Ha[U] || !Vo[U]) : !!(tn === "application/xhtml+xml" && _r[m.namespaceURI]) : !1;
|
|
1993
1999
|
}, Tt = function(m) {
|
|
1994
|
-
|
|
2000
|
+
rn(e.removed, {
|
|
1995
2001
|
element: m
|
|
1996
2002
|
});
|
|
1997
2003
|
try {
|
|
@@ -2001,12 +2007,12 @@ function zs() {
|
|
|
2001
2007
|
}
|
|
2002
2008
|
}, kr = function(m, N) {
|
|
2003
2009
|
try {
|
|
2004
|
-
|
|
2010
|
+
rn(e.removed, {
|
|
2005
2011
|
attribute: N.getAttributeNode(m),
|
|
2006
2012
|
from: N
|
|
2007
2013
|
});
|
|
2008
2014
|
} catch {
|
|
2009
|
-
|
|
2015
|
+
rn(e.removed, {
|
|
2010
2016
|
attribute: null,
|
|
2011
2017
|
from: N
|
|
2012
2018
|
});
|
|
@@ -2030,11 +2036,11 @@ function zs() {
|
|
|
2030
2036
|
const Ae = gd(m, /^[\r\n\t ]+/);
|
|
2031
2037
|
U = Ae && Ae[0];
|
|
2032
2038
|
}
|
|
2033
|
-
|
|
2039
|
+
tn === "application/xhtml+xml" && Mt === mt && (m = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + m + "</body></html>");
|
|
2034
2040
|
const de = C ? C.createHTML(m) : m;
|
|
2035
2041
|
if (Mt === mt)
|
|
2036
2042
|
try {
|
|
2037
|
-
N = new h().parseFromString(de,
|
|
2043
|
+
N = new h().parseFromString(de, tn);
|
|
2038
2044
|
} catch {
|
|
2039
2045
|
}
|
|
2040
2046
|
if (!N || !N.documentElement) {
|
|
@@ -2059,7 +2065,7 @@ function zs() {
|
|
|
2059
2065
|
}, qo = function(m) {
|
|
2060
2066
|
return typeof l == "function" && m instanceof l;
|
|
2061
2067
|
}, pt = function(m, N, U) {
|
|
2062
|
-
P[m] &&
|
|
2068
|
+
P[m] && Hn(P[m], (de) => {
|
|
2063
2069
|
de.call(e, N, U, Ut);
|
|
2064
2070
|
});
|
|
2065
2071
|
}, Go = function(m) {
|
|
@@ -2085,9 +2091,9 @@ function zs() {
|
|
|
2085
2091
|
}
|
|
2086
2092
|
return Tt(m), !0;
|
|
2087
2093
|
}
|
|
2088
|
-
return m instanceof a && !ja(m) || (U === "noscript" || U === "noembed" || U === "noframes") && He(/<\/no(script|embed|frames)/i, m.innerHTML) ? (Tt(m), !0) : (F && m.nodeType === 3 && (N = m.textContent,
|
|
2089
|
-
N =
|
|
2090
|
-
}), m.textContent !== N && (
|
|
2094
|
+
return m instanceof a && !ja(m) || (U === "noscript" || U === "noembed" || U === "noframes") && He(/<\/no(script|embed|frames)/i, m.innerHTML) ? (Tt(m), !0) : (F && m.nodeType === 3 && (N = m.textContent, Hn([O, z, E], (de) => {
|
|
2095
|
+
N = on(N, de, " ");
|
|
2096
|
+
}), m.textContent !== N && (rn(e.removed, {
|
|
2091
2097
|
element: m.cloneNode()
|
|
2092
2098
|
}), m.textContent = N)), pt("afterSanitizeElements", m, null), !1);
|
|
2093
2099
|
}, Jo = function(m, N, U) {
|
|
@@ -2105,9 +2111,9 @@ function zs() {
|
|
|
2105
2111
|
N === "is" && S.allowCustomizedBuiltInElements && (S.tagNameCheck instanceof RegExp && He(S.tagNameCheck, U) || S.tagNameCheck instanceof Function && S.tagNameCheck(U)))
|
|
2106
2112
|
) return !1;
|
|
2107
2113
|
} else if (!br[N]) {
|
|
2108
|
-
if (!He(ve,
|
|
2114
|
+
if (!He(ve, on(U, fe, ""))) {
|
|
2109
2115
|
if (!((N === "src" || N === "xlink:href" || N === "href") && m !== "script" && yd(U, "data:") === 0 && Fo[m])) {
|
|
2110
|
-
if (!($ && !He(pe,
|
|
2116
|
+
if (!($ && !He(pe, on(U, fe, "")))) {
|
|
2111
2117
|
if (U)
|
|
2112
2118
|
return !1;
|
|
2113
2119
|
}
|
|
@@ -2138,21 +2144,21 @@ function zs() {
|
|
|
2138
2144
|
name: Ae,
|
|
2139
2145
|
namespaceURI: Ne,
|
|
2140
2146
|
value: Et
|
|
2141
|
-
} = Ce,
|
|
2147
|
+
} = Ce, nn = be(Ae);
|
|
2142
2148
|
let De = Ae === "value" ? Et : vd(Et);
|
|
2143
|
-
if (U.attrName =
|
|
2149
|
+
if (U.attrName = nn, U.attrValue = De, U.keepAttr = !0, U.forceKeepAttr = void 0, pt("uponSanitizeAttribute", m, U), De = U.attrValue, U.forceKeepAttr || (kr(Ae, m), !U.keepAttr))
|
|
2144
2150
|
continue;
|
|
2145
2151
|
if (!M && He(/\/>/i, De)) {
|
|
2146
2152
|
kr(Ae, m);
|
|
2147
2153
|
continue;
|
|
2148
2154
|
}
|
|
2149
|
-
F &&
|
|
2150
|
-
De =
|
|
2155
|
+
F && Hn([O, z, E], (Qo) => {
|
|
2156
|
+
De = on(De, Qo, " ");
|
|
2151
2157
|
});
|
|
2152
2158
|
const Zo = be(m.nodeName);
|
|
2153
|
-
if (Jo(Zo,
|
|
2154
|
-
if (No && (
|
|
2155
|
-
switch (_.getAttributeType(Zo,
|
|
2159
|
+
if (Jo(Zo, nn, De)) {
|
|
2160
|
+
if (No && (nn === "id" || nn === "name") && (kr(Ae, m), De = Da + De), C && typeof _ == "object" && typeof _.getAttributeType == "function" && !Ne)
|
|
2161
|
+
switch (_.getAttributeType(Zo, nn)) {
|
|
2156
2162
|
case "TrustedHTML": {
|
|
2157
2163
|
De = C.createHTML(De);
|
|
2158
2164
|
break;
|
|
@@ -2181,16 +2187,16 @@ function zs() {
|
|
|
2181
2187
|
if (wr = !j, wr && (j = "<!-->"), typeof j != "string" && !qo(j))
|
|
2182
2188
|
if (typeof j.toString == "function") {
|
|
2183
2189
|
if (j = j.toString(), typeof j != "string")
|
|
2184
|
-
throw
|
|
2190
|
+
throw sn("dirty is not a string, aborting");
|
|
2185
2191
|
} else
|
|
2186
|
-
throw
|
|
2192
|
+
throw sn("toString is not a function");
|
|
2187
2193
|
if (!e.isSupported)
|
|
2188
2194
|
return j;
|
|
2189
|
-
if (oe || Sr(m), e.removed = [], typeof j == "string" && (
|
|
2195
|
+
if (oe || Sr(m), e.removed = [], typeof j == "string" && (en = !1), en) {
|
|
2190
2196
|
if (j.nodeName) {
|
|
2191
2197
|
const Et = be(j.nodeName);
|
|
2192
2198
|
if (!V[Et] || x[Et])
|
|
2193
|
-
throw
|
|
2199
|
+
throw sn("root node is forbidden and cannot be sanitized in-place");
|
|
2194
2200
|
}
|
|
2195
2201
|
} else if (j instanceof l)
|
|
2196
2202
|
N = zo("<!---->"), U = N.ownerDocument.importNode(j, !0), U.nodeType === 1 && U.nodeName === "BODY" || U.nodeName === "HTML" ? N = U : N.appendChild(U);
|
|
@@ -2202,10 +2208,10 @@ function zs() {
|
|
|
2202
2208
|
return Pe ? null : ct ? J : "";
|
|
2203
2209
|
}
|
|
2204
2210
|
N && $e && Tt(N.firstChild);
|
|
2205
|
-
const Ae = Wo(
|
|
2211
|
+
const Ae = Wo(en ? j : N);
|
|
2206
2212
|
for (; de = Ae.nextNode(); )
|
|
2207
2213
|
Go(de) || (de.content instanceof i && Ka(de.content), Xo(de));
|
|
2208
|
-
if (
|
|
2214
|
+
if (en)
|
|
2209
2215
|
return j;
|
|
2210
2216
|
if (Pe) {
|
|
2211
2217
|
if (we)
|
|
@@ -2217,8 +2223,8 @@ function zs() {
|
|
|
2217
2223
|
}
|
|
2218
2224
|
let Ne = W ? N.outerHTML : N.innerHTML;
|
|
2219
2225
|
return W && V["!doctype"] && N.ownerDocument && N.ownerDocument.doctype && N.ownerDocument.doctype.name && He(Ks, N.ownerDocument.doctype.name) && (Ne = "<!DOCTYPE " + N.ownerDocument.doctype.name + `>
|
|
2220
|
-
` + Ne), F &&
|
|
2221
|
-
Ne =
|
|
2226
|
+
` + Ne), F && Hn([O, z, E], (Et) => {
|
|
2227
|
+
Ne = on(Ne, Et, " ");
|
|
2222
2228
|
}), C && ct ? C.createHTML(Ne) : Ne;
|
|
2223
2229
|
}, e.setConfig = function() {
|
|
2224
2230
|
let j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2230,7 +2236,7 @@ function zs() {
|
|
|
2230
2236
|
const U = be(j), de = be(m);
|
|
2231
2237
|
return Jo(U, de, N);
|
|
2232
2238
|
}, e.addHook = function(j, m) {
|
|
2233
|
-
typeof m == "function" && (P[j] = P[j] || [],
|
|
2239
|
+
typeof m == "function" && (P[j] = P[j] || [], rn(P[j], m));
|
|
2234
2240
|
}, e.removeHook = function(j) {
|
|
2235
2241
|
if (P[j])
|
|
2236
2242
|
return pi(P[j]);
|
|
@@ -2635,9 +2641,9 @@ const Wd = {}, qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2635
2641
|
})(Js);
|
|
2636
2642
|
var Gd = Js.exports;
|
|
2637
2643
|
const Jd = /* @__PURE__ */ Dd(Gd);
|
|
2638
|
-
class
|
|
2644
|
+
class un extends Error {
|
|
2639
2645
|
}
|
|
2640
|
-
|
|
2646
|
+
un.prototype.name = "InvalidTokenError";
|
|
2641
2647
|
function Yd(t) {
|
|
2642
2648
|
return decodeURIComponent(atob(t).replace(/(.)/g, (e, n) => {
|
|
2643
2649
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -2666,21 +2672,21 @@ function Xd(t) {
|
|
|
2666
2672
|
}
|
|
2667
2673
|
function Rr(t, e) {
|
|
2668
2674
|
if (typeof t != "string")
|
|
2669
|
-
throw new
|
|
2675
|
+
throw new un("Invalid token specified: must be a string");
|
|
2670
2676
|
e || (e = {});
|
|
2671
2677
|
const n = e.header === !0 ? 0 : 1, r = t.split(".")[n];
|
|
2672
2678
|
if (typeof r != "string")
|
|
2673
|
-
throw new
|
|
2679
|
+
throw new un(`Invalid token specified: missing part #${n + 1}`);
|
|
2674
2680
|
let o;
|
|
2675
2681
|
try {
|
|
2676
2682
|
o = Xd(r);
|
|
2677
2683
|
} catch (i) {
|
|
2678
|
-
throw new
|
|
2684
|
+
throw new un(`Invalid token specified: invalid base64 for part #${n + 1} (${i.message})`);
|
|
2679
2685
|
}
|
|
2680
2686
|
try {
|
|
2681
2687
|
return JSON.parse(o);
|
|
2682
2688
|
} catch (i) {
|
|
2683
|
-
throw new
|
|
2689
|
+
throw new un(`Invalid token specified: invalid json for part #${n + 1} (${i.message})`);
|
|
2684
2690
|
}
|
|
2685
2691
|
}
|
|
2686
2692
|
if (typeof Promise > "u")
|
|
@@ -3506,7 +3512,7 @@ const tf = () => Ja(Xs), ag = (t) => ef(t), nf = ["data-cor"], rf = { class: "sf
|
|
|
3506
3512
|
const u = o.value[0], f = u === "?" ? 0 : (u.charCodeAt(0) - 64) % 19;
|
|
3507
3513
|
return Math.max(f, 0);
|
|
3508
3514
|
}), c = Ve(!1);
|
|
3509
|
-
return
|
|
3515
|
+
return xn(() => {
|
|
3510
3516
|
o.value = l();
|
|
3511
3517
|
}), (u, f) => (K(), ee(kt, null, [
|
|
3512
3518
|
q("div", {
|
|
@@ -3520,19 +3526,19 @@ const tf = () => Ja(Xs), ag = (t) => ef(t), nf = ["data-cor"], rf = { class: "sf
|
|
|
3520
3526
|
position: "right"
|
|
3521
3527
|
}, {
|
|
3522
3528
|
title: ot(() => [
|
|
3523
|
-
|
|
3529
|
+
Wn("Minha conta")
|
|
3524
3530
|
]),
|
|
3525
3531
|
default: ot(() => {
|
|
3526
3532
|
var h;
|
|
3527
3533
|
return [
|
|
3528
3534
|
q("div", rf, [
|
|
3529
|
-
|
|
3535
|
+
Wn(dt((h = _e(r).User) == null ? void 0 : h.name) + " ", 1),
|
|
3530
3536
|
je(kl, {
|
|
3531
3537
|
color: "error",
|
|
3532
3538
|
onClick: s
|
|
3533
3539
|
}, {
|
|
3534
3540
|
default: ot(() => [
|
|
3535
|
-
|
|
3541
|
+
Wn("Sair")
|
|
3536
3542
|
]),
|
|
3537
3543
|
_: 1
|
|
3538
3544
|
})
|
|
@@ -3582,7 +3588,7 @@ class ff {
|
|
|
3582
3588
|
this.EnableLightMode();
|
|
3583
3589
|
}
|
|
3584
3590
|
}
|
|
3585
|
-
const
|
|
3591
|
+
const Gt = new ff(), mf = /* @__PURE__ */ Ya('<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), pf = [
|
|
3586
3592
|
mf
|
|
3587
3593
|
], hf = /* @__PURE__ */ Ze({
|
|
3588
3594
|
__name: "ThemeToggle",
|
|
@@ -3590,7 +3596,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3590
3596
|
return (e, n) => (K(), ee("button", {
|
|
3591
3597
|
id: "sf-theme-toggle",
|
|
3592
3598
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
3593
|
-
(...r) => _e(
|
|
3599
|
+
(...r) => _e(Gt).Toggle && _e(Gt).Toggle(...r))
|
|
3594
3600
|
}, pf));
|
|
3595
3601
|
}
|
|
3596
3602
|
}), gf = { id: "sf-layout" }, yf = /* @__PURE__ */ q("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), vf = { class: "title" }, bf = { class: "sf-layout-nav-content" }, wf = /* @__PURE__ */ q("div", { class: "sf-layout-nav-footer" }, [
|
|
@@ -3600,7 +3606,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3600
3606
|
emits: ["mounted", "logout"],
|
|
3601
3607
|
setup(t, { emit: e }) {
|
|
3602
3608
|
const n = ls(), r = e;
|
|
3603
|
-
return
|
|
3609
|
+
return xn(() => {
|
|
3604
3610
|
r("mounted");
|
|
3605
3611
|
}), (o, i) => (K(), ee("div", gf, [
|
|
3606
3612
|
q("header", null, [
|
|
@@ -3654,7 +3660,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3654
3660
|
function o() {
|
|
3655
3661
|
r == null || r.scrollTo(0, 0);
|
|
3656
3662
|
}
|
|
3657
|
-
return
|
|
3663
|
+
return xn(() => {
|
|
3658
3664
|
var i;
|
|
3659
3665
|
r = ((i = document.getElementById(n)) == null ? void 0 : i.parentElement) ?? null, r && r.addEventListener("scroll", function() {
|
|
3660
3666
|
e.value = this.scrollTop - this.clientHeight > 0;
|
|
@@ -3690,7 +3696,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3690
3696
|
}
|
|
3691
3697
|
return (s, l) => (K(), ee("div", {
|
|
3692
3698
|
class: ge(n()),
|
|
3693
|
-
style:
|
|
3699
|
+
style: yn(e.style)
|
|
3694
3700
|
}, [
|
|
3695
3701
|
q("div", {
|
|
3696
3702
|
class: ge(o())
|
|
@@ -3757,7 +3763,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3757
3763
|
const a = n.value.scrollWidth - n.value.clientWidth;
|
|
3758
3764
|
o.value = n.value.scrollLeft > 10, i.value = n.value.scrollLeft < a - 10;
|
|
3759
3765
|
}
|
|
3760
|
-
return
|
|
3766
|
+
return xn(() => {
|
|
3761
3767
|
n.value.addEventListener("scroll", l), r.observe(n.value);
|
|
3762
3768
|
}), ss(() => {
|
|
3763
3769
|
var a;
|
|
@@ -3769,7 +3775,7 @@ const Zn = new ff(), mf = /* @__PURE__ */ Ya('<svg xmlns="http://www.w3.org/2000
|
|
|
3769
3775
|
} catch {
|
|
3770
3776
|
}
|
|
3771
3777
|
}), (a, c) => {
|
|
3772
|
-
const u =
|
|
3778
|
+
const u = In("RouterLink");
|
|
3773
3779
|
return K(), ee("div", Cf, [
|
|
3774
3780
|
q("div", {
|
|
3775
3781
|
class: ge(["left-arrow", { active: o.value }]),
|
|
@@ -3902,10 +3908,10 @@ function Nf(t, e = {}, ...n) {
|
|
|
3902
3908
|
function nt(t, e) {
|
|
3903
3909
|
return dr(t) ? t.matches(e) ? t : t.querySelector(e) : null;
|
|
3904
3910
|
}
|
|
3905
|
-
function
|
|
3911
|
+
function dn(t, e) {
|
|
3906
3912
|
t && document.activeElement !== t && t.focus(e);
|
|
3907
3913
|
}
|
|
3908
|
-
function
|
|
3914
|
+
function fn(t, e) {
|
|
3909
3915
|
if (dr(t)) {
|
|
3910
3916
|
const n = t.getAttribute(e);
|
|
3911
3917
|
return isNaN(n) ? n === "true" || n === "false" ? n === "true" : n : +n;
|
|
@@ -4058,7 +4064,7 @@ function gt(t, e) {
|
|
|
4058
4064
|
}
|
|
4059
4065
|
return !1;
|
|
4060
4066
|
}
|
|
4061
|
-
function
|
|
4067
|
+
function gn(t) {
|
|
4062
4068
|
return t && t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":");
|
|
4063
4069
|
}
|
|
4064
4070
|
function Vf(t) {
|
|
@@ -4070,22 +4076,22 @@ function ea(t) {
|
|
|
4070
4076
|
function Ci(t) {
|
|
4071
4077
|
return Be(t) ? t.replace(/[A-Z]/g, (e, n) => n === 0 ? e : "." + e.toLowerCase()).toLowerCase() : t;
|
|
4072
4078
|
}
|
|
4073
|
-
var
|
|
4079
|
+
var Kn = {};
|
|
4074
4080
|
function Kf(t = "pui_id_") {
|
|
4075
|
-
return
|
|
4081
|
+
return Kn.hasOwnProperty(t) || (Kn[t] = 0), Kn[t]++, `${t}${Kn[t]}`;
|
|
4076
4082
|
}
|
|
4077
4083
|
function er() {
|
|
4078
4084
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
4079
4085
|
return Kf(t);
|
|
4080
4086
|
}
|
|
4081
|
-
var zf = Object.defineProperty, Wf = Object.defineProperties, qf = Object.getOwnPropertyDescriptors, tr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, Ai = (t, e, n) => e in t ? zf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
4087
|
+
var zf = Object.defineProperty, Wf = Object.defineProperties, qf = Object.getOwnPropertyDescriptors, tr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, Ai = (t, e, n) => e in t ? zf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, an = (t, e) => {
|
|
4082
4088
|
for (var n in e || (e = {}))
|
|
4083
4089
|
ta.call(e, n) && Ai(t, n, e[n]);
|
|
4084
4090
|
if (tr)
|
|
4085
4091
|
for (var n of tr(e))
|
|
4086
4092
|
na.call(e, n) && Ai(t, n, e[n]);
|
|
4087
4093
|
return t;
|
|
4088
|
-
}, Nr = (t, e) => Wf(t, qf(e)),
|
|
4094
|
+
}, Nr = (t, e) => Wf(t, qf(e)), ln = (t, e) => {
|
|
4089
4095
|
var n = {};
|
|
4090
4096
|
for (var r in t)
|
|
4091
4097
|
ta.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
@@ -4129,7 +4135,7 @@ function oa(t, e = "", n = "", r = [], o) {
|
|
|
4129
4135
|
function Xf(t, e, n) {
|
|
4130
4136
|
Be(e, !1) && t.push(`${e}:${n};`);
|
|
4131
4137
|
}
|
|
4132
|
-
function
|
|
4138
|
+
function mn(t, e) {
|
|
4133
4139
|
return t ? `${t}{${e}}` : "";
|
|
4134
4140
|
}
|
|
4135
4141
|
var Dr = (...t) => Zf(me.getTheme(), ...t), Zf = (t = {}, e, n, r = "variable") => {
|
|
@@ -4156,7 +4162,7 @@ function Qf(t, e = {}) {
|
|
|
4156
4162
|
value: l,
|
|
4157
4163
|
tokens: a,
|
|
4158
4164
|
declarations: l.join(""),
|
|
4159
|
-
css:
|
|
4165
|
+
css: mn(o, l.join(""))
|
|
4160
4166
|
};
|
|
4161
4167
|
}
|
|
4162
4168
|
var et = {
|
|
@@ -4208,7 +4214,7 @@ var et = {
|
|
|
4208
4214
|
const { preset: c, options: u } = e;
|
|
4209
4215
|
let f, h, _, y;
|
|
4210
4216
|
if (ce(c)) {
|
|
4211
|
-
const { primitive: R, semantic: w } = c, H = w || {}, { colorScheme: A } = H, C =
|
|
4217
|
+
const { primitive: R, semantic: w } = c, H = w || {}, { colorScheme: A } = H, C = ln(H, ["colorScheme"]), J = A || {}, { dark: te } = J, v = ln(J, ["dark"]), T = ce(R) ? this._toVariables({ primitive: R }, u) : {}, B = ce(C) ? this._toVariables({ semantic: C }, u) : {}, I = ce(v) ? this._toVariables({ light: v }, u) : {}, P = ce(te) ? this._toVariables({ dark: te }, u) : {}, [O, z] = [(i = T.declarations) != null ? i : "", T.tokens], [E, G] = [(s = B.declarations) != null ? s : "", B.tokens || []], [le, pe] = [(l = I.declarations) != null ? l : "", I.tokens || []], [fe, ve] = [(a = P.declarations) != null ? a : "", P.tokens || []];
|
|
4212
4218
|
f = this.transformCSS(t, O, "light", "variable", u, r, o), h = z;
|
|
4213
4219
|
const V = this.transformCSS(t, `${E}${le}color-scheme:light`, "light", "variable", u, r, o), he = this.transformCSS(t, `${fe}color-scheme:dark`, "dark", "variable", u, r, o);
|
|
4214
4220
|
_ = `${V}${he}`, y = [.../* @__PURE__ */ new Set([...G, ...pe, ...ve])];
|
|
@@ -4226,7 +4232,7 @@ var et = {
|
|
|
4226
4232
|
},
|
|
4227
4233
|
getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector: s }) {
|
|
4228
4234
|
var l, a, c;
|
|
4229
|
-
const u = t.replace("-directive", ""), f = e, { colorScheme: h } = f, _ =
|
|
4235
|
+
const u = t.replace("-directive", ""), f = e, { colorScheme: h } = f, _ = ln(f, ["colorScheme"]), y = h || {}, { dark: R } = y, w = ln(y, ["dark"]), H = ce(_) ? this._toVariables({ [u]: _ }, n) : {}, A = ce(w) ? this._toVariables({ [u]: w }, n) : {}, C = ce(R) ? this._toVariables({ [u]: R }, n) : {}, [J, te] = [(l = H.declarations) != null ? l : "", H.tokens || []], [v, T] = [(a = A.declarations) != null ? a : "", A.tokens || []], [B, I] = [(c = C.declarations) != null ? c : "", C.tokens || []], P = [.../* @__PURE__ */ new Set([...te, ...T, ...I])], O = this.transformCSS(u, `${J}${v}`, "light", "variable", n, o, i, s), z = this.transformCSS(u, B, "dark", "variable", n, o, i, s);
|
|
4230
4236
|
return {
|
|
4231
4237
|
css: `${O}${z}`,
|
|
4232
4238
|
tokens: P
|
|
@@ -4254,7 +4260,7 @@ var et = {
|
|
|
4254
4260
|
const s = this.getCommon({ name: t, theme: e, params: n, set: o, defaults: i }), l = Object.entries(r).reduce((a, [c, u]) => a.push(`${c}="${u}"`) && a, []).join(" ");
|
|
4255
4261
|
return Object.entries(s || {}).reduce((a, [c, u]) => {
|
|
4256
4262
|
if (u != null && u.css) {
|
|
4257
|
-
const f =
|
|
4263
|
+
const f = gn(u == null ? void 0 : u.css), h = `${c}-variables`;
|
|
4258
4264
|
a.push(`<style type="text/css" data-primevue-style-id="${h}" ${l}>${f}</style>`);
|
|
4259
4265
|
}
|
|
4260
4266
|
return a;
|
|
@@ -4263,7 +4269,7 @@ var et = {
|
|
|
4263
4269
|
getStyleSheet({ name: t = "", theme: e = {}, params: n, props: r = {}, set: o, defaults: i }) {
|
|
4264
4270
|
var s;
|
|
4265
4271
|
const l = { name: t, theme: e, params: n, set: o, defaults: i }, a = (s = t.includes("-directive") ? this.getPresetD(l) : this.getPresetC(l)) == null ? void 0 : s.css, c = Object.entries(r).reduce((u, [f, h]) => u.push(`${f}="${h}"`) && u, []).join(" ");
|
|
4266
|
-
return a ? `<style type="text/css" data-primevue-style-id="${t}-variables" ${c}>${
|
|
4272
|
+
return a ? `<style type="text/css" data-primevue-style-id="${t}-variables" ${c}>${gn(a)}</style>` : "";
|
|
4267
4273
|
},
|
|
4268
4274
|
createTokens(t = {}, e, n = "", r = "", o = {}) {
|
|
4269
4275
|
return Object.entries(t).forEach(([i, s]) => {
|
|
@@ -4306,7 +4312,7 @@ var et = {
|
|
|
4306
4312
|
var r;
|
|
4307
4313
|
const i = ((a) => a.split(".").filter((u) => !gt(u.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), s = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, l = [(r = t[i]) == null ? void 0 : r.computed(s)].flat().filter((a) => a);
|
|
4308
4314
|
return l.length === 1 ? l[0].value : l.reduce((a = {}, c) => {
|
|
4309
|
-
const u = c, { colorScheme: f } = u, h =
|
|
4315
|
+
const u = c, { colorScheme: f } = u, h = ln(u, ["colorScheme"]);
|
|
4310
4316
|
return a[f] = h, a;
|
|
4311
4317
|
}, void 0);
|
|
4312
4318
|
},
|
|
@@ -4314,15 +4320,15 @@ var et = {
|
|
|
4314
4320
|
if (ce(e)) {
|
|
4315
4321
|
const { cssLayer: a } = o;
|
|
4316
4322
|
if (r !== "style") {
|
|
4317
|
-
const c = this.getColorSchemeOption(o, s), u = l ?
|
|
4318
|
-
e = n === "dark" ? c.reduce((f, { selector: h }) => (ce(h) && (f += h.includes("[CSS]") ? h.replace("[CSS]", u) :
|
|
4323
|
+
const c = this.getColorSchemeOption(o, s), u = l ? mn(l, e) : e;
|
|
4324
|
+
e = n === "dark" ? c.reduce((f, { selector: h }) => (ce(h) && (f += h.includes("[CSS]") ? h.replace("[CSS]", u) : mn(h, u)), f), "") : mn(l ?? ":root", e);
|
|
4319
4325
|
}
|
|
4320
4326
|
if (a) {
|
|
4321
4327
|
const c = {
|
|
4322
4328
|
name: "primeui",
|
|
4323
4329
|
order: "primeui"
|
|
4324
4330
|
};
|
|
4325
|
-
At(a) && (c.name = ze(a.name, { name: t, type: r })), ce(c.name) && (e =
|
|
4331
|
+
At(a) && (c.name = ze(a.name, { name: t, type: r })), ce(c.name) && (e = mn(`@layer ${c.name}`, e), i == null || i.layerNames(c.name));
|
|
4326
4332
|
}
|
|
4327
4333
|
return e;
|
|
4328
4334
|
}
|
|
@@ -4348,8 +4354,8 @@ var et = {
|
|
|
4348
4354
|
_tokens: {},
|
|
4349
4355
|
update(t = {}) {
|
|
4350
4356
|
const { theme: e } = t;
|
|
4351
|
-
e && (this._theme = Nr(
|
|
4352
|
-
options:
|
|
4357
|
+
e && (this._theme = Nr(an({}, e), {
|
|
4358
|
+
options: an(an({}, this.defaults.options), e.options)
|
|
4353
4359
|
}), this._tokens = et.createTokens(this.preset, this.defaults), this.clearLoadedStyleNames());
|
|
4354
4360
|
},
|
|
4355
4361
|
get theme() {
|
|
@@ -4376,13 +4382,13 @@ var et = {
|
|
|
4376
4382
|
return this.preset;
|
|
4377
4383
|
},
|
|
4378
4384
|
setPreset(t) {
|
|
4379
|
-
this._theme = Nr(
|
|
4385
|
+
this._theme = Nr(an({}, this.theme), { preset: t }), this._tokens = et.createTokens(t, this.defaults), this.clearLoadedStyleNames(), ht.emit("preset:change", t), ht.emit("theme:change", this.theme);
|
|
4380
4386
|
},
|
|
4381
4387
|
getOptions() {
|
|
4382
4388
|
return this.options;
|
|
4383
4389
|
},
|
|
4384
4390
|
setOptions(t) {
|
|
4385
|
-
this._theme = Nr(
|
|
4391
|
+
this._theme = Nr(an({}, this.theme), { options: t }), this.clearLoadedStyleNames(), ht.emit("options:change", t), ht.emit("theme:change", this.theme);
|
|
4386
4392
|
},
|
|
4387
4393
|
getLayerNames() {
|
|
4388
4394
|
return [...this._layerNames];
|
|
@@ -4462,13 +4468,13 @@ var et = {
|
|
|
4462
4468
|
this._loadedStyleNames.clear();
|
|
4463
4469
|
}
|
|
4464
4470
|
};
|
|
4465
|
-
function
|
|
4471
|
+
function wn(t) {
|
|
4466
4472
|
"@babel/helpers - typeof";
|
|
4467
|
-
return
|
|
4473
|
+
return wn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4468
4474
|
return typeof e;
|
|
4469
4475
|
} : function(e) {
|
|
4470
4476
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4471
|
-
},
|
|
4477
|
+
}, wn(t);
|
|
4472
4478
|
}
|
|
4473
4479
|
function xi(t, e) {
|
|
4474
4480
|
var n = Object.keys(t);
|
|
@@ -4496,21 +4502,21 @@ function em(t, e, n) {
|
|
|
4496
4502
|
}
|
|
4497
4503
|
function tm(t) {
|
|
4498
4504
|
var e = nm(t, "string");
|
|
4499
|
-
return
|
|
4505
|
+
return wn(e) == "symbol" ? e : e + "";
|
|
4500
4506
|
}
|
|
4501
4507
|
function nm(t, e) {
|
|
4502
|
-
if (
|
|
4508
|
+
if (wn(t) != "object" || !t) return t;
|
|
4503
4509
|
var n = t[Symbol.toPrimitive];
|
|
4504
4510
|
if (n !== void 0) {
|
|
4505
4511
|
var r = n.call(t, e || "default");
|
|
4506
|
-
if (
|
|
4512
|
+
if (wn(r) != "object") return r;
|
|
4507
4513
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4508
4514
|
}
|
|
4509
4515
|
return (e === "string" ? String : Number)(t);
|
|
4510
4516
|
}
|
|
4511
4517
|
function rm(t) {
|
|
4512
4518
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4513
|
-
Za() ?
|
|
4519
|
+
Za() ? xn(t) : e ? t() : Qa(t);
|
|
4514
4520
|
}
|
|
4515
4521
|
var om = 0;
|
|
4516
4522
|
function im(t) {
|
|
@@ -4547,13 +4553,13 @@ function im(t) {
|
|
|
4547
4553
|
isLoaded: Xa(n)
|
|
4548
4554
|
};
|
|
4549
4555
|
}
|
|
4550
|
-
function
|
|
4556
|
+
function _n(t) {
|
|
4551
4557
|
"@babel/helpers - typeof";
|
|
4552
|
-
return
|
|
4558
|
+
return _n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4553
4559
|
return typeof e;
|
|
4554
4560
|
} : function(e) {
|
|
4555
4561
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4556
|
-
},
|
|
4562
|
+
}, _n(t);
|
|
4557
4563
|
}
|
|
4558
4564
|
function Pi(t, e) {
|
|
4559
4565
|
return cm(t) || lm(t, e) || am(t, e) || sm();
|
|
@@ -4621,14 +4627,14 @@ function um(t, e, n) {
|
|
|
4621
4627
|
}
|
|
4622
4628
|
function dm(t) {
|
|
4623
4629
|
var e = fm(t, "string");
|
|
4624
|
-
return
|
|
4630
|
+
return _n(e) == "symbol" ? e : e + "";
|
|
4625
4631
|
}
|
|
4626
4632
|
function fm(t, e) {
|
|
4627
|
-
if (
|
|
4633
|
+
if (_n(t) != "object" || !t) return t;
|
|
4628
4634
|
var n = t[Symbol.toPrimitive];
|
|
4629
4635
|
if (n !== void 0) {
|
|
4630
4636
|
var r = n.call(t, e || "default");
|
|
4631
|
-
if (
|
|
4637
|
+
if (_n(r) != "object") return r;
|
|
4632
4638
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4633
4639
|
}
|
|
4634
4640
|
return (e === "string" ? String : Number)(t);
|
|
@@ -4791,7 +4797,7 @@ var mm = function(e) {
|
|
|
4791
4797
|
}, o = r(ze(e, {
|
|
4792
4798
|
dt: Dr
|
|
4793
4799
|
}));
|
|
4794
|
-
return o ? im(
|
|
4800
|
+
return o ? im(gn(o), Fr({
|
|
4795
4801
|
name: this.name
|
|
4796
4802
|
}, n)) : {};
|
|
4797
4803
|
},
|
|
@@ -4825,7 +4831,7 @@ var mm = function(e) {
|
|
|
4825
4831
|
if (this.css) {
|
|
4826
4832
|
var r = ze(this.css, {
|
|
4827
4833
|
dt: Dr
|
|
4828
|
-
}), o =
|
|
4834
|
+
}), o = gn("".concat(r).concat(e)), i = Object.entries(n).reduce(function(s, l) {
|
|
4829
4835
|
var a = Pi(l, 2), c = a[0], u = a[1];
|
|
4830
4836
|
return s.push("".concat(c, '="').concat(u, '"')) && s;
|
|
4831
4837
|
}, []).join(" ");
|
|
@@ -4842,7 +4848,7 @@ var mm = function(e) {
|
|
|
4842
4848
|
if (this.theme) {
|
|
4843
4849
|
var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = ze(this.theme, {
|
|
4844
4850
|
dt: Dr
|
|
4845
|
-
}), s =
|
|
4851
|
+
}), s = gn(me.transformCSS(o, i)), l = Object.entries(n).reduce(function(a, c) {
|
|
4846
4852
|
var u = Pi(c, 2), f = u[0], h = u[1];
|
|
4847
4853
|
return a.push("".concat(f, '="').concat(h, '"')) && a;
|
|
4848
4854
|
}, []).join(" ");
|
|
@@ -4859,13 +4865,13 @@ var mm = function(e) {
|
|
|
4859
4865
|
}, Ri = Oe.extend({
|
|
4860
4866
|
name: "common"
|
|
4861
4867
|
});
|
|
4862
|
-
function
|
|
4868
|
+
function Sn(t) {
|
|
4863
4869
|
"@babel/helpers - typeof";
|
|
4864
|
-
return
|
|
4870
|
+
return Sn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4865
4871
|
return typeof e;
|
|
4866
4872
|
} : function(e) {
|
|
4867
4873
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4868
|
-
},
|
|
4874
|
+
}, Sn(t);
|
|
4869
4875
|
}
|
|
4870
4876
|
function ym(t) {
|
|
4871
4877
|
return aa(t) || vm(t) || sa(t) || ia();
|
|
@@ -4873,7 +4879,7 @@ function ym(t) {
|
|
|
4873
4879
|
function vm(t) {
|
|
4874
4880
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
4875
4881
|
}
|
|
4876
|
-
function
|
|
4882
|
+
function zn(t, e) {
|
|
4877
4883
|
return aa(t) || bm(t, e) || sa(t, e) || ia();
|
|
4878
4884
|
}
|
|
4879
4885
|
function ia() {
|
|
@@ -4930,26 +4936,26 @@ function ie(t) {
|
|
|
4930
4936
|
for (var e = 1; e < arguments.length; e++) {
|
|
4931
4937
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
4932
4938
|
e % 2 ? Ni(Object(n), !0).forEach(function(r) {
|
|
4933
|
-
|
|
4939
|
+
Gn(t, r, n[r]);
|
|
4934
4940
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ni(Object(n)).forEach(function(r) {
|
|
4935
4941
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4936
4942
|
});
|
|
4937
4943
|
}
|
|
4938
4944
|
return t;
|
|
4939
4945
|
}
|
|
4940
|
-
function
|
|
4946
|
+
function Gn(t, e, n) {
|
|
4941
4947
|
return (e = wm(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
4942
4948
|
}
|
|
4943
4949
|
function wm(t) {
|
|
4944
4950
|
var e = _m(t, "string");
|
|
4945
|
-
return
|
|
4951
|
+
return Sn(e) == "symbol" ? e : e + "";
|
|
4946
4952
|
}
|
|
4947
4953
|
function _m(t, e) {
|
|
4948
|
-
if (
|
|
4954
|
+
if (Sn(t) != "object" || !t) return t;
|
|
4949
4955
|
var n = t[Symbol.toPrimitive];
|
|
4950
4956
|
if (n !== void 0) {
|
|
4951
4957
|
var r = n.call(t, e || "default");
|
|
4952
|
-
if (
|
|
4958
|
+
if (Sn(r) != "object") return r;
|
|
4953
4959
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4954
4960
|
}
|
|
4955
4961
|
return (e === "string" ? String : Number)(t);
|
|
@@ -5129,7 +5135,7 @@ var fr = {
|
|
|
5129
5135
|
},
|
|
5130
5136
|
_getPTDatasets: function() {
|
|
5131
5137
|
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", o = "data-pc-", i = r === "root" && ce((e = this.pt) === null || e === void 0 ? void 0 : e["data-pc-section"]);
|
|
5132
|
-
return r !== "transition" && ie(ie({}, r === "root" && ie(
|
|
5138
|
+
return r !== "transition" && ie(ie({}, r === "root" && ie(Gn({}, "".concat(o, "name"), rt(i ? (n = this.pt) === null || n === void 0 ? void 0 : n["data-pc-section"] : this.$.type.name)), i && Gn({}, "".concat(o, "extend"), rt(this.$.type.name)))), {}, Gn({}, "".concat(o, "section"), rt(r)));
|
|
5133
5139
|
},
|
|
5134
5140
|
_getPTClassValue: function() {
|
|
5135
5141
|
var e = this._getOptionValue.apply(this, arguments);
|
|
@@ -5255,10 +5261,10 @@ var fr = {
|
|
|
5255
5261
|
},
|
|
5256
5262
|
$_attrsPT: function() {
|
|
5257
5263
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
5258
|
-
var n =
|
|
5264
|
+
var n = zn(e, 1), r = n[0];
|
|
5259
5265
|
return r == null ? void 0 : r.startsWith("pt:");
|
|
5260
5266
|
}).reduce(function(e, n) {
|
|
5261
|
-
var r =
|
|
5267
|
+
var r = zn(n, 2), o = r[0], i = r[1], s = o.split(":"), l = ym(s), a = l.slice(1);
|
|
5262
5268
|
return a == null || a.reduce(function(c, u, f, h) {
|
|
5263
5269
|
return !c[u] && (c[u] = f === h.length - 1 ? i : {}), c[u];
|
|
5264
5270
|
}, e), e;
|
|
@@ -5266,10 +5272,10 @@ var fr = {
|
|
|
5266
5272
|
},
|
|
5267
5273
|
$_attrsWithoutPT: function() {
|
|
5268
5274
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
5269
|
-
var n =
|
|
5275
|
+
var n = zn(e, 1), r = n[0];
|
|
5270
5276
|
return !(r != null && r.startsWith("pt:"));
|
|
5271
5277
|
}).reduce(function(e, n) {
|
|
5272
|
-
var r =
|
|
5278
|
+
var r = zn(n, 2), o = r[0], i = r[1];
|
|
5273
5279
|
return e[o] = i, e;
|
|
5274
5280
|
}, {});
|
|
5275
5281
|
},
|
|
@@ -5313,13 +5319,13 @@ var fr = {
|
|
|
5313
5319
|
name: "baseicon",
|
|
5314
5320
|
css: Sm
|
|
5315
5321
|
});
|
|
5316
|
-
function
|
|
5322
|
+
function kn(t) {
|
|
5317
5323
|
"@babel/helpers - typeof";
|
|
5318
|
-
return
|
|
5324
|
+
return kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5319
5325
|
return typeof e;
|
|
5320
5326
|
} : function(e) {
|
|
5321
5327
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
5322
|
-
},
|
|
5328
|
+
}, kn(t);
|
|
5323
5329
|
}
|
|
5324
5330
|
function Di(t, e) {
|
|
5325
5331
|
var n = Object.keys(t);
|
|
@@ -5347,14 +5353,14 @@ function Cm(t, e, n) {
|
|
|
5347
5353
|
}
|
|
5348
5354
|
function Am(t) {
|
|
5349
5355
|
var e = Tm(t, "string");
|
|
5350
|
-
return
|
|
5356
|
+
return kn(e) == "symbol" ? e : e + "";
|
|
5351
5357
|
}
|
|
5352
5358
|
function Tm(t, e) {
|
|
5353
|
-
if (
|
|
5359
|
+
if (kn(t) != "object" || !t) return t;
|
|
5354
5360
|
var n = t[Symbol.toPrimitive];
|
|
5355
5361
|
if (n !== void 0) {
|
|
5356
5362
|
var r = n.call(t, e || "default");
|
|
5357
|
-
if (
|
|
5363
|
+
if (kn(r) != "object") return r;
|
|
5358
5364
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5359
5365
|
}
|
|
5360
5366
|
return (e === "string" ? String : Number)(t);
|
|
@@ -5609,13 +5615,13 @@ var Rm = function(e) {
|
|
|
5609
5615
|
theme: Rm,
|
|
5610
5616
|
classes: $m
|
|
5611
5617
|
}), Bi = Zs();
|
|
5612
|
-
function
|
|
5618
|
+
function Cn(t) {
|
|
5613
5619
|
"@babel/helpers - typeof";
|
|
5614
|
-
return
|
|
5620
|
+
return Cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5615
5621
|
return typeof e;
|
|
5616
5622
|
} : function(e) {
|
|
5617
5623
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
5618
|
-
},
|
|
5624
|
+
}, Cn(t);
|
|
5619
5625
|
}
|
|
5620
5626
|
function Mi(t, e) {
|
|
5621
5627
|
return Mm(t) || Bm(t, e) || Fm(t, e) || Dm();
|
|
@@ -5683,14 +5689,14 @@ function eo(t, e, n) {
|
|
|
5683
5689
|
}
|
|
5684
5690
|
function Um(t) {
|
|
5685
5691
|
var e = Hm(t, "string");
|
|
5686
|
-
return
|
|
5692
|
+
return Cn(e) == "symbol" ? e : e + "";
|
|
5687
5693
|
}
|
|
5688
5694
|
function Hm(t, e) {
|
|
5689
|
-
if (
|
|
5695
|
+
if (Cn(t) != "object" || !t) return t;
|
|
5690
5696
|
var n = t[Symbol.toPrimitive];
|
|
5691
5697
|
if (n !== void 0) {
|
|
5692
5698
|
var r = n.call(t, e || "default");
|
|
5693
|
-
if (
|
|
5699
|
+
if (Cn(r) != "object") return r;
|
|
5694
5700
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5695
5701
|
}
|
|
5696
5702
|
return (e === "string" ? String : Number)(t);
|
|
@@ -5958,13 +5964,13 @@ var Q = {
|
|
|
5958
5964
|
}), zm = Q.extend({
|
|
5959
5965
|
style: Km
|
|
5960
5966
|
});
|
|
5961
|
-
function
|
|
5967
|
+
function An(t) {
|
|
5962
5968
|
"@babel/helpers - typeof";
|
|
5963
|
-
return
|
|
5969
|
+
return An = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5964
5970
|
return typeof e;
|
|
5965
5971
|
} : function(e) {
|
|
5966
5972
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
5967
|
-
},
|
|
5973
|
+
}, An(t);
|
|
5968
5974
|
}
|
|
5969
5975
|
function Wm(t) {
|
|
5970
5976
|
return Ym(t) || Jm(t) || Gm(t) || qm();
|
|
@@ -5996,14 +6002,14 @@ function ji(t, e, n) {
|
|
|
5996
6002
|
}
|
|
5997
6003
|
function Xm(t) {
|
|
5998
6004
|
var e = Zm(t, "string");
|
|
5999
|
-
return
|
|
6005
|
+
return An(e) == "symbol" ? e : e + "";
|
|
6000
6006
|
}
|
|
6001
6007
|
function Zm(t, e) {
|
|
6002
|
-
if (
|
|
6008
|
+
if (An(t) != "object" || !t) return t;
|
|
6003
6009
|
var n = t[Symbol.toPrimitive];
|
|
6004
6010
|
if (n !== void 0) {
|
|
6005
6011
|
var r = n.call(t, e || "default");
|
|
6006
|
-
if (
|
|
6012
|
+
if (An(r) != "object") return r;
|
|
6007
6013
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6008
6014
|
}
|
|
6009
6015
|
return (e === "string" ? String : Number)(t);
|
|
@@ -6058,7 +6064,7 @@ var Qm = zm.extend("ripple", {
|
|
|
6058
6064
|
},
|
|
6059
6065
|
getInk: function(e) {
|
|
6060
6066
|
return e && e.children ? Wm(e.children).find(function(n) {
|
|
6061
|
-
return
|
|
6067
|
+
return fn(n, "data-pc-name") === "ripple";
|
|
6062
6068
|
}) : void 0;
|
|
6063
6069
|
}
|
|
6064
6070
|
}
|
|
@@ -6224,7 +6230,7 @@ var Qm = zm.extend("ripple", {
|
|
|
6224
6230
|
}
|
|
6225
6231
|
}, tp = ["tabindex"], np = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"], rp = ["onClick", "onMousemove"], op = ["href", "target"];
|
|
6226
6232
|
function ip(t, e, n, r, o, i) {
|
|
6227
|
-
var s =
|
|
6233
|
+
var s = In("PanelMenuSub", !0), l = el("ripple");
|
|
6228
6234
|
return K(), ee("ul", {
|
|
6229
6235
|
class: ge(t.cx("submenu")),
|
|
6230
6236
|
tabindex: n.tabindex
|
|
@@ -6555,7 +6561,7 @@ var ua = {
|
|
|
6555
6561
|
expanded: r
|
|
6556
6562
|
}) : (this.activeItemPath = this.activeItemPath.filter(function(o) {
|
|
6557
6563
|
return o.parentKey !== n.parentKey;
|
|
6558
|
-
}), r && this.activeItemPath.push(n)), this.focusedItem = n,
|
|
6564
|
+
}), r && this.activeItemPath.push(n)), this.focusedItem = n, dn(this.$el);
|
|
6559
6565
|
},
|
|
6560
6566
|
onItemMouseMove: function(e) {
|
|
6561
6567
|
this.focused && (this.focusedItem = e.processedItem);
|
|
@@ -6700,7 +6706,7 @@ var ua = {
|
|
|
6700
6706
|
}
|
|
6701
6707
|
};
|
|
6702
6708
|
function dp(t, e, n, r, o, i) {
|
|
6703
|
-
var s =
|
|
6709
|
+
var s = In("PanelMenuSub");
|
|
6704
6710
|
return K(), Te(s, re({
|
|
6705
6711
|
id: n.panelId + "_list",
|
|
6706
6712
|
class: t.cx("rootList"),
|
|
@@ -6722,13 +6728,13 @@ function dp(t, e, n, r, o, i) {
|
|
|
6722
6728
|
}, t.ptm("rootList")), null, 16, ["id", "class", "aria-activedescendant", "panelId", "focusedItemId", "items", "templates", "activeItemPath", "onFocus", "onBlur", "onKeydown", "onItemToggle", "onItemMousemove", "pt", "unstyled"]);
|
|
6723
6729
|
}
|
|
6724
6730
|
ua.render = dp;
|
|
6725
|
-
function
|
|
6731
|
+
function Tn(t) {
|
|
6726
6732
|
"@babel/helpers - typeof";
|
|
6727
|
-
return
|
|
6733
|
+
return Tn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6728
6734
|
return typeof e;
|
|
6729
6735
|
} : function(e) {
|
|
6730
6736
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6731
|
-
},
|
|
6737
|
+
}, Tn(t);
|
|
6732
6738
|
}
|
|
6733
6739
|
function Ki(t, e) {
|
|
6734
6740
|
var n = Object.keys(t);
|
|
@@ -6756,14 +6762,14 @@ function mp(t, e, n) {
|
|
|
6756
6762
|
}
|
|
6757
6763
|
function pp(t) {
|
|
6758
6764
|
var e = hp(t, "string");
|
|
6759
|
-
return
|
|
6765
|
+
return Tn(e) == "symbol" ? e : e + "";
|
|
6760
6766
|
}
|
|
6761
6767
|
function hp(t, e) {
|
|
6762
|
-
if (
|
|
6768
|
+
if (Tn(t) != "object" || !t) return t;
|
|
6763
6769
|
var n = t[Symbol.toPrimitive];
|
|
6764
6770
|
if (n !== void 0) {
|
|
6765
6771
|
var r = n.call(t, e || "default");
|
|
6766
|
-
if (
|
|
6772
|
+
if (Tn(r) != "object") return r;
|
|
6767
6773
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6768
6774
|
}
|
|
6769
6775
|
return (e === "string" ? String : Number)(t);
|
|
@@ -6839,7 +6845,7 @@ var da = {
|
|
|
6839
6845
|
n.command && n.command({
|
|
6840
6846
|
originalEvent: e,
|
|
6841
6847
|
item: n
|
|
6842
|
-
}), this.changeActiveItem(e, n),
|
|
6848
|
+
}), this.changeActiveItem(e, n), dn(e.currentTarget);
|
|
6843
6849
|
},
|
|
6844
6850
|
onHeaderKeyDown: function(e, n) {
|
|
6845
6851
|
switch (e.code) {
|
|
@@ -6863,15 +6869,15 @@ var da = {
|
|
|
6863
6869
|
}
|
|
6864
6870
|
},
|
|
6865
6871
|
onHeaderArrowDownKey: function(e) {
|
|
6866
|
-
var n =
|
|
6867
|
-
n ?
|
|
6872
|
+
var n = fn(e.currentTarget, "data-p-active") === !0 ? nt(e.currentTarget.nextElementSibling, '[data-pc-section="rootlist"]') : null;
|
|
6873
|
+
n ? dn(n) : this.updateFocusedHeader({
|
|
6868
6874
|
originalEvent: e,
|
|
6869
6875
|
focusOnNext: !0
|
|
6870
6876
|
}), e.preventDefault();
|
|
6871
6877
|
},
|
|
6872
6878
|
onHeaderArrowUpKey: function(e) {
|
|
6873
|
-
var n = this.findPrevHeader(e.currentTarget.parentElement) || this.findLastHeader(), r =
|
|
6874
|
-
r ?
|
|
6879
|
+
var n = this.findPrevHeader(e.currentTarget.parentElement) || this.findLastHeader(), r = fn(n, "data-p-active") === !0 ? nt(n.nextElementSibling, '[data-pc-section="rootlist"]') : null;
|
|
6880
|
+
r ? dn(r) : this.updateFocusedHeader({
|
|
6875
6881
|
originalEvent: e,
|
|
6876
6882
|
focusOnNext: !1
|
|
6877
6883
|
}), e.preventDefault();
|
|
@@ -6888,11 +6894,11 @@ var da = {
|
|
|
6888
6894
|
},
|
|
6889
6895
|
findNextHeader: function(e) {
|
|
6890
6896
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = n ? e : e.nextElementSibling, o = nt(r, '[data-pc-section="header"]');
|
|
6891
|
-
return o ?
|
|
6897
|
+
return o ? fn(o, "data-p-disabled") ? this.findNextHeader(o.parentElement) : o : null;
|
|
6892
6898
|
},
|
|
6893
6899
|
findPrevHeader: function(e) {
|
|
6894
6900
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = n ? e : e.previousElementSibling, o = nt(r, '[data-pc-section="header"]');
|
|
6895
|
-
return o ?
|
|
6901
|
+
return o ? fn(o, "data-p-disabled") ? this.findPrevHeader(o.parentElement) : o : null;
|
|
6896
6902
|
},
|
|
6897
6903
|
findFirstHeader: function() {
|
|
6898
6904
|
return this.findNextHeader(this.$el.firstElementChild, !0);
|
|
@@ -6929,7 +6935,7 @@ var da = {
|
|
|
6929
6935
|
}
|
|
6930
6936
|
},
|
|
6931
6937
|
changeFocusedHeader: function(e, n) {
|
|
6932
|
-
n &&
|
|
6938
|
+
n && dn(n);
|
|
6933
6939
|
},
|
|
6934
6940
|
getMenuItemProps: function(e, n) {
|
|
6935
6941
|
return {
|
|
@@ -6949,7 +6955,7 @@ var da = {
|
|
|
6949
6955
|
}
|
|
6950
6956
|
}, gp = ["id"], yp = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-active", "data-p-disabled"], vp = ["href"], bp = ["id", "aria-labelledby"];
|
|
6951
6957
|
function wp(t, e, n, r, o, i) {
|
|
6952
|
-
var s =
|
|
6958
|
+
var s = In("PanelMenuList");
|
|
6953
6959
|
return K(), ee("div", re({
|
|
6954
6960
|
id: o.id,
|
|
6955
6961
|
class: t.cx("root")
|
|
@@ -7068,7 +7074,7 @@ const _p = (t) => (tl("data-v-f3b30de9"), t = t(), nl(), t), Sp = { class: "pane
|
|
|
7068
7074
|
l && l.clientWidth + 10 > document.body.clientWidth && n.Close(), i();
|
|
7069
7075
|
}
|
|
7070
7076
|
return (o, i) => {
|
|
7071
|
-
const s =
|
|
7077
|
+
const s = In("router-link");
|
|
7072
7078
|
return K(), ee("div", Sp, [
|
|
7073
7079
|
je(_e(da), {
|
|
7074
7080
|
model: e.items,
|
|
@@ -7154,16 +7160,16 @@ function fa(t, e) {
|
|
|
7154
7160
|
const { toString: Ip } = Object.prototype, { getPrototypeOf: Io } = Object, mr = /* @__PURE__ */ ((t) => (e) => {
|
|
7155
7161
|
const n = Ip.call(e);
|
|
7156
7162
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
7157
|
-
})(/* @__PURE__ */ Object.create(null)), lt = (t) => (t = t.toLowerCase(), (e) => mr(e) === t), pr = (t) => (e) => typeof e === t, { isArray:
|
|
7163
|
+
})(/* @__PURE__ */ Object.create(null)), lt = (t) => (t = t.toLowerCase(), (e) => mr(e) === t), pr = (t) => (e) => typeof e === t, { isArray: Zt } = Array, En = pr("undefined");
|
|
7158
7164
|
function Pp(t) {
|
|
7159
|
-
return t !== null && !
|
|
7165
|
+
return t !== null && !En(t) && t.constructor !== null && !En(t.constructor) && We(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
7160
7166
|
}
|
|
7161
7167
|
const ma = lt("ArrayBuffer");
|
|
7162
7168
|
function Op(t) {
|
|
7163
7169
|
let e;
|
|
7164
7170
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ma(t.buffer), e;
|
|
7165
7171
|
}
|
|
7166
|
-
const Lp = pr("string"), We = pr("function"), pa = pr("number"), hr = (t) => t !== null && typeof t == "object", Rp = (t) => t === !0 || t === !1,
|
|
7172
|
+
const Lp = pr("string"), We = pr("function"), pa = pr("number"), hr = (t) => t !== null && typeof t == "object", Rp = (t) => t === !0 || t === !1, Jn = (t) => {
|
|
7167
7173
|
if (mr(t) !== "object")
|
|
7168
7174
|
return !1;
|
|
7169
7175
|
const e = Io(t);
|
|
@@ -7173,11 +7179,11 @@ const Lp = pr("string"), We = pr("function"), pa = pr("number"), hr = (t) => t !
|
|
|
7173
7179
|
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((e = mr(t)) === "formdata" || // detect form-data instance
|
|
7174
7180
|
e === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
7175
7181
|
}, Up = lt("URLSearchParams"), [Hp, jp, Vp, Kp] = ["ReadableStream", "Request", "Response", "Headers"].map(lt), zp = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
7176
|
-
function
|
|
7182
|
+
function Dn(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
7177
7183
|
if (t === null || typeof t > "u")
|
|
7178
7184
|
return;
|
|
7179
7185
|
let r, o;
|
|
7180
|
-
if (typeof t != "object" && (t = [t]),
|
|
7186
|
+
if (typeof t != "object" && (t = [t]), Zt(t))
|
|
7181
7187
|
for (r = 0, o = t.length; r < o; r++)
|
|
7182
7188
|
e.call(null, t[r], r, t);
|
|
7183
7189
|
else {
|
|
@@ -7196,17 +7202,17 @@ function ha(t, e) {
|
|
|
7196
7202
|
return o;
|
|
7197
7203
|
return null;
|
|
7198
7204
|
}
|
|
7199
|
-
const Pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ga = (t) => !
|
|
7205
|
+
const Pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ga = (t) => !En(t) && t !== Pt;
|
|
7200
7206
|
function no() {
|
|
7201
7207
|
const { caseless: t } = ga(this) && this || {}, e = {}, n = (r, o) => {
|
|
7202
7208
|
const i = t && ha(e, o) || o;
|
|
7203
|
-
|
|
7209
|
+
Jn(e[i]) && Jn(r) ? e[i] = no(e[i], r) : Jn(r) ? e[i] = no({}, r) : Zt(r) ? e[i] = r.slice() : e[i] = r;
|
|
7204
7210
|
};
|
|
7205
7211
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
7206
|
-
arguments[r] &&
|
|
7212
|
+
arguments[r] && Dn(arguments[r], n);
|
|
7207
7213
|
return e;
|
|
7208
7214
|
}
|
|
7209
|
-
const Wp = (t, e, n, { allOwnKeys: r } = {}) => (
|
|
7215
|
+
const Wp = (t, e, n, { allOwnKeys: r } = {}) => (Dn(e, (o, i) => {
|
|
7210
7216
|
n && We(o) ? t[i] = fa(o, n) : t[i] = o;
|
|
7211
7217
|
}, { allOwnKeys: r }), t), qp = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Gp = (t, e, n, r) => {
|
|
7212
7218
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
@@ -7228,7 +7234,7 @@ const Wp = (t, e, n, { allOwnKeys: r } = {}) => (Nn(e, (o, i) => {
|
|
|
7228
7234
|
return r !== -1 && r === n;
|
|
7229
7235
|
}, Xp = (t) => {
|
|
7230
7236
|
if (!t) return null;
|
|
7231
|
-
if (
|
|
7237
|
+
if (Zt(t)) return t;
|
|
7232
7238
|
let e = t.length;
|
|
7233
7239
|
if (!pa(e)) return null;
|
|
7234
7240
|
const n = new Array(e);
|
|
@@ -7255,7 +7261,7 @@ const Wp = (t, e, n, { allOwnKeys: r } = {}) => (Nn(e, (o, i) => {
|
|
|
7255
7261
|
}
|
|
7256
7262
|
), Wi = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), rh = lt("RegExp"), ya = (t, e) => {
|
|
7257
7263
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
7258
|
-
|
|
7264
|
+
Dn(n, (o, i) => {
|
|
7259
7265
|
let s;
|
|
7260
7266
|
(s = e(o, i, t)) !== !1 && (r[i] = s || o);
|
|
7261
7267
|
}), Object.defineProperties(t, r);
|
|
@@ -7280,7 +7286,7 @@ const Wp = (t, e, n, { allOwnKeys: r } = {}) => (Nn(e, (o, i) => {
|
|
|
7280
7286
|
n[i] = !0;
|
|
7281
7287
|
});
|
|
7282
7288
|
};
|
|
7283
|
-
return
|
|
7289
|
+
return Zt(t) ? r(t) : r(String(t).split(e)), n;
|
|
7284
7290
|
}, sh = () => {
|
|
7285
7291
|
}, ah = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Br = "abcdefghijklmnopqrstuvwxyz", qi = "0123456789", va = {
|
|
7286
7292
|
DIGIT: qi,
|
|
@@ -7303,10 +7309,10 @@ const uh = (t) => {
|
|
|
7303
7309
|
return;
|
|
7304
7310
|
if (!("toJSON" in r)) {
|
|
7305
7311
|
e[o] = r;
|
|
7306
|
-
const i =
|
|
7307
|
-
return
|
|
7312
|
+
const i = Zt(r) ? [] : {};
|
|
7313
|
+
return Dn(r, (s, l) => {
|
|
7308
7314
|
const a = n(s, o + 1);
|
|
7309
|
-
!
|
|
7315
|
+
!En(a) && (i[l] = a);
|
|
7310
7316
|
}), e[o] = void 0, i;
|
|
7311
7317
|
}
|
|
7312
7318
|
}
|
|
@@ -7321,7 +7327,7 @@ const uh = (t) => {
|
|
|
7321
7327
|
typeof setImmediate == "function",
|
|
7322
7328
|
We(Pt.postMessage)
|
|
7323
7329
|
), mh = typeof queueMicrotask < "u" ? queueMicrotask.bind(Pt) : typeof process < "u" && process.nextTick || ba, g = {
|
|
7324
|
-
isArray:
|
|
7330
|
+
isArray: Zt,
|
|
7325
7331
|
isArrayBuffer: ma,
|
|
7326
7332
|
isBuffer: Pp,
|
|
7327
7333
|
isFormData: Mp,
|
|
@@ -7330,12 +7336,12 @@ const uh = (t) => {
|
|
|
7330
7336
|
isNumber: pa,
|
|
7331
7337
|
isBoolean: Rp,
|
|
7332
7338
|
isObject: hr,
|
|
7333
|
-
isPlainObject:
|
|
7339
|
+
isPlainObject: Jn,
|
|
7334
7340
|
isReadableStream: Hp,
|
|
7335
7341
|
isRequest: jp,
|
|
7336
7342
|
isResponse: Vp,
|
|
7337
7343
|
isHeaders: Kp,
|
|
7338
|
-
isUndefined:
|
|
7344
|
+
isUndefined: En,
|
|
7339
7345
|
isDate: $p,
|
|
7340
7346
|
isFile: Np,
|
|
7341
7347
|
isBlob: Dp,
|
|
@@ -7345,7 +7351,7 @@ const uh = (t) => {
|
|
|
7345
7351
|
isURLSearchParams: Up,
|
|
7346
7352
|
isTypedArray: Zp,
|
|
7347
7353
|
isFileList: Fp,
|
|
7348
|
-
forEach:
|
|
7354
|
+
forEach: Dn,
|
|
7349
7355
|
merge: no,
|
|
7350
7356
|
extend: Wp,
|
|
7351
7357
|
trim: zp,
|
|
@@ -7673,7 +7679,7 @@ function Ih(t, e, n) {
|
|
|
7673
7679
|
}
|
|
7674
7680
|
return (n || JSON.stringify)(t);
|
|
7675
7681
|
}
|
|
7676
|
-
const
|
|
7682
|
+
const Fn = {
|
|
7677
7683
|
transitional: Aa,
|
|
7678
7684
|
adapter: ["xhr", "http", "fetch"],
|
|
7679
7685
|
transformRequest: [function(e, n) {
|
|
@@ -7702,7 +7708,7 @@ const Dn = {
|
|
|
7702
7708
|
return i || o ? (n.setContentType("application/json", !1), Ih(e)) : e;
|
|
7703
7709
|
}],
|
|
7704
7710
|
transformResponse: [function(e) {
|
|
7705
|
-
const n = this.transitional ||
|
|
7711
|
+
const n = this.transitional || Fn.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
7706
7712
|
if (g.isResponse(e) || g.isReadableStream(e))
|
|
7707
7713
|
return e;
|
|
7708
7714
|
if (e && g.isString(e) && (r && !this.responseType || o)) {
|
|
@@ -7740,7 +7746,7 @@ const Dn = {
|
|
|
7740
7746
|
}
|
|
7741
7747
|
};
|
|
7742
7748
|
g.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
7743
|
-
|
|
7749
|
+
Fn.headers[t] = {};
|
|
7744
7750
|
});
|
|
7745
7751
|
const Ph = g.toObjectSet([
|
|
7746
7752
|
"age",
|
|
@@ -7768,11 +7774,11 @@ const Ph = g.toObjectSet([
|
|
|
7768
7774
|
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || e[n] && Ph[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
7769
7775
|
}), e;
|
|
7770
7776
|
}, Xi = Symbol("internals");
|
|
7771
|
-
function
|
|
7777
|
+
function cn(t) {
|
|
7772
7778
|
return t && String(t).trim().toLowerCase();
|
|
7773
7779
|
}
|
|
7774
|
-
function
|
|
7775
|
-
return t === !1 || t == null ? t : g.isArray(t) ? t.map(
|
|
7780
|
+
function Yn(t) {
|
|
7781
|
+
return t === !1 || t == null ? t : g.isArray(t) ? t.map(Yn) : String(t);
|
|
7776
7782
|
}
|
|
7777
7783
|
function Lh(t) {
|
|
7778
7784
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -7813,11 +7819,11 @@ class Me {
|
|
|
7813
7819
|
set(e, n, r) {
|
|
7814
7820
|
const o = this;
|
|
7815
7821
|
function i(l, a, c) {
|
|
7816
|
-
const u =
|
|
7822
|
+
const u = cn(a);
|
|
7817
7823
|
if (!u)
|
|
7818
7824
|
throw new Error("header name must be a non-empty string");
|
|
7819
7825
|
const f = g.findKey(o, u);
|
|
7820
|
-
(!f || o[f] === void 0 || c === !0 || c === void 0 && o[f] !== !1) && (o[f || a] =
|
|
7826
|
+
(!f || o[f] === void 0 || c === !0 || c === void 0 && o[f] !== !1) && (o[f || a] = Yn(l));
|
|
7821
7827
|
}
|
|
7822
7828
|
const s = (l, a) => g.forEach(l, (c, u) => i(c, u, a));
|
|
7823
7829
|
if (g.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -7832,7 +7838,7 @@ class Me {
|
|
|
7832
7838
|
return this;
|
|
7833
7839
|
}
|
|
7834
7840
|
get(e, n) {
|
|
7835
|
-
if (e =
|
|
7841
|
+
if (e = cn(e), e) {
|
|
7836
7842
|
const r = g.findKey(this, e);
|
|
7837
7843
|
if (r) {
|
|
7838
7844
|
const o = this[r];
|
|
@@ -7849,7 +7855,7 @@ class Me {
|
|
|
7849
7855
|
}
|
|
7850
7856
|
}
|
|
7851
7857
|
has(e, n) {
|
|
7852
|
-
if (e =
|
|
7858
|
+
if (e = cn(e), e) {
|
|
7853
7859
|
const r = g.findKey(this, e);
|
|
7854
7860
|
return !!(r && this[r] !== void 0 && (!n || Mr(this, this[r], r, n)));
|
|
7855
7861
|
}
|
|
@@ -7859,7 +7865,7 @@ class Me {
|
|
|
7859
7865
|
const r = this;
|
|
7860
7866
|
let o = !1;
|
|
7861
7867
|
function i(s) {
|
|
7862
|
-
if (s =
|
|
7868
|
+
if (s = cn(s), s) {
|
|
7863
7869
|
const l = g.findKey(r, s);
|
|
7864
7870
|
l && (!n || Mr(r, r[l], l, n)) && (delete r[l], o = !0);
|
|
7865
7871
|
}
|
|
@@ -7880,11 +7886,11 @@ class Me {
|
|
|
7880
7886
|
return g.forEach(this, (o, i) => {
|
|
7881
7887
|
const s = g.findKey(r, i);
|
|
7882
7888
|
if (s) {
|
|
7883
|
-
n[s] =
|
|
7889
|
+
n[s] = Yn(o), delete n[i];
|
|
7884
7890
|
return;
|
|
7885
7891
|
}
|
|
7886
7892
|
const l = e ? $h(i) : String(i).trim();
|
|
7887
|
-
l !== i && delete n[i], n[l] =
|
|
7893
|
+
l !== i && delete n[i], n[l] = Yn(o), r[l] = !0;
|
|
7888
7894
|
}), this;
|
|
7889
7895
|
}
|
|
7890
7896
|
concat(...e) {
|
|
@@ -7918,7 +7924,7 @@ class Me {
|
|
|
7918
7924
|
accessors: {}
|
|
7919
7925
|
}).accessors, o = this.prototype;
|
|
7920
7926
|
function i(s) {
|
|
7921
|
-
const l =
|
|
7927
|
+
const l = cn(s);
|
|
7922
7928
|
r[l] || (Nh(o, s), r[l] = !0);
|
|
7923
7929
|
}
|
|
7924
7930
|
return g.isArray(e) ? e.forEach(i) : i(e), this;
|
|
@@ -7936,7 +7942,7 @@ g.reduceDescriptors(Me.prototype, ({ value: t }, e) => {
|
|
|
7936
7942
|
});
|
|
7937
7943
|
g.freezeMethods(Me);
|
|
7938
7944
|
function Ur(t, e) {
|
|
7939
|
-
const n = this ||
|
|
7945
|
+
const n = this || Fn, r = e || n, o = Me.from(r.headers);
|
|
7940
7946
|
let i = r.data;
|
|
7941
7947
|
return g.forEach(t, function(l) {
|
|
7942
7948
|
i = l.call(n, i, o.normalize(), e ? e.status : void 0);
|
|
@@ -7945,10 +7951,10 @@ function Ur(t, e) {
|
|
|
7945
7951
|
function Ea(t) {
|
|
7946
7952
|
return !!(t && t.__CANCEL__);
|
|
7947
7953
|
}
|
|
7948
|
-
function
|
|
7954
|
+
function Qt(t, e, n) {
|
|
7949
7955
|
Y.call(this, t ?? "canceled", Y.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
7950
7956
|
}
|
|
7951
|
-
g.inherits(
|
|
7957
|
+
g.inherits(Qt, Y, {
|
|
7952
7958
|
__CANCEL__: !0
|
|
7953
7959
|
});
|
|
7954
7960
|
function xa(t, e, n) {
|
|
@@ -8220,7 +8226,7 @@ const Pa = (t) => {
|
|
|
8220
8226
|
}, i === void 0 && s.setContentType(null), "setRequestHeader" in w && g.forEach(s.toJSON(), function(J, te) {
|
|
8221
8227
|
w.setRequestHeader(te, J);
|
|
8222
8228
|
}), g.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), l && l !== "json" && (w.responseType = o.responseType), c && ([h, y] = nr(c, !0), w.addEventListener("progress", h)), a && w.upload && ([f, _] = nr(a), w.upload.addEventListener("progress", f), w.upload.addEventListener("loadend", _)), (o.cancelToken || o.signal) && (u = (C) => {
|
|
8223
|
-
w && (r(!C || C.type ? new
|
|
8229
|
+
w && (r(!C || C.type ? new Qt(null, t, w) : C), w.abort(), w = null);
|
|
8224
8230
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
8225
8231
|
const A = Dh(o.url);
|
|
8226
8232
|
if (A && it.protocols.indexOf(A) === -1) {
|
|
@@ -8235,7 +8241,7 @@ const Pa = (t) => {
|
|
|
8235
8241
|
if (!r) {
|
|
8236
8242
|
r = !0, s();
|
|
8237
8243
|
const c = a instanceof Error ? a : this.reason;
|
|
8238
|
-
n.abort(c instanceof Y ? c : new
|
|
8244
|
+
n.abort(c instanceof Y ? c : new Qt(c instanceof Error ? c.message : c));
|
|
8239
8245
|
}
|
|
8240
8246
|
};
|
|
8241
8247
|
let i = e && setTimeout(() => {
|
|
@@ -8464,13 +8470,13 @@ const rs = (t) => `- ${t}`, Zh = (t) => g.isFunction(t) || t === null || t === !
|
|
|
8464
8470
|
};
|
|
8465
8471
|
function Hr(t) {
|
|
8466
8472
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
8467
|
-
throw new
|
|
8473
|
+
throw new Qt(null, t);
|
|
8468
8474
|
}
|
|
8469
8475
|
function os(t) {
|
|
8470
8476
|
return Hr(t), t.headers = Me.from(t.headers), t.data = Ur.call(
|
|
8471
8477
|
t,
|
|
8472
8478
|
t.transformRequest
|
|
8473
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ra.getAdapter(t.adapter ||
|
|
8479
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ra.getAdapter(t.adapter || Fn.adapter)(t).then(function(r) {
|
|
8474
8480
|
return Hr(t), r.data = Ur.call(
|
|
8475
8481
|
t,
|
|
8476
8482
|
t.transformResponse,
|
|
@@ -8675,7 +8681,7 @@ class Ro {
|
|
|
8675
8681
|
r.unsubscribe(i);
|
|
8676
8682
|
}, s;
|
|
8677
8683
|
}, e(function(i, s, l) {
|
|
8678
|
-
r.reason || (r.reason = new
|
|
8684
|
+
r.reason || (r.reason = new Qt(i, s, l), n(r.reason));
|
|
8679
8685
|
});
|
|
8680
8686
|
}
|
|
8681
8687
|
/**
|
|
@@ -8800,9 +8806,9 @@ function Na(t) {
|
|
|
8800
8806
|
return Na(Nt(t, o));
|
|
8801
8807
|
}, n;
|
|
8802
8808
|
}
|
|
8803
|
-
const ye = Na(
|
|
8809
|
+
const ye = Na(Fn);
|
|
8804
8810
|
ye.Axios = Lt;
|
|
8805
|
-
ye.CanceledError =
|
|
8811
|
+
ye.CanceledError = Qt;
|
|
8806
8812
|
ye.CancelToken = Ro;
|
|
8807
8813
|
ye.isCancel = Ea;
|
|
8808
8814
|
ye.VERSION = $a;
|
|
@@ -8932,12 +8938,20 @@ function pg() {
|
|
|
8932
8938
|
document.documentElement.classList.add("app-mounted");
|
|
8933
8939
|
}
|
|
8934
8940
|
function hg() {
|
|
8935
|
-
|
|
8941
|
+
Gt.Toggle();
|
|
8942
|
+
}
|
|
8943
|
+
function gg() {
|
|
8944
|
+
Gt.EnableDarkMode();
|
|
8945
|
+
}
|
|
8946
|
+
function yg() {
|
|
8947
|
+
Gt.EnableLightMode();
|
|
8936
8948
|
}
|
|
8937
|
-
|
|
8949
|
+
Gt.SetInitialTheme();
|
|
8938
8950
|
export {
|
|
8939
8951
|
zi as AppResult,
|
|
8940
8952
|
ng as AxiosClient,
|
|
8953
|
+
gg as EnableDarkMode,
|
|
8954
|
+
yg as EnableLightMode,
|
|
8941
8955
|
pg as RemovePreloader,
|
|
8942
8956
|
kl as SfButton,
|
|
8943
8957
|
cg as SfContent,
|