@cal.macconnachie/web-components 1.1.13 → 1.1.15
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.js +183 -184
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -247,8 +247,8 @@ let Ee = class extends HTMLElement {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
Ee.elementStyles = [], Ee.shadowRootOptions = { mode: "open" }, Ee[Ue("elementProperties")] = /* @__PURE__ */ new Map(), Ee[Ue("finalized")] = /* @__PURE__ */ new Map(), no?.({ ReactiveElement: Ee }), (st.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
|
-
const Ct = globalThis, ot = Ct.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, lo = `<${kr}>`, $e = document, He = () => $e.createComment(""), Be = (e) => e === null || typeof e != "object" && typeof e != "function", Dt = Array.isArray, co = (e) => Dt(e) || typeof e?.[Symbol.iterator] == "function",
|
|
251
|
-
\f\r]`, Ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ge = RegExp(`>|${
|
|
250
|
+
const Ct = globalThis, ot = Ct.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, lo = `<${kr}>`, $e = document, He = () => $e.createComment(""), Be = (e) => e === null || typeof e != "object" && typeof e != "function", Dt = Array.isArray, co = (e) => Dt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
|
|
251
|
+
\f\r]`, Ie = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ge = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
|
|
252
252
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, Sr = /^(?:script|style|textarea|title)$/i, ho = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), u = ho(1), ne = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), er = /* @__PURE__ */ new WeakMap(), ye = $e.createTreeWalker($e, 129);
|
|
253
253
|
function Er(e, t) {
|
|
254
254
|
if (!Dt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -280,7 +280,7 @@ class je {
|
|
|
280
280
|
if (i.nodeType === 1) {
|
|
281
281
|
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith($r)) {
|
|
282
282
|
const g = c[a++], w = i.getAttribute(h).split(de), f = /([.?@])?(.*)/.exec(g);
|
|
283
|
-
d.push({ type: 1, index: s, name: f[2], strings: w, ctor: f[1] === "." ? fo : f[1] === "?" ?
|
|
283
|
+
d.push({ type: 1, index: s, name: f[2], strings: w, ctor: f[1] === "." ? fo : f[1] === "?" ? mo : f[1] === "@" ? bo : at }), i.removeAttribute(h);
|
|
284
284
|
} else h.startsWith(de) && (d.push({ type: 6, index: s }), i.removeAttribute(h));
|
|
285
285
|
if (Sr.test(i.tagName)) {
|
|
286
286
|
const h = i.textContent.split(de), g = h.length - 1;
|
|
@@ -429,7 +429,7 @@ class fo extends at {
|
|
|
429
429
|
this.element[this.name] = t === S ? void 0 : t;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class mo extends at {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
@@ -437,7 +437,7 @@ class bo extends at {
|
|
|
437
437
|
this.element.toggleAttribute(this.name, !!t && t !== S);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class
|
|
440
|
+
class bo extends at {
|
|
441
441
|
constructor(t, r, o, i, s) {
|
|
442
442
|
super(t, r, o, i, s), this.type = 5;
|
|
443
443
|
}
|
|
@@ -525,14 +525,14 @@ const $o = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged
|
|
|
525
525
|
}
|
|
526
526
|
throw Error("Unsupported decorator location: " + o);
|
|
527
527
|
};
|
|
528
|
-
function
|
|
528
|
+
function m(e) {
|
|
529
529
|
return (t, r) => typeof r == "object" ? ko(e, t, r) : ((o, i, s) => {
|
|
530
530
|
const a = i.hasOwnProperty(s);
|
|
531
531
|
return i.constructor.createProperty(s, o), a ? Object.getOwnPropertyDescriptor(i, s) : void 0;
|
|
532
532
|
})(e, t, r);
|
|
533
533
|
}
|
|
534
534
|
function y(e) {
|
|
535
|
-
return
|
|
535
|
+
return m({ ...e, state: !0, attribute: !1 });
|
|
536
536
|
}
|
|
537
537
|
const So = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
|
|
538
538
|
function B(e, t) {
|
|
@@ -580,7 +580,7 @@ const { I: Eo } = vo, tr = () => document.createComment(""), Ne = (e, t, r) => {
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
return r;
|
|
583
|
-
}, ve = (e, t, r = e) => (e._$AI(t, r), e), Ao = {}, _o = (e, t = Ao) => e._$AH = t, Co = (e) => e._$AH,
|
|
583
|
+
}, ve = (e, t, r = e) => (e._$AI(t, r), e), Ao = {}, _o = (e, t = Ao) => e._$AH = t, Co = (e) => e._$AH, bt = (e) => {
|
|
584
584
|
e._$AR(), e._$AA.remove();
|
|
585
585
|
};
|
|
586
586
|
const rr = (e, t, r) => {
|
|
@@ -614,21 +614,21 @@ const rr = (e, t, r) => {
|
|
|
614
614
|
else if (n[h] === a[f]) d[f] = ve(i[h], s[f]), Ne(e, d[f + 1], i[h]), h++, f--;
|
|
615
615
|
else if (n[g] === a[w]) d[w] = ve(i[g], s[w]), Ne(e, i[h], i[g]), g--, w++;
|
|
616
616
|
else if (p === void 0 && (p = rr(a, w, f), c = rr(n, h, g)), p.has(n[h])) if (p.has(n[g])) {
|
|
617
|
-
const v = c.get(a[w]),
|
|
618
|
-
if (
|
|
617
|
+
const v = c.get(a[w]), b = v !== void 0 ? i[v] : null;
|
|
618
|
+
if (b === null) {
|
|
619
619
|
const x = Ne(e, i[h]);
|
|
620
620
|
ve(x, s[w]), d[w] = x;
|
|
621
|
-
} else d[w] = ve(
|
|
621
|
+
} else d[w] = ve(b, s[w]), Ne(e, i[h], b), i[v] = null;
|
|
622
622
|
w++;
|
|
623
|
-
} else
|
|
624
|
-
else
|
|
623
|
+
} else bt(i[g]), g--;
|
|
624
|
+
else bt(i[h]), h++;
|
|
625
625
|
for (; w <= f; ) {
|
|
626
626
|
const v = Ne(e, d[f + 1]);
|
|
627
627
|
ve(v, s[w]), d[w++] = v;
|
|
628
628
|
}
|
|
629
629
|
for (; h <= g; ) {
|
|
630
630
|
const v = i[h++];
|
|
631
|
-
v !== null &&
|
|
631
|
+
v !== null && bt(v);
|
|
632
632
|
}
|
|
633
633
|
return this.ut = a, _o(e, d), ne;
|
|
634
634
|
}
|
|
@@ -665,10 +665,10 @@ class q extends qe {
|
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
Ar([
|
|
668
|
-
|
|
668
|
+
m({ type: String, attribute: "data-theme", reflect: !0 })
|
|
669
669
|
], q.prototype, "theme");
|
|
670
670
|
Ar([
|
|
671
|
-
|
|
671
|
+
m({ type: String, attribute: "storage-key" })
|
|
672
672
|
], q.prototype, "storageKey");
|
|
673
673
|
const Po = ({
|
|
674
674
|
baseUrl: e
|
|
@@ -706,13 +706,13 @@ const Po = ({
|
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
709
|
-
const
|
|
710
|
-
throw new Error(
|
|
709
|
+
const b = await v.json();
|
|
710
|
+
throw new Error(b.message || b.error || "Login failed");
|
|
711
711
|
}
|
|
712
712
|
return v.json();
|
|
713
713
|
},
|
|
714
714
|
logout: async () => {
|
|
715
|
-
const c = await fetch(`${e}${t.logout}`, {
|
|
715
|
+
const c = await fetch(`${e}${t.logout}?return_url=${encodeURIComponent(window.location.href)}`, {
|
|
716
716
|
method: "POST",
|
|
717
717
|
headers: {
|
|
718
718
|
"Content-Type": "application/json"
|
|
@@ -778,7 +778,7 @@ const Po = ({
|
|
|
778
778
|
given_name: f,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
|
-
const
|
|
781
|
+
const b = await fetch(`${e}${t.register}`, {
|
|
782
782
|
method: "POST",
|
|
783
783
|
headers: {
|
|
784
784
|
"Content-Type": "application/json"
|
|
@@ -793,11 +793,11 @@ const Po = ({
|
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
796
|
-
if (!
|
|
797
|
-
const x = await
|
|
796
|
+
if (!b.ok) {
|
|
797
|
+
const x = await b.json();
|
|
798
798
|
throw new Error(x.message || x.error || "Registration failed");
|
|
799
799
|
}
|
|
800
|
-
return
|
|
800
|
+
return b.json();
|
|
801
801
|
},
|
|
802
802
|
requestResetPassword: async ({ email: c }) => {
|
|
803
803
|
const h = await fetch(`${e}${t.requestResetPassword}`, {
|
|
@@ -2295,34 +2295,34 @@ let E = class extends q {
|
|
|
2295
2295
|
};
|
|
2296
2296
|
E.styles = _r();
|
|
2297
2297
|
_([
|
|
2298
|
-
|
|
2298
|
+
m({ type: String, attribute: "initial-mode" })
|
|
2299
2299
|
], E.prototype, "initialMode", 2);
|
|
2300
2300
|
_([
|
|
2301
|
-
|
|
2301
|
+
m({ type: String, attribute: "logo-url" })
|
|
2302
2302
|
], E.prototype, "logoUrl", 2);
|
|
2303
2303
|
_([
|
|
2304
|
-
|
|
2304
|
+
m({ type: String, attribute: "oauth-domain" })
|
|
2305
2305
|
], E.prototype, "oauthDomain", 2);
|
|
2306
2306
|
_([
|
|
2307
|
-
|
|
2307
|
+
m({ type: String, attribute: "oauth-region" })
|
|
2308
2308
|
], E.prototype, "oauthRegion", 2);
|
|
2309
2309
|
_([
|
|
2310
|
-
|
|
2310
|
+
m({ type: String, attribute: "oauth-user-pool-id" })
|
|
2311
2311
|
], E.prototype, "oauthUserPoolId", 2);
|
|
2312
2312
|
_([
|
|
2313
|
-
|
|
2313
|
+
m({ type: String, attribute: "oauth-client-id" })
|
|
2314
2314
|
], E.prototype, "oauthClientId", 2);
|
|
2315
2315
|
_([
|
|
2316
|
-
|
|
2316
|
+
m({ type: String, attribute: "oauth-redirect-uri" })
|
|
2317
2317
|
], E.prototype, "oauthRedirectUri", 2);
|
|
2318
2318
|
_([
|
|
2319
|
-
|
|
2319
|
+
m({ type: String, attribute: "oauth-spa-domain" })
|
|
2320
2320
|
], E.prototype, "oauthSpaDomain", 2);
|
|
2321
2321
|
_([
|
|
2322
|
-
|
|
2322
|
+
m({ type: Boolean, attribute: "disable-signup" })
|
|
2323
2323
|
], E.prototype, "disableSignup", 2);
|
|
2324
2324
|
_([
|
|
2325
|
-
|
|
2325
|
+
m({ type: Boolean, attribute: "mock-mode" })
|
|
2326
2326
|
], E.prototype, "mockMode", 2);
|
|
2327
2327
|
_([
|
|
2328
2328
|
y()
|
|
@@ -2879,25 +2879,25 @@ se.styles = J`
|
|
|
2879
2879
|
}
|
|
2880
2880
|
`;
|
|
2881
2881
|
fe([
|
|
2882
|
-
|
|
2882
|
+
m({ type: String, attribute: "size" })
|
|
2883
2883
|
], se.prototype, "size", 2);
|
|
2884
2884
|
fe([
|
|
2885
|
-
|
|
2885
|
+
m({ type: String, attribute: "variant" })
|
|
2886
2886
|
], se.prototype, "variant", 2);
|
|
2887
2887
|
fe([
|
|
2888
|
-
|
|
2888
|
+
m({ type: String, attribute: "hover" })
|
|
2889
2889
|
], se.prototype, "hover", 2);
|
|
2890
2890
|
fe([
|
|
2891
|
-
|
|
2891
|
+
m({ type: Boolean, reflect: !0 })
|
|
2892
2892
|
], se.prototype, "disabled", 2);
|
|
2893
2893
|
fe([
|
|
2894
|
-
|
|
2894
|
+
m({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
2895
2895
|
], se.prototype, "fullWidth", 2);
|
|
2896
2896
|
fe([
|
|
2897
|
-
|
|
2897
|
+
m({ type: Boolean, reflect: !0, attribute: "loading" })
|
|
2898
2898
|
], se.prototype, "loading", 2);
|
|
2899
2899
|
fe([
|
|
2900
|
-
|
|
2900
|
+
m({ type: String, attribute: "type" })
|
|
2901
2901
|
], se.prototype, "type", 2);
|
|
2902
2902
|
se = fe([
|
|
2903
2903
|
K("base-button")
|
|
@@ -3153,16 +3153,16 @@ he.styles = J`
|
|
|
3153
3153
|
}
|
|
3154
3154
|
`;
|
|
3155
3155
|
Pe([
|
|
3156
|
-
|
|
3156
|
+
m({ type: String, attribute: "variant" })
|
|
3157
3157
|
], he.prototype, "variant", 2);
|
|
3158
3158
|
Pe([
|
|
3159
|
-
|
|
3159
|
+
m({ type: String, attribute: "padding" })
|
|
3160
3160
|
], he.prototype, "padding", 2);
|
|
3161
3161
|
Pe([
|
|
3162
|
-
|
|
3162
|
+
m({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
3163
3163
|
], he.prototype, "hoverable", 2);
|
|
3164
3164
|
Pe([
|
|
3165
|
-
|
|
3165
|
+
m({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
3166
3166
|
], he.prototype, "expandable", 2);
|
|
3167
3167
|
Pe([
|
|
3168
3168
|
y()
|
|
@@ -3945,34 +3945,34 @@ T.styles = J`
|
|
|
3945
3945
|
}
|
|
3946
3946
|
`;
|
|
3947
3947
|
M([
|
|
3948
|
-
|
|
3948
|
+
m({ type: String })
|
|
3949
3949
|
], T.prototype, "value", 2);
|
|
3950
3950
|
M([
|
|
3951
|
-
|
|
3951
|
+
m({ type: String })
|
|
3952
3952
|
], T.prototype, "label", 2);
|
|
3953
3953
|
M([
|
|
3954
|
-
|
|
3954
|
+
m({ type: String })
|
|
3955
3955
|
], T.prototype, "placeholder", 2);
|
|
3956
3956
|
M([
|
|
3957
|
-
|
|
3957
|
+
m({ type: Boolean, reflect: !0 })
|
|
3958
3958
|
], T.prototype, "required", 2);
|
|
3959
3959
|
M([
|
|
3960
|
-
|
|
3960
|
+
m({ type: Boolean, reflect: !0 })
|
|
3961
3961
|
], T.prototype, "disabled", 2);
|
|
3962
3962
|
M([
|
|
3963
|
-
|
|
3963
|
+
m({ type: String })
|
|
3964
3964
|
], T.prototype, "error", 2);
|
|
3965
3965
|
M([
|
|
3966
|
-
|
|
3966
|
+
m({ type: String })
|
|
3967
3967
|
], T.prototype, "hint", 2);
|
|
3968
3968
|
M([
|
|
3969
|
-
|
|
3969
|
+
m({ type: String })
|
|
3970
3970
|
], T.prototype, "size", 2);
|
|
3971
3971
|
M([
|
|
3972
|
-
|
|
3972
|
+
m({ type: String })
|
|
3973
3973
|
], T.prototype, "minDate", 2);
|
|
3974
3974
|
M([
|
|
3975
|
-
|
|
3975
|
+
m({ type: String })
|
|
3976
3976
|
], T.prototype, "maxDate", 2);
|
|
3977
3977
|
M([
|
|
3978
3978
|
y()
|
|
@@ -4999,37 +4999,37 @@ C.styles = J`
|
|
|
4999
4999
|
}
|
|
5000
5000
|
`;
|
|
5001
5001
|
P([
|
|
5002
|
-
|
|
5002
|
+
m({ type: String })
|
|
5003
5003
|
], C.prototype, "value", 2);
|
|
5004
5004
|
P([
|
|
5005
|
-
|
|
5005
|
+
m({ type: String })
|
|
5006
5006
|
], C.prototype, "label", 2);
|
|
5007
5007
|
P([
|
|
5008
|
-
|
|
5008
|
+
m({ type: String })
|
|
5009
5009
|
], C.prototype, "placeholder", 2);
|
|
5010
5010
|
P([
|
|
5011
|
-
|
|
5011
|
+
m({ type: Boolean, reflect: !0 })
|
|
5012
5012
|
], C.prototype, "required", 2);
|
|
5013
5013
|
P([
|
|
5014
|
-
|
|
5014
|
+
m({ type: Boolean, reflect: !0 })
|
|
5015
5015
|
], C.prototype, "disabled", 2);
|
|
5016
5016
|
P([
|
|
5017
|
-
|
|
5017
|
+
m({ type: String })
|
|
5018
5018
|
], C.prototype, "error", 2);
|
|
5019
5019
|
P([
|
|
5020
|
-
|
|
5020
|
+
m({ type: String })
|
|
5021
5021
|
], C.prototype, "hint", 2);
|
|
5022
5022
|
P([
|
|
5023
|
-
|
|
5023
|
+
m({ type: String })
|
|
5024
5024
|
], C.prototype, "size", 2);
|
|
5025
5025
|
P([
|
|
5026
|
-
|
|
5026
|
+
m({ type: String })
|
|
5027
5027
|
], C.prototype, "minDate", 2);
|
|
5028
5028
|
P([
|
|
5029
|
-
|
|
5029
|
+
m({ type: String })
|
|
5030
5030
|
], C.prototype, "maxDate", 2);
|
|
5031
5031
|
P([
|
|
5032
|
-
|
|
5032
|
+
m({ type: String })
|
|
5033
5033
|
], C.prototype, "format", 2);
|
|
5034
5034
|
P([
|
|
5035
5035
|
y()
|
|
@@ -5094,8 +5094,8 @@ let V = class extends q {
|
|
|
5094
5094
|
})
|
|
5095
5095
|
);
|
|
5096
5096
|
}, this.transitionDuration));
|
|
5097
|
-
}, this.handleOverlayClick = () => {
|
|
5098
|
-
this.handleClose();
|
|
5097
|
+
}, this.handleOverlayClick = (e) => {
|
|
5098
|
+
e.target === e.currentTarget && this.handleClose();
|
|
5099
5099
|
}, this.handleDragStart = (e) => {
|
|
5100
5100
|
if (!this.modalContainer || this.modalBody && this.modalBody.scrollTop > 0)
|
|
5101
5101
|
return;
|
|
@@ -5189,7 +5189,6 @@ let V = class extends q {
|
|
|
5189
5189
|
>
|
|
5190
5190
|
<div
|
|
5191
5191
|
class=${$(t)}
|
|
5192
|
-
@click=${(r) => r.stopPropagation()}
|
|
5193
5192
|
role="dialog"
|
|
5194
5193
|
aria-modal="true"
|
|
5195
5194
|
@mousemove=${this.handleDragMove}
|
|
@@ -5217,10 +5216,10 @@ let V = class extends q {
|
|
|
5217
5216
|
};
|
|
5218
5217
|
V.styles = _r();
|
|
5219
5218
|
Z([
|
|
5220
|
-
|
|
5219
|
+
m({ type: Boolean, reflect: !0 })
|
|
5221
5220
|
], V.prototype, "open", 2);
|
|
5222
5221
|
Z([
|
|
5223
|
-
|
|
5222
|
+
m({ type: String, attribute: "size" })
|
|
5224
5223
|
], V.prototype, "size", 2);
|
|
5225
5224
|
Z([
|
|
5226
5225
|
y()
|
|
@@ -5479,34 +5478,34 @@ W.styles = J`
|
|
|
5479
5478
|
}
|
|
5480
5479
|
`;
|
|
5481
5480
|
ee([
|
|
5482
|
-
|
|
5481
|
+
m({ type: String })
|
|
5483
5482
|
], W.prototype, "value", 2);
|
|
5484
5483
|
ee([
|
|
5485
|
-
|
|
5484
|
+
m({ type: String })
|
|
5486
5485
|
], W.prototype, "label", 2);
|
|
5487
5486
|
ee([
|
|
5488
|
-
|
|
5487
|
+
m({ type: String })
|
|
5489
5488
|
], W.prototype, "placeholder", 2);
|
|
5490
5489
|
ee([
|
|
5491
|
-
|
|
5490
|
+
m({ type: String })
|
|
5492
5491
|
], W.prototype, "type", 2);
|
|
5493
5492
|
ee([
|
|
5494
|
-
|
|
5493
|
+
m({ type: Boolean, reflect: !0 })
|
|
5495
5494
|
], W.prototype, "required", 2);
|
|
5496
5495
|
ee([
|
|
5497
|
-
|
|
5496
|
+
m({ type: Boolean, reflect: !0 })
|
|
5498
5497
|
], W.prototype, "disabled", 2);
|
|
5499
5498
|
ee([
|
|
5500
|
-
|
|
5499
|
+
m({ type: String })
|
|
5501
5500
|
], W.prototype, "error", 2);
|
|
5502
5501
|
ee([
|
|
5503
|
-
|
|
5502
|
+
m({ type: String })
|
|
5504
5503
|
], W.prototype, "hint", 2);
|
|
5505
5504
|
ee([
|
|
5506
|
-
|
|
5505
|
+
m({ type: String })
|
|
5507
5506
|
], W.prototype, "autocomplete", 2);
|
|
5508
5507
|
ee([
|
|
5509
|
-
|
|
5508
|
+
m({ type: String })
|
|
5510
5509
|
], W.prototype, "size", 2);
|
|
5511
5510
|
ee([
|
|
5512
5511
|
B("input")
|
|
@@ -5912,34 +5911,34 @@ R.styles = J`
|
|
|
5912
5911
|
}
|
|
5913
5912
|
`;
|
|
5914
5913
|
N([
|
|
5915
|
-
|
|
5914
|
+
m({ type: String })
|
|
5916
5915
|
], R.prototype, "value", 2);
|
|
5917
5916
|
N([
|
|
5918
|
-
|
|
5917
|
+
m({ type: String })
|
|
5919
5918
|
], R.prototype, "label", 2);
|
|
5920
5919
|
N([
|
|
5921
|
-
|
|
5920
|
+
m({ type: String })
|
|
5922
5921
|
], R.prototype, "placeholder", 2);
|
|
5923
5922
|
N([
|
|
5924
|
-
|
|
5923
|
+
m({ type: Boolean, reflect: !0 })
|
|
5925
5924
|
], R.prototype, "required", 2);
|
|
5926
5925
|
N([
|
|
5927
|
-
|
|
5926
|
+
m({ type: Boolean, reflect: !0 })
|
|
5928
5927
|
], R.prototype, "disabled", 2);
|
|
5929
5928
|
N([
|
|
5930
|
-
|
|
5929
|
+
m({ type: Boolean, reflect: !0 })
|
|
5931
5930
|
], R.prototype, "searchable", 2);
|
|
5932
5931
|
N([
|
|
5933
|
-
|
|
5932
|
+
m({ type: String })
|
|
5934
5933
|
], R.prototype, "error", 2);
|
|
5935
5934
|
N([
|
|
5936
|
-
|
|
5935
|
+
m({ type: String })
|
|
5937
5936
|
], R.prototype, "hint", 2);
|
|
5938
5937
|
N([
|
|
5939
|
-
|
|
5938
|
+
m({ type: String })
|
|
5940
5939
|
], R.prototype, "size", 2);
|
|
5941
5940
|
N([
|
|
5942
|
-
|
|
5941
|
+
m({ type: Array })
|
|
5943
5942
|
], R.prototype, "options", 2);
|
|
5944
5943
|
N([
|
|
5945
5944
|
y()
|
|
@@ -6028,19 +6027,19 @@ pe.styles = J`
|
|
|
6028
6027
|
}
|
|
6029
6028
|
`;
|
|
6030
6029
|
Oe([
|
|
6031
|
-
|
|
6030
|
+
m({ type: String, reflect: !0 })
|
|
6032
6031
|
], pe.prototype, "id", 2);
|
|
6033
6032
|
Oe([
|
|
6034
|
-
|
|
6033
|
+
m({ type: String })
|
|
6035
6034
|
], pe.prototype, "label", 2);
|
|
6036
6035
|
Oe([
|
|
6037
|
-
|
|
6036
|
+
m({ type: Number })
|
|
6038
6037
|
], pe.prototype, "badge", 2);
|
|
6039
6038
|
Oe([
|
|
6040
|
-
|
|
6039
|
+
m({ type: String })
|
|
6041
6040
|
], pe.prototype, "icon", 2);
|
|
6042
6041
|
Oe([
|
|
6043
|
-
|
|
6042
|
+
m({ type: Boolean, reflect: !0 })
|
|
6044
6043
|
], pe.prototype, "active", 2);
|
|
6045
6044
|
pe = Oe([
|
|
6046
6045
|
K("base-tab")
|
|
@@ -6705,19 +6704,19 @@ X.styles = J`
|
|
|
6705
6704
|
}
|
|
6706
6705
|
`;
|
|
6707
6706
|
ae([
|
|
6708
|
-
|
|
6707
|
+
m({ type: String, attribute: "active-tab" })
|
|
6709
6708
|
], X.prototype, "activeTab", 2);
|
|
6710
6709
|
ae([
|
|
6711
|
-
|
|
6710
|
+
m({ type: String, attribute: "aria-label" })
|
|
6712
6711
|
], X.prototype, "ariaLabel", 2);
|
|
6713
6712
|
ae([
|
|
6714
|
-
|
|
6713
|
+
m({ type: Boolean, attribute: "sync-with-hash" })
|
|
6715
6714
|
], X.prototype, "syncWithHash", 2);
|
|
6716
6715
|
ae([
|
|
6717
|
-
|
|
6716
|
+
m({ type: String })
|
|
6718
6717
|
], X.prototype, "variant", 2);
|
|
6719
6718
|
ae([
|
|
6720
|
-
|
|
6719
|
+
m({ type: Boolean, attribute: "force-expanded" })
|
|
6721
6720
|
], X.prototype, "forceExpanded", 2);
|
|
6722
6721
|
ae([
|
|
6723
6722
|
y()
|
|
@@ -6995,37 +6994,37 @@ H.styles = J`
|
|
|
6995
6994
|
}
|
|
6996
6995
|
`;
|
|
6997
6996
|
G([
|
|
6998
|
-
|
|
6997
|
+
m({ type: String })
|
|
6999
6998
|
], H.prototype, "value", 2);
|
|
7000
6999
|
G([
|
|
7001
|
-
|
|
7000
|
+
m({ type: String })
|
|
7002
7001
|
], H.prototype, "label", 2);
|
|
7003
7002
|
G([
|
|
7004
|
-
|
|
7003
|
+
m({ type: String })
|
|
7005
7004
|
], H.prototype, "placeholder", 2);
|
|
7006
7005
|
G([
|
|
7007
|
-
|
|
7006
|
+
m({ type: Boolean, reflect: !0 })
|
|
7008
7007
|
], H.prototype, "required", 2);
|
|
7009
7008
|
G([
|
|
7010
|
-
|
|
7009
|
+
m({ type: Boolean, reflect: !0 })
|
|
7011
7010
|
], H.prototype, "disabled", 2);
|
|
7012
7011
|
G([
|
|
7013
|
-
|
|
7012
|
+
m({ type: String })
|
|
7014
7013
|
], H.prototype, "error", 2);
|
|
7015
7014
|
G([
|
|
7016
|
-
|
|
7015
|
+
m({ type: String })
|
|
7017
7016
|
], H.prototype, "hint", 2);
|
|
7018
7017
|
G([
|
|
7019
|
-
|
|
7018
|
+
m({ type: String })
|
|
7020
7019
|
], H.prototype, "size", 2);
|
|
7021
7020
|
G([
|
|
7022
|
-
|
|
7021
|
+
m({ type: Number })
|
|
7023
7022
|
], H.prototype, "rows", 2);
|
|
7024
7023
|
G([
|
|
7025
|
-
|
|
7024
|
+
m({ type: Number })
|
|
7026
7025
|
], H.prototype, "maxlength", 2);
|
|
7027
7026
|
G([
|
|
7028
|
-
|
|
7027
|
+
m({ type: String })
|
|
7029
7028
|
], H.prototype, "resize", 2);
|
|
7030
7029
|
G([
|
|
7031
7030
|
B("textarea")
|
|
@@ -7499,31 +7498,31 @@ I.styles = J`
|
|
|
7499
7498
|
}
|
|
7500
7499
|
`;
|
|
7501
7500
|
L([
|
|
7502
|
-
|
|
7501
|
+
m({ type: String })
|
|
7503
7502
|
], I.prototype, "value", 2);
|
|
7504
7503
|
L([
|
|
7505
|
-
|
|
7504
|
+
m({ type: String })
|
|
7506
7505
|
], I.prototype, "label", 2);
|
|
7507
7506
|
L([
|
|
7508
|
-
|
|
7507
|
+
m({ type: String })
|
|
7509
7508
|
], I.prototype, "placeholder", 2);
|
|
7510
7509
|
L([
|
|
7511
|
-
|
|
7510
|
+
m({ type: Boolean, reflect: !0 })
|
|
7512
7511
|
], I.prototype, "required", 2);
|
|
7513
7512
|
L([
|
|
7514
|
-
|
|
7513
|
+
m({ type: Boolean, reflect: !0 })
|
|
7515
7514
|
], I.prototype, "disabled", 2);
|
|
7516
7515
|
L([
|
|
7517
|
-
|
|
7516
|
+
m({ type: String })
|
|
7518
7517
|
], I.prototype, "error", 2);
|
|
7519
7518
|
L([
|
|
7520
|
-
|
|
7519
|
+
m({ type: String })
|
|
7521
7520
|
], I.prototype, "hint", 2);
|
|
7522
7521
|
L([
|
|
7523
|
-
|
|
7522
|
+
m({ type: String })
|
|
7524
7523
|
], I.prototype, "size", 2);
|
|
7525
7524
|
L([
|
|
7526
|
-
|
|
7525
|
+
m({ type: String })
|
|
7527
7526
|
], I.prototype, "format", 2);
|
|
7528
7527
|
L([
|
|
7529
7528
|
y()
|
|
@@ -7779,19 +7778,19 @@ ue.styles = J`
|
|
|
7779
7778
|
}
|
|
7780
7779
|
`;
|
|
7781
7780
|
Te([
|
|
7782
|
-
|
|
7781
|
+
m({ type: Number })
|
|
7783
7782
|
], ue.prototype, "value", 2);
|
|
7784
7783
|
Te([
|
|
7785
|
-
|
|
7784
|
+
m({ type: Number })
|
|
7786
7785
|
], ue.prototype, "min", 2);
|
|
7787
7786
|
Te([
|
|
7788
|
-
|
|
7787
|
+
m({ type: Number })
|
|
7789
7788
|
], ue.prototype, "max", 2);
|
|
7790
7789
|
Te([
|
|
7791
|
-
|
|
7790
|
+
m({ type: String })
|
|
7792
7791
|
], ue.prototype, "size", 2);
|
|
7793
7792
|
Te([
|
|
7794
|
-
|
|
7793
|
+
m({ type: Boolean, attribute: "allow-input" })
|
|
7795
7794
|
], ue.prototype, "allowInput", 2);
|
|
7796
7795
|
ue = Te([
|
|
7797
7796
|
K("quantity-select")
|
|
@@ -8016,10 +8015,10 @@ _e.styles = J`
|
|
|
8016
8015
|
}
|
|
8017
8016
|
`;
|
|
8018
8017
|
nt([
|
|
8019
|
-
|
|
8018
|
+
m({ type: String, attribute: "size" })
|
|
8020
8019
|
], _e.prototype, "size", 2);
|
|
8021
8020
|
nt([
|
|
8022
|
-
|
|
8021
|
+
m({ type: String, attribute: "variant" })
|
|
8023
8022
|
], _e.prototype, "variant", 2);
|
|
8024
8023
|
nt([
|
|
8025
8024
|
y()
|
|
@@ -8057,7 +8056,7 @@ const pi = dt("string"), F = dt("function"), Or = dt("number"), Ye = (e) => e !=
|
|
|
8057
8056
|
} catch {
|
|
8058
8057
|
return !1;
|
|
8059
8058
|
}
|
|
8060
|
-
},
|
|
8059
|
+
}, mi = re("Date"), bi = re("File"), gi = re("Blob"), vi = re("FileList"), yi = (e) => Ye(e) && F(e.pipe), wi = (e) => {
|
|
8061
8060
|
let t;
|
|
8062
8061
|
return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
|
|
8063
8062
|
t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -8222,8 +8221,8 @@ const Fi = (e) => {
|
|
|
8222
8221
|
isResponse: Si,
|
|
8223
8222
|
isHeaders: Ei,
|
|
8224
8223
|
isUndefined: Ce,
|
|
8225
|
-
isDate:
|
|
8226
|
-
isFile:
|
|
8224
|
+
isDate: mi,
|
|
8225
|
+
isFile: bi,
|
|
8227
8226
|
isBlob: gi,
|
|
8228
8227
|
isRegExp: Li,
|
|
8229
8228
|
isFunction: F,
|
|
@@ -8342,8 +8341,8 @@ function ht(e, t, r) {
|
|
|
8342
8341
|
metaTokens: !0,
|
|
8343
8342
|
dots: !1,
|
|
8344
8343
|
indexes: !1
|
|
8345
|
-
}, !1, function(v,
|
|
8346
|
-
return !l.isUndefined(
|
|
8344
|
+
}, !1, function(v, b) {
|
|
8345
|
+
return !l.isUndefined(b[v]);
|
|
8347
8346
|
});
|
|
8348
8347
|
const o = r.metaTokens, i = r.visitor || c, s = r.dots, a = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
8349
8348
|
if (!l.isFunction(i))
|
|
@@ -8358,9 +8357,9 @@ function ht(e, t, r) {
|
|
|
8358
8357
|
throw new k("Blob is not supported. Use a Buffer instead.");
|
|
8359
8358
|
return l.isArrayBuffer(f) || l.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
8360
8359
|
}
|
|
8361
|
-
function c(f, v,
|
|
8360
|
+
function c(f, v, b) {
|
|
8362
8361
|
let x = f;
|
|
8363
|
-
if (f && !
|
|
8362
|
+
if (f && !b && typeof f == "object") {
|
|
8364
8363
|
if (l.endsWith(v, "{}"))
|
|
8365
8364
|
v = o ? v : v.slice(0, -2), f = JSON.stringify(f);
|
|
8366
8365
|
else if (l.isArray(f) && Gi(f) || (l.isFileList(f) || l.endsWith(v, "[]")) && (x = l.toArray(f)))
|
|
@@ -8372,7 +8371,7 @@ function ht(e, t, r) {
|
|
|
8372
8371
|
);
|
|
8373
8372
|
}), !1;
|
|
8374
8373
|
}
|
|
8375
|
-
return $t(f) ? !0 : (t.append(sr(
|
|
8374
|
+
return $t(f) ? !0 : (t.append(sr(b, v, s), p(f)), !1);
|
|
8376
8375
|
}
|
|
8377
8376
|
const h = [], g = Object.assign(Qi, {
|
|
8378
8377
|
defaultVisitor: c,
|
|
@@ -8687,10 +8686,10 @@ function gt(e, t, r, o, i) {
|
|
|
8687
8686
|
return o.test(t);
|
|
8688
8687
|
}
|
|
8689
8688
|
}
|
|
8690
|
-
function
|
|
8689
|
+
function ms(e) {
|
|
8691
8690
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, o) => r.toUpperCase() + o);
|
|
8692
8691
|
}
|
|
8693
|
-
function
|
|
8692
|
+
function bs(e, t) {
|
|
8694
8693
|
const r = l.toCamelCase(" " + t);
|
|
8695
8694
|
["get", "set", "has"].forEach((o) => {
|
|
8696
8695
|
Object.defineProperty(e, o + r, {
|
|
@@ -8783,7 +8782,7 @@ class Y {
|
|
|
8783
8782
|
r[a] = et(i), delete r[s];
|
|
8784
8783
|
return;
|
|
8785
8784
|
}
|
|
8786
|
-
const n = t ?
|
|
8785
|
+
const n = t ? ms(s) : String(s).trim();
|
|
8787
8786
|
n !== s && delete r[s], r[n] = et(i), o[n] = !0;
|
|
8788
8787
|
}), this;
|
|
8789
8788
|
}
|
|
@@ -8822,7 +8821,7 @@ class Y {
|
|
|
8822
8821
|
}).accessors, i = this.prototype;
|
|
8823
8822
|
function s(a) {
|
|
8824
8823
|
const n = Le(a);
|
|
8825
|
-
o[n] || (
|
|
8824
|
+
o[n] || (bs(i, a), o[n] = !0);
|
|
8826
8825
|
}
|
|
8827
8826
|
return l.isArray(t) ? t.forEach(s) : s(t), this;
|
|
8828
8827
|
}
|
|
@@ -9059,54 +9058,54 @@ const Vr = (e) => {
|
|
|
9059
9058
|
function v() {
|
|
9060
9059
|
w && w(), f && f(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
|
|
9061
9060
|
}
|
|
9062
|
-
let
|
|
9063
|
-
|
|
9061
|
+
let b = new XMLHttpRequest();
|
|
9062
|
+
b.open(i.method.toUpperCase(), i.url, !0), b.timeout = i.timeout;
|
|
9064
9063
|
function x() {
|
|
9065
|
-
if (!
|
|
9064
|
+
if (!b)
|
|
9066
9065
|
return;
|
|
9067
9066
|
const A = Y.from(
|
|
9068
|
-
"getAllResponseHeaders" in
|
|
9067
|
+
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
9069
9068
|
), j = {
|
|
9070
|
-
data: !n || n === "text" || n === "json" ?
|
|
9071
|
-
status:
|
|
9072
|
-
statusText:
|
|
9069
|
+
data: !n || n === "text" || n === "json" ? b.responseText : b.response,
|
|
9070
|
+
status: b.status,
|
|
9071
|
+
statusText: b.statusText,
|
|
9073
9072
|
headers: A,
|
|
9074
9073
|
config: e,
|
|
9075
|
-
request:
|
|
9074
|
+
request: b
|
|
9076
9075
|
};
|
|
9077
9076
|
Fr(function(Q) {
|
|
9078
9077
|
r(Q), v();
|
|
9079
9078
|
}, function(Q) {
|
|
9080
9079
|
o(Q), v();
|
|
9081
|
-
}, j),
|
|
9082
|
-
}
|
|
9083
|
-
"onloadend" in
|
|
9084
|
-
!
|
|
9085
|
-
},
|
|
9086
|
-
|
|
9087
|
-
},
|
|
9088
|
-
const j = O && O.message ? O.message : "Network Error",
|
|
9089
|
-
|
|
9090
|
-
},
|
|
9080
|
+
}, j), b = null;
|
|
9081
|
+
}
|
|
9082
|
+
"onloadend" in b ? b.onloadend = x : b.onreadystatechange = function() {
|
|
9083
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
9084
|
+
}, b.onabort = function() {
|
|
9085
|
+
b && (o(new k("Request aborted", k.ECONNABORTED, e, b)), b = null);
|
|
9086
|
+
}, b.onerror = function(O) {
|
|
9087
|
+
const j = O && O.message ? O.message : "Network Error", me = new k(j, k.ERR_NETWORK, e, b);
|
|
9088
|
+
me.event = O || null, o(me), b = null;
|
|
9089
|
+
}, b.ontimeout = function() {
|
|
9091
9090
|
let O = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
9092
9091
|
const j = i.transitional || Hr;
|
|
9093
9092
|
i.timeoutErrorMessage && (O = i.timeoutErrorMessage), o(new k(
|
|
9094
9093
|
O,
|
|
9095
9094
|
j.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
|
|
9096
9095
|
e,
|
|
9097
|
-
|
|
9098
|
-
)),
|
|
9099
|
-
}, s === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
9100
|
-
|
|
9101
|
-
}), l.isUndefined(i.withCredentials) || (
|
|
9102
|
-
|
|
9096
|
+
b
|
|
9097
|
+
)), b = null;
|
|
9098
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in b && l.forEach(a.toJSON(), function(O, j) {
|
|
9099
|
+
b.setRequestHeader(j, O);
|
|
9100
|
+
}), l.isUndefined(i.withCredentials) || (b.withCredentials = !!i.withCredentials), n && n !== "json" && (b.responseType = i.responseType), p && ([g, f] = it(p, !0), b.addEventListener("progress", g)), d && b.upload && ([h, w] = it(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (i.cancelToken || i.signal) && (c = (A) => {
|
|
9101
|
+
b && (o(!A || A.type ? new ze(null, e, b) : A), b.abort(), b = null);
|
|
9103
9102
|
}, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
|
|
9104
9103
|
const D = gs(i.url);
|
|
9105
9104
|
if (D && U.protocols.indexOf(D) === -1) {
|
|
9106
9105
|
o(new k("Unsupported protocol " + D + ":", k.ERR_BAD_REQUEST, e));
|
|
9107
9106
|
return;
|
|
9108
9107
|
}
|
|
9109
|
-
|
|
9108
|
+
b.send(s || null);
|
|
9110
9109
|
});
|
|
9111
9110
|
}, As = (e, t) => {
|
|
9112
9111
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
@@ -9193,8 +9192,8 @@ const Vr = (e) => {
|
|
|
9193
9192
|
Response: t
|
|
9194
9193
|
}))(l.global), {
|
|
9195
9194
|
ReadableStream: fr,
|
|
9196
|
-
TextEncoder:
|
|
9197
|
-
} = l.global,
|
|
9195
|
+
TextEncoder: mr
|
|
9196
|
+
} = l.global, br = (e, ...t) => {
|
|
9198
9197
|
try {
|
|
9199
9198
|
return !!e(...t);
|
|
9200
9199
|
} catch {
|
|
@@ -9207,7 +9206,7 @@ const Vr = (e) => {
|
|
|
9207
9206
|
const { fetch: t, Request: r, Response: o } = e, i = t ? Qe(t) : typeof fetch == "function", s = Qe(r), a = Qe(o);
|
|
9208
9207
|
if (!i)
|
|
9209
9208
|
return !1;
|
|
9210
|
-
const n = i && Qe(fr), d = i && (typeof
|
|
9209
|
+
const n = i && Qe(fr), d = i && (typeof mr == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new mr()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), p = s && n && br(() => {
|
|
9211
9210
|
let f = !1;
|
|
9212
9211
|
const v = new r(U.origin, {
|
|
9213
9212
|
body: new fr(),
|
|
@@ -9217,15 +9216,15 @@ const Vr = (e) => {
|
|
|
9217
9216
|
}
|
|
9218
9217
|
}).headers.has("Content-Type");
|
|
9219
9218
|
return f && !v;
|
|
9220
|
-
}), c = a && n &&
|
|
9219
|
+
}), c = a && n && br(() => l.isReadableStream(new o("").body)), h = {
|
|
9221
9220
|
stream: c && ((f) => f.body)
|
|
9222
9221
|
};
|
|
9223
9222
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
9224
|
-
!h[f] && (h[f] = (v,
|
|
9223
|
+
!h[f] && (h[f] = (v, b) => {
|
|
9225
9224
|
let x = v && v[f];
|
|
9226
9225
|
if (x)
|
|
9227
9226
|
return x.call(v);
|
|
9228
|
-
throw new k(`Response type '${f}' is not supported`, k.ERR_NOT_SUPPORT,
|
|
9227
|
+
throw new k(`Response type '${f}' is not supported`, k.ERR_NOT_SUPPORT, b);
|
|
9229
9228
|
});
|
|
9230
9229
|
});
|
|
9231
9230
|
const g = async (f) => {
|
|
@@ -9243,19 +9242,19 @@ const Vr = (e) => {
|
|
|
9243
9242
|
if (l.isURLSearchParams(f) && (f = f + ""), l.isString(f))
|
|
9244
9243
|
return (await d(f)).byteLength;
|
|
9245
9244
|
}, w = async (f, v) => {
|
|
9246
|
-
const
|
|
9247
|
-
return
|
|
9245
|
+
const b = l.toFiniteNumber(f.getContentLength());
|
|
9246
|
+
return b ?? g(v);
|
|
9248
9247
|
};
|
|
9249
9248
|
return async (f) => {
|
|
9250
9249
|
let {
|
|
9251
9250
|
url: v,
|
|
9252
|
-
method:
|
|
9251
|
+
method: b,
|
|
9253
9252
|
data: x,
|
|
9254
9253
|
signal: D,
|
|
9255
9254
|
cancelToken: A,
|
|
9256
9255
|
timeout: O,
|
|
9257
9256
|
onDownloadProgress: j,
|
|
9258
|
-
onUploadProgress:
|
|
9257
|
+
onUploadProgress: me,
|
|
9259
9258
|
responseType: Q,
|
|
9260
9259
|
headers: ut,
|
|
9261
9260
|
withCredentials: Ke = "same-origin",
|
|
@@ -9263,12 +9262,12 @@ const Vr = (e) => {
|
|
|
9263
9262
|
} = Vr(f), qt = t || fetch;
|
|
9264
9263
|
Q = Q ? (Q + "").toLowerCase() : "text";
|
|
9265
9264
|
let Je = As([D, A && A.toAbortSignal()], O), Me = null;
|
|
9266
|
-
const
|
|
9265
|
+
const be = Je && Je.unsubscribe && (() => {
|
|
9267
9266
|
Je.unsubscribe();
|
|
9268
9267
|
});
|
|
9269
9268
|
let Ht;
|
|
9270
9269
|
try {
|
|
9271
|
-
if (
|
|
9270
|
+
if (me && p && b !== "get" && b !== "head" && (Ht = await w(ut, x)) !== 0) {
|
|
9272
9271
|
let ce = new r(v, {
|
|
9273
9272
|
method: "POST",
|
|
9274
9273
|
body: x,
|
|
@@ -9277,7 +9276,7 @@ const Vr = (e) => {
|
|
|
9277
9276
|
if (l.isFormData(x) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
|
|
9278
9277
|
const [ft, Ge] = cr(
|
|
9279
9278
|
Ht,
|
|
9280
|
-
it(dr(
|
|
9279
|
+
it(dr(me))
|
|
9281
9280
|
);
|
|
9282
9281
|
x = pr(ce.body, ur, ft, Ge);
|
|
9283
9282
|
}
|
|
@@ -9286,7 +9285,7 @@ const Vr = (e) => {
|
|
|
9286
9285
|
const oe = s && "credentials" in r.prototype, Bt = {
|
|
9287
9286
|
...Ut,
|
|
9288
9287
|
signal: Je,
|
|
9289
|
-
method:
|
|
9288
|
+
method: b.toUpperCase(),
|
|
9290
9289
|
headers: ut.normalize().toJSON(),
|
|
9291
9290
|
body: x,
|
|
9292
9291
|
duplex: "half",
|
|
@@ -9295,7 +9294,7 @@ const Vr = (e) => {
|
|
|
9295
9294
|
Me = s && new r(v, Bt);
|
|
9296
9295
|
let le = await (s ? qt(Me, Ut) : qt(v, Bt));
|
|
9297
9296
|
const jt = c && (Q === "stream" || Q === "response");
|
|
9298
|
-
if (c && (j || jt &&
|
|
9297
|
+
if (c && (j || jt && be)) {
|
|
9299
9298
|
const ce = {};
|
|
9300
9299
|
["status", "statusText", "headers"].forEach((Ft) => {
|
|
9301
9300
|
ce[Ft] = le[Ft];
|
|
@@ -9306,14 +9305,14 @@ const Vr = (e) => {
|
|
|
9306
9305
|
) || [];
|
|
9307
9306
|
le = new o(
|
|
9308
9307
|
pr(le.body, ur, ft, () => {
|
|
9309
|
-
Ge && Ge(),
|
|
9308
|
+
Ge && Ge(), be && be();
|
|
9310
9309
|
}),
|
|
9311
9310
|
ce
|
|
9312
9311
|
);
|
|
9313
9312
|
}
|
|
9314
9313
|
Q = Q || "text";
|
|
9315
9314
|
let Qr = await h[l.findKey(h, Q) || "text"](le, f);
|
|
9316
|
-
return !jt &&
|
|
9315
|
+
return !jt && be && be(), await new Promise((ce, Se) => {
|
|
9317
9316
|
Fr(ce, Se, {
|
|
9318
9317
|
data: Qr,
|
|
9319
9318
|
headers: Y.from(le.headers),
|
|
@@ -9324,7 +9323,7 @@ const Vr = (e) => {
|
|
|
9324
9323
|
});
|
|
9325
9324
|
});
|
|
9326
9325
|
} catch (oe) {
|
|
9327
|
-
throw
|
|
9326
|
+
throw be && be(), oe && oe.name === "TypeError" && /Load failed|fetch/i.test(oe.message) ? Object.assign(
|
|
9328
9327
|
new k("Network Error", k.ERR_NETWORK, f, Me),
|
|
9329
9328
|
{
|
|
9330
9329
|
cause: oe.cause || oe
|
|
@@ -9548,8 +9547,8 @@ class xe {
|
|
|
9548
9547
|
const f = n[h++], v = n[h++];
|
|
9549
9548
|
try {
|
|
9550
9549
|
w = f(w);
|
|
9551
|
-
} catch (
|
|
9552
|
-
v.call(this,
|
|
9550
|
+
} catch (b) {
|
|
9551
|
+
v.call(this, b);
|
|
9553
9552
|
break;
|
|
9554
9553
|
}
|
|
9555
9554
|
}
|