@everymatrix/cashier-page 1.76.14 → 1.77.1
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/components/CashierError-BEEnpeVH.cjs +8 -0
- package/components/{CashierError-_mJg7htJ.js → CashierError-BL7OTzSK.js} +712 -744
- package/components/{CashierError-BD6RqW_4.js → CashierError-BuW5dJfP.js} +735 -767
- package/components/{CashierHeader-DGMIDhtj.js → CashierHeader-CkyrZZ8s.js} +35 -35
- package/components/{CashierHeader-s4ev8t3u.cjs → CashierHeader-D5eAmyvG.cjs} +1 -1
- package/components/{CashierHeader-CLenwFLu.js → CashierHeader-FDYsDrpF.js} +37 -37
- package/components/{CashierIframeRedirect-i-bgiInf.js → CashierIframeRedirect-CmdPA_aZ.js} +28 -28
- package/components/{CashierIframeRedirect-CVCo8t0b.cjs → CashierIframeRedirect-Db-zgjwP.cjs} +1 -1
- package/components/{CashierIframeRedirect-BVU6BJJW.js → CashierIframeRedirect-wlE_YN39.js} +34 -34
- package/components/{CashierMethodDetails-DNAJHYhK.cjs → CashierMethodDetails-B7K0CIlB.cjs} +18 -5
- package/components/{CashierMethodDetails-PPgUijPf.js → CashierMethodDetails-BSBqkHNa.js} +743 -694
- package/components/{CashierMethodDetails-Yh-raa4P.js → CashierMethodDetails-C7dG4t8m.js} +884 -835
- package/components/{CashierMethodsList-odtc9D1r.js → CashierMethodsList-FNgy0d7U.js} +83 -83
- package/components/{CashierMethodsList-Bq89MePx.js → CashierMethodsList-gPmctW-Q.js} +92 -92
- package/components/{CashierMethodsList-GFY_3ABy.cjs → CashierMethodsList-pakwpTY2.cjs} +1 -1
- package/components/{CashierModal-wzdkmyre.js → CashierModal-BAzO-8NU.js} +40 -40
- package/components/{CashierModal-DTVOjm1x.js → CashierModal-CIWk9EpH.js} +46 -46
- package/components/{CashierModal-Btsbp3nD.cjs → CashierModal-vCh-dC6Q.cjs} +1 -1
- package/components/{CashierNotifications-mcKpgb8B.cjs → CashierNotifications-Bgf97-ym.cjs} +1 -1
- package/components/{CashierNotifications-Ci6C686m.js → CashierNotifications-BhA-DfA9.js} +32 -32
- package/components/{CashierNotifications-CmEFRQ8z.js → CashierNotifications-CfzNxd6q.js} +32 -32
- package/components/{CashierPage-mgwXJuuN.js → CashierPage-D8YY3wAI.js} +135 -135
- package/components/{CashierPage-D8Py7RSY.js → CashierPage-DbHvX6nI.js} +109 -109
- package/components/{CashierPage-CfG1gBA4.cjs → CashierPage-DcwM8mwG.cjs} +1 -1
- package/components/{CashierReceiptPage-DlVdltM6.js → CashierReceiptPage-A1MYfWGW.js} +76 -76
- package/components/{CashierReceiptPage-DS7FVfNe.js → CashierReceiptPage-BzjCwk2b.js} +76 -76
- package/components/{CashierReceiptPage-BVPfyaQD.cjs → CashierReceiptPage-CQyluI1J.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-Dj_Kbuv7.cjs → CashierSessionExpirationModal-Bh3jmXl_.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-CeThEk8x.js → CashierSessionExpirationModal-CtakjuI_.js} +85 -94
- package/components/{CashierSessionExpirationModal-DvN0J2as.js → CashierSessionExpirationModal-YWIpKzje.js} +85 -94
- package/components/{CashierSpinner-BCIciib1.js → CashierSpinner-CAqB2_pw.js} +19 -19
- package/components/{CashierSpinner-DFXOVOqQ.cjs → CashierSpinner-DTztqXMW.cjs} +1 -1
- package/components/{CashierSpinner-yNXiNCOs.js → CashierSpinner-DXrTfpLq.js} +19 -19
- package/components/{CashierTransactionHistory-pyelfuDA.js → CashierTransactionHistory-U9Il8eZb.js} +119 -119
- package/components/{CashierTransactionHistory-CqwwMSVN.js → CashierTransactionHistory-Y1g5hagc.js} +76 -76
- package/components/{CashierTransactionHistory-BUPbSA6h.cjs → CashierTransactionHistory-c_0mTjNo.cjs} +1 -1
- package/components/{CashierVerifications-ChzwoJWn.js → CashierVerifications-BA7PsePr.js} +41 -41
- package/components/{CashierVerifications-DkzSmAn4.js → CashierVerifications-BTvFySIg.js} +30 -30
- package/components/{CashierVerifications-B5JCN--3.cjs → CashierVerifications-BlWTY2gh.cjs} +1 -1
- package/components/{TxnStatusIcon-BogP6LJ2.js → TxnStatusIcon-ClddwA7r.js} +23 -23
- package/components/{TxnStatusIcon-DasCjrqn.js → TxnStatusIcon-DPmmaKoK.js} +27 -27
- package/components/{TxnStatusIcon-DCMCZZCQ.cjs → TxnStatusIcon-Dapc6xhT.cjs} +1 -1
- package/components/{TxnTypeIcons-Bg5MfuGX.js → TxnTypeIcons-CEcfPpqm.js} +14 -14
- package/components/{TxnTypeIcons-DavAdp_P.js → TxnTypeIcons-CWojIltL.js} +14 -14
- package/components/{TxnTypeIcons-BByZ1nXT.cjs → TxnTypeIcons-w8LBVBiN.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-BqeIndhr.js +554 -0
- package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
- package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
- package/stencil/index-b2193545-BoSqyMpB.js +519 -0
- package/stencil/index-b2193545-D4dOaNlR.js +503 -0
- package/stencil/index-b2193545-DGHOe8n4.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BU5r6gJa.cjs → ui-image-2ff23cd5-BHGIWJop.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DZZYCsK1.js → ui-image-2ff23cd5-D0rXudCW.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-CBX1vdMZ.js → ui-image-2ff23cd5-DCLQ0SIO.js} +1 -1
- package/stencil/{ui-image-BGfwfp_F.js → ui-image-BRBJSkg1.js} +1 -1
- package/stencil/{ui-image-CBGIeQyw.cjs → ui-image-C0iABVS5.cjs} +1 -1
- package/stencil/{ui-image-Cgsi32kw.js → ui-image-e4W3SkhP.js} +1 -1
- package/stencil/{ui-image_2-exO7RXKL.js → ui-image_2-B21W_djK.js} +2 -2
- package/stencil/{ui-image_2-Bsl4RJfi.cjs → ui-image_2-CLk629jW.cjs} +1 -1
- package/stencil/{ui-image_2-ID_1Oi3k.js → ui-image_2-VgK3B8gQ.js} +2 -2
- package/stencil/{ui-skeleton-BTr272EW.js → ui-skeleton-4-zrLsIW.js} +2 -2
- package/stencil/{ui-skeleton-P4PO_42z.js → ui-skeleton-9boHSjtG.js} +2 -2
- package/stencil/{ui-skeleton-C4Ir1ffm.cjs → ui-skeleton-DgAs7VA3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-C7WHUwAT.js → ui-skeleton-ae35c6f2-8tYGV8SR.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-jcrjm-Kl.cjs → ui-skeleton-ae35c6f2-DLHrpWJM.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BIdXBK8D.js → ui-skeleton-ae35c6f2-IN_dPA5_.js} +1 -1
- package/components/CashierError-BVTgkQx8.cjs +0 -21
- package/stencil/index-242ac81a-Bl2OSy8h.js +0 -538
- package/stencil/index-242ac81a-Czg480dJ.js +0 -554
- package/stencil/index-242ac81a-DDPF_SYN.cjs +0 -1
- package/stencil/index-b2193545-ByMYc64n.cjs +0 -1
- package/stencil/index-b2193545-DWKmtYUG.js +0 -503
- package/stencil/index-b2193545-Dfy4Cgny.js +0 -519
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-BRBJSkg1.js";
|
|
2
2
|
function B() {
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const rt = (e) => e;
|
|
5
5
|
function yr(e, t) {
|
|
6
6
|
for (const r in t)
|
|
7
7
|
e[r] = t[r];
|
|
@@ -16,18 +16,18 @@ function Rt(e) {
|
|
|
16
16
|
function mt() {
|
|
17
17
|
return /* @__PURE__ */ Object.create(null);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function R(e) {
|
|
20
20
|
e.forEach(Rt);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ee(e) {
|
|
23
23
|
return typeof e == "function";
|
|
24
24
|
}
|
|
25
25
|
function Dt(e, t) {
|
|
26
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let me;
|
|
29
29
|
function dt(e, t) {
|
|
30
|
-
return e === t ? !0 : (
|
|
30
|
+
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
31
31
|
}
|
|
32
32
|
function _r(e) {
|
|
33
33
|
return Object.keys(e).length === 0;
|
|
@@ -41,10 +41,10 @@ function kt(e, ...t) {
|
|
|
41
41
|
const r = e.subscribe(...t);
|
|
42
42
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Er(e, t, r) {
|
|
45
45
|
e.$$.on_destroy.push(kt(t, r));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function be(e, t, r, n) {
|
|
48
48
|
if (e) {
|
|
49
49
|
const i = Ut(e, t, r, n);
|
|
50
50
|
return e[0](i);
|
|
@@ -53,7 +53,7 @@ function ge(e, t, r, n) {
|
|
|
53
53
|
function Ut(e, t, r, n) {
|
|
54
54
|
return e[1] && n ? yr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ye(e, t, r, n) {
|
|
57
57
|
if (e[2] && n) {
|
|
58
58
|
const i = e[2](n(r));
|
|
59
59
|
if (t.dirty === void 0)
|
|
@@ -68,13 +68,13 @@ function be(e, t, r, n) {
|
|
|
68
68
|
}
|
|
69
69
|
return t.dirty;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function _e(e, t, r, n, i, s) {
|
|
72
72
|
if (i) {
|
|
73
73
|
const o = Ut(t, r, n, s);
|
|
74
74
|
e.p(o, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ee(e) {
|
|
78
78
|
if (e.ctx.length > 32) {
|
|
79
79
|
const t = [], r = e.ctx.length / 32;
|
|
80
80
|
for (let n = 0; n < r; n++)
|
|
@@ -83,43 +83,43 @@ function _e(e) {
|
|
|
83
83
|
}
|
|
84
84
|
return -1;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ts(e) {
|
|
87
87
|
return e ?? "";
|
|
88
88
|
}
|
|
89
89
|
const Gt = typeof window < "u";
|
|
90
|
-
let
|
|
91
|
-
const
|
|
90
|
+
let nt = Gt ? () => window.performance.now() : () => Date.now(), it = Gt ? (e) => requestAnimationFrame(e) : B;
|
|
91
|
+
const W = /* @__PURE__ */ new Set();
|
|
92
92
|
function Ft(e) {
|
|
93
|
-
|
|
94
|
-
t.c(e) || (
|
|
95
|
-
}),
|
|
93
|
+
W.forEach((t) => {
|
|
94
|
+
t.c(e) || (W.delete(t), t.f());
|
|
95
|
+
}), W.size !== 0 && it(Ft);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function st(e) {
|
|
98
98
|
let t;
|
|
99
|
-
return
|
|
99
|
+
return W.size === 0 && it(Ft), {
|
|
100
100
|
promise: new Promise((r) => {
|
|
101
|
-
|
|
101
|
+
W.add(t = { c: e, f: r });
|
|
102
102
|
}),
|
|
103
103
|
abort() {
|
|
104
|
-
|
|
104
|
+
W.delete(t);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const rs = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
109
109
|
// @ts-ignore Node typings have this
|
|
110
110
|
global
|
|
111
111
|
);
|
|
112
112
|
function I(e, t) {
|
|
113
113
|
e.appendChild(t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const n =
|
|
115
|
+
function vr(e, t, r) {
|
|
116
|
+
const n = ot(e);
|
|
117
117
|
if (!n.getElementById(t)) {
|
|
118
118
|
const i = A("style");
|
|
119
119
|
i.id = t, i.textContent = r, jt(n, i);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ot(e) {
|
|
123
123
|
if (!e)
|
|
124
124
|
return document;
|
|
125
125
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,7 +131,7 @@ function it(e) {
|
|
|
131
131
|
}
|
|
132
132
|
function xr(e) {
|
|
133
133
|
const t = A("style");
|
|
134
|
-
return t.textContent = "/* empty */", jt(
|
|
134
|
+
return t.textContent = "/* empty */", jt(ot(e), t), t.sheet;
|
|
135
135
|
}
|
|
136
136
|
function jt(e, t) {
|
|
137
137
|
return I(
|
|
@@ -140,75 +140,75 @@ function jt(e, t) {
|
|
|
140
140
|
t
|
|
141
141
|
), t.sheet;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function D(e, t, r) {
|
|
144
144
|
e.insertBefore(t, r || null);
|
|
145
145
|
}
|
|
146
146
|
function P(e) {
|
|
147
147
|
e.parentNode && e.parentNode.removeChild(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ns(e, t) {
|
|
150
150
|
for (let r = 0; r < e.length; r += 1)
|
|
151
151
|
e[r] && e[r].d(t);
|
|
152
152
|
}
|
|
153
153
|
function A(e) {
|
|
154
154
|
return document.createElement(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function is(e) {
|
|
157
157
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function he(e) {
|
|
160
160
|
return document.createTextNode(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
162
|
+
function Re() {
|
|
163
|
+
return he(" ");
|
|
164
164
|
}
|
|
165
165
|
function Tr() {
|
|
166
|
-
return
|
|
166
|
+
return he("");
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ve(e, t, r, n) {
|
|
169
169
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function ss(e) {
|
|
172
172
|
return function(t) {
|
|
173
173
|
return t.preventDefault(), e.call(this, t);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function $(e, t, r) {
|
|
177
177
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function de(e, t, r) {
|
|
180
180
|
const n = t.toLowerCase();
|
|
181
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
181
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function os(e) {
|
|
184
184
|
return e === "" ? null : +e;
|
|
185
185
|
}
|
|
186
186
|
function wr(e) {
|
|
187
187
|
return Array.from(e.childNodes);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function at(e, t) {
|
|
190
190
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
191
191
|
t);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function as(e, t) {
|
|
194
194
|
e.value = t ?? "";
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function us(e, t, r, n) {
|
|
197
197
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
198
198
|
}
|
|
199
|
-
let
|
|
199
|
+
let pe;
|
|
200
200
|
function Hr() {
|
|
201
|
-
if (
|
|
202
|
-
|
|
201
|
+
if (pe === void 0) {
|
|
202
|
+
pe = !1;
|
|
203
203
|
try {
|
|
204
204
|
typeof window < "u" && window.parent && window.parent.document;
|
|
205
205
|
} catch {
|
|
206
|
-
|
|
206
|
+
pe = !0;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
return
|
|
209
|
+
return pe;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ls(e, t) {
|
|
212
212
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
213
213
|
const n = A("iframe");
|
|
214
214
|
n.setAttribute(
|
|
@@ -217,7 +217,7 @@ function us(e, t) {
|
|
|
217
217
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
218
218
|
const i = Hr();
|
|
219
219
|
let s;
|
|
220
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
220
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ve(
|
|
221
221
|
window,
|
|
222
222
|
"message",
|
|
223
223
|
/** @param {MessageEvent} event */
|
|
@@ -225,12 +225,12 @@ function us(e, t) {
|
|
|
225
225
|
o.source === n.contentWindow && t();
|
|
226
226
|
}
|
|
227
227
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
228
|
-
s =
|
|
228
|
+
s = Ve(n.contentWindow, "resize", t), t();
|
|
229
229
|
}), I(e, n), () => {
|
|
230
230
|
(i || s && n.contentWindow) && s(), P(n);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function hs(e, t, r) {
|
|
234
234
|
e.classList.toggle(t, !!r);
|
|
235
235
|
}
|
|
236
236
|
function Sr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
@@ -245,8 +245,8 @@ function Br(e) {
|
|
|
245
245
|
}
|
|
246
246
|
), t;
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
let
|
|
248
|
+
const He = /* @__PURE__ */ new Map();
|
|
249
|
+
let Se = 0;
|
|
250
250
|
function Ar(e) {
|
|
251
251
|
let t = 5381, r = e.length;
|
|
252
252
|
for (; r--; )
|
|
@@ -255,9 +255,9 @@ function Ar(e) {
|
|
|
255
255
|
}
|
|
256
256
|
function Pr(e, t) {
|
|
257
257
|
const r = { stylesheet: xr(t), rules: {} };
|
|
258
|
-
return
|
|
258
|
+
return He.set(e, r), r;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Be(e, t, r, n, i, s, o, a = 0) {
|
|
261
261
|
const h = 16.666 / n;
|
|
262
262
|
let u = `{
|
|
263
263
|
`;
|
|
@@ -267,145 +267,145 @@ function Se(e, t, r, n, i, s, o, a = 0) {
|
|
|
267
267
|
`;
|
|
268
268
|
}
|
|
269
269
|
const l = u + `100% {${o(r, 1 - r)}}
|
|
270
|
-
}`, c = `__svelte_${Ar(l)}_${a}`, f =
|
|
270
|
+
}`, c = `__svelte_${Ar(l)}_${a}`, f = ot(e), { stylesheet: y, rules: m } = He.get(f) || Pr(f, e);
|
|
271
271
|
m[c] || (m[c] = !0, y.insertRule(`@keyframes ${c} ${l}`, y.cssRules.length));
|
|
272
272
|
const p = e.style.animation || "";
|
|
273
|
-
return e.style.animation = `${p ? `${p}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`,
|
|
273
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Se += 1, c;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Ae(e, t) {
|
|
276
276
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
277
277
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
278
278
|
// remove all Svelte animations
|
|
279
279
|
), i = r.length - n.length;
|
|
280
|
-
i && (e.style.animation = n.join(", "),
|
|
280
|
+
i && (e.style.animation = n.join(", "), Se -= i, Se || Or());
|
|
281
281
|
}
|
|
282
282
|
function Or() {
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
it(() => {
|
|
284
|
+
Se || (He.forEach((e) => {
|
|
285
285
|
const { ownerNode: t } = e.stylesheet;
|
|
286
286
|
t && P(t);
|
|
287
|
-
}),
|
|
287
|
+
}), He.clear());
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
let
|
|
291
|
-
function
|
|
292
|
-
|
|
290
|
+
let ae;
|
|
291
|
+
function oe(e) {
|
|
292
|
+
ae = e;
|
|
293
293
|
}
|
|
294
294
|
function zt() {
|
|
295
|
-
if (!
|
|
295
|
+
if (!ae)
|
|
296
296
|
throw new Error("Function called outside component initialization");
|
|
297
|
-
return
|
|
297
|
+
return ae;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Cr(e) {
|
|
300
300
|
zt().$$.on_mount.push(e);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function cs(e) {
|
|
303
303
|
zt().$$.on_destroy.push(e);
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
const pt = [],
|
|
308
|
-
let
|
|
309
|
-
function
|
|
310
|
-
|
|
305
|
+
const V = [], Xe = [];
|
|
306
|
+
let Z = [];
|
|
307
|
+
const pt = [], Ir = /* @__PURE__ */ Promise.resolve();
|
|
308
|
+
let We = !1;
|
|
309
|
+
function Nr() {
|
|
310
|
+
We || (We = !0, Ir.then(O));
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
|
|
312
|
+
function J(e) {
|
|
313
|
+
Z.push(e);
|
|
314
314
|
}
|
|
315
|
-
const
|
|
316
|
-
let
|
|
315
|
+
const De = /* @__PURE__ */ new Set();
|
|
316
|
+
let j = 0;
|
|
317
317
|
function O() {
|
|
318
|
-
if (
|
|
318
|
+
if (j !== 0)
|
|
319
319
|
return;
|
|
320
|
-
const e =
|
|
320
|
+
const e = ae;
|
|
321
321
|
do {
|
|
322
322
|
try {
|
|
323
|
-
for (;
|
|
324
|
-
const t =
|
|
325
|
-
|
|
323
|
+
for (; j < V.length; ) {
|
|
324
|
+
const t = V[j];
|
|
325
|
+
j++, oe(t), Mr(t.$$);
|
|
326
326
|
}
|
|
327
327
|
} catch (t) {
|
|
328
|
-
throw
|
|
328
|
+
throw V.length = 0, j = 0, t;
|
|
329
329
|
}
|
|
330
|
-
for (
|
|
331
|
-
|
|
332
|
-
for (let t = 0; t <
|
|
333
|
-
const r =
|
|
334
|
-
|
|
330
|
+
for (oe(null), V.length = 0, j = 0; Xe.length; )
|
|
331
|
+
Xe.pop()();
|
|
332
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
333
|
+
const r = Z[t];
|
|
334
|
+
De.has(r) || (De.add(r), r());
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
} while (
|
|
336
|
+
Z.length = 0;
|
|
337
|
+
} while (V.length);
|
|
338
338
|
for (; pt.length; )
|
|
339
339
|
pt.pop()();
|
|
340
|
-
|
|
340
|
+
We = !1, De.clear(), oe(e);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Mr(e) {
|
|
343
343
|
if (e.fragment !== null) {
|
|
344
|
-
e.update(),
|
|
344
|
+
e.update(), R(e.before_update);
|
|
345
345
|
const t = e.dirty;
|
|
346
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
346
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(J);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
function Lr(e) {
|
|
350
350
|
const t = [], r = [];
|
|
351
|
-
|
|
351
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
352
352
|
}
|
|
353
|
-
let
|
|
354
|
-
function
|
|
355
|
-
return
|
|
356
|
-
|
|
357
|
-
})),
|
|
353
|
+
let ne;
|
|
354
|
+
function ut() {
|
|
355
|
+
return ne || (ne = Promise.resolve(), ne.then(() => {
|
|
356
|
+
ne = null;
|
|
357
|
+
})), ne;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function U(e, t, r) {
|
|
360
360
|
e.dispatchEvent(Sr(`${t ? "intro" : "outro"}${r}`));
|
|
361
361
|
}
|
|
362
362
|
const ve = /* @__PURE__ */ new Set();
|
|
363
|
-
let
|
|
363
|
+
let N;
|
|
364
364
|
function $r() {
|
|
365
|
-
|
|
365
|
+
N = {
|
|
366
366
|
r: 0,
|
|
367
367
|
c: [],
|
|
368
|
-
p:
|
|
368
|
+
p: N
|
|
369
369
|
// parent group
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
function Rr() {
|
|
373
|
-
|
|
373
|
+
N.r || R(N.c), N = N.p;
|
|
374
374
|
}
|
|
375
375
|
function M(e, t) {
|
|
376
376
|
e && e.i && (ve.delete(e), e.i(t));
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function X(e, t, r, n) {
|
|
379
379
|
if (e && e.o) {
|
|
380
380
|
if (ve.has(e))
|
|
381
381
|
return;
|
|
382
|
-
ve.add(e),
|
|
382
|
+
ve.add(e), N.c.push(() => {
|
|
383
383
|
ve.delete(e), n && (r && e.d(1), n());
|
|
384
384
|
}), e.o(t);
|
|
385
385
|
} else
|
|
386
386
|
n && n();
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const lt = { duration: 0 };
|
|
389
|
+
function fs(e, t, r) {
|
|
390
390
|
const n = { direction: "in" };
|
|
391
391
|
let i = t(e, r, n), s = !1, o, a, h = 0;
|
|
392
392
|
function u() {
|
|
393
|
-
o &&
|
|
393
|
+
o && Ae(e, o);
|
|
394
394
|
}
|
|
395
395
|
function l() {
|
|
396
396
|
const {
|
|
397
397
|
delay: f = 0,
|
|
398
398
|
duration: y = 300,
|
|
399
|
-
easing: m =
|
|
399
|
+
easing: m = rt,
|
|
400
400
|
tick: p = B,
|
|
401
401
|
css: g
|
|
402
|
-
} = i ||
|
|
403
|
-
g && (o =
|
|
404
|
-
const d =
|
|
405
|
-
a && a.abort(), s = !0,
|
|
402
|
+
} = i || lt;
|
|
403
|
+
g && (o = Be(e, 0, 1, y, f, m, g, h++)), p(0, 1);
|
|
404
|
+
const d = nt() + f, E = d + y;
|
|
405
|
+
a && a.abort(), s = !0, J(() => U(e, !0, "start")), a = st((b) => {
|
|
406
406
|
if (s) {
|
|
407
|
-
if (b >=
|
|
408
|
-
return p(1, 0),
|
|
407
|
+
if (b >= E)
|
|
408
|
+
return p(1, 0), U(e, !0, "end"), u(), s = !1;
|
|
409
409
|
if (b >= d) {
|
|
410
410
|
const w = m((b - d) / y);
|
|
411
411
|
p(w, 1 - w);
|
|
@@ -417,7 +417,7 @@ function cs(e, t, r) {
|
|
|
417
417
|
let c = !1;
|
|
418
418
|
return {
|
|
419
419
|
start() {
|
|
420
|
-
c || (c = !0,
|
|
420
|
+
c || (c = !0, Ae(e), ee(i) ? (i = i(n), ut().then(l)) : l());
|
|
421
421
|
},
|
|
422
422
|
invalidate() {
|
|
423
423
|
c = !1;
|
|
@@ -427,47 +427,47 @@ function cs(e, t, r) {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function ms(e, t, r) {
|
|
431
431
|
const n = { direction: "out" };
|
|
432
432
|
let i = t(e, r, n), s = !0, o;
|
|
433
|
-
const a =
|
|
433
|
+
const a = N;
|
|
434
434
|
a.r += 1;
|
|
435
435
|
let h;
|
|
436
436
|
function u() {
|
|
437
437
|
const {
|
|
438
438
|
delay: l = 0,
|
|
439
439
|
duration: c = 300,
|
|
440
|
-
easing: f =
|
|
440
|
+
easing: f = rt,
|
|
441
441
|
tick: y = B,
|
|
442
442
|
css: m
|
|
443
|
-
} = i ||
|
|
444
|
-
m && (o =
|
|
445
|
-
const p =
|
|
446
|
-
|
|
447
|
-
e.inert, e.inert = !0),
|
|
443
|
+
} = i || lt;
|
|
444
|
+
m && (o = Be(e, 1, 0, c, l, f, m));
|
|
445
|
+
const p = nt() + l, g = p + c;
|
|
446
|
+
J(() => U(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
|
|
447
|
+
e.inert, e.inert = !0), st((d) => {
|
|
448
448
|
if (s) {
|
|
449
449
|
if (d >= g)
|
|
450
|
-
return y(0, 1),
|
|
450
|
+
return y(0, 1), U(e, !1, "end"), --a.r || R(a.c), !1;
|
|
451
451
|
if (d >= p) {
|
|
452
|
-
const
|
|
453
|
-
y(1 -
|
|
452
|
+
const E = f((d - p) / c);
|
|
453
|
+
y(1 - E, E);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
return s;
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return ee(i) ? ut().then(() => {
|
|
460
460
|
i = i(n), u();
|
|
461
461
|
}) : u(), {
|
|
462
462
|
end(l) {
|
|
463
|
-
l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (o &&
|
|
463
|
+
l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (o && Ae(e, o), s = !1);
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function ds(e, t, r, n) {
|
|
468
468
|
let s = t(e, r, { direction: "both" }), o = n ? 0 : 1, a = null, h = null, u = null, l;
|
|
469
469
|
function c() {
|
|
470
|
-
u &&
|
|
470
|
+
u && Ae(e, u);
|
|
471
471
|
}
|
|
472
472
|
function f(m, p) {
|
|
473
473
|
const g = (
|
|
@@ -488,16 +488,16 @@ function ms(e, t, r, n) {
|
|
|
488
488
|
const {
|
|
489
489
|
delay: p = 0,
|
|
490
490
|
duration: g = 300,
|
|
491
|
-
easing: d =
|
|
492
|
-
tick:
|
|
491
|
+
easing: d = rt,
|
|
492
|
+
tick: E = B,
|
|
493
493
|
css: b
|
|
494
|
-
} = s ||
|
|
495
|
-
start:
|
|
494
|
+
} = s || lt, w = {
|
|
495
|
+
start: nt() + p,
|
|
496
496
|
b: m
|
|
497
497
|
};
|
|
498
|
-
m || (w.group =
|
|
499
|
-
e.inert, e.inert = !0)), a || h ? h = w : (b && (c(), u =
|
|
500
|
-
if (h && H > h.start && (a = f(h, g), h = null,
|
|
498
|
+
m || (w.group = N, N.r += 1), "inert" in e && (m ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
499
|
+
e.inert, e.inert = !0)), a || h ? h = w : (b && (c(), u = Be(e, o, m, g, p, d, b)), m && E(0, 1), a = f(w, g), J(() => U(e, m, "start")), st((H) => {
|
|
500
|
+
if (h && H > h.start && (a = f(h, g), h = null, U(e, a.b, "start"), b && (c(), u = Be(
|
|
501
501
|
e,
|
|
502
502
|
o,
|
|
503
503
|
a.b,
|
|
@@ -507,10 +507,10 @@ function ms(e, t, r, n) {
|
|
|
507
507
|
s.css
|
|
508
508
|
))), a) {
|
|
509
509
|
if (H >= a.end)
|
|
510
|
-
|
|
510
|
+
E(o = a.b, 1 - o), U(e, a.b, "end"), h || (a.b ? c() : --a.group.r || R(a.group.c)), a = null;
|
|
511
511
|
else if (H >= a.start) {
|
|
512
|
-
const
|
|
513
|
-
o = a.a + a.d * d(
|
|
512
|
+
const F = H - a.start;
|
|
513
|
+
o = a.a + a.d * d(F / a.duration), E(o, 1 - o);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
return !!(a || h);
|
|
@@ -518,7 +518,7 @@ function ms(e, t, r, n) {
|
|
|
518
518
|
}
|
|
519
519
|
return {
|
|
520
520
|
run(m) {
|
|
521
|
-
|
|
521
|
+
ee(s) ? ut().then(() => {
|
|
522
522
|
s = s({ direction: m ? "in" : "out" }), y(m);
|
|
523
523
|
}) : y(m);
|
|
524
524
|
},
|
|
@@ -527,29 +527,29 @@ function ms(e, t, r, n) {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ps(e) {
|
|
531
531
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function gs(e) {
|
|
534
534
|
e && e.c();
|
|
535
535
|
}
|
|
536
536
|
function Dr(e, t, r) {
|
|
537
537
|
const { fragment: n, after_update: i } = e.$$;
|
|
538
|
-
n && n.m(t, r),
|
|
539
|
-
const s = e.$$.on_mount.map(Rt).filter(
|
|
540
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
541
|
-
}), i.forEach(
|
|
538
|
+
n && n.m(t, r), J(() => {
|
|
539
|
+
const s = e.$$.on_mount.map(Rt).filter(ee);
|
|
540
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : R(s), e.$$.on_mount = [];
|
|
541
|
+
}), i.forEach(J);
|
|
542
542
|
}
|
|
543
543
|
function kr(e, t) {
|
|
544
544
|
const r = e.$$;
|
|
545
|
-
r.fragment !== null && (Lr(r.after_update),
|
|
545
|
+
r.fragment !== null && (Lr(r.after_update), R(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
546
546
|
}
|
|
547
547
|
function Ur(e, t) {
|
|
548
|
-
e.$$.dirty[0] === -1 && (
|
|
548
|
+
e.$$.dirty[0] === -1 && (V.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
549
549
|
}
|
|
550
550
|
function Gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
551
|
-
const h =
|
|
552
|
-
|
|
551
|
+
const h = ae;
|
|
552
|
+
oe(e);
|
|
553
553
|
const u = e.$$ = {
|
|
554
554
|
fragment: null,
|
|
555
555
|
ctx: [],
|
|
@@ -576,7 +576,7 @@ function Gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
576
576
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...y) => {
|
|
577
577
|
const m = y.length ? y[0] : f;
|
|
578
578
|
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Ur(e, c)), f;
|
|
579
|
-
}) : [], u.update(), l = !0,
|
|
579
|
+
}) : [], u.update(), l = !0, R(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
580
580
|
if (t.hydrate) {
|
|
581
581
|
const c = wr(t.target);
|
|
582
582
|
u.fragment && u.fragment.l(c), c.forEach(P);
|
|
@@ -584,7 +584,7 @@ function Gr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
584
584
|
u.fragment && u.fragment.c();
|
|
585
585
|
t.intro && M(e.$$.fragment), Dr(e, t.target, t.anchor), O();
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
oe(h);
|
|
588
588
|
}
|
|
589
589
|
let Vt;
|
|
590
590
|
typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
@@ -629,14 +629,14 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
629
629
|
let s;
|
|
630
630
|
return {
|
|
631
631
|
c: function() {
|
|
632
|
-
s = A("slot"), i !== "default" &&
|
|
632
|
+
s = A("slot"), i !== "default" && $(s, "name", i);
|
|
633
633
|
},
|
|
634
634
|
/**
|
|
635
635
|
* @param {HTMLElement} target
|
|
636
636
|
* @param {HTMLElement} [anchor]
|
|
637
637
|
*/
|
|
638
638
|
m: function(h, u) {
|
|
639
|
-
|
|
639
|
+
D(h, s, u);
|
|
640
640
|
},
|
|
641
641
|
d: function(h) {
|
|
642
642
|
h && P(s);
|
|
@@ -651,7 +651,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
651
651
|
i in r && (t[i] = [e(i)]);
|
|
652
652
|
for (const i of this.attributes) {
|
|
653
653
|
const s = this.$$g_p(i.name);
|
|
654
|
-
s in this.$$d || (this.$$d[s] =
|
|
654
|
+
s in this.$$d || (this.$$d[s] = xe(s, i.value, this.$$p_d, "toProp"));
|
|
655
655
|
}
|
|
656
656
|
for (const i in this.$$p_d)
|
|
657
657
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -669,7 +669,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
669
669
|
this.$$r = !0;
|
|
670
670
|
for (const i in this.$$p_d)
|
|
671
671
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
672
|
-
const s =
|
|
672
|
+
const s = xe(
|
|
673
673
|
i,
|
|
674
674
|
this.$$d[i],
|
|
675
675
|
this.$$p_d,
|
|
@@ -691,7 +691,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
691
691
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
692
692
|
// and setting attributes through setAttribute etc, this is helpful
|
|
693
693
|
attributeChangedCallback(e, t, r) {
|
|
694
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
694
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = xe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
695
695
|
}
|
|
696
696
|
disconnectedCallback() {
|
|
697
697
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -704,7 +704,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
704
704
|
) || e;
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
|
-
function
|
|
707
|
+
function xe(e, t, r, n) {
|
|
708
708
|
const i = r[e]?.type;
|
|
709
709
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
710
710
|
return t;
|
|
@@ -750,7 +750,7 @@ function Fr(e, t, r, n, i, s) {
|
|
|
750
750
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
751
751
|
},
|
|
752
752
|
set(h) {
|
|
753
|
-
h =
|
|
753
|
+
h = xe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
}), n.forEach((a) => {
|
|
@@ -790,7 +790,7 @@ class jr {
|
|
|
790
790
|
* @returns {() => void}
|
|
791
791
|
*/
|
|
792
792
|
$on(t, r) {
|
|
793
|
-
if (!
|
|
793
|
+
if (!ee(r))
|
|
794
794
|
return B;
|
|
795
795
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
796
796
|
return n.push(r), () => {
|
|
@@ -808,24 +808,24 @@ class jr {
|
|
|
808
808
|
}
|
|
809
809
|
const zr = "4";
|
|
810
810
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zr);
|
|
811
|
-
const
|
|
811
|
+
const z = [];
|
|
812
812
|
function Vr(e, t) {
|
|
813
813
|
return {
|
|
814
|
-
subscribe:
|
|
814
|
+
subscribe: Ne(e, t).subscribe
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Ne(e, t = B) {
|
|
818
818
|
let r;
|
|
819
819
|
const n = /* @__PURE__ */ new Set();
|
|
820
820
|
function i(a) {
|
|
821
821
|
if (Dt(e, a) && (e = a, r)) {
|
|
822
|
-
const h = !
|
|
822
|
+
const h = !z.length;
|
|
823
823
|
for (const u of n)
|
|
824
|
-
u[1](),
|
|
824
|
+
u[1](), z.push(u, e);
|
|
825
825
|
if (h) {
|
|
826
|
-
for (let u = 0; u <
|
|
827
|
-
|
|
828
|
-
|
|
826
|
+
for (let u = 0; u < z.length; u += 2)
|
|
827
|
+
z[u][0](z[u + 1]);
|
|
828
|
+
z.length = 0;
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
}
|
|
@@ -840,7 +840,7 @@ function Ie(e, t = B) {
|
|
|
840
840
|
}
|
|
841
841
|
return { set: i, update: s, subscribe: o };
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function te(e, t, r) {
|
|
844
844
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
845
845
|
if (!i.every(Boolean))
|
|
846
846
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -854,7 +854,7 @@ function ee(e, t, r) {
|
|
|
854
854
|
return;
|
|
855
855
|
c();
|
|
856
856
|
const m = t(n ? u[0] : u, o, a);
|
|
857
|
-
s ? o(m) : c =
|
|
857
|
+
s ? o(m) : c = ee(m) ? m : B;
|
|
858
858
|
}, y = i.map(
|
|
859
859
|
(m, p) => kt(
|
|
860
860
|
m,
|
|
@@ -867,11 +867,11 @@ function ee(e, t, r) {
|
|
|
867
867
|
)
|
|
868
868
|
);
|
|
869
869
|
return h = !0, f(), function() {
|
|
870
|
-
|
|
870
|
+
R(y), c(), h = !1;
|
|
871
871
|
};
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
|
-
var
|
|
874
|
+
var bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
875
875
|
function Xr(e) {
|
|
876
876
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
877
877
|
}
|
|
@@ -892,19 +892,19 @@ function Yr(e) {
|
|
|
892
892
|
function Kr(e) {
|
|
893
893
|
return Array.isArray(e) ? [] : {};
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
895
|
+
function ue(e, t) {
|
|
896
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Kr(e), e, t) : e;
|
|
897
897
|
}
|
|
898
898
|
function en(e, t, r) {
|
|
899
899
|
return e.concat(t).map(function(n) {
|
|
900
|
-
return
|
|
900
|
+
return ue(n, r);
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
903
|
function tn(e, t) {
|
|
904
904
|
if (!t.customMerge)
|
|
905
|
-
return
|
|
905
|
+
return q;
|
|
906
906
|
var r = t.customMerge(e);
|
|
907
|
-
return typeof r == "function" ? r :
|
|
907
|
+
return typeof r == "function" ? r : q;
|
|
908
908
|
}
|
|
909
909
|
function rn(e) {
|
|
910
910
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -927,65 +927,51 @@ function nn(e, t) {
|
|
|
927
927
|
function sn(e, t, r) {
|
|
928
928
|
var n = {};
|
|
929
929
|
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
930
|
-
n[i] =
|
|
930
|
+
n[i] = ue(e[i], r);
|
|
931
931
|
}), gt(t).forEach(function(i) {
|
|
932
|
-
nn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] =
|
|
932
|
+
nn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
|
933
933
|
}), n;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified =
|
|
935
|
+
function q(e, t, r) {
|
|
936
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ue;
|
|
937
937
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
938
|
-
return s ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) :
|
|
938
|
+
return s ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : ue(t, r);
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
q.all = function(t, r) {
|
|
941
941
|
if (!Array.isArray(t))
|
|
942
942
|
throw new Error("first argument should be an array");
|
|
943
943
|
return t.reduce(function(n, i) {
|
|
944
|
-
return
|
|
944
|
+
return q(n, i, r);
|
|
945
945
|
}, {});
|
|
946
946
|
};
|
|
947
|
-
var on =
|
|
947
|
+
var on = q, an = on;
|
|
948
948
|
const un = /* @__PURE__ */ Xr(an);
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
953
|
-
purpose with or without fee is hereby granted.
|
|
954
|
-
|
|
955
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
956
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
957
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
958
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
959
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
960
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
961
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
962
|
-
***************************************************************************** */
|
|
963
|
-
var Xe = function(e, t) {
|
|
964
|
-
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
949
|
+
var Ze = function(e, t) {
|
|
950
|
+
return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
965
951
|
r.__proto__ = n;
|
|
966
952
|
} || function(r, n) {
|
|
967
953
|
for (var i in n)
|
|
968
954
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
969
|
-
},
|
|
955
|
+
}, Ze(e, t);
|
|
970
956
|
};
|
|
971
|
-
function
|
|
957
|
+
function Me(e, t) {
|
|
972
958
|
if (typeof t != "function" && t !== null)
|
|
973
959
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
974
|
-
|
|
960
|
+
Ze(e, t);
|
|
975
961
|
function r() {
|
|
976
962
|
this.constructor = e;
|
|
977
963
|
}
|
|
978
964
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
979
965
|
}
|
|
980
|
-
var
|
|
981
|
-
return
|
|
966
|
+
var C = function() {
|
|
967
|
+
return C = Object.assign || function(t) {
|
|
982
968
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
983
969
|
r = arguments[n];
|
|
984
970
|
for (var s in r)
|
|
985
971
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
986
972
|
}
|
|
987
973
|
return t;
|
|
988
|
-
},
|
|
974
|
+
}, C.apply(this, arguments);
|
|
989
975
|
};
|
|
990
976
|
function ln(e, t) {
|
|
991
977
|
var r = {};
|
|
@@ -996,46 +982,14 @@ function ln(e, t) {
|
|
|
996
982
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
997
983
|
return r;
|
|
998
984
|
}
|
|
999
|
-
function
|
|
1000
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
1001
|
-
if (r)
|
|
1002
|
-
return r.call(e);
|
|
1003
|
-
if (e && typeof e.length == "number")
|
|
1004
|
-
return {
|
|
1005
|
-
next: function() {
|
|
1006
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1010
|
-
}
|
|
1011
|
-
function ys(e, t) {
|
|
1012
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1013
|
-
if (!r)
|
|
1014
|
-
return e;
|
|
1015
|
-
var n = r.call(e), i, s = [], o;
|
|
1016
|
-
try {
|
|
1017
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
1018
|
-
s.push(i.value);
|
|
1019
|
-
} catch (a) {
|
|
1020
|
-
o = { error: a };
|
|
1021
|
-
} finally {
|
|
1022
|
-
try {
|
|
1023
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
1024
|
-
} finally {
|
|
1025
|
-
if (o)
|
|
1026
|
-
throw o.error;
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return s;
|
|
1030
|
-
}
|
|
1031
|
-
function Re(e, t, r) {
|
|
985
|
+
function ke(e, t, r) {
|
|
1032
986
|
if (r || arguments.length === 2)
|
|
1033
987
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1034
988
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1035
|
-
return e.concat(s || t);
|
|
989
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
1036
990
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var r = t && t.cache ? t.cache :
|
|
991
|
+
function Ue(e, t) {
|
|
992
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : fn;
|
|
1039
993
|
return i(e, {
|
|
1040
994
|
cache: r,
|
|
1041
995
|
serializer: n
|
|
@@ -1044,95 +998,103 @@ function De(e, t) {
|
|
|
1044
998
|
function hn(e) {
|
|
1045
999
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1046
1000
|
}
|
|
1047
|
-
function
|
|
1001
|
+
function cn(e, t, r, n) {
|
|
1048
1002
|
var i = hn(n) ? n : r(n), s = t.get(i);
|
|
1049
1003
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1050
1004
|
}
|
|
1051
|
-
function
|
|
1005
|
+
function Wt(e, t, r) {
|
|
1052
1006
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1053
1007
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1054
1008
|
}
|
|
1055
|
-
function
|
|
1009
|
+
function Zt(e, t, r, n, i) {
|
|
1056
1010
|
return r.bind(t, e, n, i);
|
|
1057
1011
|
}
|
|
1058
|
-
function cn(e, t) {
|
|
1059
|
-
var r = e.length === 1 ? Wt : Zt;
|
|
1060
|
-
return ut(e, this, r, t.cache.create(), t.serializer);
|
|
1061
|
-
}
|
|
1062
1012
|
function fn(e, t) {
|
|
1063
|
-
|
|
1013
|
+
var r = e.length === 1 ? cn : Wt;
|
|
1014
|
+
return Zt(e, this, r, t.cache.create(), t.serializer);
|
|
1064
1015
|
}
|
|
1065
1016
|
function mn(e, t) {
|
|
1066
|
-
return
|
|
1017
|
+
return Zt(e, this, Wt, t.cache.create(), t.serializer);
|
|
1067
1018
|
}
|
|
1068
1019
|
var dn = function() {
|
|
1069
1020
|
return JSON.stringify(arguments);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1021
|
+
}, pn = (
|
|
1022
|
+
/** @class */
|
|
1023
|
+
function() {
|
|
1024
|
+
function e() {
|
|
1025
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1026
|
+
}
|
|
1027
|
+
return e.prototype.get = function(t) {
|
|
1028
|
+
return this.cache[t];
|
|
1029
|
+
}, e.prototype.set = function(t, r) {
|
|
1030
|
+
this.cache[t] = r;
|
|
1031
|
+
}, e;
|
|
1032
|
+
}()
|
|
1033
|
+
), gn = {
|
|
1081
1034
|
create: function() {
|
|
1082
|
-
return new
|
|
1035
|
+
return new pn();
|
|
1083
1036
|
}
|
|
1084
|
-
},
|
|
1085
|
-
variadic:
|
|
1086
|
-
|
|
1087
|
-
|
|
1037
|
+
}, Ge = {
|
|
1038
|
+
variadic: mn
|
|
1039
|
+
}, Pe = function() {
|
|
1040
|
+
return Pe = Object.assign || function(t) {
|
|
1041
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1042
|
+
r = arguments[n];
|
|
1043
|
+
for (var s in r)
|
|
1044
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1045
|
+
}
|
|
1046
|
+
return t;
|
|
1047
|
+
}, Pe.apply(this, arguments);
|
|
1048
|
+
};
|
|
1049
|
+
var _;
|
|
1088
1050
|
(function(e) {
|
|
1089
1051
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1090
1052
|
})(_ || (_ = {}));
|
|
1091
|
-
var
|
|
1053
|
+
var x;
|
|
1092
1054
|
(function(e) {
|
|
1093
1055
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1094
|
-
})(
|
|
1095
|
-
var
|
|
1056
|
+
})(x || (x = {}));
|
|
1057
|
+
var Q;
|
|
1096
1058
|
(function(e) {
|
|
1097
1059
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1098
|
-
})(
|
|
1060
|
+
})(Q || (Q = {}));
|
|
1099
1061
|
function bt(e) {
|
|
1100
|
-
return e.type ===
|
|
1062
|
+
return e.type === x.literal;
|
|
1101
1063
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return e.type ===
|
|
1064
|
+
function bn(e) {
|
|
1065
|
+
return e.type === x.argument;
|
|
1104
1066
|
}
|
|
1105
1067
|
function Jt(e) {
|
|
1106
|
-
return e.type ===
|
|
1068
|
+
return e.type === x.number;
|
|
1107
1069
|
}
|
|
1108
1070
|
function qt(e) {
|
|
1109
|
-
return e.type ===
|
|
1071
|
+
return e.type === x.date;
|
|
1110
1072
|
}
|
|
1111
1073
|
function Qt(e) {
|
|
1112
|
-
return e.type ===
|
|
1074
|
+
return e.type === x.time;
|
|
1113
1075
|
}
|
|
1114
1076
|
function Yt(e) {
|
|
1115
|
-
return e.type ===
|
|
1077
|
+
return e.type === x.select;
|
|
1116
1078
|
}
|
|
1117
1079
|
function Kt(e) {
|
|
1118
|
-
return e.type ===
|
|
1080
|
+
return e.type === x.plural;
|
|
1119
1081
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return e.type ===
|
|
1082
|
+
function yn(e) {
|
|
1083
|
+
return e.type === x.pound;
|
|
1122
1084
|
}
|
|
1123
1085
|
function er(e) {
|
|
1124
|
-
return e.type ===
|
|
1086
|
+
return e.type === x.tag;
|
|
1125
1087
|
}
|
|
1126
1088
|
function tr(e) {
|
|
1127
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1089
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
1128
1090
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1091
|
+
function Je(e) {
|
|
1092
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
1131
1093
|
}
|
|
1132
|
-
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1133
|
-
function
|
|
1094
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1095
|
+
function En(e) {
|
|
1134
1096
|
var t = {};
|
|
1135
|
-
return e.replace(
|
|
1097
|
+
return e.replace(_n, function(r) {
|
|
1136
1098
|
var n = r.length;
|
|
1137
1099
|
switch (r[0]) {
|
|
1138
1100
|
case "G":
|
|
@@ -1221,8 +1183,18 @@ function _n(e) {
|
|
|
1221
1183
|
return "";
|
|
1222
1184
|
}), t;
|
|
1223
1185
|
}
|
|
1186
|
+
var T = function() {
|
|
1187
|
+
return T = Object.assign || function(t) {
|
|
1188
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1189
|
+
r = arguments[n];
|
|
1190
|
+
for (var s in r)
|
|
1191
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1192
|
+
}
|
|
1193
|
+
return t;
|
|
1194
|
+
}, T.apply(this, arguments);
|
|
1195
|
+
};
|
|
1224
1196
|
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1225
|
-
function
|
|
1197
|
+
function xn(e) {
|
|
1226
1198
|
if (e.length === 0)
|
|
1227
1199
|
throw new Error("Number skeleton cannot be empty");
|
|
1228
1200
|
for (var t = e.split(vn).filter(function(f) {
|
|
@@ -1240,10 +1212,10 @@ function En(e) {
|
|
|
1240
1212
|
}
|
|
1241
1213
|
return r;
|
|
1242
1214
|
}
|
|
1243
|
-
function
|
|
1215
|
+
function Tn(e) {
|
|
1244
1216
|
return e.replace(/^(.*?)-/, "");
|
|
1245
1217
|
}
|
|
1246
|
-
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1218
|
+
var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, wn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
|
|
1247
1219
|
function _t(e) {
|
|
1248
1220
|
var t = {};
|
|
1249
1221
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
|
|
@@ -1290,7 +1262,7 @@ function sr(e) {
|
|
|
1290
1262
|
};
|
|
1291
1263
|
}
|
|
1292
1264
|
}
|
|
1293
|
-
function
|
|
1265
|
+
function Hn(e) {
|
|
1294
1266
|
var t;
|
|
1295
1267
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1296
1268
|
notation: "engineering"
|
|
@@ -1304,11 +1276,11 @@ function wn(e) {
|
|
|
1304
1276
|
}
|
|
1305
1277
|
return t;
|
|
1306
1278
|
}
|
|
1307
|
-
function
|
|
1279
|
+
function Et(e) {
|
|
1308
1280
|
var t = {}, r = sr(e);
|
|
1309
1281
|
return r || t;
|
|
1310
1282
|
}
|
|
1311
|
-
function
|
|
1283
|
+
function Sn(e) {
|
|
1312
1284
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1313
1285
|
var i = n[r];
|
|
1314
1286
|
switch (i.stem) {
|
|
@@ -1332,7 +1304,7 @@ function Hn(e) {
|
|
|
1332
1304
|
continue;
|
|
1333
1305
|
case "measure-unit":
|
|
1334
1306
|
case "unit":
|
|
1335
|
-
t.style = "unit", t.unit =
|
|
1307
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1336
1308
|
continue;
|
|
1337
1309
|
case "compact-short":
|
|
1338
1310
|
case "K":
|
|
@@ -1343,13 +1315,13 @@ function Hn(e) {
|
|
|
1343
1315
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1344
1316
|
continue;
|
|
1345
1317
|
case "scientific":
|
|
1346
|
-
t =
|
|
1347
|
-
return
|
|
1318
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1319
|
+
return T(T({}, h), Et(u));
|
|
1348
1320
|
}, {}));
|
|
1349
1321
|
continue;
|
|
1350
1322
|
case "engineering":
|
|
1351
|
-
t =
|
|
1352
|
-
return
|
|
1323
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1324
|
+
return T(T({}, h), Et(u));
|
|
1353
1325
|
}, {}));
|
|
1354
1326
|
continue;
|
|
1355
1327
|
case "notation-simple":
|
|
@@ -1394,7 +1366,7 @@ function Hn(e) {
|
|
|
1394
1366
|
case "integer-width":
|
|
1395
1367
|
if (i.options.length > 1)
|
|
1396
1368
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1397
|
-
i.options[0].replace(
|
|
1369
|
+
i.options[0].replace(wn, function(h, u, l, c, f, y) {
|
|
1398
1370
|
if (u)
|
|
1399
1371
|
t.minimumIntegerDigits = l.length;
|
|
1400
1372
|
else {
|
|
@@ -1418,21 +1390,21 @@ function Hn(e) {
|
|
|
1418
1390
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && y ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1419
1391
|
});
|
|
1420
1392
|
var s = i.options[0];
|
|
1421
|
-
s === "w" ? t =
|
|
1393
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), _t(s)));
|
|
1422
1394
|
continue;
|
|
1423
1395
|
}
|
|
1424
1396
|
if (nr.test(i.stem)) {
|
|
1425
|
-
t =
|
|
1397
|
+
t = T(T({}, t), _t(i.stem));
|
|
1426
1398
|
continue;
|
|
1427
1399
|
}
|
|
1428
1400
|
var o = sr(i.stem);
|
|
1429
|
-
o && (t =
|
|
1430
|
-
var a =
|
|
1431
|
-
a && (t =
|
|
1401
|
+
o && (t = T(T({}, t), o));
|
|
1402
|
+
var a = Hn(i.stem);
|
|
1403
|
+
a && (t = T(T({}, t), a));
|
|
1432
1404
|
}
|
|
1433
1405
|
return t;
|
|
1434
1406
|
}
|
|
1435
|
-
var
|
|
1407
|
+
var ge = {
|
|
1436
1408
|
"001": [
|
|
1437
1409
|
"H",
|
|
1438
1410
|
"h"
|
|
@@ -2847,13 +2819,13 @@ var pe = {
|
|
|
2847
2819
|
"h"
|
|
2848
2820
|
]
|
|
2849
2821
|
};
|
|
2850
|
-
function
|
|
2822
|
+
function Bn(e, t) {
|
|
2851
2823
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2852
2824
|
var i = e.charAt(n);
|
|
2853
2825
|
if (i === "j") {
|
|
2854
2826
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2855
2827
|
s++, n++;
|
|
2856
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2828
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = An(t);
|
|
2857
2829
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2858
2830
|
r += h;
|
|
2859
2831
|
for (; o-- > 0; )
|
|
@@ -2863,7 +2835,7 @@ function Sn(e, t) {
|
|
|
2863
2835
|
}
|
|
2864
2836
|
return r;
|
|
2865
2837
|
}
|
|
2866
|
-
function
|
|
2838
|
+
function An(e) {
|
|
2867
2839
|
var t = e.hourCycle;
|
|
2868
2840
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2869
2841
|
e.hourCycles && // @ts-ignore
|
|
@@ -2882,23 +2854,23 @@ function Bn(e) {
|
|
|
2882
2854
|
}
|
|
2883
2855
|
var r = e.language, n;
|
|
2884
2856
|
r !== "root" && (n = e.maximize().region);
|
|
2885
|
-
var i =
|
|
2857
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2886
2858
|
return i[0];
|
|
2887
2859
|
}
|
|
2888
|
-
var
|
|
2889
|
-
function
|
|
2860
|
+
var Fe, Pn = new RegExp("^".concat(rr.source, "*")), On = new RegExp("".concat(rr.source, "*$"));
|
|
2861
|
+
function v(e, t) {
|
|
2890
2862
|
return { start: e, end: t };
|
|
2891
2863
|
}
|
|
2892
|
-
var
|
|
2864
|
+
var Cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Nn = !!Object.fromEntries, Mn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Dn = Rn ? Number.isSafeInteger : function(e) {
|
|
2893
2865
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2894
|
-
},
|
|
2866
|
+
}, qe = !0;
|
|
2895
2867
|
try {
|
|
2896
|
-
var
|
|
2897
|
-
|
|
2868
|
+
var kn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2869
|
+
qe = ((Fe = kn.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
2898
2870
|
} catch {
|
|
2899
|
-
|
|
2871
|
+
qe = !1;
|
|
2900
2872
|
}
|
|
2901
|
-
var
|
|
2873
|
+
var vt = Cn ? (
|
|
2902
2874
|
// Native
|
|
2903
2875
|
function(t, r, n) {
|
|
2904
2876
|
return t.startsWith(r, n);
|
|
@@ -2908,7 +2880,7 @@ var Et = On ? (
|
|
|
2908
2880
|
function(t, r, n) {
|
|
2909
2881
|
return t.slice(n, n + r.length) === r;
|
|
2910
2882
|
}
|
|
2911
|
-
),
|
|
2883
|
+
), Qe = In ? String.fromCodePoint : (
|
|
2912
2884
|
// IE11
|
|
2913
2885
|
function() {
|
|
2914
2886
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2922,7 +2894,7 @@ var Et = On ? (
|
|
|
2922
2894
|
}
|
|
2923
2895
|
), xt = (
|
|
2924
2896
|
// native
|
|
2925
|
-
|
|
2897
|
+
Nn ? Object.fromEntries : (
|
|
2926
2898
|
// Ponyfill
|
|
2927
2899
|
function(t) {
|
|
2928
2900
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2946,7 +2918,7 @@ var Et = On ? (
|
|
|
2946
2918
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2947
2919
|
}
|
|
2948
2920
|
}
|
|
2949
|
-
),
|
|
2921
|
+
), Un = Ln ? (
|
|
2950
2922
|
// Native
|
|
2951
2923
|
function(t) {
|
|
2952
2924
|
return t.trimStart();
|
|
@@ -2954,9 +2926,9 @@ var Et = On ? (
|
|
|
2954
2926
|
) : (
|
|
2955
2927
|
// Ponyfill
|
|
2956
2928
|
function(t) {
|
|
2957
|
-
return t.replace(
|
|
2929
|
+
return t.replace(Pn, "");
|
|
2958
2930
|
}
|
|
2959
|
-
),
|
|
2931
|
+
), Gn = $n ? (
|
|
2960
2932
|
// Native
|
|
2961
2933
|
function(t) {
|
|
2962
2934
|
return t.trimEnd();
|
|
@@ -2964,32 +2936,32 @@ var Et = On ? (
|
|
|
2964
2936
|
) : (
|
|
2965
2937
|
// Ponyfill
|
|
2966
2938
|
function(t) {
|
|
2967
|
-
return t.replace(
|
|
2939
|
+
return t.replace(On, "");
|
|
2968
2940
|
}
|
|
2969
2941
|
);
|
|
2970
2942
|
function ar(e, t) {
|
|
2971
2943
|
return new RegExp(e, t);
|
|
2972
2944
|
}
|
|
2973
|
-
var
|
|
2974
|
-
if (
|
|
2945
|
+
var Ye;
|
|
2946
|
+
if (qe) {
|
|
2975
2947
|
var Tt = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2976
|
-
|
|
2948
|
+
Ye = function(t, r) {
|
|
2977
2949
|
var n;
|
|
2978
2950
|
Tt.lastIndex = r;
|
|
2979
2951
|
var i = Tt.exec(t);
|
|
2980
2952
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2981
2953
|
};
|
|
2982
2954
|
} else
|
|
2983
|
-
|
|
2955
|
+
Ye = function(t, r) {
|
|
2984
2956
|
for (var n = []; ; ) {
|
|
2985
2957
|
var i = or(t, r);
|
|
2986
|
-
if (i === void 0 || ur(i) ||
|
|
2958
|
+
if (i === void 0 || ur(i) || Vn(i))
|
|
2987
2959
|
break;
|
|
2988
2960
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2989
2961
|
}
|
|
2990
|
-
return
|
|
2962
|
+
return Qe.apply(void 0, n);
|
|
2991
2963
|
};
|
|
2992
|
-
var
|
|
2964
|
+
var Fn = (
|
|
2993
2965
|
/** @class */
|
|
2994
2966
|
function() {
|
|
2995
2967
|
function e(t, r) {
|
|
@@ -3013,14 +2985,14 @@ var Gn = (
|
|
|
3013
2985
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3014
2986
|
var a = this.clonePosition();
|
|
3015
2987
|
this.bump(), i.push({
|
|
3016
|
-
type:
|
|
3017
|
-
location:
|
|
2988
|
+
type: x.pound,
|
|
2989
|
+
location: v(a, this.clonePosition())
|
|
3018
2990
|
});
|
|
3019
2991
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3020
2992
|
if (n)
|
|
3021
2993
|
break;
|
|
3022
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
3023
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2994
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2995
|
+
} else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
|
|
3024
2996
|
var o = this.parseTag(t, r);
|
|
3025
2997
|
if (o.err)
|
|
3026
2998
|
return o;
|
|
@@ -3041,9 +3013,9 @@ var Gn = (
|
|
|
3041
3013
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3042
3014
|
return {
|
|
3043
3015
|
val: {
|
|
3044
|
-
type:
|
|
3016
|
+
type: x.literal,
|
|
3045
3017
|
value: "<".concat(i, "/>"),
|
|
3046
|
-
location:
|
|
3018
|
+
location: v(n, this.clonePosition())
|
|
3047
3019
|
},
|
|
3048
3020
|
err: null
|
|
3049
3021
|
};
|
|
@@ -3053,25 +3025,25 @@ var Gn = (
|
|
|
3053
3025
|
return s;
|
|
3054
3026
|
var o = s.val, a = this.clonePosition();
|
|
3055
3027
|
if (this.bumpIf("</")) {
|
|
3056
|
-
if (this.isEOF() || !
|
|
3057
|
-
return this.error(_.INVALID_TAG,
|
|
3028
|
+
if (this.isEOF() || !Ke(this.char()))
|
|
3029
|
+
return this.error(_.INVALID_TAG, v(a, this.clonePosition()));
|
|
3058
3030
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3059
|
-
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
3031
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3060
3032
|
val: {
|
|
3061
|
-
type:
|
|
3033
|
+
type: x.tag,
|
|
3062
3034
|
value: i,
|
|
3063
3035
|
children: o,
|
|
3064
|
-
location:
|
|
3036
|
+
location: v(n, this.clonePosition())
|
|
3065
3037
|
},
|
|
3066
3038
|
err: null
|
|
3067
|
-
} : this.error(_.INVALID_TAG,
|
|
3039
|
+
} : this.error(_.INVALID_TAG, v(a, this.clonePosition())));
|
|
3068
3040
|
} else
|
|
3069
|
-
return this.error(_.UNCLOSED_TAG,
|
|
3041
|
+
return this.error(_.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3070
3042
|
} else
|
|
3071
|
-
return this.error(_.INVALID_TAG,
|
|
3043
|
+
return this.error(_.INVALID_TAG, v(n, this.clonePosition()));
|
|
3072
3044
|
}, e.prototype.parseTagName = function() {
|
|
3073
3045
|
var t = this.offset();
|
|
3074
|
-
for (this.bump(); !this.isEOF() &&
|
|
3046
|
+
for (this.bump(); !this.isEOF() && zn(this.char()); )
|
|
3075
3047
|
this.bump();
|
|
3076
3048
|
return this.message.slice(t, this.offset());
|
|
3077
3049
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3093,14 +3065,14 @@ var Gn = (
|
|
|
3093
3065
|
}
|
|
3094
3066
|
break;
|
|
3095
3067
|
}
|
|
3096
|
-
var h =
|
|
3068
|
+
var h = v(n, this.clonePosition());
|
|
3097
3069
|
return {
|
|
3098
|
-
val: { type:
|
|
3070
|
+
val: { type: x.literal, value: i, location: h },
|
|
3099
3071
|
err: null
|
|
3100
3072
|
};
|
|
3101
3073
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3102
3074
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3103
|
-
!
|
|
3075
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3104
3076
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3105
3077
|
if (this.isEOF() || this.char() !== 39)
|
|
3106
3078
|
return null;
|
|
@@ -3134,49 +3106,49 @@ var Gn = (
|
|
|
3134
3106
|
r.push(n);
|
|
3135
3107
|
this.bump();
|
|
3136
3108
|
}
|
|
3137
|
-
return
|
|
3109
|
+
return Qe.apply(void 0, r);
|
|
3138
3110
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3139
3111
|
if (this.isEOF())
|
|
3140
3112
|
return null;
|
|
3141
3113
|
var n = this.char();
|
|
3142
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3114
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
|
|
3143
3115
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3144
3116
|
var n = this.clonePosition();
|
|
3145
3117
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3146
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3118
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3147
3119
|
if (this.char() === 125)
|
|
3148
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
3120
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3149
3121
|
var i = this.parseIdentifierIfPossible().value;
|
|
3150
3122
|
if (!i)
|
|
3151
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
3123
|
+
return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3152
3124
|
if (this.bumpSpace(), this.isEOF())
|
|
3153
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3125
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3154
3126
|
switch (this.char()) {
|
|
3155
3127
|
case 125:
|
|
3156
3128
|
return this.bump(), {
|
|
3157
3129
|
val: {
|
|
3158
|
-
type:
|
|
3130
|
+
type: x.argument,
|
|
3159
3131
|
// value does not include the opening and closing braces.
|
|
3160
3132
|
value: i,
|
|
3161
|
-
location:
|
|
3133
|
+
location: v(n, this.clonePosition())
|
|
3162
3134
|
},
|
|
3163
3135
|
err: null
|
|
3164
3136
|
};
|
|
3165
3137
|
case 44:
|
|
3166
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3138
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3167
3139
|
default:
|
|
3168
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
3140
|
+
return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3169
3141
|
}
|
|
3170
3142
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3171
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3143
|
+
var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
|
|
3172
3144
|
this.bumpTo(i);
|
|
3173
|
-
var s = this.clonePosition(), o =
|
|
3145
|
+
var s = this.clonePosition(), o = v(t, s);
|
|
3174
3146
|
return { value: n, location: o };
|
|
3175
3147
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3176
3148
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3177
3149
|
switch (a) {
|
|
3178
3150
|
case "":
|
|
3179
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
3151
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, v(o, h));
|
|
3180
3152
|
case "number":
|
|
3181
3153
|
case "date":
|
|
3182
3154
|
case "time": {
|
|
@@ -3187,44 +3159,44 @@ var Gn = (
|
|
|
3187
3159
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3188
3160
|
if (c.err)
|
|
3189
3161
|
return c;
|
|
3190
|
-
var f =
|
|
3162
|
+
var f = Gn(c.val);
|
|
3191
3163
|
if (f.length === 0)
|
|
3192
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
3193
|
-
var y =
|
|
3164
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3165
|
+
var y = v(l, this.clonePosition());
|
|
3194
3166
|
u = { style: f, styleLocation: y };
|
|
3195
3167
|
}
|
|
3196
3168
|
var m = this.tryParseArgumentClose(i);
|
|
3197
3169
|
if (m.err)
|
|
3198
3170
|
return m;
|
|
3199
|
-
var p =
|
|
3200
|
-
if (u &&
|
|
3201
|
-
var g =
|
|
3171
|
+
var p = v(i, this.clonePosition());
|
|
3172
|
+
if (u && vt(u?.style, "::", 0)) {
|
|
3173
|
+
var g = Un(u.style.slice(2));
|
|
3202
3174
|
if (a === "number") {
|
|
3203
3175
|
var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3204
3176
|
return c.err ? c : {
|
|
3205
|
-
val: { type:
|
|
3177
|
+
val: { type: x.number, value: n, location: p, style: c.val },
|
|
3206
3178
|
err: null
|
|
3207
3179
|
};
|
|
3208
3180
|
} else {
|
|
3209
3181
|
if (g.length === 0)
|
|
3210
3182
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, p);
|
|
3211
3183
|
var d = g;
|
|
3212
|
-
this.locale && (d =
|
|
3184
|
+
this.locale && (d = Bn(g, this.locale));
|
|
3213
3185
|
var f = {
|
|
3214
|
-
type:
|
|
3186
|
+
type: Q.dateTime,
|
|
3215
3187
|
pattern: d,
|
|
3216
3188
|
location: u.styleLocation,
|
|
3217
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3218
|
-
},
|
|
3189
|
+
parsedOptions: this.shouldParseSkeletons ? En(d) : {}
|
|
3190
|
+
}, E = a === "date" ? x.date : x.time;
|
|
3219
3191
|
return {
|
|
3220
|
-
val: { type:
|
|
3192
|
+
val: { type: E, value: n, location: p, style: f },
|
|
3221
3193
|
err: null
|
|
3222
3194
|
};
|
|
3223
3195
|
}
|
|
3224
3196
|
}
|
|
3225
3197
|
return {
|
|
3226
3198
|
val: {
|
|
3227
|
-
type: a === "number" ?
|
|
3199
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3228
3200
|
value: n,
|
|
3229
3201
|
location: p,
|
|
3230
3202
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -3237,38 +3209,38 @@ var Gn = (
|
|
|
3237
3209
|
case "select": {
|
|
3238
3210
|
var b = this.clonePosition();
|
|
3239
3211
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3240
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3212
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(b, Pe({}, b)));
|
|
3241
3213
|
this.bumpSpace();
|
|
3242
3214
|
var w = this.parseIdentifierIfPossible(), H = 0;
|
|
3243
3215
|
if (a !== "select" && w.value === "offset") {
|
|
3244
3216
|
if (!this.bumpIf(":"))
|
|
3245
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3217
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3246
3218
|
this.bumpSpace();
|
|
3247
3219
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3248
3220
|
if (c.err)
|
|
3249
3221
|
return c;
|
|
3250
3222
|
this.bumpSpace(), w = this.parseIdentifierIfPossible(), H = c.val;
|
|
3251
3223
|
}
|
|
3252
|
-
var
|
|
3253
|
-
if (
|
|
3254
|
-
return
|
|
3224
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
3225
|
+
if (F.err)
|
|
3226
|
+
return F;
|
|
3255
3227
|
var m = this.tryParseArgumentClose(i);
|
|
3256
3228
|
if (m.err)
|
|
3257
3229
|
return m;
|
|
3258
|
-
var ft =
|
|
3230
|
+
var ft = v(i, this.clonePosition());
|
|
3259
3231
|
return a === "select" ? {
|
|
3260
3232
|
val: {
|
|
3261
|
-
type:
|
|
3233
|
+
type: x.select,
|
|
3262
3234
|
value: n,
|
|
3263
|
-
options: xt(
|
|
3235
|
+
options: xt(F.val),
|
|
3264
3236
|
location: ft
|
|
3265
3237
|
},
|
|
3266
3238
|
err: null
|
|
3267
3239
|
} : {
|
|
3268
3240
|
val: {
|
|
3269
|
-
type:
|
|
3241
|
+
type: x.plural,
|
|
3270
3242
|
value: n,
|
|
3271
|
-
options: xt(
|
|
3243
|
+
options: xt(F.val),
|
|
3272
3244
|
offset: H,
|
|
3273
3245
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3274
3246
|
location: ft
|
|
@@ -3277,10 +3249,10 @@ var Gn = (
|
|
|
3277
3249
|
};
|
|
3278
3250
|
}
|
|
3279
3251
|
default:
|
|
3280
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
3252
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, v(o, h));
|
|
3281
3253
|
}
|
|
3282
3254
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3283
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3255
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3284
3256
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3285
3257
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3286
3258
|
var n = this.char();
|
|
@@ -3289,7 +3261,7 @@ var Gn = (
|
|
|
3289
3261
|
this.bump();
|
|
3290
3262
|
var i = this.clonePosition();
|
|
3291
3263
|
if (!this.bumpUntil("'"))
|
|
3292
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3264
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3293
3265
|
this.bump();
|
|
3294
3266
|
break;
|
|
3295
3267
|
}
|
|
@@ -3319,16 +3291,16 @@ var Gn = (
|
|
|
3319
3291
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3320
3292
|
var n = [];
|
|
3321
3293
|
try {
|
|
3322
|
-
n =
|
|
3294
|
+
n = xn(t);
|
|
3323
3295
|
} catch {
|
|
3324
3296
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3325
3297
|
}
|
|
3326
3298
|
return {
|
|
3327
3299
|
val: {
|
|
3328
|
-
type:
|
|
3300
|
+
type: Q.number,
|
|
3329
3301
|
tokens: n,
|
|
3330
3302
|
location: r,
|
|
3331
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3303
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3332
3304
|
},
|
|
3333
3305
|
err: null
|
|
3334
3306
|
};
|
|
@@ -3340,7 +3312,7 @@ var Gn = (
|
|
|
3340
3312
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3341
3313
|
if (f.err)
|
|
3342
3314
|
return f;
|
|
3343
|
-
l =
|
|
3315
|
+
l = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3344
3316
|
} else
|
|
3345
3317
|
break;
|
|
3346
3318
|
}
|
|
@@ -3349,7 +3321,7 @@ var Gn = (
|
|
|
3349
3321
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3350
3322
|
var y = this.clonePosition();
|
|
3351
3323
|
if (!this.bumpIf("{"))
|
|
3352
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3324
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3353
3325
|
var m = this.parseMessage(t + 1, r, n);
|
|
3354
3326
|
if (m.err)
|
|
3355
3327
|
return m;
|
|
@@ -3360,11 +3332,11 @@ var Gn = (
|
|
|
3360
3332
|
u,
|
|
3361
3333
|
{
|
|
3362
3334
|
value: m.val,
|
|
3363
|
-
location:
|
|
3335
|
+
location: v(y, this.clonePosition())
|
|
3364
3336
|
}
|
|
3365
3337
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3366
3338
|
}
|
|
3367
|
-
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3339
|
+
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3368
3340
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3369
3341
|
var n = 1, i = this.clonePosition();
|
|
3370
3342
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3375,8 +3347,8 @@ var Gn = (
|
|
|
3375
3347
|
else
|
|
3376
3348
|
break;
|
|
3377
3349
|
}
|
|
3378
|
-
var h =
|
|
3379
|
-
return s ? (o *= n,
|
|
3350
|
+
var h = v(i, this.clonePosition());
|
|
3351
|
+
return s ? (o *= n, Dn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3380
3352
|
}, e.prototype.offset = function() {
|
|
3381
3353
|
return this.position.offset;
|
|
3382
3354
|
}, e.prototype.isEOF = function() {
|
|
@@ -3410,7 +3382,7 @@ var Gn = (
|
|
|
3410
3382
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3411
3383
|
}
|
|
3412
3384
|
}, e.prototype.bumpIf = function(t) {
|
|
3413
|
-
if (
|
|
3385
|
+
if (vt(this.message, t, this.offset())) {
|
|
3414
3386
|
for (var r = 0; r < t.length; r++)
|
|
3415
3387
|
this.bump();
|
|
3416
3388
|
return !0;
|
|
@@ -3442,47 +3414,47 @@ var Gn = (
|
|
|
3442
3414
|
}, e;
|
|
3443
3415
|
}()
|
|
3444
3416
|
);
|
|
3445
|
-
function
|
|
3417
|
+
function Ke(e) {
|
|
3446
3418
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3447
3419
|
}
|
|
3448
|
-
function Fn(e) {
|
|
3449
|
-
return Qe(e) || e === 47;
|
|
3450
|
-
}
|
|
3451
3420
|
function jn(e) {
|
|
3421
|
+
return Ke(e) || e === 47;
|
|
3422
|
+
}
|
|
3423
|
+
function zn(e) {
|
|
3452
3424
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3453
3425
|
}
|
|
3454
3426
|
function ur(e) {
|
|
3455
3427
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3456
3428
|
}
|
|
3457
|
-
function
|
|
3429
|
+
function Vn(e) {
|
|
3458
3430
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3459
3431
|
}
|
|
3460
|
-
function
|
|
3432
|
+
function et(e) {
|
|
3461
3433
|
e.forEach(function(t) {
|
|
3462
3434
|
if (delete t.location, Yt(t) || Kt(t))
|
|
3463
3435
|
for (var r in t.options)
|
|
3464
|
-
delete t.options[r].location,
|
|
3436
|
+
delete t.options[r].location, et(t.options[r].value);
|
|
3465
3437
|
else
|
|
3466
|
-
Jt(t) && tr(t.style) || (qt(t) || Qt(t)) &&
|
|
3438
|
+
Jt(t) && tr(t.style) || (qt(t) || Qt(t)) && Je(t.style) ? delete t.style.location : er(t) && et(t.children);
|
|
3467
3439
|
});
|
|
3468
3440
|
}
|
|
3469
|
-
function
|
|
3470
|
-
t === void 0 && (t = {}), t =
|
|
3471
|
-
var r = new
|
|
3441
|
+
function Xn(e, t) {
|
|
3442
|
+
t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3443
|
+
var r = new Fn(e, t).parse();
|
|
3472
3444
|
if (r.err) {
|
|
3473
3445
|
var n = SyntaxError(_[r.err.kind]);
|
|
3474
3446
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3475
3447
|
}
|
|
3476
|
-
return t?.captureLocation ||
|
|
3448
|
+
return t?.captureLocation || et(r.val), r.val;
|
|
3477
3449
|
}
|
|
3478
|
-
var
|
|
3450
|
+
var Y;
|
|
3479
3451
|
(function(e) {
|
|
3480
3452
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3481
|
-
})(
|
|
3482
|
-
var
|
|
3453
|
+
})(Y || (Y = {}));
|
|
3454
|
+
var Le = (
|
|
3483
3455
|
/** @class */
|
|
3484
3456
|
function(e) {
|
|
3485
|
-
|
|
3457
|
+
Me(t, e);
|
|
3486
3458
|
function t(r, n, i) {
|
|
3487
3459
|
var s = e.call(this, r) || this;
|
|
3488
3460
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3494,44 +3466,44 @@ var Me = (
|
|
|
3494
3466
|
), wt = (
|
|
3495
3467
|
/** @class */
|
|
3496
3468
|
function(e) {
|
|
3497
|
-
|
|
3469
|
+
Me(t, e);
|
|
3498
3470
|
function t(r, n, i, s) {
|
|
3499
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3471
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3500
3472
|
}
|
|
3501
3473
|
return t;
|
|
3502
|
-
}(
|
|
3503
|
-
),
|
|
3474
|
+
}(Le)
|
|
3475
|
+
), Wn = (
|
|
3504
3476
|
/** @class */
|
|
3505
3477
|
function(e) {
|
|
3506
|
-
|
|
3478
|
+
Me(t, e);
|
|
3507
3479
|
function t(r, n, i) {
|
|
3508
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3480
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3509
3481
|
}
|
|
3510
3482
|
return t;
|
|
3511
|
-
}(
|
|
3512
|
-
),
|
|
3483
|
+
}(Le)
|
|
3484
|
+
), Zn = (
|
|
3513
3485
|
/** @class */
|
|
3514
3486
|
function(e) {
|
|
3515
|
-
|
|
3487
|
+
Me(t, e);
|
|
3516
3488
|
function t(r, n) {
|
|
3517
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3489
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3518
3490
|
}
|
|
3519
3491
|
return t;
|
|
3520
|
-
}(
|
|
3492
|
+
}(Le)
|
|
3521
3493
|
), S;
|
|
3522
3494
|
(function(e) {
|
|
3523
3495
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3524
3496
|
})(S || (S = {}));
|
|
3525
|
-
function
|
|
3497
|
+
function Jn(e) {
|
|
3526
3498
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3527
3499
|
var n = t[t.length - 1];
|
|
3528
3500
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3529
3501
|
}, []);
|
|
3530
3502
|
}
|
|
3531
|
-
function
|
|
3503
|
+
function qn(e) {
|
|
3532
3504
|
return typeof e == "function";
|
|
3533
3505
|
}
|
|
3534
|
-
function
|
|
3506
|
+
function Te(e, t, r, n, i, s, o) {
|
|
3535
3507
|
if (e.length === 1 && bt(e[0]))
|
|
3536
3508
|
return [
|
|
3537
3509
|
{
|
|
@@ -3548,7 +3520,7 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3548
3520
|
});
|
|
3549
3521
|
continue;
|
|
3550
3522
|
}
|
|
3551
|
-
if (
|
|
3523
|
+
if (yn(l)) {
|
|
3552
3524
|
typeof s == "number" && a.push({
|
|
3553
3525
|
type: S.literal,
|
|
3554
3526
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3557,9 +3529,9 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3557
3529
|
}
|
|
3558
3530
|
var c = l.value;
|
|
3559
3531
|
if (!(i && c in i))
|
|
3560
|
-
throw new
|
|
3532
|
+
throw new Zn(c, o);
|
|
3561
3533
|
var f = i[c];
|
|
3562
|
-
if (
|
|
3534
|
+
if (bn(l)) {
|
|
3563
3535
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3564
3536
|
type: typeof f == "string" ? S.literal : S.object,
|
|
3565
3537
|
value: f
|
|
@@ -3567,7 +3539,7 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3567
3539
|
continue;
|
|
3568
3540
|
}
|
|
3569
3541
|
if (qt(l)) {
|
|
3570
|
-
var y = typeof l.style == "string" ? n.date[l.style] :
|
|
3542
|
+
var y = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
|
|
3571
3543
|
a.push({
|
|
3572
3544
|
type: S.literal,
|
|
3573
3545
|
value: r.getDateTimeFormat(t, y).format(f)
|
|
@@ -3575,7 +3547,7 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3575
3547
|
continue;
|
|
3576
3548
|
}
|
|
3577
3549
|
if (Qt(l)) {
|
|
3578
|
-
var y = typeof l.style == "string" ? n.time[l.style] :
|
|
3550
|
+
var y = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3579
3551
|
a.push({
|
|
3580
3552
|
type: S.literal,
|
|
3581
3553
|
value: r.getDateTimeFormat(t, y).format(f)
|
|
@@ -3592,12 +3564,12 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3592
3564
|
}
|
|
3593
3565
|
if (er(l)) {
|
|
3594
3566
|
var m = l.children, p = l.value, g = i[p];
|
|
3595
|
-
if (!
|
|
3596
|
-
throw new
|
|
3597
|
-
var d =
|
|
3567
|
+
if (!qn(g))
|
|
3568
|
+
throw new Wn(p, "function", o);
|
|
3569
|
+
var d = Te(m, t, r, n, i, s), E = g(d.map(function(H) {
|
|
3598
3570
|
return H.value;
|
|
3599
3571
|
}));
|
|
3600
|
-
Array.isArray(
|
|
3572
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(H) {
|
|
3601
3573
|
return {
|
|
3602
3574
|
type: typeof H == "string" ? S.literal : S.object,
|
|
3603
3575
|
value: H
|
|
@@ -3608,38 +3580,38 @@ function xe(e, t, r, n, i, s, o) {
|
|
|
3608
3580
|
var b = l.options[f] || l.options.other;
|
|
3609
3581
|
if (!b)
|
|
3610
3582
|
throw new wt(l.value, f, Object.keys(l.options), o);
|
|
3611
|
-
a.push.apply(a,
|
|
3583
|
+
a.push.apply(a, Te(b.value, t, r, n, i));
|
|
3612
3584
|
continue;
|
|
3613
3585
|
}
|
|
3614
3586
|
if (Kt(l)) {
|
|
3615
3587
|
var b = l.options["=".concat(f)];
|
|
3616
3588
|
if (!b) {
|
|
3617
3589
|
if (!Intl.PluralRules)
|
|
3618
|
-
throw new
|
|
3590
|
+
throw new Le(`Intl.PluralRules is not available in this environment.
|
|
3619
3591
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3620
|
-
`,
|
|
3592
|
+
`, Y.MISSING_INTL_API, o);
|
|
3621
3593
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3622
3594
|
b = l.options[w] || l.options.other;
|
|
3623
3595
|
}
|
|
3624
3596
|
if (!b)
|
|
3625
3597
|
throw new wt(l.value, f, Object.keys(l.options), o);
|
|
3626
|
-
a.push.apply(a,
|
|
3598
|
+
a.push.apply(a, Te(b.value, t, r, n, i, f - (l.offset || 0)));
|
|
3627
3599
|
continue;
|
|
3628
3600
|
}
|
|
3629
3601
|
}
|
|
3630
|
-
return
|
|
3602
|
+
return Jn(a);
|
|
3631
3603
|
}
|
|
3632
|
-
function
|
|
3633
|
-
return t ?
|
|
3634
|
-
return r[n] =
|
|
3604
|
+
function Qn(e, t) {
|
|
3605
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3606
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3635
3607
|
}, {})) : e;
|
|
3636
3608
|
}
|
|
3637
|
-
function
|
|
3609
|
+
function Yn(e, t) {
|
|
3638
3610
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3639
|
-
return r[n] =
|
|
3640
|
-
},
|
|
3611
|
+
return r[n] = Qn(e[n], t[n]), r;
|
|
3612
|
+
}, C({}, e)) : e;
|
|
3641
3613
|
}
|
|
3642
|
-
function
|
|
3614
|
+
function je(e) {
|
|
3643
3615
|
return {
|
|
3644
3616
|
create: function() {
|
|
3645
3617
|
return {
|
|
@@ -3653,35 +3625,35 @@ function Ge(e) {
|
|
|
3653
3625
|
}
|
|
3654
3626
|
};
|
|
3655
3627
|
}
|
|
3656
|
-
function
|
|
3628
|
+
function Kn(e) {
|
|
3657
3629
|
return e === void 0 && (e = {
|
|
3658
3630
|
number: {},
|
|
3659
3631
|
dateTime: {},
|
|
3660
3632
|
pluralRules: {}
|
|
3661
3633
|
}), {
|
|
3662
|
-
getNumberFormat:
|
|
3634
|
+
getNumberFormat: Ue(function() {
|
|
3663
3635
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3664
3636
|
r[n] = arguments[n];
|
|
3665
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3637
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ke([void 0], r, !1)))();
|
|
3666
3638
|
}, {
|
|
3667
|
-
cache:
|
|
3668
|
-
strategy:
|
|
3639
|
+
cache: je(e.number),
|
|
3640
|
+
strategy: Ge.variadic
|
|
3669
3641
|
}),
|
|
3670
|
-
getDateTimeFormat:
|
|
3642
|
+
getDateTimeFormat: Ue(function() {
|
|
3671
3643
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3672
3644
|
r[n] = arguments[n];
|
|
3673
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3645
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ke([void 0], r, !1)))();
|
|
3674
3646
|
}, {
|
|
3675
|
-
cache:
|
|
3676
|
-
strategy:
|
|
3647
|
+
cache: je(e.dateTime),
|
|
3648
|
+
strategy: Ge.variadic
|
|
3677
3649
|
}),
|
|
3678
|
-
getPluralRules:
|
|
3650
|
+
getPluralRules: Ue(function() {
|
|
3679
3651
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3680
3652
|
r[n] = arguments[n];
|
|
3681
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3653
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ke([void 0], r, !1)))();
|
|
3682
3654
|
}, {
|
|
3683
|
-
cache:
|
|
3684
|
-
strategy:
|
|
3655
|
+
cache: je(e.pluralRules),
|
|
3656
|
+
strategy: Ge.variadic
|
|
3685
3657
|
})
|
|
3686
3658
|
};
|
|
3687
3659
|
}
|
|
@@ -3704,7 +3676,7 @@ var lr = (
|
|
|
3704
3676
|
}, []);
|
|
3705
3677
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3706
3678
|
}, this.formatToParts = function(h) {
|
|
3707
|
-
return
|
|
3679
|
+
return Te(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3708
3680
|
}, this.resolvedOptions = function() {
|
|
3709
3681
|
var h;
|
|
3710
3682
|
return {
|
|
@@ -3718,12 +3690,12 @@ var lr = (
|
|
|
3718
3690
|
var o = i || {};
|
|
3719
3691
|
o.formatters;
|
|
3720
3692
|
var a = ln(o, ["formatters"]);
|
|
3721
|
-
this.ast = e.__parse(t,
|
|
3693
|
+
this.ast = e.__parse(t, C(C({}, a), { locale: this.resolvedLocale }));
|
|
3722
3694
|
} else
|
|
3723
3695
|
this.ast = t;
|
|
3724
3696
|
if (!Array.isArray(this.ast))
|
|
3725
3697
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3726
|
-
this.formats =
|
|
3698
|
+
this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
|
|
3727
3699
|
}
|
|
3728
3700
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3729
3701
|
get: function() {
|
|
@@ -3736,7 +3708,7 @@ var lr = (
|
|
|
3736
3708
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3737
3709
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3738
3710
|
}
|
|
3739
|
-
}, e.__parse =
|
|
3711
|
+
}, e.__parse = Xn, e.formats = {
|
|
3740
3712
|
number: {
|
|
3741
3713
|
integer: {
|
|
3742
3714
|
maximumFractionDigits: 0
|
|
@@ -3797,7 +3769,7 @@ var lr = (
|
|
|
3797
3769
|
}, e;
|
|
3798
3770
|
}()
|
|
3799
3771
|
);
|
|
3800
|
-
function
|
|
3772
|
+
function ei(e, t) {
|
|
3801
3773
|
if (t == null)
|
|
3802
3774
|
return;
|
|
3803
3775
|
if (t in e)
|
|
@@ -3818,36 +3790,36 @@ function Kn(e, t) {
|
|
|
3818
3790
|
n = void 0;
|
|
3819
3791
|
return n;
|
|
3820
3792
|
}
|
|
3821
|
-
const
|
|
3793
|
+
const L = {}, ti = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), hr = (e, t) => {
|
|
3822
3794
|
if (t == null)
|
|
3823
3795
|
return;
|
|
3824
|
-
if (t in
|
|
3825
|
-
return
|
|
3826
|
-
const r =
|
|
3796
|
+
if (t in L && e in L[t])
|
|
3797
|
+
return L[t][e];
|
|
3798
|
+
const r = fe(t);
|
|
3827
3799
|
for (let n = 0; n < r.length; n++) {
|
|
3828
|
-
const i = r[n], s =
|
|
3800
|
+
const i = r[n], s = ni(i, e);
|
|
3829
3801
|
if (s)
|
|
3830
|
-
return
|
|
3802
|
+
return ti(e, t, s);
|
|
3831
3803
|
}
|
|
3832
3804
|
};
|
|
3833
3805
|
let ht;
|
|
3834
|
-
const
|
|
3835
|
-
function
|
|
3806
|
+
const ce = Ne({});
|
|
3807
|
+
function ri(e) {
|
|
3836
3808
|
return ht[e] || null;
|
|
3837
3809
|
}
|
|
3838
3810
|
function cr(e) {
|
|
3839
3811
|
return e in ht;
|
|
3840
3812
|
}
|
|
3841
|
-
function
|
|
3813
|
+
function ni(e, t) {
|
|
3842
3814
|
if (!cr(e))
|
|
3843
3815
|
return null;
|
|
3844
|
-
const r =
|
|
3845
|
-
return
|
|
3816
|
+
const r = ri(e);
|
|
3817
|
+
return ei(r, t);
|
|
3846
3818
|
}
|
|
3847
|
-
function
|
|
3819
|
+
function ii(e) {
|
|
3848
3820
|
if (e == null)
|
|
3849
3821
|
return;
|
|
3850
|
-
const t =
|
|
3822
|
+
const t = fe(e);
|
|
3851
3823
|
for (let r = 0; r < t.length; r++) {
|
|
3852
3824
|
const n = t[r];
|
|
3853
3825
|
if (cr(n))
|
|
@@ -3855,64 +3827,64 @@ function ni(e) {
|
|
|
3855
3827
|
}
|
|
3856
3828
|
}
|
|
3857
3829
|
function fr(e, ...t) {
|
|
3858
|
-
delete
|
|
3830
|
+
delete L[e], ce.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
|
|
3859
3831
|
}
|
|
3860
|
-
|
|
3861
|
-
[
|
|
3832
|
+
te(
|
|
3833
|
+
[ce],
|
|
3862
3834
|
([e]) => Object.keys(e)
|
|
3863
3835
|
);
|
|
3864
|
-
|
|
3865
|
-
const
|
|
3866
|
-
function
|
|
3867
|
-
|
|
3836
|
+
ce.subscribe((e) => ht = e);
|
|
3837
|
+
const we = {};
|
|
3838
|
+
function si(e, t) {
|
|
3839
|
+
we[e].delete(t), we[e].size === 0 && delete we[e];
|
|
3868
3840
|
}
|
|
3869
3841
|
function mr(e) {
|
|
3870
|
-
return
|
|
3842
|
+
return we[e];
|
|
3871
3843
|
}
|
|
3872
|
-
function
|
|
3873
|
-
return
|
|
3844
|
+
function oi(e) {
|
|
3845
|
+
return fe(e).map((t) => {
|
|
3874
3846
|
const r = mr(t);
|
|
3875
3847
|
return [t, r ? [...r] : []];
|
|
3876
3848
|
}).filter(([, t]) => t.length > 0);
|
|
3877
3849
|
}
|
|
3878
|
-
function
|
|
3879
|
-
return e == null ? !1 :
|
|
3850
|
+
function Oe(e) {
|
|
3851
|
+
return e == null ? !1 : fe(e).some(
|
|
3880
3852
|
(t) => {
|
|
3881
3853
|
var r;
|
|
3882
3854
|
return (r = mr(t)) == null ? void 0 : r.size;
|
|
3883
3855
|
}
|
|
3884
3856
|
);
|
|
3885
3857
|
}
|
|
3886
|
-
function
|
|
3858
|
+
function ai(e, t) {
|
|
3887
3859
|
return Promise.all(
|
|
3888
|
-
t.map((n) => (
|
|
3860
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
3889
3861
|
).then((n) => fr(e, ...n));
|
|
3890
3862
|
}
|
|
3891
|
-
const
|
|
3863
|
+
const ie = {};
|
|
3892
3864
|
function dr(e) {
|
|
3893
|
-
if (!
|
|
3894
|
-
return e in
|
|
3895
|
-
const t =
|
|
3896
|
-
return
|
|
3865
|
+
if (!Oe(e))
|
|
3866
|
+
return e in ie ? ie[e] : Promise.resolve();
|
|
3867
|
+
const t = oi(e);
|
|
3868
|
+
return ie[e] = Promise.all(
|
|
3897
3869
|
t.map(
|
|
3898
|
-
([r, n]) =>
|
|
3870
|
+
([r, n]) => ai(r, n)
|
|
3899
3871
|
)
|
|
3900
3872
|
).then(() => {
|
|
3901
|
-
if (
|
|
3873
|
+
if (Oe(e))
|
|
3902
3874
|
return dr(e);
|
|
3903
|
-
delete
|
|
3904
|
-
}),
|
|
3875
|
+
delete ie[e];
|
|
3876
|
+
}), ie[e];
|
|
3905
3877
|
}
|
|
3906
|
-
var Ht = Object.getOwnPropertySymbols,
|
|
3878
|
+
var Ht = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, hi = (e, t) => {
|
|
3907
3879
|
var r = {};
|
|
3908
3880
|
for (var n in e)
|
|
3909
|
-
|
|
3881
|
+
ui.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3910
3882
|
if (e != null && Ht)
|
|
3911
3883
|
for (var n of Ht(e))
|
|
3912
|
-
t.indexOf(n) < 0 &&
|
|
3884
|
+
t.indexOf(n) < 0 && li.call(e, n) && (r[n] = e[n]);
|
|
3913
3885
|
return r;
|
|
3914
3886
|
};
|
|
3915
|
-
const
|
|
3887
|
+
const ci = {
|
|
3916
3888
|
number: {
|
|
3917
3889
|
scientific: { notation: "scientific" },
|
|
3918
3890
|
engineering: { notation: "engineering" },
|
|
@@ -3942,28 +3914,28 @@ const hi = {
|
|
|
3942
3914
|
}
|
|
3943
3915
|
}
|
|
3944
3916
|
};
|
|
3945
|
-
function
|
|
3917
|
+
function fi({ locale: e, id: t }) {
|
|
3946
3918
|
console.warn(
|
|
3947
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3919
|
+
`[svelte-i18n] The message "${t}" was not found in "${fe(
|
|
3948
3920
|
e
|
|
3949
|
-
).join('", "')}".${
|
|
3921
|
+
).join('", "')}".${Oe(k()) ? `
|
|
3950
3922
|
|
|
3951
3923
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3952
3924
|
);
|
|
3953
3925
|
}
|
|
3954
|
-
const
|
|
3926
|
+
const mi = {
|
|
3955
3927
|
fallbackLocale: null,
|
|
3956
3928
|
loadingDelay: 200,
|
|
3957
|
-
formats:
|
|
3929
|
+
formats: ci,
|
|
3958
3930
|
warnOnMissingMessages: !0,
|
|
3959
3931
|
handleMissingMessage: void 0,
|
|
3960
3932
|
ignoreTag: !0
|
|
3961
|
-
},
|
|
3962
|
-
function
|
|
3963
|
-
return
|
|
3933
|
+
}, se = mi;
|
|
3934
|
+
function K() {
|
|
3935
|
+
return se;
|
|
3964
3936
|
}
|
|
3965
|
-
function
|
|
3966
|
-
const t = e, { formats: r } = t, n =
|
|
3937
|
+
function di(e) {
|
|
3938
|
+
const t = e, { formats: r } = t, n = hi(t, ["formats"]);
|
|
3967
3939
|
let i = e.fallbackLocale;
|
|
3968
3940
|
if (e.initialLocale)
|
|
3969
3941
|
try {
|
|
@@ -3973,134 +3945,134 @@ function mi(e) {
|
|
|
3973
3945
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3974
3946
|
);
|
|
3975
3947
|
}
|
|
3976
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3948
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = fi : console.warn(
|
|
3977
3949
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3978
|
-
)), Object.assign(
|
|
3950
|
+
)), Object.assign(se, n, { initialLocale: i }), r && ("number" in r && Object.assign(se.formats.number, r.number), "date" in r && Object.assign(se.formats.date, r.date), "time" in r && Object.assign(se.formats.time, r.time)), G.set(i);
|
|
3979
3951
|
}
|
|
3980
|
-
const
|
|
3981
|
-
var
|
|
3952
|
+
const ze = Ne(!1);
|
|
3953
|
+
var pi = Object.defineProperty, gi = Object.defineProperties, bi = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
|
|
3982
3954
|
for (var r in t || (t = {}))
|
|
3983
|
-
|
|
3955
|
+
yi.call(t, r) && Bt(e, r, t[r]);
|
|
3984
3956
|
if (St)
|
|
3985
3957
|
for (var r of St(t))
|
|
3986
|
-
|
|
3958
|
+
_i.call(t, r) && Bt(e, r, t[r]);
|
|
3987
3959
|
return e;
|
|
3988
|
-
}, vi = (e, t) =>
|
|
3989
|
-
let
|
|
3990
|
-
const
|
|
3960
|
+
}, vi = (e, t) => gi(e, bi(t));
|
|
3961
|
+
let tt;
|
|
3962
|
+
const Ce = Ne(null);
|
|
3991
3963
|
function At(e) {
|
|
3992
3964
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3993
3965
|
}
|
|
3994
|
-
function
|
|
3966
|
+
function fe(e, t = K().fallbackLocale) {
|
|
3995
3967
|
const r = At(e);
|
|
3996
3968
|
return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
|
|
3997
3969
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return
|
|
3970
|
+
function k() {
|
|
3971
|
+
return tt ?? void 0;
|
|
4000
3972
|
}
|
|
4001
|
-
|
|
4002
|
-
|
|
3973
|
+
Ce.subscribe((e) => {
|
|
3974
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4003
3975
|
});
|
|
4004
|
-
const
|
|
4005
|
-
if (e &&
|
|
4006
|
-
const { loadingDelay: t } =
|
|
3976
|
+
const xi = (e) => {
|
|
3977
|
+
if (e && ii(e) && Oe(e)) {
|
|
3978
|
+
const { loadingDelay: t } = K();
|
|
4007
3979
|
let r;
|
|
4008
|
-
return typeof window < "u" &&
|
|
4009
|
-
() =>
|
|
3980
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3981
|
+
() => ze.set(!0),
|
|
4010
3982
|
t
|
|
4011
|
-
) :
|
|
4012
|
-
|
|
3983
|
+
) : ze.set(!0), dr(e).then(() => {
|
|
3984
|
+
Ce.set(e);
|
|
4013
3985
|
}).finally(() => {
|
|
4014
|
-
clearTimeout(r),
|
|
3986
|
+
clearTimeout(r), ze.set(!1);
|
|
4015
3987
|
});
|
|
4016
3988
|
}
|
|
4017
|
-
return
|
|
4018
|
-
},
|
|
4019
|
-
set:
|
|
4020
|
-
}),
|
|
3989
|
+
return Ce.set(e);
|
|
3990
|
+
}, G = vi(Ei({}, Ce), {
|
|
3991
|
+
set: xi
|
|
3992
|
+
}), $e = (e) => {
|
|
4021
3993
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4022
3994
|
return (n) => {
|
|
4023
3995
|
const i = JSON.stringify(n);
|
|
4024
3996
|
return i in t ? t[i] : t[i] = e(n);
|
|
4025
3997
|
};
|
|
4026
3998
|
};
|
|
4027
|
-
var
|
|
3999
|
+
var Ti = Object.defineProperty, Ie = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4028
4000
|
for (var r in t || (t = {}))
|
|
4029
4001
|
pr.call(t, r) && Pt(e, r, t[r]);
|
|
4030
|
-
if (
|
|
4031
|
-
for (var r of
|
|
4002
|
+
if (Ie)
|
|
4003
|
+
for (var r of Ie(t))
|
|
4032
4004
|
gr.call(t, r) && Pt(e, r, t[r]);
|
|
4033
4005
|
return e;
|
|
4034
|
-
},
|
|
4006
|
+
}, re = (e, t) => {
|
|
4035
4007
|
var r = {};
|
|
4036
4008
|
for (var n in e)
|
|
4037
4009
|
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4038
|
-
if (e != null &&
|
|
4039
|
-
for (var n of
|
|
4010
|
+
if (e != null && Ie)
|
|
4011
|
+
for (var n of Ie(e))
|
|
4040
4012
|
t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
|
|
4041
4013
|
return r;
|
|
4042
4014
|
};
|
|
4043
|
-
const
|
|
4044
|
-
const { formats: r } =
|
|
4015
|
+
const le = (e, t) => {
|
|
4016
|
+
const { formats: r } = K();
|
|
4045
4017
|
if (e in r && t in r[e])
|
|
4046
4018
|
return r[e][t];
|
|
4047
4019
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4048
|
-
},
|
|
4020
|
+
}, wi = $e(
|
|
4049
4021
|
(e) => {
|
|
4050
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4022
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4051
4023
|
if (r == null)
|
|
4052
4024
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4053
|
-
return n && (i =
|
|
4025
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4054
4026
|
}
|
|
4055
|
-
),
|
|
4027
|
+
), Hi = $e(
|
|
4056
4028
|
(e) => {
|
|
4057
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4029
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4058
4030
|
if (r == null)
|
|
4059
4031
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4060
|
-
return n ? i =
|
|
4032
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4061
4033
|
}
|
|
4062
|
-
),
|
|
4034
|
+
), Si = $e(
|
|
4063
4035
|
(e) => {
|
|
4064
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4036
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4065
4037
|
if (r == null)
|
|
4066
4038
|
throw new Error(
|
|
4067
4039
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4068
4040
|
);
|
|
4069
|
-
return n ? i =
|
|
4041
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4070
4042
|
}
|
|
4071
|
-
),
|
|
4072
|
-
var t = e, {
|
|
4073
|
-
locale: r = D()
|
|
4074
|
-
} = t, n = te(t, [
|
|
4075
|
-
"locale"
|
|
4076
|
-
]);
|
|
4077
|
-
return Ti(ct({ locale: r }, n));
|
|
4078
|
-
}, Bi = (e = {}) => {
|
|
4043
|
+
), Bi = (e = {}) => {
|
|
4079
4044
|
var t = e, {
|
|
4080
|
-
locale: r =
|
|
4081
|
-
} = t, n =
|
|
4045
|
+
locale: r = k()
|
|
4046
|
+
} = t, n = re(t, [
|
|
4082
4047
|
"locale"
|
|
4083
4048
|
]);
|
|
4084
4049
|
return wi(ct({ locale: r }, n));
|
|
4085
4050
|
}, Ai = (e = {}) => {
|
|
4086
4051
|
var t = e, {
|
|
4087
|
-
locale: r =
|
|
4088
|
-
} = t, n =
|
|
4052
|
+
locale: r = k()
|
|
4053
|
+
} = t, n = re(t, [
|
|
4089
4054
|
"locale"
|
|
4090
4055
|
]);
|
|
4091
4056
|
return Hi(ct({ locale: r }, n));
|
|
4092
|
-
}, Pi =
|
|
4057
|
+
}, Pi = (e = {}) => {
|
|
4058
|
+
var t = e, {
|
|
4059
|
+
locale: r = k()
|
|
4060
|
+
} = t, n = re(t, [
|
|
4061
|
+
"locale"
|
|
4062
|
+
]);
|
|
4063
|
+
return Si(ct({ locale: r }, n));
|
|
4064
|
+
}, Oi = $e(
|
|
4093
4065
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4094
|
-
(e, t =
|
|
4095
|
-
ignoreTag:
|
|
4066
|
+
(e, t = k()) => new lr(e, t, K().formats, {
|
|
4067
|
+
ignoreTag: K().ignoreTag
|
|
4096
4068
|
})
|
|
4097
|
-
),
|
|
4069
|
+
), Ci = (e, t = {}) => {
|
|
4098
4070
|
var r, n, i, s;
|
|
4099
4071
|
let o = t;
|
|
4100
4072
|
typeof e == "object" && (o = e, e = o.id);
|
|
4101
4073
|
const {
|
|
4102
4074
|
values: a,
|
|
4103
|
-
locale: h =
|
|
4075
|
+
locale: h = k(),
|
|
4104
4076
|
default: u
|
|
4105
4077
|
} = o;
|
|
4106
4078
|
if (h == null)
|
|
@@ -4109,7 +4081,7 @@ const ue = (e, t) => {
|
|
|
4109
4081
|
);
|
|
4110
4082
|
let l = hr(e, h);
|
|
4111
4083
|
if (!l)
|
|
4112
|
-
l = (s = (i = (n = (r =
|
|
4084
|
+
l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4113
4085
|
else if (typeof l != "string")
|
|
4114
4086
|
return console.warn(
|
|
4115
4087
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4118,7 +4090,7 @@ const ue = (e, t) => {
|
|
|
4118
4090
|
return l;
|
|
4119
4091
|
let c = l;
|
|
4120
4092
|
try {
|
|
4121
|
-
c =
|
|
4093
|
+
c = Oi(l, h).format(a);
|
|
4122
4094
|
} catch (f) {
|
|
4123
4095
|
f instanceof Error && console.warn(
|
|
4124
4096
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4126,18 +4098,18 @@ const ue = (e, t) => {
|
|
|
4126
4098
|
);
|
|
4127
4099
|
}
|
|
4128
4100
|
return c;
|
|
4129
|
-
}, Ii = (e, t) =>
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
function
|
|
4101
|
+
}, Ii = (e, t) => Pi(t).format(e), Ni = (e, t) => Ai(t).format(e), Mi = (e, t) => Bi(t).format(e), Li = (e, t = k()) => hr(e, t), $i = te([G, ce], () => Ci);
|
|
4102
|
+
te([G], () => Ii);
|
|
4103
|
+
te([G], () => Ni);
|
|
4104
|
+
te([G], () => Mi);
|
|
4105
|
+
te([G, ce], () => Li);
|
|
4106
|
+
function Ri(e, t) {
|
|
4135
4107
|
if (e) {
|
|
4136
4108
|
const r = document.createElement("style");
|
|
4137
4109
|
r.innerHTML = t, e.appendChild(r);
|
|
4138
4110
|
}
|
|
4139
4111
|
}
|
|
4140
|
-
function
|
|
4112
|
+
function Di(e, t) {
|
|
4141
4113
|
const r = new URL(t);
|
|
4142
4114
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4143
4115
|
const i = document.createElement("style");
|
|
@@ -4146,7 +4118,7 @@ function Ri(e, t) {
|
|
|
4146
4118
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4147
4119
|
});
|
|
4148
4120
|
}
|
|
4149
|
-
function
|
|
4121
|
+
function ki(e, t, r) {
|
|
4150
4122
|
if (window.emMessageBus) {
|
|
4151
4123
|
const n = document.createElement("style");
|
|
4152
4124
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4157,12 +4129,12 @@ function Di(e, t, r) {
|
|
|
4157
4129
|
function Ot(e, t) {
|
|
4158
4130
|
fr(e, t);
|
|
4159
4131
|
}
|
|
4160
|
-
function
|
|
4161
|
-
|
|
4132
|
+
function Ui(e) {
|
|
4133
|
+
di({
|
|
4162
4134
|
fallbackLocale: "en"
|
|
4163
|
-
}),
|
|
4135
|
+
}), G.set(e);
|
|
4164
4136
|
}
|
|
4165
|
-
const
|
|
4137
|
+
const Ct = {
|
|
4166
4138
|
en: {
|
|
4167
4139
|
errorGeneralTitle: "Error Occurred",
|
|
4168
4140
|
errorGeneralText: "Something went wrong",
|
|
@@ -4216,18 +4188,18 @@ const It = {
|
|
|
4216
4188
|
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
|
|
4217
4189
|
}
|
|
4218
4190
|
};
|
|
4219
|
-
function
|
|
4220
|
-
|
|
4191
|
+
function Gi(e) {
|
|
4192
|
+
vr(e, "svelte-s6qloq", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.ImagePlaceholder{margin-top:20px;height:200px;width:100%;background:#E6E6E6}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:120%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierErrorContent ui-image img{width:300px}");
|
|
4221
4193
|
}
|
|
4222
|
-
const
|
|
4223
|
-
function
|
|
4194
|
+
const Fi = (e) => ({}), It = (e) => ({}), ji = (e) => ({}), Nt = (e) => ({}), zi = (e) => ({}), Mt = (e) => ({}), Vi = (e) => ({}), Lt = (e) => ({ class: "CashierErrorIcon" });
|
|
4195
|
+
function Xi(e) {
|
|
4224
4196
|
let t;
|
|
4225
4197
|
return {
|
|
4226
4198
|
c() {
|
|
4227
|
-
t = A("div"),
|
|
4199
|
+
t = A("div"), $(t, "class", "ImagePlaceholder Error");
|
|
4228
4200
|
},
|
|
4229
4201
|
m(r, n) {
|
|
4230
|
-
|
|
4202
|
+
D(r, t, n);
|
|
4231
4203
|
},
|
|
4232
4204
|
p: B,
|
|
4233
4205
|
d(r) {
|
|
@@ -4235,32 +4207,32 @@ function Vi(e) {
|
|
|
4235
4207
|
}
|
|
4236
4208
|
};
|
|
4237
4209
|
}
|
|
4238
|
-
function
|
|
4210
|
+
function Wi(e) {
|
|
4239
4211
|
let t, r;
|
|
4240
4212
|
return {
|
|
4241
4213
|
c() {
|
|
4242
4214
|
t = A("ui-image"), dt(t.src, r = `${/*assetsurl*/
|
|
4243
|
-
e[0]}/error-general-icon.png`) ||
|
|
4215
|
+
e[0]}/error-general-icon.png`) || de(t, "src", r), de(t, "width", "300px"), de(t, "alt", "error");
|
|
4244
4216
|
},
|
|
4245
4217
|
m(n, i) {
|
|
4246
|
-
|
|
4218
|
+
D(n, t, i);
|
|
4247
4219
|
},
|
|
4248
4220
|
p(n, i) {
|
|
4249
4221
|
i & /*assetsurl*/
|
|
4250
4222
|
1 && !dt(t.src, r = `${/*assetsurl*/
|
|
4251
|
-
n[0]}/error-general-icon.png`) &&
|
|
4223
|
+
n[0]}/error-general-icon.png`) && de(t, "src", r);
|
|
4252
4224
|
},
|
|
4253
4225
|
d(n) {
|
|
4254
4226
|
n && P(t);
|
|
4255
4227
|
}
|
|
4256
4228
|
};
|
|
4257
4229
|
}
|
|
4258
|
-
function
|
|
4230
|
+
function Zi(e) {
|
|
4259
4231
|
let t;
|
|
4260
4232
|
function r(s, o) {
|
|
4261
4233
|
return (
|
|
4262
4234
|
/*assetsurl*/
|
|
4263
|
-
s[0] ?
|
|
4235
|
+
s[0] ? Wi : Xi
|
|
4264
4236
|
);
|
|
4265
4237
|
}
|
|
4266
4238
|
let n = r(e), i = n(e);
|
|
@@ -4269,7 +4241,7 @@ function Wi(e) {
|
|
|
4269
4241
|
i.c(), t = Tr();
|
|
4270
4242
|
},
|
|
4271
4243
|
m(s, o) {
|
|
4272
|
-
i.m(s, o),
|
|
4244
|
+
i.m(s, o), D(s, t, o);
|
|
4273
4245
|
},
|
|
4274
4246
|
p(s, o) {
|
|
4275
4247
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
@@ -4279,29 +4251,29 @@ function Wi(e) {
|
|
|
4279
4251
|
}
|
|
4280
4252
|
};
|
|
4281
4253
|
}
|
|
4282
|
-
function
|
|
4254
|
+
function Ji(e) {
|
|
4283
4255
|
let t, r = (
|
|
4284
4256
|
/*$_*/
|
|
4285
4257
|
e[4]("errorGeneralTitle") + ""
|
|
4286
4258
|
), n;
|
|
4287
4259
|
return {
|
|
4288
4260
|
c() {
|
|
4289
|
-
t = A("span"), n =
|
|
4261
|
+
t = A("span"), n = he(r), $(t, "class", "CashierErrorTitle");
|
|
4290
4262
|
},
|
|
4291
4263
|
m(i, s) {
|
|
4292
|
-
|
|
4264
|
+
D(i, t, s), I(t, n);
|
|
4293
4265
|
},
|
|
4294
4266
|
p(i, s) {
|
|
4295
4267
|
s & /*$_*/
|
|
4296
4268
|
16 && r !== (r = /*$_*/
|
|
4297
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
4269
|
+
i[4]("errorGeneralTitle") + "") && at(n, r);
|
|
4298
4270
|
},
|
|
4299
4271
|
d(i) {
|
|
4300
4272
|
i && P(t);
|
|
4301
4273
|
}
|
|
4302
4274
|
};
|
|
4303
4275
|
}
|
|
4304
|
-
function
|
|
4276
|
+
function qi(e) {
|
|
4305
4277
|
let t, r = (
|
|
4306
4278
|
/*$_*/
|
|
4307
4279
|
e[4](`${/*errorcode*/
|
|
@@ -4309,16 +4281,16 @@ function Ji(e) {
|
|
|
4309
4281
|
), n;
|
|
4310
4282
|
return {
|
|
4311
4283
|
c() {
|
|
4312
|
-
t = A("span"), n =
|
|
4284
|
+
t = A("span"), n = he(r), $(t, "class", "CashierErrorText");
|
|
4313
4285
|
},
|
|
4314
4286
|
m(i, s) {
|
|
4315
|
-
|
|
4287
|
+
D(i, t, s), I(t, n);
|
|
4316
4288
|
},
|
|
4317
4289
|
p(i, s) {
|
|
4318
4290
|
s & /*$_, errorcode*/
|
|
4319
4291
|
20 && r !== (r = /*$_*/
|
|
4320
4292
|
i[4](`${/*errorcode*/
|
|
4321
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4293
|
+
i[2] || "errorGeneralText"}`) + "") && at(n, r);
|
|
4322
4294
|
},
|
|
4323
4295
|
d(i) {
|
|
4324
4296
|
i && P(t);
|
|
@@ -4330,13 +4302,13 @@ function $t(e) {
|
|
|
4330
4302
|
const r = (
|
|
4331
4303
|
/*#slots*/
|
|
4332
4304
|
e[12].button
|
|
4333
|
-
), n =
|
|
4305
|
+
), n = be(
|
|
4334
4306
|
r,
|
|
4335
4307
|
e,
|
|
4336
4308
|
/*$$scope*/
|
|
4337
4309
|
e[11],
|
|
4338
|
-
|
|
4339
|
-
), i = n ||
|
|
4310
|
+
It
|
|
4311
|
+
), i = n || Qi(e);
|
|
4340
4312
|
return {
|
|
4341
4313
|
c() {
|
|
4342
4314
|
i && i.c();
|
|
@@ -4346,23 +4318,23 @@ function $t(e) {
|
|
|
4346
4318
|
},
|
|
4347
4319
|
p(s, o) {
|
|
4348
4320
|
n ? n.p && (!t || o & /*$$scope*/
|
|
4349
|
-
2048) &&
|
|
4321
|
+
2048) && _e(
|
|
4350
4322
|
n,
|
|
4351
4323
|
r,
|
|
4352
4324
|
s,
|
|
4353
4325
|
/*$$scope*/
|
|
4354
4326
|
s[11],
|
|
4355
|
-
t ?
|
|
4327
|
+
t ? ye(
|
|
4356
4328
|
r,
|
|
4357
4329
|
/*$$scope*/
|
|
4358
4330
|
s[11],
|
|
4359
4331
|
o,
|
|
4360
|
-
|
|
4361
|
-
) :
|
|
4332
|
+
Fi
|
|
4333
|
+
) : Ee(
|
|
4362
4334
|
/*$$scope*/
|
|
4363
4335
|
s[11]
|
|
4364
4336
|
),
|
|
4365
|
-
|
|
4337
|
+
It
|
|
4366
4338
|
) : i && i.p && (!t || o & /*$_*/
|
|
4367
4339
|
16) && i.p(s, t ? o : -1);
|
|
4368
4340
|
},
|
|
@@ -4370,24 +4342,24 @@ function $t(e) {
|
|
|
4370
4342
|
t || (M(i, s), t = !0);
|
|
4371
4343
|
},
|
|
4372
4344
|
o(s) {
|
|
4373
|
-
|
|
4345
|
+
X(i, s), t = !1;
|
|
4374
4346
|
},
|
|
4375
4347
|
d(s) {
|
|
4376
4348
|
i && i.d(s);
|
|
4377
4349
|
}
|
|
4378
4350
|
};
|
|
4379
4351
|
}
|
|
4380
|
-
function
|
|
4352
|
+
function Qi(e) {
|
|
4381
4353
|
let t, r, n = (
|
|
4382
4354
|
/*$_*/
|
|
4383
4355
|
e[4]("errorGeneralButton") + ""
|
|
4384
4356
|
), i, s, o;
|
|
4385
4357
|
return {
|
|
4386
4358
|
c() {
|
|
4387
|
-
t = A("button"), r = A("span"), i =
|
|
4359
|
+
t = A("button"), r = A("span"), i = he(n), $(t, "class", "CashierErrorButton");
|
|
4388
4360
|
},
|
|
4389
4361
|
m(a, h) {
|
|
4390
|
-
|
|
4362
|
+
D(a, t, h), I(t, r), I(r, i), s || (o = Ve(
|
|
4391
4363
|
t,
|
|
4392
4364
|
"click",
|
|
4393
4365
|
/*close*/
|
|
@@ -4397,115 +4369,115 @@ function qi(e) {
|
|
|
4397
4369
|
p(a, h) {
|
|
4398
4370
|
h & /*$_*/
|
|
4399
4371
|
16 && n !== (n = /*$_*/
|
|
4400
|
-
a[4]("errorGeneralButton") + "") &&
|
|
4372
|
+
a[4]("errorGeneralButton") + "") && at(i, n);
|
|
4401
4373
|
},
|
|
4402
4374
|
d(a) {
|
|
4403
4375
|
a && P(t), s = !1, o();
|
|
4404
4376
|
}
|
|
4405
4377
|
};
|
|
4406
4378
|
}
|
|
4407
|
-
function
|
|
4379
|
+
function Yi(e) {
|
|
4408
4380
|
let t, r, n, i, s, o;
|
|
4409
4381
|
const a = (
|
|
4410
4382
|
/*#slots*/
|
|
4411
4383
|
e[12].icon
|
|
4412
|
-
), h =
|
|
4384
|
+
), h = be(
|
|
4413
4385
|
a,
|
|
4414
4386
|
e,
|
|
4415
4387
|
/*$$scope*/
|
|
4416
4388
|
e[11],
|
|
4417
4389
|
Lt
|
|
4418
|
-
), u = h ||
|
|
4390
|
+
), u = h || Zi(e), l = (
|
|
4419
4391
|
/*#slots*/
|
|
4420
4392
|
e[12].title
|
|
4421
|
-
), c =
|
|
4393
|
+
), c = be(
|
|
4422
4394
|
l,
|
|
4423
4395
|
e,
|
|
4424
4396
|
/*$$scope*/
|
|
4425
4397
|
e[11],
|
|
4426
|
-
|
|
4427
|
-
), f = c ||
|
|
4398
|
+
Mt
|
|
4399
|
+
), f = c || Ji(e), y = (
|
|
4428
4400
|
/*#slots*/
|
|
4429
4401
|
e[12].text
|
|
4430
|
-
), m =
|
|
4402
|
+
), m = be(
|
|
4431
4403
|
y,
|
|
4432
4404
|
e,
|
|
4433
4405
|
/*$$scope*/
|
|
4434
4406
|
e[11],
|
|
4435
|
-
|
|
4436
|
-
), p = m ||
|
|
4407
|
+
Nt
|
|
4408
|
+
), p = m || qi(e);
|
|
4437
4409
|
let g = (!/*hidebuttons*/
|
|
4438
4410
|
e[1] || /*hidebuttons*/
|
|
4439
4411
|
e[1] === "false") && $t(e);
|
|
4440
4412
|
return {
|
|
4441
4413
|
c() {
|
|
4442
|
-
t = A("div"), r = A("div"), u && u.c(), n =
|
|
4414
|
+
t = A("div"), r = A("div"), u && u.c(), n = Re(), f && f.c(), i = Re(), p && p.c(), s = Re(), g && g.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
|
|
4443
4415
|
},
|
|
4444
|
-
m(d,
|
|
4445
|
-
|
|
4416
|
+
m(d, E) {
|
|
4417
|
+
D(d, t, E), I(t, r), u && u.m(r, null), I(r, n), f && f.m(r, null), I(r, i), p && p.m(r, null), I(r, s), g && g.m(r, null), e[13](t), o = !0;
|
|
4446
4418
|
},
|
|
4447
|
-
p(d, [
|
|
4448
|
-
h ? h.p && (!o ||
|
|
4449
|
-
2048) &&
|
|
4419
|
+
p(d, [E]) {
|
|
4420
|
+
h ? h.p && (!o || E & /*$$scope*/
|
|
4421
|
+
2048) && _e(
|
|
4450
4422
|
h,
|
|
4451
4423
|
a,
|
|
4452
4424
|
d,
|
|
4453
4425
|
/*$$scope*/
|
|
4454
4426
|
d[11],
|
|
4455
|
-
o ?
|
|
4427
|
+
o ? ye(
|
|
4456
4428
|
a,
|
|
4457
4429
|
/*$$scope*/
|
|
4458
4430
|
d[11],
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
) :
|
|
4431
|
+
E,
|
|
4432
|
+
Vi
|
|
4433
|
+
) : Ee(
|
|
4462
4434
|
/*$$scope*/
|
|
4463
4435
|
d[11]
|
|
4464
4436
|
),
|
|
4465
4437
|
Lt
|
|
4466
|
-
) : u && u.p && (!o ||
|
|
4467
|
-
1) && u.p(d, o ?
|
|
4468
|
-
2048) &&
|
|
4438
|
+
) : u && u.p && (!o || E & /*assetsurl*/
|
|
4439
|
+
1) && u.p(d, o ? E : -1), c ? c.p && (!o || E & /*$$scope*/
|
|
4440
|
+
2048) && _e(
|
|
4469
4441
|
c,
|
|
4470
4442
|
l,
|
|
4471
4443
|
d,
|
|
4472
4444
|
/*$$scope*/
|
|
4473
4445
|
d[11],
|
|
4474
|
-
o ?
|
|
4446
|
+
o ? ye(
|
|
4475
4447
|
l,
|
|
4476
4448
|
/*$$scope*/
|
|
4477
4449
|
d[11],
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
) :
|
|
4450
|
+
E,
|
|
4451
|
+
zi
|
|
4452
|
+
) : Ee(
|
|
4481
4453
|
/*$$scope*/
|
|
4482
4454
|
d[11]
|
|
4483
4455
|
),
|
|
4484
|
-
|
|
4485
|
-
) : f && f.p && (!o ||
|
|
4486
|
-
16) && f.p(d, o ?
|
|
4487
|
-
2048) &&
|
|
4456
|
+
Mt
|
|
4457
|
+
) : f && f.p && (!o || E & /*$_*/
|
|
4458
|
+
16) && f.p(d, o ? E : -1), m ? m.p && (!o || E & /*$$scope*/
|
|
4459
|
+
2048) && _e(
|
|
4488
4460
|
m,
|
|
4489
4461
|
y,
|
|
4490
4462
|
d,
|
|
4491
4463
|
/*$$scope*/
|
|
4492
4464
|
d[11],
|
|
4493
|
-
o ?
|
|
4465
|
+
o ? ye(
|
|
4494
4466
|
y,
|
|
4495
4467
|
/*$$scope*/
|
|
4496
4468
|
d[11],
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
) :
|
|
4469
|
+
E,
|
|
4470
|
+
ji
|
|
4471
|
+
) : Ee(
|
|
4500
4472
|
/*$$scope*/
|
|
4501
4473
|
d[11]
|
|
4502
4474
|
),
|
|
4503
|
-
|
|
4504
|
-
) : p && p.p && (!o ||
|
|
4505
|
-
20) && p.p(d, o ?
|
|
4475
|
+
Nt
|
|
4476
|
+
) : p && p.p && (!o || E & /*$_, errorcode*/
|
|
4477
|
+
20) && p.p(d, o ? E : -1), !/*hidebuttons*/
|
|
4506
4478
|
d[1] || /*hidebuttons*/
|
|
4507
|
-
d[1] === "false" ? g ? (g.p(d,
|
|
4508
|
-
2 && M(g, 1)) : (g = $t(d), g.c(), M(g, 1), g.m(r, null)) : g && ($r(),
|
|
4479
|
+
d[1] === "false" ? g ? (g.p(d, E), E & /*hidebuttons*/
|
|
4480
|
+
2 && M(g, 1)) : (g = $t(d), g.c(), M(g, 1), g.m(r, null)) : g && ($r(), X(g, 1, 1, () => {
|
|
4509
4481
|
g = null;
|
|
4510
4482
|
}), Rr());
|
|
4511
4483
|
},
|
|
@@ -4513,19 +4485,19 @@ function Qi(e) {
|
|
|
4513
4485
|
o || (M(u, d), M(f, d), M(p, d), M(g), o = !0);
|
|
4514
4486
|
},
|
|
4515
4487
|
o(d) {
|
|
4516
|
-
|
|
4488
|
+
X(u, d), X(f, d), X(p, d), X(g), o = !1;
|
|
4517
4489
|
},
|
|
4518
4490
|
d(d) {
|
|
4519
4491
|
d && P(t), u && u.d(d), f && f.d(d), p && p.d(d), g && g.d(), e[13](null);
|
|
4520
4492
|
}
|
|
4521
4493
|
};
|
|
4522
4494
|
}
|
|
4523
|
-
function
|
|
4495
|
+
function Ki(e, t, r) {
|
|
4524
4496
|
let n;
|
|
4525
|
-
|
|
4497
|
+
Er(e, $i, (b) => r(4, n = b));
|
|
4526
4498
|
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: f = "" } = t, { mbsource: y = "" } = t, m;
|
|
4527
4499
|
const p = () => {
|
|
4528
|
-
|
|
4500
|
+
Ui(a);
|
|
4529
4501
|
}, g = () => {
|
|
4530
4502
|
fetch(f).then((w) => w.json()).then((w) => {
|
|
4531
4503
|
Object.keys(w).forEach((H) => {
|
|
@@ -4535,16 +4507,16 @@ function Yi(e, t, r) {
|
|
|
4535
4507
|
console.error(w);
|
|
4536
4508
|
});
|
|
4537
4509
|
};
|
|
4538
|
-
Object.keys(
|
|
4539
|
-
Ot(b,
|
|
4510
|
+
Object.keys(Ct).forEach((b) => {
|
|
4511
|
+
Ot(b, Ct[b]);
|
|
4540
4512
|
});
|
|
4541
4513
|
const d = () => {
|
|
4542
4514
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4543
4515
|
};
|
|
4544
|
-
|
|
4516
|
+
Cr(() => () => {
|
|
4545
4517
|
});
|
|
4546
|
-
function
|
|
4547
|
-
|
|
4518
|
+
function E(b) {
|
|
4519
|
+
Xe[b ? "unshift" : "push"](() => {
|
|
4548
4520
|
m = b, r(3, m);
|
|
4549
4521
|
});
|
|
4550
4522
|
}
|
|
@@ -4553,9 +4525,9 @@ function Yi(e, t, r) {
|
|
|
4553
4525
|
}, e.$$.update = () => {
|
|
4554
4526
|
e.$$.dirty & /*lang*/
|
|
4555
4527
|
64 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4556
|
-
136 && l && m &&
|
|
4557
|
-
264 && c && m &&
|
|
4558
|
-
1032 && y && m &&
|
|
4528
|
+
136 && l && m && Ri(m, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4529
|
+
264 && c && m && Di(m, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4530
|
+
1032 && y && m && ki(m, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4559
4531
|
512 && f && g();
|
|
4560
4532
|
}, [
|
|
4561
4533
|
o,
|
|
@@ -4571,7 +4543,7 @@ function Yi(e, t, r) {
|
|
|
4571
4543
|
y,
|
|
4572
4544
|
s,
|
|
4573
4545
|
i,
|
|
4574
|
-
|
|
4546
|
+
E
|
|
4575
4547
|
];
|
|
4576
4548
|
}
|
|
4577
4549
|
class br extends jr {
|
|
@@ -4579,8 +4551,8 @@ class br extends jr {
|
|
|
4579
4551
|
super(), Gr(
|
|
4580
4552
|
this,
|
|
4581
4553
|
t,
|
|
4554
|
+
Ki,
|
|
4582
4555
|
Yi,
|
|
4583
|
-
Qi,
|
|
4584
4556
|
Dt,
|
|
4585
4557
|
{
|
|
4586
4558
|
assetsurl: 0,
|
|
@@ -4592,7 +4564,7 @@ class br extends jr {
|
|
|
4592
4564
|
translationurl: 9,
|
|
4593
4565
|
mbsource: 10
|
|
4594
4566
|
},
|
|
4595
|
-
|
|
4567
|
+
Gi
|
|
4596
4568
|
);
|
|
4597
4569
|
}
|
|
4598
4570
|
get assetsurl() {
|
|
@@ -4645,75 +4617,71 @@ class br extends jr {
|
|
|
4645
4617
|
}
|
|
4646
4618
|
}
|
|
4647
4619
|
Fr(br, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4648
|
-
const
|
|
4620
|
+
const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4649
4621
|
__proto__: null,
|
|
4650
4622
|
default: br
|
|
4651
4623
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4652
4624
|
export {
|
|
4653
|
-
|
|
4654
|
-
|
|
4625
|
+
G as $,
|
|
4626
|
+
Ve as A,
|
|
4655
4627
|
$i as B,
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4628
|
+
Ri as C,
|
|
4629
|
+
Di as D,
|
|
4630
|
+
ki as E,
|
|
4631
|
+
de as F,
|
|
4660
4632
|
dt as G,
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4633
|
+
Ne as H,
|
|
4634
|
+
Xr as I,
|
|
4635
|
+
bs as J,
|
|
4636
|
+
J as K,
|
|
4637
|
+
rs as L,
|
|
4638
|
+
os as M,
|
|
4639
|
+
hs as N,
|
|
4640
|
+
ps as O,
|
|
4641
|
+
ns as P,
|
|
4670
4642
|
ss as Q,
|
|
4671
|
-
|
|
4643
|
+
R,
|
|
4672
4644
|
jr as S,
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4645
|
+
as as T,
|
|
4646
|
+
is as U,
|
|
4647
|
+
us as V,
|
|
4648
|
+
rt as W,
|
|
4649
|
+
$r as X,
|
|
4650
|
+
Rr as Y,
|
|
4651
|
+
ds as Z,
|
|
4652
|
+
ls as _,
|
|
4681
4653
|
fr as a,
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
ps as a8,
|
|
4691
|
-
Dr as a9,
|
|
4692
|
-
kr as aa,
|
|
4693
|
-
_s as ab,
|
|
4654
|
+
cs as a0,
|
|
4655
|
+
ms as a1,
|
|
4656
|
+
fs as a2,
|
|
4657
|
+
ts as a3,
|
|
4658
|
+
kr as a4,
|
|
4659
|
+
Dr as a5,
|
|
4660
|
+
gs as a6,
|
|
4661
|
+
ys as a7,
|
|
4694
4662
|
Gr as b,
|
|
4695
4663
|
Fr as c,
|
|
4696
|
-
|
|
4697
|
-
|
|
4664
|
+
vr as d,
|
|
4665
|
+
be as e,
|
|
4698
4666
|
O as f,
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4667
|
+
P as g,
|
|
4668
|
+
M as h,
|
|
4669
|
+
di as i,
|
|
4670
|
+
Ee as j,
|
|
4671
|
+
ye as k,
|
|
4672
|
+
D as l,
|
|
4673
|
+
I as m,
|
|
4674
|
+
A as n,
|
|
4675
|
+
Re as o,
|
|
4676
|
+
$ as p,
|
|
4677
|
+
Er as q,
|
|
4678
|
+
Cr as r,
|
|
4711
4679
|
Dt as s,
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4680
|
+
X as t,
|
|
4681
|
+
_e as u,
|
|
4682
|
+
Tr as v,
|
|
4683
|
+
at as w,
|
|
4684
|
+
he as x,
|
|
4685
|
+
Xe as y,
|
|
4686
|
+
B as z
|
|
4719
4687
|
};
|