@everymatrix/cashier-receipt-page-nd 1.69.101 → 1.69.102
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-CIU_kj2C.js → CashierError-Bc-Eq2Z9.js} +1097 -920
- package/components/{CashierError-DQjfSXOt.js → CashierError-DWgYu7f2.js} +1194 -1017
- package/components/CashierError-QQ2JTHXJ.cjs +8 -0
- package/components/{CashierReceiptPage-Bc0Ws_T8.js → CashierReceiptPage-Bmlqg5le.js} +848 -793
- package/components/{CashierReceiptPage-6qSwx025.js → CashierReceiptPage-D3YV_wmE.js} +935 -864
- package/components/CashierReceiptPage-f0Rzzc6l.cjs +41 -0
- package/es2015/cashier-receipt-page-nd.cjs +1 -1
- package/es2015/cashier-receipt-page-nd.js +1 -1
- package/esnext/cashier-receipt-page-nd.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-h8oOnRdm.cjs +0 -5
- package/components/CashierReceiptPage-CisnMIUI.cjs +0 -41
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../stencil/ui-image-CHeV8e9p.js";
|
|
2
|
-
function
|
|
2
|
+
function S() {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
const Pt = (e) => e;
|
|
5
|
+
function pr(e, t) {
|
|
5
6
|
for (const r in t)
|
|
6
7
|
e[r] = t[r];
|
|
7
8
|
return (
|
|
@@ -9,71 +10,71 @@ function Qt(e, t) {
|
|
|
9
10
|
e
|
|
10
11
|
);
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function Ot(e) {
|
|
13
14
|
return e();
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function st() {
|
|
16
17
|
return /* @__PURE__ */ Object.create(null);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
e.forEach(
|
|
19
|
+
function R(e) {
|
|
20
|
+
e.forEach(Ot);
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function oe(e) {
|
|
22
23
|
return typeof e == "function";
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function Ct(e, t) {
|
|
25
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
27
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
28
|
+
let ce;
|
|
29
|
+
function ot(e, t) {
|
|
30
|
+
return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function gr(e) {
|
|
32
33
|
return Object.keys(e).length === 0;
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function It(e, ...t) {
|
|
35
36
|
if (e == null) {
|
|
36
37
|
for (const n of t)
|
|
37
38
|
n(void 0);
|
|
38
|
-
return
|
|
39
|
+
return S;
|
|
39
40
|
}
|
|
40
41
|
const r = e.subscribe(...t);
|
|
41
42
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
44
|
+
function br(e, t, r) {
|
|
45
|
+
e.$$.on_destroy.push(It(t, r));
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function fe(e, t, r, n) {
|
|
47
48
|
if (e) {
|
|
48
|
-
const i =
|
|
49
|
+
const i = Nt(e, t, r, n);
|
|
49
50
|
return e[0](i);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && n ?
|
|
53
|
+
function Nt(e, t, r, n) {
|
|
54
|
+
return e[1] && n ? pr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function me(e, t, r, n) {
|
|
56
57
|
if (e[2] && n) {
|
|
57
58
|
const i = e[2](n(r));
|
|
58
59
|
if (t.dirty === void 0)
|
|
59
60
|
return i;
|
|
60
61
|
if (typeof i == "object") {
|
|
61
|
-
const s = [],
|
|
62
|
-
for (let
|
|
63
|
-
s[
|
|
62
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
63
|
+
for (let a = 0; a < o; a += 1)
|
|
64
|
+
s[a] = t.dirty[a] | i[a];
|
|
64
65
|
return s;
|
|
65
66
|
}
|
|
66
67
|
return t.dirty | i;
|
|
67
68
|
}
|
|
68
69
|
return t.dirty;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function de(e, t, r, n, i, s) {
|
|
71
72
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
73
|
+
const o = Nt(t, r, n, s);
|
|
74
|
+
e.p(o, i);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function pe(e) {
|
|
77
78
|
if (e.ctx.length > 32) {
|
|
78
79
|
const t = [], r = e.ctx.length / 32;
|
|
79
80
|
for (let n = 0; n < r; n++)
|
|
@@ -82,17 +83,36 @@ function he(e) {
|
|
|
82
83
|
}
|
|
83
84
|
return -1;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
+
const Lt = typeof window < "u";
|
|
87
|
+
let Mt = Lt ? () => window.performance.now() : () => Date.now(), Ke = Lt ? (e) => requestAnimationFrame(e) : S;
|
|
88
|
+
const j = /* @__PURE__ */ new Set();
|
|
89
|
+
function $t(e) {
|
|
90
|
+
j.forEach((t) => {
|
|
91
|
+
t.c(e) || (j.delete(t), t.f());
|
|
92
|
+
}), j.size !== 0 && Ke($t);
|
|
93
|
+
}
|
|
94
|
+
function Rt(e) {
|
|
95
|
+
let t;
|
|
96
|
+
return j.size === 0 && Ke($t), {
|
|
97
|
+
promise: new Promise((r) => {
|
|
98
|
+
j.add(t = { c: e, f: r });
|
|
99
|
+
}),
|
|
100
|
+
abort() {
|
|
101
|
+
j.delete(t);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function O(e, t) {
|
|
86
106
|
e.appendChild(t);
|
|
87
107
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
108
|
+
function yr(e, t, r) {
|
|
109
|
+
const n = et(e);
|
|
90
110
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
92
|
-
i.id = t, i.textContent = r,
|
|
111
|
+
const i = A("style");
|
|
112
|
+
i.id = t, i.textContent = r, Dt(n, i);
|
|
93
113
|
}
|
|
94
114
|
}
|
|
95
|
-
function
|
|
115
|
+
function et(e) {
|
|
96
116
|
if (!e)
|
|
97
117
|
return document;
|
|
98
118
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -102,56 +122,63 @@ function tr(e) {
|
|
|
102
122
|
t
|
|
103
123
|
) : e.ownerDocument;
|
|
104
124
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
125
|
+
function _r(e) {
|
|
126
|
+
const t = A("style");
|
|
127
|
+
return t.textContent = "/* empty */", Dt(et(e), t), t.sheet;
|
|
128
|
+
}
|
|
129
|
+
function Dt(e, t) {
|
|
130
|
+
return O(
|
|
107
131
|
/** @type {Document} */
|
|
108
132
|
e.head || e,
|
|
109
133
|
t
|
|
110
134
|
), t.sheet;
|
|
111
135
|
}
|
|
112
|
-
function
|
|
136
|
+
function D(e, t, r) {
|
|
113
137
|
e.insertBefore(t, r || null);
|
|
114
138
|
}
|
|
115
139
|
function C(e) {
|
|
116
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
141
|
}
|
|
118
|
-
function
|
|
142
|
+
function Ji(e, t) {
|
|
119
143
|
for (let r = 0; r < e.length; r += 1)
|
|
120
144
|
e[r] && e[r].d(t);
|
|
121
145
|
}
|
|
122
|
-
function
|
|
146
|
+
function A(e) {
|
|
123
147
|
return document.createElement(e);
|
|
124
148
|
}
|
|
125
|
-
function
|
|
149
|
+
function qi(e) {
|
|
126
150
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
127
151
|
}
|
|
128
|
-
function
|
|
152
|
+
function ae(e) {
|
|
129
153
|
return document.createTextNode(e);
|
|
130
154
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
155
|
+
function Le() {
|
|
156
|
+
return ae(" ");
|
|
133
157
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
158
|
+
function Er() {
|
|
159
|
+
return ae("");
|
|
136
160
|
}
|
|
137
|
-
function
|
|
161
|
+
function vr(e, t, r, n) {
|
|
138
162
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
139
163
|
}
|
|
140
|
-
function
|
|
164
|
+
function $(e, t, r) {
|
|
141
165
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
142
166
|
}
|
|
143
|
-
function
|
|
167
|
+
function ge(e, t, r) {
|
|
144
168
|
const n = t.toLowerCase();
|
|
145
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
169
|
+
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);
|
|
146
170
|
}
|
|
147
|
-
function
|
|
171
|
+
function xr(e) {
|
|
148
172
|
return Array.from(e.childNodes);
|
|
149
173
|
}
|
|
150
|
-
function
|
|
174
|
+
function tt(e, t) {
|
|
151
175
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
152
176
|
t);
|
|
153
177
|
}
|
|
154
|
-
function
|
|
178
|
+
function Tr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
179
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
180
|
+
}
|
|
181
|
+
function Hr(e) {
|
|
155
182
|
const t = {};
|
|
156
183
|
return e.childNodes.forEach(
|
|
157
184
|
/** @param {Element} node */
|
|
@@ -160,108 +187,250 @@ function ar(e) {
|
|
|
160
187
|
}
|
|
161
188
|
), t;
|
|
162
189
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
190
|
+
const Te = /* @__PURE__ */ new Map();
|
|
191
|
+
let He = 0;
|
|
192
|
+
function wr(e) {
|
|
193
|
+
let t = 5381, r = e.length;
|
|
194
|
+
for (; r--; )
|
|
195
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
196
|
+
return t >>> 0;
|
|
197
|
+
}
|
|
198
|
+
function Sr(e, t) {
|
|
199
|
+
const r = { stylesheet: _r(t), rules: {} };
|
|
200
|
+
return Te.set(e, r), r;
|
|
201
|
+
}
|
|
202
|
+
function kt(e, t, r, n, i, s, o, a = 0) {
|
|
203
|
+
const h = 16.666 / n;
|
|
204
|
+
let u = `{
|
|
205
|
+
`;
|
|
206
|
+
for (let v = 0; v <= 1; v += h) {
|
|
207
|
+
const T = t + (r - t) * s(v);
|
|
208
|
+
u += v * 100 + `%{${o(T, 1 - T)}}
|
|
209
|
+
`;
|
|
210
|
+
}
|
|
211
|
+
const l = u + `100% {${o(r, 1 - r)}}
|
|
212
|
+
}`, f = `__svelte_${wr(l)}_${a}`, c = et(e), { stylesheet: p, rules: b } = Te.get(c) || Sr(c, e);
|
|
213
|
+
b[f] || (b[f] = !0, p.insertRule(`@keyframes ${f} ${l}`, p.cssRules.length));
|
|
214
|
+
const g = e.style.animation || "";
|
|
215
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, He += 1, f;
|
|
216
|
+
}
|
|
217
|
+
function Fe(e, t) {
|
|
218
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
219
|
+
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
220
|
+
// remove all Svelte animations
|
|
221
|
+
), i = r.length - n.length;
|
|
222
|
+
i && (e.style.animation = n.join(", "), He -= i, He || Br());
|
|
223
|
+
}
|
|
224
|
+
function Br() {
|
|
225
|
+
Ke(() => {
|
|
226
|
+
He || (Te.forEach((e) => {
|
|
227
|
+
const { ownerNode: t } = e.stylesheet;
|
|
228
|
+
t && C(t);
|
|
229
|
+
}), Te.clear());
|
|
230
|
+
});
|
|
166
231
|
}
|
|
167
|
-
|
|
168
|
-
|
|
232
|
+
let re;
|
|
233
|
+
function te(e) {
|
|
234
|
+
re = e;
|
|
235
|
+
}
|
|
236
|
+
function Ar() {
|
|
237
|
+
if (!re)
|
|
169
238
|
throw new Error("Function called outside component initialization");
|
|
170
|
-
return
|
|
239
|
+
return re;
|
|
171
240
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
const
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
function
|
|
188
|
-
if (
|
|
241
|
+
function Pr(e) {
|
|
242
|
+
Ar().$$.on_mount.push(e);
|
|
243
|
+
}
|
|
244
|
+
const F = [], je = [];
|
|
245
|
+
let z = [];
|
|
246
|
+
const at = [], Or = /* @__PURE__ */ Promise.resolve();
|
|
247
|
+
let ze = !1;
|
|
248
|
+
function Cr() {
|
|
249
|
+
ze || (ze = !0, Or.then(P));
|
|
250
|
+
}
|
|
251
|
+
function ne(e) {
|
|
252
|
+
z.push(e);
|
|
253
|
+
}
|
|
254
|
+
const Me = /* @__PURE__ */ new Set();
|
|
255
|
+
let U = 0;
|
|
256
|
+
function P() {
|
|
257
|
+
if (U !== 0)
|
|
189
258
|
return;
|
|
190
|
-
const e =
|
|
259
|
+
const e = re;
|
|
191
260
|
do {
|
|
192
261
|
try {
|
|
193
|
-
for (;
|
|
194
|
-
const t =
|
|
195
|
-
|
|
262
|
+
for (; U < F.length; ) {
|
|
263
|
+
const t = F[U];
|
|
264
|
+
U++, te(t), Ir(t.$$);
|
|
196
265
|
}
|
|
197
266
|
} catch (t) {
|
|
198
|
-
throw
|
|
267
|
+
throw F.length = 0, U = 0, t;
|
|
199
268
|
}
|
|
200
|
-
for (
|
|
201
|
-
|
|
202
|
-
for (let t = 0; t <
|
|
203
|
-
const r =
|
|
204
|
-
|
|
269
|
+
for (te(null), F.length = 0, U = 0; je.length; )
|
|
270
|
+
je.pop()();
|
|
271
|
+
for (let t = 0; t < z.length; t += 1) {
|
|
272
|
+
const r = z[t];
|
|
273
|
+
Me.has(r) || (Me.add(r), r());
|
|
205
274
|
}
|
|
206
|
-
|
|
207
|
-
} while (
|
|
208
|
-
for (;
|
|
209
|
-
|
|
210
|
-
|
|
275
|
+
z.length = 0;
|
|
276
|
+
} while (F.length);
|
|
277
|
+
for (; at.length; )
|
|
278
|
+
at.pop()();
|
|
279
|
+
ze = !1, Me.clear(), te(e);
|
|
211
280
|
}
|
|
212
|
-
function
|
|
281
|
+
function Ir(e) {
|
|
213
282
|
if (e.fragment !== null) {
|
|
214
|
-
e.update(),
|
|
283
|
+
e.update(), R(e.before_update);
|
|
215
284
|
const t = e.dirty;
|
|
216
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
285
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ne);
|
|
217
286
|
}
|
|
218
287
|
}
|
|
219
|
-
function
|
|
288
|
+
function Nr(e) {
|
|
220
289
|
const t = [], r = [];
|
|
221
|
-
|
|
290
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
291
|
+
}
|
|
292
|
+
let Q;
|
|
293
|
+
function Ut() {
|
|
294
|
+
return Q || (Q = Promise.resolve(), Q.then(() => {
|
|
295
|
+
Q = null;
|
|
296
|
+
})), Q;
|
|
297
|
+
}
|
|
298
|
+
function we(e, t, r) {
|
|
299
|
+
e.dispatchEvent(Tr(`${t ? "intro" : "outro"}${r}`));
|
|
300
|
+
}
|
|
301
|
+
const _e = /* @__PURE__ */ new Set();
|
|
302
|
+
let I;
|
|
303
|
+
function Qi() {
|
|
304
|
+
I = {
|
|
305
|
+
r: 0,
|
|
306
|
+
c: [],
|
|
307
|
+
p: I
|
|
308
|
+
// parent group
|
|
309
|
+
};
|
|
222
310
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
function J(e, t) {
|
|
226
|
-
e && e.i && (de.delete(e), e.i(t));
|
|
311
|
+
function Yi() {
|
|
312
|
+
I.r || R(I.c), I = I.p;
|
|
227
313
|
}
|
|
228
|
-
function
|
|
314
|
+
function K(e, t) {
|
|
315
|
+
e && e.i && (_e.delete(e), e.i(t));
|
|
316
|
+
}
|
|
317
|
+
function be(e, t, r, n) {
|
|
229
318
|
if (e && e.o) {
|
|
230
|
-
if (
|
|
319
|
+
if (_e.has(e))
|
|
231
320
|
return;
|
|
232
|
-
|
|
233
|
-
|
|
321
|
+
_e.add(e), I.c.push(() => {
|
|
322
|
+
_e.delete(e), n && (r && e.d(1), n());
|
|
234
323
|
}), e.o(t);
|
|
324
|
+
} else
|
|
325
|
+
n && n();
|
|
326
|
+
}
|
|
327
|
+
const Gt = { duration: 0 };
|
|
328
|
+
function Ki(e, t, r) {
|
|
329
|
+
const n = { direction: "in" };
|
|
330
|
+
let i = t(e, r, n), s = !1, o, a, h = 0;
|
|
331
|
+
function u() {
|
|
332
|
+
o && Fe(e, o);
|
|
333
|
+
}
|
|
334
|
+
function l() {
|
|
335
|
+
const {
|
|
336
|
+
delay: c = 0,
|
|
337
|
+
duration: p = 300,
|
|
338
|
+
easing: b = Pt,
|
|
339
|
+
tick: g = S,
|
|
340
|
+
css: v
|
|
341
|
+
} = i || Gt;
|
|
342
|
+
v && (o = kt(e, 0, 1, p, c, b, v, h++)), g(0, 1);
|
|
343
|
+
const T = Mt() + c, d = T + p;
|
|
344
|
+
a && a.abort(), s = !0, ne(() => we(e, !0, "start")), a = Rt((m) => {
|
|
345
|
+
if (s) {
|
|
346
|
+
if (m >= d)
|
|
347
|
+
return g(1, 0), we(e, !0, "end"), u(), s = !1;
|
|
348
|
+
if (m >= T) {
|
|
349
|
+
const E = b((m - T) / p);
|
|
350
|
+
g(E, 1 - E);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return s;
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
let f = !1;
|
|
357
|
+
return {
|
|
358
|
+
start() {
|
|
359
|
+
f || (f = !0, Fe(e), oe(i) ? (i = i(n), Ut().then(l)) : l());
|
|
360
|
+
},
|
|
361
|
+
invalidate() {
|
|
362
|
+
f = !1;
|
|
363
|
+
},
|
|
364
|
+
end() {
|
|
365
|
+
s && (u(), s = !1);
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function es(e, t, r) {
|
|
370
|
+
const n = { direction: "out" };
|
|
371
|
+
let i = t(e, r, n), s = !0, o;
|
|
372
|
+
const a = I;
|
|
373
|
+
a.r += 1;
|
|
374
|
+
let h;
|
|
375
|
+
function u() {
|
|
376
|
+
const {
|
|
377
|
+
delay: l = 0,
|
|
378
|
+
duration: f = 300,
|
|
379
|
+
easing: c = Pt,
|
|
380
|
+
tick: p = S,
|
|
381
|
+
css: b
|
|
382
|
+
} = i || Gt;
|
|
383
|
+
b && (o = kt(e, 1, 0, f, l, c, b));
|
|
384
|
+
const g = Mt() + l, v = g + f;
|
|
385
|
+
ne(() => we(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
|
|
386
|
+
e.inert, e.inert = !0), Rt((T) => {
|
|
387
|
+
if (s) {
|
|
388
|
+
if (T >= v)
|
|
389
|
+
return p(0, 1), we(e, !1, "end"), --a.r || R(a.c), !1;
|
|
390
|
+
if (T >= g) {
|
|
391
|
+
const d = c((T - g) / f);
|
|
392
|
+
p(1 - d, d);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return s;
|
|
396
|
+
});
|
|
235
397
|
}
|
|
398
|
+
return oe(i) ? Ut().then(() => {
|
|
399
|
+
i = i(n), u();
|
|
400
|
+
}) : u(), {
|
|
401
|
+
end(l) {
|
|
402
|
+
l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (o && Fe(e, o), s = !1);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
236
405
|
}
|
|
237
|
-
function
|
|
406
|
+
function ts(e) {
|
|
238
407
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
239
408
|
}
|
|
240
|
-
function
|
|
409
|
+
function Lr(e, t, r) {
|
|
241
410
|
const { fragment: n, after_update: i } = e.$$;
|
|
242
|
-
n && n.m(t, r),
|
|
243
|
-
const s = e.$$.on_mount.map(
|
|
244
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
245
|
-
}), i.forEach(
|
|
411
|
+
n && n.m(t, r), ne(() => {
|
|
412
|
+
const s = e.$$.on_mount.map(Ot).filter(oe);
|
|
413
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : R(s), e.$$.on_mount = [];
|
|
414
|
+
}), i.forEach(ne);
|
|
246
415
|
}
|
|
247
|
-
function
|
|
416
|
+
function Mr(e, t) {
|
|
248
417
|
const r = e.$$;
|
|
249
|
-
r.fragment !== null && (
|
|
418
|
+
r.fragment !== null && (Nr(r.after_update), R(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
250
419
|
}
|
|
251
|
-
function
|
|
252
|
-
e.$$.dirty[0] === -1 && (
|
|
420
|
+
function $r(e, t) {
|
|
421
|
+
e.$$.dirty[0] === -1 && (F.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
253
422
|
}
|
|
254
|
-
function
|
|
255
|
-
const h =
|
|
256
|
-
|
|
423
|
+
function Rr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
424
|
+
const h = re;
|
|
425
|
+
te(e);
|
|
257
426
|
const u = e.$$ = {
|
|
258
427
|
fragment: null,
|
|
259
428
|
ctx: [],
|
|
260
429
|
// state
|
|
261
430
|
props: s,
|
|
262
|
-
update:
|
|
431
|
+
update: S,
|
|
263
432
|
not_equal: i,
|
|
264
|
-
bound:
|
|
433
|
+
bound: st(),
|
|
265
434
|
// lifecycle
|
|
266
435
|
on_mount: [],
|
|
267
436
|
on_destroy: [],
|
|
@@ -270,28 +439,28 @@ function gr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
270
439
|
after_update: [],
|
|
271
440
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
272
441
|
// everything else
|
|
273
|
-
callbacks:
|
|
274
|
-
dirty:
|
|
442
|
+
callbacks: st(),
|
|
443
|
+
dirty: a,
|
|
275
444
|
skip_bound: !1,
|
|
276
445
|
root: t.target || h.$$.root
|
|
277
446
|
};
|
|
278
|
-
|
|
447
|
+
o && o(u.root);
|
|
279
448
|
let l = !1;
|
|
280
449
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
281
|
-
const
|
|
282
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
283
|
-
}) : [], u.update(), l = !0,
|
|
450
|
+
const b = p.length ? p[0] : c;
|
|
451
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && $r(e, f)), c;
|
|
452
|
+
}) : [], u.update(), l = !0, R(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
284
453
|
if (t.hydrate) {
|
|
285
|
-
const f =
|
|
454
|
+
const f = xr(t.target);
|
|
286
455
|
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
287
456
|
} else
|
|
288
457
|
u.fragment && u.fragment.c();
|
|
289
|
-
t.intro &&
|
|
458
|
+
t.intro && K(e.$$.fragment), Lr(e, t.target, t.anchor), P();
|
|
290
459
|
}
|
|
291
|
-
|
|
460
|
+
te(h);
|
|
292
461
|
}
|
|
293
|
-
let
|
|
294
|
-
typeof HTMLElement == "function" && (
|
|
462
|
+
let Ft;
|
|
463
|
+
typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
|
|
295
464
|
/** The Svelte component constructor */
|
|
296
465
|
$$ctor;
|
|
297
466
|
/** Slots */
|
|
@@ -333,14 +502,14 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
333
502
|
let s;
|
|
334
503
|
return {
|
|
335
504
|
c: function() {
|
|
336
|
-
s =
|
|
505
|
+
s = A("slot"), i !== "default" && $(s, "name", i);
|
|
337
506
|
},
|
|
338
507
|
/**
|
|
339
508
|
* @param {HTMLElement} target
|
|
340
509
|
* @param {HTMLElement} [anchor]
|
|
341
510
|
*/
|
|
342
511
|
m: function(h, u) {
|
|
343
|
-
|
|
512
|
+
D(h, s, u);
|
|
344
513
|
},
|
|
345
514
|
d: function(h) {
|
|
346
515
|
h && C(s);
|
|
@@ -350,12 +519,12 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
350
519
|
};
|
|
351
520
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
352
521
|
return;
|
|
353
|
-
const t = {}, r =
|
|
522
|
+
const t = {}, r = Hr(this);
|
|
354
523
|
for (const i of this.$$s)
|
|
355
524
|
i in r && (t[i] = [e(i)]);
|
|
356
525
|
for (const i of this.attributes) {
|
|
357
526
|
const s = this.$$g_p(i.name);
|
|
358
|
-
s in this.$$d || (this.$$d[s] =
|
|
527
|
+
s in this.$$d || (this.$$d[s] = Ee(s, i.value, this.$$p_d, "toProp"));
|
|
359
528
|
}
|
|
360
529
|
for (const i in this.$$p_d)
|
|
361
530
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -373,7 +542,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
373
542
|
this.$$r = !0;
|
|
374
543
|
for (const i in this.$$p_d)
|
|
375
544
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
376
|
-
const s =
|
|
545
|
+
const s = Ee(
|
|
377
546
|
i,
|
|
378
547
|
this.$$d[i],
|
|
379
548
|
this.$$p_d,
|
|
@@ -386,8 +555,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
386
555
|
this.$$c.$$.after_update.push(n), n();
|
|
387
556
|
for (const i in this.$$l)
|
|
388
557
|
for (const s of this.$$l[i]) {
|
|
389
|
-
const
|
|
390
|
-
this.$$l_u.set(s,
|
|
558
|
+
const o = this.$$c.$on(i, s);
|
|
559
|
+
this.$$l_u.set(s, o);
|
|
391
560
|
}
|
|
392
561
|
this.$$l = {};
|
|
393
562
|
}
|
|
@@ -395,7 +564,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
395
564
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
396
565
|
// and setting attributes through setAttribute etc, this is helpful
|
|
397
566
|
attributeChangedCallback(e, t, r) {
|
|
398
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
567
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ee(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
399
568
|
}
|
|
400
569
|
disconnectedCallback() {
|
|
401
570
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -408,7 +577,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
408
577
|
) || e;
|
|
409
578
|
}
|
|
410
579
|
});
|
|
411
|
-
function
|
|
580
|
+
function Ee(e, t, r, n) {
|
|
412
581
|
const i = r[e]?.type;
|
|
413
582
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
414
583
|
return t;
|
|
@@ -437,36 +606,36 @@ function pe(e, t, r, n) {
|
|
|
437
606
|
return t;
|
|
438
607
|
}
|
|
439
608
|
}
|
|
440
|
-
function
|
|
441
|
-
let
|
|
609
|
+
function Dr(e, t, r, n, i, s) {
|
|
610
|
+
let o = class extends Ft {
|
|
442
611
|
constructor() {
|
|
443
612
|
super(e, r, i), this.$$p_d = t;
|
|
444
613
|
}
|
|
445
614
|
static get observedAttributes() {
|
|
446
615
|
return Object.keys(t).map(
|
|
447
|
-
(
|
|
616
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
448
617
|
);
|
|
449
618
|
}
|
|
450
619
|
};
|
|
451
|
-
return Object.keys(t).forEach((
|
|
452
|
-
Object.defineProperty(
|
|
620
|
+
return Object.keys(t).forEach((a) => {
|
|
621
|
+
Object.defineProperty(o.prototype, a, {
|
|
453
622
|
get() {
|
|
454
|
-
return this.$$c &&
|
|
623
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
455
624
|
},
|
|
456
625
|
set(h) {
|
|
457
|
-
h =
|
|
626
|
+
h = Ee(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
458
627
|
}
|
|
459
628
|
});
|
|
460
|
-
}), n.forEach((
|
|
461
|
-
Object.defineProperty(
|
|
629
|
+
}), n.forEach((a) => {
|
|
630
|
+
Object.defineProperty(o.prototype, a, {
|
|
462
631
|
get() {
|
|
463
|
-
return this.$$c?.[
|
|
632
|
+
return this.$$c?.[a];
|
|
464
633
|
}
|
|
465
634
|
});
|
|
466
635
|
}), e.element = /** @type {any} */
|
|
467
|
-
|
|
636
|
+
o, o;
|
|
468
637
|
}
|
|
469
|
-
class
|
|
638
|
+
class kr {
|
|
470
639
|
/**
|
|
471
640
|
* ### PRIVATE API
|
|
472
641
|
*
|
|
@@ -485,7 +654,7 @@ class _r {
|
|
|
485
654
|
$$set = void 0;
|
|
486
655
|
/** @returns {void} */
|
|
487
656
|
$destroy() {
|
|
488
|
-
|
|
657
|
+
Mr(this, 1), this.$destroy = S;
|
|
489
658
|
}
|
|
490
659
|
/**
|
|
491
660
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -494,8 +663,8 @@ class _r {
|
|
|
494
663
|
* @returns {() => void}
|
|
495
664
|
*/
|
|
496
665
|
$on(t, r) {
|
|
497
|
-
if (!
|
|
498
|
-
return
|
|
666
|
+
if (!oe(r))
|
|
667
|
+
return S;
|
|
499
668
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
500
669
|
return n.push(r), () => {
|
|
501
670
|
const i = n.indexOf(r);
|
|
@@ -507,177 +676,177 @@ class _r {
|
|
|
507
676
|
* @returns {void}
|
|
508
677
|
*/
|
|
509
678
|
$set(t) {
|
|
510
|
-
this.$$set && !
|
|
679
|
+
this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
511
680
|
}
|
|
512
681
|
}
|
|
513
|
-
const
|
|
514
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
515
|
-
const
|
|
516
|
-
function
|
|
682
|
+
const Ur = "4";
|
|
683
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
684
|
+
const G = [];
|
|
685
|
+
function Gr(e, t) {
|
|
517
686
|
return {
|
|
518
|
-
subscribe:
|
|
687
|
+
subscribe: Oe(e, t).subscribe
|
|
519
688
|
};
|
|
520
689
|
}
|
|
521
|
-
function
|
|
690
|
+
function Oe(e, t = S) {
|
|
522
691
|
let r;
|
|
523
692
|
const n = /* @__PURE__ */ new Set();
|
|
524
|
-
function i(
|
|
525
|
-
if (
|
|
526
|
-
const h = !
|
|
693
|
+
function i(a) {
|
|
694
|
+
if (Ct(e, a) && (e = a, r)) {
|
|
695
|
+
const h = !G.length;
|
|
527
696
|
for (const u of n)
|
|
528
|
-
u[1](),
|
|
697
|
+
u[1](), G.push(u, e);
|
|
529
698
|
if (h) {
|
|
530
|
-
for (let u = 0; u <
|
|
531
|
-
|
|
532
|
-
|
|
699
|
+
for (let u = 0; u < G.length; u += 2)
|
|
700
|
+
G[u][0](G[u + 1]);
|
|
701
|
+
G.length = 0;
|
|
533
702
|
}
|
|
534
703
|
}
|
|
535
704
|
}
|
|
536
|
-
function s(
|
|
537
|
-
i(
|
|
705
|
+
function s(a) {
|
|
706
|
+
i(a(e));
|
|
538
707
|
}
|
|
539
|
-
function a
|
|
540
|
-
const u = [
|
|
541
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
708
|
+
function o(a, h = S) {
|
|
709
|
+
const u = [a, h];
|
|
710
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || S), a(e), () => {
|
|
542
711
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
543
712
|
};
|
|
544
713
|
}
|
|
545
|
-
return { set: i, update: s, subscribe:
|
|
714
|
+
return { set: i, update: s, subscribe: o };
|
|
546
715
|
}
|
|
547
|
-
function
|
|
716
|
+
function J(e, t, r) {
|
|
548
717
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
549
718
|
if (!i.every(Boolean))
|
|
550
719
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
551
720
|
const s = t.length < 2;
|
|
552
|
-
return
|
|
721
|
+
return Gr(r, (o, a) => {
|
|
553
722
|
let h = !1;
|
|
554
723
|
const u = [];
|
|
555
|
-
let l = 0, f =
|
|
724
|
+
let l = 0, f = S;
|
|
556
725
|
const c = () => {
|
|
557
726
|
if (l)
|
|
558
727
|
return;
|
|
559
728
|
f();
|
|
560
|
-
const
|
|
561
|
-
s ?
|
|
729
|
+
const b = t(n ? u[0] : u, o, a);
|
|
730
|
+
s ? o(b) : f = oe(b) ? b : S;
|
|
562
731
|
}, p = i.map(
|
|
563
|
-
(
|
|
564
|
-
|
|
565
|
-
(
|
|
566
|
-
u[
|
|
732
|
+
(b, g) => It(
|
|
733
|
+
b,
|
|
734
|
+
(v) => {
|
|
735
|
+
u[g] = v, l &= ~(1 << g), h && c();
|
|
567
736
|
},
|
|
568
737
|
() => {
|
|
569
|
-
l |= 1 <<
|
|
738
|
+
l |= 1 << g;
|
|
570
739
|
}
|
|
571
740
|
)
|
|
572
741
|
);
|
|
573
742
|
return h = !0, c(), function() {
|
|
574
|
-
|
|
743
|
+
R(p), f(), h = !1;
|
|
575
744
|
};
|
|
576
745
|
});
|
|
577
746
|
}
|
|
578
|
-
var
|
|
579
|
-
function
|
|
747
|
+
var rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
748
|
+
function Fr(e) {
|
|
580
749
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
581
750
|
}
|
|
582
|
-
var
|
|
583
|
-
return
|
|
751
|
+
var jr = function(t) {
|
|
752
|
+
return zr(t) && !Vr(t);
|
|
584
753
|
};
|
|
585
|
-
function
|
|
754
|
+
function zr(e) {
|
|
586
755
|
return !!e && typeof e == "object";
|
|
587
756
|
}
|
|
588
|
-
function
|
|
757
|
+
function Vr(e) {
|
|
589
758
|
var t = Object.prototype.toString.call(e);
|
|
590
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
759
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
591
760
|
}
|
|
592
|
-
var
|
|
593
|
-
function
|
|
594
|
-
return e.$$typeof ===
|
|
761
|
+
var Xr = typeof Symbol == "function" && Symbol.for, Wr = Xr ? Symbol.for("react.element") : 60103;
|
|
762
|
+
function Zr(e) {
|
|
763
|
+
return e.$$typeof === Wr;
|
|
595
764
|
}
|
|
596
|
-
function
|
|
765
|
+
function Jr(e) {
|
|
597
766
|
return Array.isArray(e) ? [] : {};
|
|
598
767
|
}
|
|
599
|
-
function
|
|
600
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
768
|
+
function ie(e, t) {
|
|
769
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Jr(e), e, t) : e;
|
|
601
770
|
}
|
|
602
|
-
function
|
|
771
|
+
function qr(e, t, r) {
|
|
603
772
|
return e.concat(t).map(function(n) {
|
|
604
|
-
return
|
|
773
|
+
return ie(n, r);
|
|
605
774
|
});
|
|
606
775
|
}
|
|
607
|
-
function
|
|
776
|
+
function Qr(e, t) {
|
|
608
777
|
if (!t.customMerge)
|
|
609
|
-
return
|
|
778
|
+
return V;
|
|
610
779
|
var r = t.customMerge(e);
|
|
611
|
-
return typeof r == "function" ? r :
|
|
780
|
+
return typeof r == "function" ? r : V;
|
|
612
781
|
}
|
|
613
|
-
function
|
|
782
|
+
function Yr(e) {
|
|
614
783
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
615
784
|
return Object.propertyIsEnumerable.call(e, t);
|
|
616
785
|
}) : [];
|
|
617
786
|
}
|
|
618
|
-
function
|
|
619
|
-
return Object.keys(e).concat(
|
|
787
|
+
function ut(e) {
|
|
788
|
+
return Object.keys(e).concat(Yr(e));
|
|
620
789
|
}
|
|
621
|
-
function
|
|
790
|
+
function jt(e, t) {
|
|
622
791
|
try {
|
|
623
792
|
return t in e;
|
|
624
793
|
} catch {
|
|
625
794
|
return !1;
|
|
626
795
|
}
|
|
627
796
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
797
|
+
function Kr(e, t) {
|
|
798
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
630
799
|
}
|
|
631
|
-
function
|
|
800
|
+
function en(e, t, r) {
|
|
632
801
|
var n = {};
|
|
633
|
-
return r.isMergeableObject(e) &&
|
|
634
|
-
n[i] =
|
|
635
|
-
}),
|
|
636
|
-
|
|
802
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
803
|
+
n[i] = ie(e[i], r);
|
|
804
|
+
}), ut(t).forEach(function(i) {
|
|
805
|
+
Kr(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
637
806
|
}), n;
|
|
638
807
|
}
|
|
639
|
-
function
|
|
640
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
808
|
+
function V(e, t, r) {
|
|
809
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
641
810
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
642
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
811
|
+
return s ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : ie(t, r);
|
|
643
812
|
}
|
|
644
|
-
|
|
813
|
+
V.all = function(t, r) {
|
|
645
814
|
if (!Array.isArray(t))
|
|
646
815
|
throw new Error("first argument should be an array");
|
|
647
816
|
return t.reduce(function(n, i) {
|
|
648
|
-
return
|
|
817
|
+
return V(n, i, r);
|
|
649
818
|
}, {});
|
|
650
819
|
};
|
|
651
|
-
var
|
|
652
|
-
const
|
|
653
|
-
var
|
|
654
|
-
return
|
|
820
|
+
var tn = V, rn = tn;
|
|
821
|
+
const nn = /* @__PURE__ */ Fr(rn);
|
|
822
|
+
var Ve = function(e, t) {
|
|
823
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
655
824
|
r.__proto__ = n;
|
|
656
825
|
} || function(r, n) {
|
|
657
826
|
for (var i in n)
|
|
658
827
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
659
|
-
},
|
|
828
|
+
}, Ve(e, t);
|
|
660
829
|
};
|
|
661
|
-
function
|
|
830
|
+
function Ce(e, t) {
|
|
662
831
|
if (typeof t != "function" && t !== null)
|
|
663
832
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
664
|
-
|
|
833
|
+
Ve(e, t);
|
|
665
834
|
function r() {
|
|
666
835
|
this.constructor = e;
|
|
667
836
|
}
|
|
668
837
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
669
838
|
}
|
|
670
|
-
var
|
|
671
|
-
return
|
|
839
|
+
var B = function() {
|
|
840
|
+
return B = Object.assign || function(t) {
|
|
672
841
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
673
842
|
r = arguments[n];
|
|
674
843
|
for (var s in r)
|
|
675
844
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
676
845
|
}
|
|
677
846
|
return t;
|
|
678
|
-
},
|
|
847
|
+
}, B.apply(this, arguments);
|
|
679
848
|
};
|
|
680
|
-
function
|
|
849
|
+
function sn(e, t) {
|
|
681
850
|
var r = {};
|
|
682
851
|
for (var n in e)
|
|
683
852
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -686,43 +855,43 @@ function Dr(e, t) {
|
|
|
686
855
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
687
856
|
return r;
|
|
688
857
|
}
|
|
689
|
-
function
|
|
858
|
+
function $e(e, t, r) {
|
|
690
859
|
if (r || arguments.length === 2)
|
|
691
860
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
692
861
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
693
862
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
694
863
|
}
|
|
695
|
-
function
|
|
696
|
-
var r = t && t.cache ? t.cache :
|
|
864
|
+
function Re(e, t) {
|
|
865
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : hn, i = t && t.strategy ? t.strategy : un;
|
|
697
866
|
return i(e, {
|
|
698
867
|
cache: r,
|
|
699
868
|
serializer: n
|
|
700
869
|
});
|
|
701
870
|
}
|
|
702
|
-
function
|
|
871
|
+
function on(e) {
|
|
703
872
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
704
873
|
}
|
|
705
|
-
function
|
|
706
|
-
var i =
|
|
874
|
+
function an(e, t, r, n) {
|
|
875
|
+
var i = on(n) ? n : r(n), s = t.get(i);
|
|
707
876
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
708
877
|
}
|
|
709
|
-
function
|
|
878
|
+
function zt(e, t, r) {
|
|
710
879
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
711
880
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
712
881
|
}
|
|
713
|
-
function
|
|
882
|
+
function Vt(e, t, r, n, i) {
|
|
714
883
|
return r.bind(t, e, n, i);
|
|
715
884
|
}
|
|
716
|
-
function
|
|
717
|
-
var r = e.length === 1 ?
|
|
718
|
-
return
|
|
885
|
+
function un(e, t) {
|
|
886
|
+
var r = e.length === 1 ? an : zt;
|
|
887
|
+
return Vt(e, this, r, t.cache.create(), t.serializer);
|
|
719
888
|
}
|
|
720
|
-
function
|
|
721
|
-
return
|
|
889
|
+
function ln(e, t) {
|
|
890
|
+
return Vt(e, this, zt, t.cache.create(), t.serializer);
|
|
722
891
|
}
|
|
723
|
-
var
|
|
892
|
+
var hn = function() {
|
|
724
893
|
return JSON.stringify(arguments);
|
|
725
|
-
},
|
|
894
|
+
}, cn = (
|
|
726
895
|
/** @class */
|
|
727
896
|
function() {
|
|
728
897
|
function e() {
|
|
@@ -734,71 +903,71 @@ var jr = function() {
|
|
|
734
903
|
this.cache[t] = r;
|
|
735
904
|
}, e;
|
|
736
905
|
}()
|
|
737
|
-
),
|
|
906
|
+
), fn = {
|
|
738
907
|
create: function() {
|
|
739
|
-
return new
|
|
908
|
+
return new cn();
|
|
740
909
|
}
|
|
741
|
-
},
|
|
742
|
-
variadic:
|
|
743
|
-
},
|
|
744
|
-
return
|
|
910
|
+
}, De = {
|
|
911
|
+
variadic: ln
|
|
912
|
+
}, Se = function() {
|
|
913
|
+
return Se = Object.assign || function(t) {
|
|
745
914
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
746
915
|
r = arguments[n];
|
|
747
916
|
for (var s in r)
|
|
748
917
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
749
918
|
}
|
|
750
919
|
return t;
|
|
751
|
-
},
|
|
920
|
+
}, Se.apply(this, arguments);
|
|
752
921
|
};
|
|
753
|
-
var
|
|
922
|
+
var y;
|
|
754
923
|
(function(e) {
|
|
755
924
|
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";
|
|
756
|
-
})(
|
|
757
|
-
var
|
|
925
|
+
})(y || (y = {}));
|
|
926
|
+
var x;
|
|
758
927
|
(function(e) {
|
|
759
928
|
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";
|
|
760
|
-
})(
|
|
761
|
-
var
|
|
929
|
+
})(x || (x = {}));
|
|
930
|
+
var X;
|
|
762
931
|
(function(e) {
|
|
763
932
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
764
|
-
})(
|
|
765
|
-
function
|
|
766
|
-
return e.type ===
|
|
933
|
+
})(X || (X = {}));
|
|
934
|
+
function lt(e) {
|
|
935
|
+
return e.type === x.literal;
|
|
767
936
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.type ===
|
|
937
|
+
function mn(e) {
|
|
938
|
+
return e.type === x.argument;
|
|
770
939
|
}
|
|
771
|
-
function
|
|
772
|
-
return e.type ===
|
|
940
|
+
function Xt(e) {
|
|
941
|
+
return e.type === x.number;
|
|
773
942
|
}
|
|
774
|
-
function
|
|
775
|
-
return e.type ===
|
|
943
|
+
function Wt(e) {
|
|
944
|
+
return e.type === x.date;
|
|
776
945
|
}
|
|
777
|
-
function
|
|
778
|
-
return e.type ===
|
|
946
|
+
function Zt(e) {
|
|
947
|
+
return e.type === x.time;
|
|
779
948
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.type ===
|
|
949
|
+
function Jt(e) {
|
|
950
|
+
return e.type === x.select;
|
|
782
951
|
}
|
|
783
|
-
function
|
|
784
|
-
return e.type ===
|
|
952
|
+
function qt(e) {
|
|
953
|
+
return e.type === x.plural;
|
|
785
954
|
}
|
|
786
|
-
function
|
|
787
|
-
return e.type ===
|
|
955
|
+
function dn(e) {
|
|
956
|
+
return e.type === x.pound;
|
|
788
957
|
}
|
|
789
|
-
function
|
|
790
|
-
return e.type ===
|
|
958
|
+
function Qt(e) {
|
|
959
|
+
return e.type === x.tag;
|
|
791
960
|
}
|
|
792
|
-
function
|
|
793
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
961
|
+
function Yt(e) {
|
|
962
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
794
963
|
}
|
|
795
|
-
function
|
|
796
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
964
|
+
function Xe(e) {
|
|
965
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
797
966
|
}
|
|
798
|
-
var
|
|
799
|
-
function
|
|
967
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
|
|
968
|
+
function gn(e) {
|
|
800
969
|
var t = {};
|
|
801
|
-
return e.replace(
|
|
970
|
+
return e.replace(pn, function(r) {
|
|
802
971
|
var n = r.length;
|
|
803
972
|
switch (r[0]) {
|
|
804
973
|
case "G":
|
|
@@ -887,46 +1056,46 @@ function Jr(e) {
|
|
|
887
1056
|
return "";
|
|
888
1057
|
}), t;
|
|
889
1058
|
}
|
|
890
|
-
var
|
|
891
|
-
return
|
|
1059
|
+
var H = function() {
|
|
1060
|
+
return H = Object.assign || function(t) {
|
|
892
1061
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
893
1062
|
r = arguments[n];
|
|
894
1063
|
for (var s in r)
|
|
895
1064
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
896
1065
|
}
|
|
897
1066
|
return t;
|
|
898
|
-
},
|
|
1067
|
+
}, H.apply(this, arguments);
|
|
899
1068
|
};
|
|
900
|
-
var
|
|
901
|
-
function
|
|
1069
|
+
var bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1070
|
+
function yn(e) {
|
|
902
1071
|
if (e.length === 0)
|
|
903
1072
|
throw new Error("Number skeleton cannot be empty");
|
|
904
|
-
for (var t = e.split(
|
|
1073
|
+
for (var t = e.split(bn).filter(function(c) {
|
|
905
1074
|
return c.length > 0;
|
|
906
1075
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
907
|
-
var s = i[n],
|
|
908
|
-
if (
|
|
1076
|
+
var s = i[n], o = s.split("/");
|
|
1077
|
+
if (o.length === 0)
|
|
909
1078
|
throw new Error("Invalid number skeleton");
|
|
910
|
-
for (var
|
|
1079
|
+
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
911
1080
|
var f = l[u];
|
|
912
1081
|
if (f.length === 0)
|
|
913
1082
|
throw new Error("Invalid number skeleton");
|
|
914
1083
|
}
|
|
915
|
-
r.push({ stem:
|
|
1084
|
+
r.push({ stem: a, options: h });
|
|
916
1085
|
}
|
|
917
1086
|
return r;
|
|
918
1087
|
}
|
|
919
|
-
function
|
|
1088
|
+
function _n(e) {
|
|
920
1089
|
return e.replace(/^(.*?)-/, "");
|
|
921
1090
|
}
|
|
922
|
-
var
|
|
923
|
-
function
|
|
1091
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1092
|
+
function ct(e) {
|
|
924
1093
|
var t = {};
|
|
925
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1094
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
926
1095
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
927
1096
|
}), t;
|
|
928
1097
|
}
|
|
929
|
-
function
|
|
1098
|
+
function rr(e) {
|
|
930
1099
|
switch (e) {
|
|
931
1100
|
case "sign-auto":
|
|
932
1101
|
return {
|
|
@@ -966,7 +1135,7 @@ function Dt(e) {
|
|
|
966
1135
|
};
|
|
967
1136
|
}
|
|
968
1137
|
}
|
|
969
|
-
function
|
|
1138
|
+
function vn(e) {
|
|
970
1139
|
var t;
|
|
971
1140
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
972
1141
|
notation: "engineering"
|
|
@@ -974,17 +1143,17 @@ function en(e) {
|
|
|
974
1143
|
notation: "scientific"
|
|
975
1144
|
}, e = e.slice(1)), t) {
|
|
976
1145
|
var r = e.slice(0, 2);
|
|
977
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1146
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
978
1147
|
throw new Error("Malformed concise eng/scientific notation");
|
|
979
1148
|
t.minimumIntegerDigits = e.length;
|
|
980
1149
|
}
|
|
981
1150
|
return t;
|
|
982
1151
|
}
|
|
983
|
-
function
|
|
984
|
-
var t = {}, r =
|
|
1152
|
+
function ft(e) {
|
|
1153
|
+
var t = {}, r = rr(e);
|
|
985
1154
|
return r || t;
|
|
986
1155
|
}
|
|
987
|
-
function
|
|
1156
|
+
function xn(e) {
|
|
988
1157
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
989
1158
|
var i = n[r];
|
|
990
1159
|
switch (i.stem) {
|
|
@@ -1008,7 +1177,7 @@ function tn(e) {
|
|
|
1008
1177
|
continue;
|
|
1009
1178
|
case "measure-unit":
|
|
1010
1179
|
case "unit":
|
|
1011
|
-
t.style = "unit", t.unit =
|
|
1180
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
1012
1181
|
continue;
|
|
1013
1182
|
case "compact-short":
|
|
1014
1183
|
case "K":
|
|
@@ -1019,13 +1188,13 @@ function tn(e) {
|
|
|
1019
1188
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1020
1189
|
continue;
|
|
1021
1190
|
case "scientific":
|
|
1022
|
-
t =
|
|
1023
|
-
return
|
|
1191
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1192
|
+
return H(H({}, h), ft(u));
|
|
1024
1193
|
}, {}));
|
|
1025
1194
|
continue;
|
|
1026
1195
|
case "engineering":
|
|
1027
|
-
t =
|
|
1028
|
-
return
|
|
1196
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1197
|
+
return H(H({}, h), ft(u));
|
|
1029
1198
|
}, {}));
|
|
1030
1199
|
continue;
|
|
1031
1200
|
case "notation-simple":
|
|
@@ -1070,7 +1239,7 @@ function tn(e) {
|
|
|
1070
1239
|
case "integer-width":
|
|
1071
1240
|
if (i.options.length > 1)
|
|
1072
1241
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1073
|
-
i.options[0].replace(
|
|
1242
|
+
i.options[0].replace(En, function(h, u, l, f, c, p) {
|
|
1074
1243
|
if (u)
|
|
1075
1244
|
t.minimumIntegerDigits = l.length;
|
|
1076
1245
|
else {
|
|
@@ -1083,32 +1252,32 @@ function tn(e) {
|
|
|
1083
1252
|
});
|
|
1084
1253
|
continue;
|
|
1085
1254
|
}
|
|
1086
|
-
if (
|
|
1255
|
+
if (tr.test(i.stem)) {
|
|
1087
1256
|
t.minimumIntegerDigits = i.stem.length;
|
|
1088
1257
|
continue;
|
|
1089
1258
|
}
|
|
1090
|
-
if (
|
|
1259
|
+
if (ht.test(i.stem)) {
|
|
1091
1260
|
if (i.options.length > 1)
|
|
1092
1261
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1093
|
-
i.stem.replace(
|
|
1262
|
+
i.stem.replace(ht, function(h, u, l, f, c, p) {
|
|
1094
1263
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1095
1264
|
});
|
|
1096
1265
|
var s = i.options[0];
|
|
1097
|
-
s === "w" ? t =
|
|
1266
|
+
s === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = H(H({}, t), ct(s)));
|
|
1098
1267
|
continue;
|
|
1099
1268
|
}
|
|
1100
|
-
if (
|
|
1101
|
-
t =
|
|
1269
|
+
if (er.test(i.stem)) {
|
|
1270
|
+
t = H(H({}, t), ct(i.stem));
|
|
1102
1271
|
continue;
|
|
1103
1272
|
}
|
|
1104
|
-
var
|
|
1105
|
-
|
|
1106
|
-
var
|
|
1107
|
-
|
|
1273
|
+
var o = rr(i.stem);
|
|
1274
|
+
o && (t = H(H({}, t), o));
|
|
1275
|
+
var a = vn(i.stem);
|
|
1276
|
+
a && (t = H(H({}, t), a));
|
|
1108
1277
|
}
|
|
1109
1278
|
return t;
|
|
1110
1279
|
}
|
|
1111
|
-
var
|
|
1280
|
+
var ye = {
|
|
1112
1281
|
"001": [
|
|
1113
1282
|
"H",
|
|
1114
1283
|
"h"
|
|
@@ -2523,23 +2692,23 @@ var me = {
|
|
|
2523
2692
|
"h"
|
|
2524
2693
|
]
|
|
2525
2694
|
};
|
|
2526
|
-
function
|
|
2695
|
+
function Tn(e, t) {
|
|
2527
2696
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2528
2697
|
var i = e.charAt(n);
|
|
2529
2698
|
if (i === "j") {
|
|
2530
2699
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2531
2700
|
s++, n++;
|
|
2532
|
-
var
|
|
2533
|
-
for ((u == "H" || u == "k") && (
|
|
2701
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Hn(t);
|
|
2702
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2534
2703
|
r += h;
|
|
2535
|
-
for (;
|
|
2704
|
+
for (; o-- > 0; )
|
|
2536
2705
|
r = u + r;
|
|
2537
2706
|
} else
|
|
2538
2707
|
i === "J" ? r += "H" : r += i;
|
|
2539
2708
|
}
|
|
2540
2709
|
return r;
|
|
2541
2710
|
}
|
|
2542
|
-
function
|
|
2711
|
+
function Hn(e) {
|
|
2543
2712
|
var t = e.hourCycle;
|
|
2544
2713
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2545
2714
|
e.hourCycles && // @ts-ignore
|
|
@@ -2558,23 +2727,23 @@ function nn(e) {
|
|
|
2558
2727
|
}
|
|
2559
2728
|
var r = e.language, n;
|
|
2560
2729
|
r !== "root" && (n = e.maximize().region);
|
|
2561
|
-
var i =
|
|
2730
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2562
2731
|
return i[0];
|
|
2563
2732
|
}
|
|
2564
|
-
var
|
|
2565
|
-
function
|
|
2733
|
+
var ke, wn = new RegExp("^".concat(Kt.source, "*")), Sn = new RegExp("".concat(Kt.source, "*$"));
|
|
2734
|
+
function _(e, t) {
|
|
2566
2735
|
return { start: e, end: t };
|
|
2567
2736
|
}
|
|
2568
|
-
var
|
|
2737
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, In = !!String.prototype.trimEnd, Nn = !!Number.isSafeInteger, Ln = Nn ? Number.isSafeInteger : function(e) {
|
|
2569
2738
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2570
|
-
},
|
|
2739
|
+
}, We = !0;
|
|
2571
2740
|
try {
|
|
2572
|
-
var
|
|
2573
|
-
|
|
2741
|
+
var Mn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2742
|
+
We = ((ke = Mn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
2574
2743
|
} catch {
|
|
2575
|
-
|
|
2744
|
+
We = !1;
|
|
2576
2745
|
}
|
|
2577
|
-
var
|
|
2746
|
+
var mt = Bn ? (
|
|
2578
2747
|
// Native
|
|
2579
2748
|
function(t, r, n) {
|
|
2580
2749
|
return t.startsWith(r, n);
|
|
@@ -2584,31 +2753,31 @@ var it = on ? (
|
|
|
2584
2753
|
function(t, r, n) {
|
|
2585
2754
|
return t.slice(n, n + r.length) === r;
|
|
2586
2755
|
}
|
|
2587
|
-
),
|
|
2756
|
+
), Ze = An ? String.fromCodePoint : (
|
|
2588
2757
|
// IE11
|
|
2589
2758
|
function() {
|
|
2590
2759
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2591
2760
|
t[r] = arguments[r];
|
|
2592
|
-
for (var n = "", i = t.length, s = 0,
|
|
2593
|
-
if (
|
|
2594
|
-
throw RangeError(
|
|
2595
|
-
n +=
|
|
2761
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2762
|
+
if (o = t[s++], o > 1114111)
|
|
2763
|
+
throw RangeError(o + " is not a valid code point");
|
|
2764
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2596
2765
|
}
|
|
2597
2766
|
return n;
|
|
2598
2767
|
}
|
|
2599
|
-
),
|
|
2768
|
+
), dt = (
|
|
2600
2769
|
// native
|
|
2601
|
-
|
|
2770
|
+
Pn ? Object.fromEntries : (
|
|
2602
2771
|
// Ponyfill
|
|
2603
2772
|
function(t) {
|
|
2604
2773
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2605
|
-
var s = i[n],
|
|
2606
|
-
r[
|
|
2774
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2775
|
+
r[o] = a;
|
|
2607
2776
|
}
|
|
2608
2777
|
return r;
|
|
2609
2778
|
}
|
|
2610
2779
|
)
|
|
2611
|
-
),
|
|
2780
|
+
), nr = On ? (
|
|
2612
2781
|
// Native
|
|
2613
2782
|
function(t, r) {
|
|
2614
2783
|
return t.codePointAt(r);
|
|
@@ -2622,7 +2791,7 @@ var it = on ? (
|
|
|
2622
2791
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2623
2792
|
}
|
|
2624
2793
|
}
|
|
2625
|
-
),
|
|
2794
|
+
), $n = Cn ? (
|
|
2626
2795
|
// Native
|
|
2627
2796
|
function(t) {
|
|
2628
2797
|
return t.trimStart();
|
|
@@ -2630,9 +2799,9 @@ var it = on ? (
|
|
|
2630
2799
|
) : (
|
|
2631
2800
|
// Ponyfill
|
|
2632
2801
|
function(t) {
|
|
2633
|
-
return t.replace(
|
|
2802
|
+
return t.replace(wn, "");
|
|
2634
2803
|
}
|
|
2635
|
-
),
|
|
2804
|
+
), Rn = In ? (
|
|
2636
2805
|
// Native
|
|
2637
2806
|
function(t) {
|
|
2638
2807
|
return t.trimEnd();
|
|
@@ -2640,32 +2809,32 @@ var it = on ? (
|
|
|
2640
2809
|
) : (
|
|
2641
2810
|
// Ponyfill
|
|
2642
2811
|
function(t) {
|
|
2643
|
-
return t.replace(
|
|
2812
|
+
return t.replace(Sn, "");
|
|
2644
2813
|
}
|
|
2645
2814
|
);
|
|
2646
|
-
function
|
|
2815
|
+
function ir(e, t) {
|
|
2647
2816
|
return new RegExp(e, t);
|
|
2648
2817
|
}
|
|
2649
|
-
var
|
|
2650
|
-
if (
|
|
2651
|
-
var
|
|
2652
|
-
|
|
2818
|
+
var Je;
|
|
2819
|
+
if (We) {
|
|
2820
|
+
var pt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2821
|
+
Je = function(t, r) {
|
|
2653
2822
|
var n;
|
|
2654
|
-
|
|
2655
|
-
var i =
|
|
2823
|
+
pt.lastIndex = r;
|
|
2824
|
+
var i = pt.exec(t);
|
|
2656
2825
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2657
2826
|
};
|
|
2658
2827
|
} else
|
|
2659
|
-
|
|
2828
|
+
Je = function(t, r) {
|
|
2660
2829
|
for (var n = []; ; ) {
|
|
2661
|
-
var i =
|
|
2662
|
-
if (i === void 0 ||
|
|
2830
|
+
var i = nr(t, r);
|
|
2831
|
+
if (i === void 0 || sr(i) || Gn(i))
|
|
2663
2832
|
break;
|
|
2664
2833
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2665
2834
|
}
|
|
2666
|
-
return
|
|
2835
|
+
return Ze.apply(void 0, n);
|
|
2667
2836
|
};
|
|
2668
|
-
var
|
|
2837
|
+
var Dn = (
|
|
2669
2838
|
/** @class */
|
|
2670
2839
|
function() {
|
|
2671
2840
|
function e(t, r) {
|
|
@@ -2679,33 +2848,33 @@ var yn = (
|
|
|
2679
2848
|
for (var i = []; !this.isEOF(); ) {
|
|
2680
2849
|
var s = this.char();
|
|
2681
2850
|
if (s === 123) {
|
|
2682
|
-
var
|
|
2683
|
-
if (
|
|
2684
|
-
return
|
|
2685
|
-
i.push(
|
|
2851
|
+
var o = this.parseArgument(t, n);
|
|
2852
|
+
if (o.err)
|
|
2853
|
+
return o;
|
|
2854
|
+
i.push(o.val);
|
|
2686
2855
|
} else {
|
|
2687
2856
|
if (s === 125 && t > 0)
|
|
2688
2857
|
break;
|
|
2689
2858
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2690
|
-
var
|
|
2859
|
+
var a = this.clonePosition();
|
|
2691
2860
|
this.bump(), i.push({
|
|
2692
|
-
type:
|
|
2693
|
-
location:
|
|
2861
|
+
type: x.pound,
|
|
2862
|
+
location: _(a, this.clonePosition())
|
|
2694
2863
|
});
|
|
2695
2864
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2696
2865
|
if (n)
|
|
2697
2866
|
break;
|
|
2698
|
-
return this.error(
|
|
2699
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2700
|
-
var
|
|
2701
|
-
if (
|
|
2702
|
-
return
|
|
2703
|
-
i.push(
|
|
2867
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2868
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
2869
|
+
var o = this.parseTag(t, r);
|
|
2870
|
+
if (o.err)
|
|
2871
|
+
return o;
|
|
2872
|
+
i.push(o.val);
|
|
2704
2873
|
} else {
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
2707
|
-
return
|
|
2708
|
-
i.push(
|
|
2874
|
+
var o = this.parseLiteral(t, r);
|
|
2875
|
+
if (o.err)
|
|
2876
|
+
return o;
|
|
2877
|
+
i.push(o.val);
|
|
2709
2878
|
}
|
|
2710
2879
|
}
|
|
2711
2880
|
}
|
|
@@ -2717,9 +2886,9 @@ var yn = (
|
|
|
2717
2886
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2718
2887
|
return {
|
|
2719
2888
|
val: {
|
|
2720
|
-
type:
|
|
2889
|
+
type: x.literal,
|
|
2721
2890
|
value: "<".concat(i, "/>"),
|
|
2722
|
-
location:
|
|
2891
|
+
location: _(n, this.clonePosition())
|
|
2723
2892
|
},
|
|
2724
2893
|
err: null
|
|
2725
2894
|
};
|
|
@@ -2727,27 +2896,27 @@ var yn = (
|
|
|
2727
2896
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2728
2897
|
if (s.err)
|
|
2729
2898
|
return s;
|
|
2730
|
-
var
|
|
2899
|
+
var o = s.val, a = this.clonePosition();
|
|
2731
2900
|
if (this.bumpIf("</")) {
|
|
2732
|
-
if (this.isEOF() || !
|
|
2733
|
-
return this.error(
|
|
2901
|
+
if (this.isEOF() || !qe(this.char()))
|
|
2902
|
+
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
|
2734
2903
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2735
|
-
return i !== u ? this.error(
|
|
2904
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2736
2905
|
val: {
|
|
2737
|
-
type:
|
|
2906
|
+
type: x.tag,
|
|
2738
2907
|
value: i,
|
|
2739
|
-
children:
|
|
2740
|
-
location:
|
|
2908
|
+
children: o,
|
|
2909
|
+
location: _(n, this.clonePosition())
|
|
2741
2910
|
},
|
|
2742
2911
|
err: null
|
|
2743
|
-
} : this.error(
|
|
2912
|
+
} : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
|
|
2744
2913
|
} else
|
|
2745
|
-
return this.error(
|
|
2914
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2746
2915
|
} else
|
|
2747
|
-
return this.error(
|
|
2916
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2748
2917
|
}, e.prototype.parseTagName = function() {
|
|
2749
2918
|
var t = this.offset();
|
|
2750
|
-
for (this.bump(); !this.isEOF() &&
|
|
2919
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
2751
2920
|
this.bump();
|
|
2752
2921
|
return this.message.slice(t, this.offset());
|
|
2753
2922
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2757,26 +2926,26 @@ var yn = (
|
|
|
2757
2926
|
i += s;
|
|
2758
2927
|
continue;
|
|
2759
2928
|
}
|
|
2760
|
-
var
|
|
2761
|
-
if (a) {
|
|
2762
|
-
i += a;
|
|
2763
|
-
continue;
|
|
2764
|
-
}
|
|
2765
|
-
var o = this.tryParseLeftAngleBracket();
|
|
2929
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2766
2930
|
if (o) {
|
|
2767
2931
|
i += o;
|
|
2768
2932
|
continue;
|
|
2769
2933
|
}
|
|
2934
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2935
|
+
if (a) {
|
|
2936
|
+
i += a;
|
|
2937
|
+
continue;
|
|
2938
|
+
}
|
|
2770
2939
|
break;
|
|
2771
2940
|
}
|
|
2772
|
-
var h =
|
|
2941
|
+
var h = _(n, this.clonePosition());
|
|
2773
2942
|
return {
|
|
2774
|
-
val: { type:
|
|
2943
|
+
val: { type: x.literal, value: i, location: h },
|
|
2775
2944
|
err: null
|
|
2776
2945
|
};
|
|
2777
2946
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2778
2947
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2779
|
-
!
|
|
2948
|
+
!kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2780
2949
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2781
2950
|
if (this.isEOF() || this.char() !== 39)
|
|
2782
2951
|
return null;
|
|
@@ -2810,49 +2979,49 @@ var yn = (
|
|
|
2810
2979
|
r.push(n);
|
|
2811
2980
|
this.bump();
|
|
2812
2981
|
}
|
|
2813
|
-
return
|
|
2982
|
+
return Ze.apply(void 0, r);
|
|
2814
2983
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2815
2984
|
if (this.isEOF())
|
|
2816
2985
|
return null;
|
|
2817
2986
|
var n = this.char();
|
|
2818
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2987
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
2819
2988
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2820
2989
|
var n = this.clonePosition();
|
|
2821
2990
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2822
|
-
return this.error(
|
|
2991
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2823
2992
|
if (this.char() === 125)
|
|
2824
|
-
return this.bump(), this.error(
|
|
2993
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
2825
2994
|
var i = this.parseIdentifierIfPossible().value;
|
|
2826
2995
|
if (!i)
|
|
2827
|
-
return this.error(
|
|
2996
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2828
2997
|
if (this.bumpSpace(), this.isEOF())
|
|
2829
|
-
return this.error(
|
|
2998
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2830
2999
|
switch (this.char()) {
|
|
2831
3000
|
case 125:
|
|
2832
3001
|
return this.bump(), {
|
|
2833
3002
|
val: {
|
|
2834
|
-
type:
|
|
3003
|
+
type: x.argument,
|
|
2835
3004
|
// value does not include the opening and closing braces.
|
|
2836
3005
|
value: i,
|
|
2837
|
-
location:
|
|
3006
|
+
location: _(n, this.clonePosition())
|
|
2838
3007
|
},
|
|
2839
3008
|
err: null
|
|
2840
3009
|
};
|
|
2841
3010
|
case 44:
|
|
2842
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3011
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2843
3012
|
default:
|
|
2844
|
-
return this.error(
|
|
3013
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2845
3014
|
}
|
|
2846
3015
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2847
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3016
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
2848
3017
|
this.bumpTo(i);
|
|
2849
|
-
var s = this.clonePosition(),
|
|
2850
|
-
return { value: n, location:
|
|
3018
|
+
var s = this.clonePosition(), o = _(t, s);
|
|
3019
|
+
return { value: n, location: o };
|
|
2851
3020
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2852
|
-
var s,
|
|
2853
|
-
switch (
|
|
3021
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3022
|
+
switch (a) {
|
|
2854
3023
|
case "":
|
|
2855
|
-
return this.error(
|
|
3024
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
|
|
2856
3025
|
case "number":
|
|
2857
3026
|
case "date":
|
|
2858
3027
|
case "time": {
|
|
@@ -2863,46 +3032,46 @@ var yn = (
|
|
|
2863
3032
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2864
3033
|
if (f.err)
|
|
2865
3034
|
return f;
|
|
2866
|
-
var c =
|
|
3035
|
+
var c = Rn(f.val);
|
|
2867
3036
|
if (c.length === 0)
|
|
2868
|
-
return this.error(
|
|
2869
|
-
var p =
|
|
3037
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3038
|
+
var p = _(l, this.clonePosition());
|
|
2870
3039
|
u = { style: c, styleLocation: p };
|
|
2871
3040
|
}
|
|
2872
|
-
var
|
|
2873
|
-
if (
|
|
2874
|
-
return
|
|
2875
|
-
var
|
|
2876
|
-
if (u &&
|
|
2877
|
-
var
|
|
2878
|
-
if (
|
|
2879
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3041
|
+
var b = this.tryParseArgumentClose(i);
|
|
3042
|
+
if (b.err)
|
|
3043
|
+
return b;
|
|
3044
|
+
var g = _(i, this.clonePosition());
|
|
3045
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3046
|
+
var v = $n(u.style.slice(2));
|
|
3047
|
+
if (a === "number") {
|
|
3048
|
+
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2880
3049
|
return f.err ? f : {
|
|
2881
|
-
val: { type:
|
|
3050
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2882
3051
|
err: null
|
|
2883
3052
|
};
|
|
2884
3053
|
} else {
|
|
2885
|
-
if (
|
|
2886
|
-
return this.error(
|
|
2887
|
-
var
|
|
2888
|
-
this.locale && (
|
|
3054
|
+
if (v.length === 0)
|
|
3055
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3056
|
+
var T = v;
|
|
3057
|
+
this.locale && (T = Tn(v, this.locale));
|
|
2889
3058
|
var c = {
|
|
2890
|
-
type:
|
|
2891
|
-
pattern:
|
|
3059
|
+
type: X.dateTime,
|
|
3060
|
+
pattern: T,
|
|
2892
3061
|
location: u.styleLocation,
|
|
2893
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2894
|
-
}, d =
|
|
3062
|
+
parsedOptions: this.shouldParseSkeletons ? gn(T) : {}
|
|
3063
|
+
}, d = a === "date" ? x.date : x.time;
|
|
2895
3064
|
return {
|
|
2896
|
-
val: { type: d, value: n, location:
|
|
3065
|
+
val: { type: d, value: n, location: g, style: c },
|
|
2897
3066
|
err: null
|
|
2898
3067
|
};
|
|
2899
3068
|
}
|
|
2900
3069
|
}
|
|
2901
3070
|
return {
|
|
2902
3071
|
val: {
|
|
2903
|
-
type:
|
|
3072
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2904
3073
|
value: n,
|
|
2905
|
-
location:
|
|
3074
|
+
location: g,
|
|
2906
3075
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2907
3076
|
},
|
|
2908
3077
|
err: null
|
|
@@ -2913,50 +3082,50 @@ var yn = (
|
|
|
2913
3082
|
case "select": {
|
|
2914
3083
|
var m = this.clonePosition();
|
|
2915
3084
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2916
|
-
return this.error(
|
|
3085
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(m, Se({}, m)));
|
|
2917
3086
|
this.bumpSpace();
|
|
2918
|
-
var E = this.parseIdentifierIfPossible(),
|
|
2919
|
-
if (
|
|
3087
|
+
var E = this.parseIdentifierIfPossible(), M = 0;
|
|
3088
|
+
if (a !== "select" && E.value === "offset") {
|
|
2920
3089
|
if (!this.bumpIf(":"))
|
|
2921
|
-
return this.error(
|
|
3090
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2922
3091
|
this.bumpSpace();
|
|
2923
|
-
var f = this.tryParseDecimalInteger(
|
|
3092
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2924
3093
|
if (f.err)
|
|
2925
3094
|
return f;
|
|
2926
|
-
this.bumpSpace(), E = this.parseIdentifierIfPossible(),
|
|
3095
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), M = f.val;
|
|
2927
3096
|
}
|
|
2928
|
-
var
|
|
2929
|
-
if (
|
|
2930
|
-
return
|
|
2931
|
-
var
|
|
2932
|
-
if (
|
|
2933
|
-
return
|
|
2934
|
-
var
|
|
2935
|
-
return
|
|
3097
|
+
var he = this.tryParsePluralOrSelectOptions(t, a, r, E);
|
|
3098
|
+
if (he.err)
|
|
3099
|
+
return he;
|
|
3100
|
+
var b = this.tryParseArgumentClose(i);
|
|
3101
|
+
if (b.err)
|
|
3102
|
+
return b;
|
|
3103
|
+
var it = _(i, this.clonePosition());
|
|
3104
|
+
return a === "select" ? {
|
|
2936
3105
|
val: {
|
|
2937
|
-
type:
|
|
3106
|
+
type: x.select,
|
|
2938
3107
|
value: n,
|
|
2939
|
-
options:
|
|
2940
|
-
location:
|
|
3108
|
+
options: dt(he.val),
|
|
3109
|
+
location: it
|
|
2941
3110
|
},
|
|
2942
3111
|
err: null
|
|
2943
3112
|
} : {
|
|
2944
3113
|
val: {
|
|
2945
|
-
type:
|
|
3114
|
+
type: x.plural,
|
|
2946
3115
|
value: n,
|
|
2947
|
-
options:
|
|
2948
|
-
offset:
|
|
2949
|
-
pluralType:
|
|
2950
|
-
location:
|
|
3116
|
+
options: dt(he.val),
|
|
3117
|
+
offset: M,
|
|
3118
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3119
|
+
location: it
|
|
2951
3120
|
},
|
|
2952
3121
|
err: null
|
|
2953
3122
|
};
|
|
2954
3123
|
}
|
|
2955
3124
|
default:
|
|
2956
|
-
return this.error(
|
|
3125
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
|
|
2957
3126
|
}
|
|
2958
3127
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2959
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3128
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2960
3129
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2961
3130
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2962
3131
|
var n = this.char();
|
|
@@ -2965,7 +3134,7 @@ var yn = (
|
|
|
2965
3134
|
this.bump();
|
|
2966
3135
|
var i = this.clonePosition();
|
|
2967
3136
|
if (!this.bumpUntil("'"))
|
|
2968
|
-
return this.error(
|
|
3137
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
2969
3138
|
this.bump();
|
|
2970
3139
|
break;
|
|
2971
3140
|
}
|
|
@@ -2995,64 +3164,64 @@ var yn = (
|
|
|
2995
3164
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2996
3165
|
var n = [];
|
|
2997
3166
|
try {
|
|
2998
|
-
n =
|
|
3167
|
+
n = yn(t);
|
|
2999
3168
|
} catch {
|
|
3000
|
-
return this.error(
|
|
3169
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3001
3170
|
}
|
|
3002
3171
|
return {
|
|
3003
3172
|
val: {
|
|
3004
|
-
type:
|
|
3173
|
+
type: X.number,
|
|
3005
3174
|
tokens: n,
|
|
3006
3175
|
location: r,
|
|
3007
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3176
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3008
3177
|
},
|
|
3009
3178
|
err: null
|
|
3010
3179
|
};
|
|
3011
3180
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3012
|
-
for (var s,
|
|
3181
|
+
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3013
3182
|
if (u.length === 0) {
|
|
3014
3183
|
var f = this.clonePosition();
|
|
3015
3184
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3016
|
-
var c = this.tryParseDecimalInteger(
|
|
3185
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3017
3186
|
if (c.err)
|
|
3018
3187
|
return c;
|
|
3019
|
-
l =
|
|
3188
|
+
l = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3020
3189
|
} else
|
|
3021
3190
|
break;
|
|
3022
3191
|
}
|
|
3023
3192
|
if (h.has(u))
|
|
3024
|
-
return this.error(r === "select" ?
|
|
3025
|
-
u === "other" && (
|
|
3193
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3194
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3026
3195
|
var p = this.clonePosition();
|
|
3027
3196
|
if (!this.bumpIf("{"))
|
|
3028
|
-
return this.error(r === "select" ?
|
|
3029
|
-
var
|
|
3030
|
-
if (
|
|
3031
|
-
return
|
|
3032
|
-
var
|
|
3033
|
-
if (
|
|
3034
|
-
return
|
|
3035
|
-
|
|
3197
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3198
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3199
|
+
if (b.err)
|
|
3200
|
+
return b;
|
|
3201
|
+
var g = this.tryParseArgumentClose(p);
|
|
3202
|
+
if (g.err)
|
|
3203
|
+
return g;
|
|
3204
|
+
a.push([
|
|
3036
3205
|
u,
|
|
3037
3206
|
{
|
|
3038
|
-
value:
|
|
3039
|
-
location:
|
|
3207
|
+
value: b.val,
|
|
3208
|
+
location: _(p, this.clonePosition())
|
|
3040
3209
|
}
|
|
3041
3210
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3042
3211
|
}
|
|
3043
|
-
return
|
|
3212
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3044
3213
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3045
3214
|
var n = 1, i = this.clonePosition();
|
|
3046
3215
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3047
|
-
for (var s = !1,
|
|
3048
|
-
var
|
|
3049
|
-
if (
|
|
3050
|
-
s = !0,
|
|
3216
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3217
|
+
var a = this.char();
|
|
3218
|
+
if (a >= 48 && a <= 57)
|
|
3219
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3051
3220
|
else
|
|
3052
3221
|
break;
|
|
3053
3222
|
}
|
|
3054
|
-
var h =
|
|
3055
|
-
return s ? (
|
|
3223
|
+
var h = _(i, this.clonePosition());
|
|
3224
|
+
return s ? (o *= n, Ln(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3056
3225
|
}, e.prototype.offset = function() {
|
|
3057
3226
|
return this.position.offset;
|
|
3058
3227
|
}, e.prototype.isEOF = function() {
|
|
@@ -3067,7 +3236,7 @@ var yn = (
|
|
|
3067
3236
|
var t = this.position.offset;
|
|
3068
3237
|
if (t >= this.message.length)
|
|
3069
3238
|
throw Error("out of bound");
|
|
3070
|
-
var r =
|
|
3239
|
+
var r = nr(this.message, t);
|
|
3071
3240
|
if (r === void 0)
|
|
3072
3241
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3073
3242
|
return r;
|
|
@@ -3086,7 +3255,7 @@ var yn = (
|
|
|
3086
3255
|
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);
|
|
3087
3256
|
}
|
|
3088
3257
|
}, e.prototype.bumpIf = function(t) {
|
|
3089
|
-
if (
|
|
3258
|
+
if (mt(this.message, t, this.offset())) {
|
|
3090
3259
|
for (var r = 0; r < t.length; r++)
|
|
3091
3260
|
this.bump();
|
|
3092
3261
|
return !0;
|
|
@@ -3108,7 +3277,7 @@ var yn = (
|
|
|
3108
3277
|
break;
|
|
3109
3278
|
}
|
|
3110
3279
|
}, e.prototype.bumpSpace = function() {
|
|
3111
|
-
for (; !this.isEOF() &&
|
|
3280
|
+
for (; !this.isEOF() && sr(this.char()); )
|
|
3112
3281
|
this.bump();
|
|
3113
3282
|
}, e.prototype.peek = function() {
|
|
3114
3283
|
if (this.isEOF())
|
|
@@ -3118,47 +3287,47 @@ var yn = (
|
|
|
3118
3287
|
}, e;
|
|
3119
3288
|
}()
|
|
3120
3289
|
);
|
|
3121
|
-
function
|
|
3290
|
+
function qe(e) {
|
|
3122
3291
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3123
3292
|
}
|
|
3124
|
-
function
|
|
3125
|
-
return
|
|
3293
|
+
function kn(e) {
|
|
3294
|
+
return qe(e) || e === 47;
|
|
3126
3295
|
}
|
|
3127
|
-
function
|
|
3296
|
+
function Un(e) {
|
|
3128
3297
|
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;
|
|
3129
3298
|
}
|
|
3130
|
-
function
|
|
3299
|
+
function sr(e) {
|
|
3131
3300
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3132
3301
|
}
|
|
3133
|
-
function
|
|
3302
|
+
function Gn(e) {
|
|
3134
3303
|
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;
|
|
3135
3304
|
}
|
|
3136
|
-
function
|
|
3305
|
+
function Qe(e) {
|
|
3137
3306
|
e.forEach(function(t) {
|
|
3138
|
-
if (delete t.location,
|
|
3307
|
+
if (delete t.location, Jt(t) || qt(t))
|
|
3139
3308
|
for (var r in t.options)
|
|
3140
|
-
delete t.options[r].location,
|
|
3309
|
+
delete t.options[r].location, Qe(t.options[r].value);
|
|
3141
3310
|
else
|
|
3142
|
-
|
|
3311
|
+
Xt(t) && Yt(t.style) || (Wt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : Qt(t) && Qe(t.children);
|
|
3143
3312
|
});
|
|
3144
3313
|
}
|
|
3145
|
-
function
|
|
3146
|
-
t === void 0 && (t = {}), t =
|
|
3147
|
-
var r = new
|
|
3314
|
+
function Fn(e, t) {
|
|
3315
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3316
|
+
var r = new Dn(e, t).parse();
|
|
3148
3317
|
if (r.err) {
|
|
3149
|
-
var n = SyntaxError(
|
|
3318
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3150
3319
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3151
3320
|
}
|
|
3152
|
-
return t?.captureLocation ||
|
|
3321
|
+
return t?.captureLocation || Qe(r.val), r.val;
|
|
3153
3322
|
}
|
|
3154
|
-
var
|
|
3323
|
+
var W;
|
|
3155
3324
|
(function(e) {
|
|
3156
3325
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3157
|
-
})(
|
|
3158
|
-
var
|
|
3326
|
+
})(W || (W = {}));
|
|
3327
|
+
var Ie = (
|
|
3159
3328
|
/** @class */
|
|
3160
3329
|
function(e) {
|
|
3161
|
-
|
|
3330
|
+
Ce(t, e);
|
|
3162
3331
|
function t(r, n, i) {
|
|
3163
3332
|
var s = e.call(this, r) || this;
|
|
3164
3333
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3167,155 +3336,155 @@ var He = (
|
|
|
3167
3336
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3168
3337
|
}, t;
|
|
3169
3338
|
}(Error)
|
|
3170
|
-
),
|
|
3339
|
+
), gt = (
|
|
3171
3340
|
/** @class */
|
|
3172
3341
|
function(e) {
|
|
3173
|
-
|
|
3342
|
+
Ce(t, e);
|
|
3174
3343
|
function t(r, n, i, s) {
|
|
3175
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3344
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3176
3345
|
}
|
|
3177
3346
|
return t;
|
|
3178
|
-
}(
|
|
3179
|
-
),
|
|
3347
|
+
}(Ie)
|
|
3348
|
+
), jn = (
|
|
3180
3349
|
/** @class */
|
|
3181
3350
|
function(e) {
|
|
3182
|
-
|
|
3351
|
+
Ce(t, e);
|
|
3183
3352
|
function t(r, n, i) {
|
|
3184
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3353
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3185
3354
|
}
|
|
3186
3355
|
return t;
|
|
3187
|
-
}(
|
|
3188
|
-
),
|
|
3356
|
+
}(Ie)
|
|
3357
|
+
), zn = (
|
|
3189
3358
|
/** @class */
|
|
3190
3359
|
function(e) {
|
|
3191
|
-
|
|
3360
|
+
Ce(t, e);
|
|
3192
3361
|
function t(r, n) {
|
|
3193
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3362
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3194
3363
|
}
|
|
3195
3364
|
return t;
|
|
3196
|
-
}(
|
|
3197
|
-
),
|
|
3365
|
+
}(Ie)
|
|
3366
|
+
), w;
|
|
3198
3367
|
(function(e) {
|
|
3199
3368
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3200
|
-
})(
|
|
3201
|
-
function
|
|
3369
|
+
})(w || (w = {}));
|
|
3370
|
+
function Vn(e) {
|
|
3202
3371
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3203
3372
|
var n = t[t.length - 1];
|
|
3204
|
-
return !n || n.type !==
|
|
3373
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3205
3374
|
}, []);
|
|
3206
3375
|
}
|
|
3207
|
-
function
|
|
3376
|
+
function Xn(e) {
|
|
3208
3377
|
return typeof e == "function";
|
|
3209
3378
|
}
|
|
3210
|
-
function
|
|
3211
|
-
if (e.length === 1 &&
|
|
3379
|
+
function ve(e, t, r, n, i, s, o) {
|
|
3380
|
+
if (e.length === 1 && lt(e[0]))
|
|
3212
3381
|
return [
|
|
3213
3382
|
{
|
|
3214
|
-
type:
|
|
3383
|
+
type: w.literal,
|
|
3215
3384
|
value: e[0].value
|
|
3216
3385
|
}
|
|
3217
3386
|
];
|
|
3218
|
-
for (var
|
|
3387
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3219
3388
|
var l = u[h];
|
|
3220
|
-
if (
|
|
3221
|
-
|
|
3222
|
-
type:
|
|
3389
|
+
if (lt(l)) {
|
|
3390
|
+
a.push({
|
|
3391
|
+
type: w.literal,
|
|
3223
3392
|
value: l.value
|
|
3224
3393
|
});
|
|
3225
3394
|
continue;
|
|
3226
3395
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
typeof s == "number" &&
|
|
3229
|
-
type:
|
|
3396
|
+
if (dn(l)) {
|
|
3397
|
+
typeof s == "number" && a.push({
|
|
3398
|
+
type: w.literal,
|
|
3230
3399
|
value: r.getNumberFormat(t).format(s)
|
|
3231
3400
|
});
|
|
3232
3401
|
continue;
|
|
3233
3402
|
}
|
|
3234
3403
|
var f = l.value;
|
|
3235
3404
|
if (!(i && f in i))
|
|
3236
|
-
throw new
|
|
3405
|
+
throw new zn(f, o);
|
|
3237
3406
|
var c = i[f];
|
|
3238
|
-
if (
|
|
3239
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3240
|
-
type: typeof c == "string" ?
|
|
3407
|
+
if (mn(l)) {
|
|
3408
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3409
|
+
type: typeof c == "string" ? w.literal : w.object,
|
|
3241
3410
|
value: c
|
|
3242
3411
|
});
|
|
3243
3412
|
continue;
|
|
3244
3413
|
}
|
|
3245
|
-
if (
|
|
3246
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3247
|
-
|
|
3248
|
-
type:
|
|
3414
|
+
if (Wt(l)) {
|
|
3415
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
|
|
3416
|
+
a.push({
|
|
3417
|
+
type: w.literal,
|
|
3249
3418
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3250
3419
|
});
|
|
3251
3420
|
continue;
|
|
3252
3421
|
}
|
|
3253
|
-
if (
|
|
3254
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3255
|
-
|
|
3256
|
-
type:
|
|
3422
|
+
if (Zt(l)) {
|
|
3423
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3424
|
+
a.push({
|
|
3425
|
+
type: w.literal,
|
|
3257
3426
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3258
3427
|
});
|
|
3259
3428
|
continue;
|
|
3260
3429
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3263
|
-
p && p.scale && (c = c * (p.scale || 1)),
|
|
3264
|
-
type:
|
|
3430
|
+
if (Xt(l)) {
|
|
3431
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
|
|
3432
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3433
|
+
type: w.literal,
|
|
3265
3434
|
value: r.getNumberFormat(t, p).format(c)
|
|
3266
3435
|
});
|
|
3267
3436
|
continue;
|
|
3268
3437
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
var
|
|
3271
|
-
if (!
|
|
3272
|
-
throw new
|
|
3273
|
-
var
|
|
3274
|
-
return
|
|
3438
|
+
if (Qt(l)) {
|
|
3439
|
+
var b = l.children, g = l.value, v = i[g];
|
|
3440
|
+
if (!Xn(v))
|
|
3441
|
+
throw new jn(g, "function", o);
|
|
3442
|
+
var T = ve(b, t, r, n, i, s), d = v(T.map(function(M) {
|
|
3443
|
+
return M.value;
|
|
3275
3444
|
}));
|
|
3276
|
-
Array.isArray(d) || (d = [d]),
|
|
3445
|
+
Array.isArray(d) || (d = [d]), a.push.apply(a, d.map(function(M) {
|
|
3277
3446
|
return {
|
|
3278
|
-
type: typeof
|
|
3279
|
-
value:
|
|
3447
|
+
type: typeof M == "string" ? w.literal : w.object,
|
|
3448
|
+
value: M
|
|
3280
3449
|
};
|
|
3281
3450
|
}));
|
|
3282
3451
|
}
|
|
3283
|
-
if (
|
|
3452
|
+
if (Jt(l)) {
|
|
3284
3453
|
var m = l.options[c] || l.options.other;
|
|
3285
3454
|
if (!m)
|
|
3286
|
-
throw new
|
|
3287
|
-
|
|
3455
|
+
throw new gt(l.value, c, Object.keys(l.options), o);
|
|
3456
|
+
a.push.apply(a, ve(m.value, t, r, n, i));
|
|
3288
3457
|
continue;
|
|
3289
3458
|
}
|
|
3290
|
-
if (
|
|
3459
|
+
if (qt(l)) {
|
|
3291
3460
|
var m = l.options["=".concat(c)];
|
|
3292
3461
|
if (!m) {
|
|
3293
3462
|
if (!Intl.PluralRules)
|
|
3294
|
-
throw new
|
|
3463
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3295
3464
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3296
|
-
`,
|
|
3465
|
+
`, W.MISSING_INTL_API, o);
|
|
3297
3466
|
var E = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3298
3467
|
m = l.options[E] || l.options.other;
|
|
3299
3468
|
}
|
|
3300
3469
|
if (!m)
|
|
3301
|
-
throw new
|
|
3302
|
-
|
|
3470
|
+
throw new gt(l.value, c, Object.keys(l.options), o);
|
|
3471
|
+
a.push.apply(a, ve(m.value, t, r, n, i, c - (l.offset || 0)));
|
|
3303
3472
|
continue;
|
|
3304
3473
|
}
|
|
3305
3474
|
}
|
|
3306
|
-
return
|
|
3475
|
+
return Vn(a);
|
|
3307
3476
|
}
|
|
3308
|
-
function
|
|
3309
|
-
return t ?
|
|
3310
|
-
return r[n] =
|
|
3477
|
+
function Wn(e, t) {
|
|
3478
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3479
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3311
3480
|
}, {})) : e;
|
|
3312
3481
|
}
|
|
3313
|
-
function
|
|
3482
|
+
function Zn(e, t) {
|
|
3314
3483
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3315
|
-
return r[n] =
|
|
3316
|
-
},
|
|
3484
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3485
|
+
}, B({}, e)) : e;
|
|
3317
3486
|
}
|
|
3318
|
-
function
|
|
3487
|
+
function Ue(e) {
|
|
3319
3488
|
return {
|
|
3320
3489
|
create: function() {
|
|
3321
3490
|
return {
|
|
@@ -3329,39 +3498,39 @@ function Ce(e) {
|
|
|
3329
3498
|
}
|
|
3330
3499
|
};
|
|
3331
3500
|
}
|
|
3332
|
-
function
|
|
3501
|
+
function Jn(e) {
|
|
3333
3502
|
return e === void 0 && (e = {
|
|
3334
3503
|
number: {},
|
|
3335
3504
|
dateTime: {},
|
|
3336
3505
|
pluralRules: {}
|
|
3337
3506
|
}), {
|
|
3338
|
-
getNumberFormat:
|
|
3507
|
+
getNumberFormat: Re(function() {
|
|
3339
3508
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3340
3509
|
r[n] = arguments[n];
|
|
3341
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3510
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3342
3511
|
}, {
|
|
3343
|
-
cache:
|
|
3344
|
-
strategy:
|
|
3512
|
+
cache: Ue(e.number),
|
|
3513
|
+
strategy: De.variadic
|
|
3345
3514
|
}),
|
|
3346
|
-
getDateTimeFormat:
|
|
3515
|
+
getDateTimeFormat: Re(function() {
|
|
3347
3516
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3348
3517
|
r[n] = arguments[n];
|
|
3349
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3518
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3350
3519
|
}, {
|
|
3351
|
-
cache:
|
|
3352
|
-
strategy:
|
|
3520
|
+
cache: Ue(e.dateTime),
|
|
3521
|
+
strategy: De.variadic
|
|
3353
3522
|
}),
|
|
3354
|
-
getPluralRules:
|
|
3523
|
+
getPluralRules: Re(function() {
|
|
3355
3524
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3356
3525
|
r[n] = arguments[n];
|
|
3357
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3526
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3358
3527
|
}, {
|
|
3359
|
-
cache:
|
|
3360
|
-
strategy:
|
|
3528
|
+
cache: Ue(e.pluralRules),
|
|
3529
|
+
strategy: De.variadic
|
|
3361
3530
|
})
|
|
3362
3531
|
};
|
|
3363
3532
|
}
|
|
3364
|
-
var
|
|
3533
|
+
var or = (
|
|
3365
3534
|
/** @class */
|
|
3366
3535
|
function() {
|
|
3367
3536
|
function e(t, r, n, i) {
|
|
@@ -3376,11 +3545,11 @@ var Ft = (
|
|
|
3376
3545
|
if (u.length === 1)
|
|
3377
3546
|
return u[0].value;
|
|
3378
3547
|
var l = u.reduce(function(f, c) {
|
|
3379
|
-
return !f.length || c.type !==
|
|
3548
|
+
return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3380
3549
|
}, []);
|
|
3381
3550
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3382
3551
|
}, this.formatToParts = function(h) {
|
|
3383
|
-
return
|
|
3552
|
+
return ve(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3384
3553
|
}, this.resolvedOptions = function() {
|
|
3385
3554
|
var h;
|
|
3386
3555
|
return {
|
|
@@ -3391,15 +3560,15 @@ var Ft = (
|
|
|
3391
3560
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3392
3561
|
if (this.message = t, !e.__parse)
|
|
3393
3562
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3394
|
-
var
|
|
3395
|
-
|
|
3396
|
-
var
|
|
3397
|
-
this.ast = e.__parse(t,
|
|
3563
|
+
var o = i || {};
|
|
3564
|
+
o.formatters;
|
|
3565
|
+
var a = sn(o, ["formatters"]);
|
|
3566
|
+
this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
|
|
3398
3567
|
} else
|
|
3399
3568
|
this.ast = t;
|
|
3400
3569
|
if (!Array.isArray(this.ast))
|
|
3401
3570
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3402
|
-
this.formats =
|
|
3571
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3403
3572
|
}
|
|
3404
3573
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3405
3574
|
get: function() {
|
|
@@ -3412,7 +3581,7 @@ var Ft = (
|
|
|
3412
3581
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3413
3582
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3414
3583
|
}
|
|
3415
|
-
}, e.__parse =
|
|
3584
|
+
}, e.__parse = Fn, e.formats = {
|
|
3416
3585
|
number: {
|
|
3417
3586
|
integer: {
|
|
3418
3587
|
maximumFractionDigits: 0
|
|
@@ -3473,7 +3642,7 @@ var Ft = (
|
|
|
3473
3642
|
}, e;
|
|
3474
3643
|
}()
|
|
3475
3644
|
);
|
|
3476
|
-
function
|
|
3645
|
+
function qn(e, t) {
|
|
3477
3646
|
if (t == null)
|
|
3478
3647
|
return;
|
|
3479
3648
|
if (t in e)
|
|
@@ -3494,101 +3663,101 @@ function On(e, t) {
|
|
|
3494
3663
|
n = void 0;
|
|
3495
3664
|
return n;
|
|
3496
3665
|
}
|
|
3497
|
-
const
|
|
3666
|
+
const N = {}, Qn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), ar = (e, t) => {
|
|
3498
3667
|
if (t == null)
|
|
3499
3668
|
return;
|
|
3500
|
-
if (t in
|
|
3501
|
-
return
|
|
3502
|
-
const r =
|
|
3669
|
+
if (t in N && e in N[t])
|
|
3670
|
+
return N[t][e];
|
|
3671
|
+
const r = le(t);
|
|
3503
3672
|
for (let n = 0; n < r.length; n++) {
|
|
3504
|
-
const i = r[n], s =
|
|
3673
|
+
const i = r[n], s = Kn(i, e);
|
|
3505
3674
|
if (s)
|
|
3506
|
-
return
|
|
3675
|
+
return Qn(e, t, s);
|
|
3507
3676
|
}
|
|
3508
3677
|
};
|
|
3509
|
-
let
|
|
3510
|
-
const
|
|
3511
|
-
function
|
|
3512
|
-
return
|
|
3678
|
+
let rt;
|
|
3679
|
+
const ue = Oe({});
|
|
3680
|
+
function Yn(e) {
|
|
3681
|
+
return rt[e] || null;
|
|
3513
3682
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return e in
|
|
3683
|
+
function ur(e) {
|
|
3684
|
+
return e in rt;
|
|
3516
3685
|
}
|
|
3517
|
-
function
|
|
3518
|
-
if (!
|
|
3686
|
+
function Kn(e, t) {
|
|
3687
|
+
if (!ur(e))
|
|
3519
3688
|
return null;
|
|
3520
|
-
const r =
|
|
3521
|
-
return
|
|
3689
|
+
const r = Yn(e);
|
|
3690
|
+
return qn(r, t);
|
|
3522
3691
|
}
|
|
3523
|
-
function
|
|
3692
|
+
function ei(e) {
|
|
3524
3693
|
if (e == null)
|
|
3525
3694
|
return;
|
|
3526
|
-
const t =
|
|
3695
|
+
const t = le(e);
|
|
3527
3696
|
for (let r = 0; r < t.length; r++) {
|
|
3528
3697
|
const n = t[r];
|
|
3529
|
-
if (
|
|
3698
|
+
if (ur(n))
|
|
3530
3699
|
return n;
|
|
3531
3700
|
}
|
|
3532
3701
|
}
|
|
3533
|
-
function
|
|
3534
|
-
delete
|
|
3702
|
+
function lr(e, ...t) {
|
|
3703
|
+
delete N[e], ue.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
|
|
3535
3704
|
}
|
|
3536
|
-
|
|
3537
|
-
[
|
|
3705
|
+
J(
|
|
3706
|
+
[ue],
|
|
3538
3707
|
([e]) => Object.keys(e)
|
|
3539
3708
|
);
|
|
3540
|
-
|
|
3541
|
-
const
|
|
3542
|
-
function
|
|
3543
|
-
|
|
3709
|
+
ue.subscribe((e) => rt = e);
|
|
3710
|
+
const xe = {};
|
|
3711
|
+
function ti(e, t) {
|
|
3712
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3544
3713
|
}
|
|
3545
|
-
function
|
|
3546
|
-
return
|
|
3714
|
+
function hr(e) {
|
|
3715
|
+
return xe[e];
|
|
3547
3716
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3550
|
-
const r =
|
|
3717
|
+
function ri(e) {
|
|
3718
|
+
return le(e).map((t) => {
|
|
3719
|
+
const r = hr(t);
|
|
3551
3720
|
return [t, r ? [...r] : []];
|
|
3552
3721
|
}).filter(([, t]) => t.length > 0);
|
|
3553
3722
|
}
|
|
3554
|
-
function
|
|
3555
|
-
return e == null ? !1 :
|
|
3723
|
+
function Be(e) {
|
|
3724
|
+
return e == null ? !1 : le(e).some(
|
|
3556
3725
|
(t) => {
|
|
3557
3726
|
var r;
|
|
3558
|
-
return (r =
|
|
3727
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
3559
3728
|
}
|
|
3560
3729
|
);
|
|
3561
3730
|
}
|
|
3562
|
-
function
|
|
3731
|
+
function ni(e, t) {
|
|
3563
3732
|
return Promise.all(
|
|
3564
|
-
t.map((n) => (
|
|
3565
|
-
).then((n) =>
|
|
3733
|
+
t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
|
|
3734
|
+
).then((n) => lr(e, ...n));
|
|
3566
3735
|
}
|
|
3567
|
-
const
|
|
3568
|
-
function
|
|
3569
|
-
if (!
|
|
3570
|
-
return e in
|
|
3571
|
-
const t =
|
|
3572
|
-
return
|
|
3736
|
+
const Y = {};
|
|
3737
|
+
function cr(e) {
|
|
3738
|
+
if (!Be(e))
|
|
3739
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3740
|
+
const t = ri(e);
|
|
3741
|
+
return Y[e] = Promise.all(
|
|
3573
3742
|
t.map(
|
|
3574
|
-
([r, n]) =>
|
|
3743
|
+
([r, n]) => ni(r, n)
|
|
3575
3744
|
)
|
|
3576
3745
|
).then(() => {
|
|
3577
|
-
if (
|
|
3578
|
-
return
|
|
3579
|
-
delete
|
|
3580
|
-
}),
|
|
3746
|
+
if (Be(e))
|
|
3747
|
+
return cr(e);
|
|
3748
|
+
delete Y[e];
|
|
3749
|
+
}), Y[e];
|
|
3581
3750
|
}
|
|
3582
|
-
var
|
|
3751
|
+
var bt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, oi = (e, t) => {
|
|
3583
3752
|
var r = {};
|
|
3584
3753
|
for (var n in e)
|
|
3585
|
-
|
|
3586
|
-
if (e != null &&
|
|
3587
|
-
for (var n of
|
|
3588
|
-
t.indexOf(n) < 0 &&
|
|
3754
|
+
ii.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3755
|
+
if (e != null && bt)
|
|
3756
|
+
for (var n of bt(e))
|
|
3757
|
+
t.indexOf(n) < 0 && si.call(e, n) && (r[n] = e[n]);
|
|
3589
3758
|
return r;
|
|
3590
3759
|
};
|
|
3591
|
-
const
|
|
3760
|
+
const ai = {
|
|
3592
3761
|
number: {
|
|
3593
3762
|
scientific: { notation: "scientific" },
|
|
3594
3763
|
engineering: { notation: "engineering" },
|
|
@@ -3618,183 +3787,183 @@ const kn = {
|
|
|
3618
3787
|
}
|
|
3619
3788
|
}
|
|
3620
3789
|
};
|
|
3621
|
-
function
|
|
3790
|
+
function ui({ locale: e, id: t }) {
|
|
3622
3791
|
console.warn(
|
|
3623
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3792
|
+
`[svelte-i18n] The message "${t}" was not found in "${le(
|
|
3624
3793
|
e
|
|
3625
|
-
).join('", "')}".${
|
|
3794
|
+
).join('", "')}".${Be(L()) ? `
|
|
3626
3795
|
|
|
3627
3796
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3628
3797
|
);
|
|
3629
3798
|
}
|
|
3630
|
-
const
|
|
3799
|
+
const li = {
|
|
3631
3800
|
fallbackLocale: null,
|
|
3632
3801
|
loadingDelay: 200,
|
|
3633
|
-
formats:
|
|
3802
|
+
formats: ai,
|
|
3634
3803
|
warnOnMissingMessages: !0,
|
|
3635
3804
|
handleMissingMessage: void 0,
|
|
3636
3805
|
ignoreTag: !0
|
|
3637
|
-
},
|
|
3638
|
-
function
|
|
3639
|
-
return
|
|
3806
|
+
}, ee = li;
|
|
3807
|
+
function Z() {
|
|
3808
|
+
return ee;
|
|
3640
3809
|
}
|
|
3641
|
-
function
|
|
3642
|
-
const t = e, { formats: r } = t, n =
|
|
3810
|
+
function hi(e) {
|
|
3811
|
+
const t = e, { formats: r } = t, n = oi(t, ["formats"]);
|
|
3643
3812
|
let i = e.fallbackLocale;
|
|
3644
3813
|
if (e.initialLocale)
|
|
3645
3814
|
try {
|
|
3646
|
-
|
|
3815
|
+
or.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3647
3816
|
} catch {
|
|
3648
3817
|
console.warn(
|
|
3649
3818
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3650
3819
|
);
|
|
3651
3820
|
}
|
|
3652
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3821
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ui : console.warn(
|
|
3653
3822
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3654
|
-
)), Object.assign(
|
|
3823
|
+
)), Object.assign(ee, n, { initialLocale: i }), r && ("number" in r && Object.assign(ee.formats.number, r.number), "date" in r && Object.assign(ee.formats.date, r.date), "time" in r && Object.assign(ee.formats.time, r.time)), k.set(i);
|
|
3655
3824
|
}
|
|
3656
|
-
const
|
|
3657
|
-
var
|
|
3825
|
+
const Ge = Oe(!1);
|
|
3826
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
3658
3827
|
for (var r in t || (t = {}))
|
|
3659
|
-
|
|
3660
|
-
if (
|
|
3661
|
-
for (var r of
|
|
3662
|
-
|
|
3828
|
+
di.call(t, r) && _t(e, r, t[r]);
|
|
3829
|
+
if (yt)
|
|
3830
|
+
for (var r of yt(t))
|
|
3831
|
+
pi.call(t, r) && _t(e, r, t[r]);
|
|
3663
3832
|
return e;
|
|
3664
|
-
},
|
|
3665
|
-
let
|
|
3666
|
-
const
|
|
3667
|
-
function
|
|
3833
|
+
}, bi = (e, t) => fi(e, mi(t));
|
|
3834
|
+
let Ye;
|
|
3835
|
+
const Ae = Oe(null);
|
|
3836
|
+
function Et(e) {
|
|
3668
3837
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3669
3838
|
}
|
|
3670
|
-
function
|
|
3671
|
-
const r =
|
|
3672
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3839
|
+
function le(e, t = Z().fallbackLocale) {
|
|
3840
|
+
const r = Et(e);
|
|
3841
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
3673
3842
|
}
|
|
3674
|
-
function
|
|
3675
|
-
return
|
|
3843
|
+
function L() {
|
|
3844
|
+
return Ye ?? void 0;
|
|
3676
3845
|
}
|
|
3677
|
-
|
|
3678
|
-
|
|
3846
|
+
Ae.subscribe((e) => {
|
|
3847
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3679
3848
|
});
|
|
3680
|
-
const
|
|
3681
|
-
if (e &&
|
|
3682
|
-
const { loadingDelay: t } =
|
|
3849
|
+
const yi = (e) => {
|
|
3850
|
+
if (e && ei(e) && Be(e)) {
|
|
3851
|
+
const { loadingDelay: t } = Z();
|
|
3683
3852
|
let r;
|
|
3684
|
-
return typeof window < "u" &&
|
|
3685
|
-
() =>
|
|
3853
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3854
|
+
() => Ge.set(!0),
|
|
3686
3855
|
t
|
|
3687
|
-
) :
|
|
3688
|
-
|
|
3856
|
+
) : Ge.set(!0), cr(e).then(() => {
|
|
3857
|
+
Ae.set(e);
|
|
3689
3858
|
}).finally(() => {
|
|
3690
|
-
clearTimeout(r),
|
|
3859
|
+
clearTimeout(r), Ge.set(!1);
|
|
3691
3860
|
});
|
|
3692
3861
|
}
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3695
|
-
set:
|
|
3696
|
-
}),
|
|
3862
|
+
return Ae.set(e);
|
|
3863
|
+
}, k = bi(gi({}, Ae), {
|
|
3864
|
+
set: yi
|
|
3865
|
+
}), Ne = (e) => {
|
|
3697
3866
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3698
3867
|
return (n) => {
|
|
3699
3868
|
const i = JSON.stringify(n);
|
|
3700
3869
|
return i in t ? t[i] : t[i] = e(n);
|
|
3701
3870
|
};
|
|
3702
3871
|
};
|
|
3703
|
-
var
|
|
3872
|
+
var _i = Object.defineProperty, Pe = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
3704
3873
|
for (var r in t || (t = {}))
|
|
3705
|
-
|
|
3706
|
-
if (
|
|
3707
|
-
for (var r of
|
|
3708
|
-
|
|
3874
|
+
fr.call(t, r) && vt(e, r, t[r]);
|
|
3875
|
+
if (Pe)
|
|
3876
|
+
for (var r of Pe(t))
|
|
3877
|
+
mr.call(t, r) && vt(e, r, t[r]);
|
|
3709
3878
|
return e;
|
|
3710
|
-
},
|
|
3879
|
+
}, q = (e, t) => {
|
|
3711
3880
|
var r = {};
|
|
3712
3881
|
for (var n in e)
|
|
3713
|
-
|
|
3714
|
-
if (e != null &&
|
|
3715
|
-
for (var n of
|
|
3716
|
-
t.indexOf(n) < 0 &&
|
|
3882
|
+
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3883
|
+
if (e != null && Pe)
|
|
3884
|
+
for (var n of Pe(e))
|
|
3885
|
+
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
|
3717
3886
|
return r;
|
|
3718
3887
|
};
|
|
3719
|
-
const
|
|
3720
|
-
const { formats: r } =
|
|
3888
|
+
const se = (e, t) => {
|
|
3889
|
+
const { formats: r } = Z();
|
|
3721
3890
|
if (e in r && t in r[e])
|
|
3722
3891
|
return r[e][t];
|
|
3723
3892
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3724
|
-
},
|
|
3893
|
+
}, Ei = Ne(
|
|
3725
3894
|
(e) => {
|
|
3726
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3895
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3727
3896
|
if (r == null)
|
|
3728
3897
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3729
|
-
return n && (i =
|
|
3898
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3730
3899
|
}
|
|
3731
|
-
),
|
|
3900
|
+
), vi = Ne(
|
|
3732
3901
|
(e) => {
|
|
3733
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3902
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3734
3903
|
if (r == null)
|
|
3735
3904
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3736
|
-
return n ? i =
|
|
3905
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3737
3906
|
}
|
|
3738
|
-
),
|
|
3907
|
+
), xi = Ne(
|
|
3739
3908
|
(e) => {
|
|
3740
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3909
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3741
3910
|
if (r == null)
|
|
3742
3911
|
throw new Error(
|
|
3743
3912
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3744
3913
|
);
|
|
3745
|
-
return n ? i =
|
|
3914
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3746
3915
|
}
|
|
3747
|
-
),
|
|
3916
|
+
), Ti = (e = {}) => {
|
|
3748
3917
|
var t = e, {
|
|
3749
|
-
locale: r =
|
|
3750
|
-
} = t, n =
|
|
3918
|
+
locale: r = L()
|
|
3919
|
+
} = t, n = q(t, [
|
|
3751
3920
|
"locale"
|
|
3752
3921
|
]);
|
|
3753
|
-
return
|
|
3754
|
-
},
|
|
3922
|
+
return Ei(nt({ locale: r }, n));
|
|
3923
|
+
}, Hi = (e = {}) => {
|
|
3755
3924
|
var t = e, {
|
|
3756
|
-
locale: r =
|
|
3757
|
-
} = t, n =
|
|
3925
|
+
locale: r = L()
|
|
3926
|
+
} = t, n = q(t, [
|
|
3758
3927
|
"locale"
|
|
3759
3928
|
]);
|
|
3760
|
-
return
|
|
3761
|
-
},
|
|
3929
|
+
return vi(nt({ locale: r }, n));
|
|
3930
|
+
}, wi = (e = {}) => {
|
|
3762
3931
|
var t = e, {
|
|
3763
|
-
locale: r =
|
|
3764
|
-
} = t, n =
|
|
3932
|
+
locale: r = L()
|
|
3933
|
+
} = t, n = q(t, [
|
|
3765
3934
|
"locale"
|
|
3766
3935
|
]);
|
|
3767
|
-
return
|
|
3768
|
-
},
|
|
3936
|
+
return xi(nt({ locale: r }, n));
|
|
3937
|
+
}, Si = Ne(
|
|
3769
3938
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3770
|
-
(e, t =
|
|
3771
|
-
ignoreTag:
|
|
3939
|
+
(e, t = L()) => new or(e, t, Z().formats, {
|
|
3940
|
+
ignoreTag: Z().ignoreTag
|
|
3772
3941
|
})
|
|
3773
|
-
),
|
|
3942
|
+
), Bi = (e, t = {}) => {
|
|
3774
3943
|
var r, n, i, s;
|
|
3775
|
-
let
|
|
3776
|
-
typeof e == "object" && (
|
|
3944
|
+
let o = t;
|
|
3945
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3777
3946
|
const {
|
|
3778
|
-
values:
|
|
3779
|
-
locale: h =
|
|
3947
|
+
values: a,
|
|
3948
|
+
locale: h = L(),
|
|
3780
3949
|
default: u
|
|
3781
|
-
} =
|
|
3950
|
+
} = o;
|
|
3782
3951
|
if (h == null)
|
|
3783
3952
|
throw new Error(
|
|
3784
3953
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3785
3954
|
);
|
|
3786
|
-
let l =
|
|
3955
|
+
let l = ar(e, h);
|
|
3787
3956
|
if (!l)
|
|
3788
|
-
l = (s = (i = (n = (r =
|
|
3957
|
+
l = (s = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3789
3958
|
else if (typeof l != "string")
|
|
3790
3959
|
return console.warn(
|
|
3791
3960
|
`[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.`
|
|
3792
3961
|
), l;
|
|
3793
|
-
if (!
|
|
3962
|
+
if (!a)
|
|
3794
3963
|
return l;
|
|
3795
3964
|
let f = l;
|
|
3796
3965
|
try {
|
|
3797
|
-
f =
|
|
3966
|
+
f = Si(l, h).format(a);
|
|
3798
3967
|
} catch (c) {
|
|
3799
3968
|
c instanceof Error && console.warn(
|
|
3800
3969
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3802,18 +3971,18 @@ const ee = (e, t) => {
|
|
|
3802
3971
|
);
|
|
3803
3972
|
}
|
|
3804
3973
|
return f;
|
|
3805
|
-
},
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
function
|
|
3974
|
+
}, Ai = (e, t) => wi(t).format(e), Pi = (e, t) => Hi(t).format(e), Oi = (e, t) => Ti(t).format(e), Ci = (e, t = L()) => ar(e, t), Ii = J([k, ue], () => Bi);
|
|
3975
|
+
J([k], () => Ai);
|
|
3976
|
+
J([k], () => Pi);
|
|
3977
|
+
J([k], () => Oi);
|
|
3978
|
+
J([k, ue], () => Ci);
|
|
3979
|
+
function Ni(e, t) {
|
|
3811
3980
|
if (e) {
|
|
3812
3981
|
const r = document.createElement("style");
|
|
3813
3982
|
r.innerHTML = t, e.appendChild(r);
|
|
3814
3983
|
}
|
|
3815
3984
|
}
|
|
3816
|
-
function
|
|
3985
|
+
function Li(e, t) {
|
|
3817
3986
|
if (!e || !t)
|
|
3818
3987
|
return;
|
|
3819
3988
|
const r = new URL(t);
|
|
@@ -3824,7 +3993,7 @@ function di(e, t) {
|
|
|
3824
3993
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3825
3994
|
});
|
|
3826
3995
|
}
|
|
3827
|
-
function
|
|
3996
|
+
function Mi(e, t, r) {
|
|
3828
3997
|
if (window.emMessageBus) {
|
|
3829
3998
|
const n = document.createElement("style");
|
|
3830
3999
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3832,15 +4001,15 @@ function pi(e, t, r) {
|
|
|
3832
4001
|
});
|
|
3833
4002
|
}
|
|
3834
4003
|
}
|
|
3835
|
-
function
|
|
3836
|
-
|
|
4004
|
+
function xt(e, t) {
|
|
4005
|
+
lr(e, t);
|
|
3837
4006
|
}
|
|
3838
|
-
function
|
|
3839
|
-
|
|
4007
|
+
function $i(e) {
|
|
4008
|
+
hi({
|
|
3840
4009
|
fallbackLocale: "en"
|
|
3841
|
-
}),
|
|
4010
|
+
}), k.set(e);
|
|
3842
4011
|
}
|
|
3843
|
-
const
|
|
4012
|
+
const Tt = {
|
|
3844
4013
|
en: {
|
|
3845
4014
|
errorGeneralTitle: "Error Occurred",
|
|
3846
4015
|
errorGeneralText: "Something went wrong",
|
|
@@ -3894,74 +4063,74 @@ const dt = {
|
|
|
3894
4063
|
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."
|
|
3895
4064
|
}
|
|
3896
4065
|
};
|
|
3897
|
-
function
|
|
3898
|
-
|
|
4066
|
+
function Ri(e) {
|
|
4067
|
+
yr(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.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-typography, var(--emw--color-white, #ffffff));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-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
|
|
3899
4068
|
}
|
|
3900
|
-
const
|
|
3901
|
-
function
|
|
4069
|
+
const Di = (e) => ({}), Ht = (e) => ({}), ki = (e) => ({}), wt = (e) => ({}), Ui = (e) => ({}), St = (e) => ({}), Gi = (e) => ({}), Bt = (e) => ({ class: "CashierErrorIcon" });
|
|
4070
|
+
function At(e) {
|
|
3902
4071
|
let t, r;
|
|
3903
4072
|
return {
|
|
3904
4073
|
c() {
|
|
3905
|
-
t =
|
|
3906
|
-
e[0]}/error-general-icon.png`) ||
|
|
4074
|
+
t = A("ui-image"), ot(t.src, r = `${/*assetsurl*/
|
|
4075
|
+
e[0]}/error-general-icon.png`) || ge(t, "src", r), ge(t, "width", "300px"), ge(t, "alt", "error");
|
|
3907
4076
|
},
|
|
3908
4077
|
m(n, i) {
|
|
3909
|
-
|
|
4078
|
+
D(n, t, i);
|
|
3910
4079
|
},
|
|
3911
4080
|
p(n, i) {
|
|
3912
4081
|
i & /*assetsurl*/
|
|
3913
|
-
1 && !
|
|
3914
|
-
n[0]}/error-general-icon.png`) &&
|
|
4082
|
+
1 && !ot(t.src, r = `${/*assetsurl*/
|
|
4083
|
+
n[0]}/error-general-icon.png`) && ge(t, "src", r);
|
|
3915
4084
|
},
|
|
3916
4085
|
d(n) {
|
|
3917
4086
|
n && C(t);
|
|
3918
4087
|
}
|
|
3919
4088
|
};
|
|
3920
4089
|
}
|
|
3921
|
-
function
|
|
4090
|
+
function Fi(e) {
|
|
3922
4091
|
let t, r = (
|
|
3923
4092
|
/*assetsurl*/
|
|
3924
|
-
e[0] &&
|
|
4093
|
+
e[0] && At(e)
|
|
3925
4094
|
);
|
|
3926
4095
|
return {
|
|
3927
4096
|
c() {
|
|
3928
|
-
r && r.c(), t =
|
|
4097
|
+
r && r.c(), t = Er();
|
|
3929
4098
|
},
|
|
3930
4099
|
m(n, i) {
|
|
3931
|
-
r && r.m(n, i),
|
|
4100
|
+
r && r.m(n, i), D(n, t, i);
|
|
3932
4101
|
},
|
|
3933
4102
|
p(n, i) {
|
|
3934
4103
|
/*assetsurl*/
|
|
3935
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
4104
|
+
n[0] ? r ? r.p(n, i) : (r = At(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3936
4105
|
},
|
|
3937
4106
|
d(n) {
|
|
3938
4107
|
n && C(t), r && r.d(n);
|
|
3939
4108
|
}
|
|
3940
4109
|
};
|
|
3941
4110
|
}
|
|
3942
|
-
function
|
|
4111
|
+
function ji(e) {
|
|
3943
4112
|
let t, r = (
|
|
3944
4113
|
/*$_*/
|
|
3945
4114
|
e[3]("errorGeneralTitle") + ""
|
|
3946
4115
|
), n;
|
|
3947
4116
|
return {
|
|
3948
4117
|
c() {
|
|
3949
|
-
t =
|
|
4118
|
+
t = A("span"), n = ae(r), $(t, "class", "CashierErrorTitle");
|
|
3950
4119
|
},
|
|
3951
4120
|
m(i, s) {
|
|
3952
|
-
|
|
4121
|
+
D(i, t, s), O(t, n);
|
|
3953
4122
|
},
|
|
3954
4123
|
p(i, s) {
|
|
3955
4124
|
s & /*$_*/
|
|
3956
4125
|
8 && r !== (r = /*$_*/
|
|
3957
|
-
i[3]("errorGeneralTitle") + "") &&
|
|
4126
|
+
i[3]("errorGeneralTitle") + "") && tt(n, r);
|
|
3958
4127
|
},
|
|
3959
4128
|
d(i) {
|
|
3960
4129
|
i && C(t);
|
|
3961
4130
|
}
|
|
3962
4131
|
};
|
|
3963
4132
|
}
|
|
3964
|
-
function
|
|
4133
|
+
function zi(e) {
|
|
3965
4134
|
let t, r = (
|
|
3966
4135
|
/*$_*/
|
|
3967
4136
|
e[3](`${/*errorcode*/
|
|
@@ -3969,246 +4138,246 @@ function Hi(e) {
|
|
|
3969
4138
|
), n;
|
|
3970
4139
|
return {
|
|
3971
4140
|
c() {
|
|
3972
|
-
t =
|
|
4141
|
+
t = A("span"), n = ae(r), $(t, "class", "CashierErrorText");
|
|
3973
4142
|
},
|
|
3974
4143
|
m(i, s) {
|
|
3975
|
-
|
|
4144
|
+
D(i, t, s), O(t, n);
|
|
3976
4145
|
},
|
|
3977
4146
|
p(i, s) {
|
|
3978
4147
|
s & /*$_, errorcode*/
|
|
3979
4148
|
10 && r !== (r = /*$_*/
|
|
3980
4149
|
i[3](`${/*errorcode*/
|
|
3981
|
-
i[1] || "errorGeneralText"}`) + "") &&
|
|
4150
|
+
i[1] || "errorGeneralText"}`) + "") && tt(n, r);
|
|
3982
4151
|
},
|
|
3983
4152
|
d(i) {
|
|
3984
4153
|
i && C(t);
|
|
3985
4154
|
}
|
|
3986
4155
|
};
|
|
3987
4156
|
}
|
|
3988
|
-
function
|
|
4157
|
+
function Vi(e) {
|
|
3989
4158
|
let t, r, n = (
|
|
3990
4159
|
/*$_*/
|
|
3991
4160
|
e[3]("errorGeneralButton") + ""
|
|
3992
|
-
), i, s,
|
|
4161
|
+
), i, s, o;
|
|
3993
4162
|
return {
|
|
3994
4163
|
c() {
|
|
3995
|
-
t =
|
|
4164
|
+
t = A("button"), r = A("span"), i = ae(n), $(t, "class", "CashierErrorButton");
|
|
3996
4165
|
},
|
|
3997
|
-
m(
|
|
3998
|
-
|
|
4166
|
+
m(a, h) {
|
|
4167
|
+
D(a, t, h), O(t, r), O(r, i), s || (o = vr(
|
|
3999
4168
|
t,
|
|
4000
4169
|
"click",
|
|
4001
4170
|
/*close*/
|
|
4002
4171
|
e[4]
|
|
4003
4172
|
), s = !0);
|
|
4004
4173
|
},
|
|
4005
|
-
p(
|
|
4174
|
+
p(a, h) {
|
|
4006
4175
|
h & /*$_*/
|
|
4007
4176
|
8 && n !== (n = /*$_*/
|
|
4008
|
-
|
|
4177
|
+
a[3]("errorGeneralButton") + "") && tt(i, n);
|
|
4009
4178
|
},
|
|
4010
|
-
d(
|
|
4011
|
-
|
|
4179
|
+
d(a) {
|
|
4180
|
+
a && C(t), s = !1, o();
|
|
4012
4181
|
}
|
|
4013
4182
|
};
|
|
4014
4183
|
}
|
|
4015
|
-
function
|
|
4016
|
-
let t, r, n, i, s,
|
|
4017
|
-
const
|
|
4184
|
+
function Xi(e) {
|
|
4185
|
+
let t, r, n, i, s, o;
|
|
4186
|
+
const a = (
|
|
4018
4187
|
/*#slots*/
|
|
4019
4188
|
e[11].icon
|
|
4020
|
-
), h =
|
|
4021
|
-
|
|
4189
|
+
), h = fe(
|
|
4190
|
+
a,
|
|
4022
4191
|
e,
|
|
4023
4192
|
/*$$scope*/
|
|
4024
4193
|
e[10],
|
|
4025
|
-
|
|
4026
|
-
), u = h ||
|
|
4194
|
+
Bt
|
|
4195
|
+
), u = h || Fi(e), l = (
|
|
4027
4196
|
/*#slots*/
|
|
4028
4197
|
e[11].title
|
|
4029
|
-
), f =
|
|
4198
|
+
), f = fe(
|
|
4030
4199
|
l,
|
|
4031
4200
|
e,
|
|
4032
4201
|
/*$$scope*/
|
|
4033
4202
|
e[10],
|
|
4034
|
-
|
|
4035
|
-
), c = f ||
|
|
4203
|
+
St
|
|
4204
|
+
), c = f || ji(e), p = (
|
|
4036
4205
|
/*#slots*/
|
|
4037
4206
|
e[11].text
|
|
4038
|
-
),
|
|
4207
|
+
), b = fe(
|
|
4039
4208
|
p,
|
|
4040
4209
|
e,
|
|
4041
4210
|
/*$$scope*/
|
|
4042
4211
|
e[10],
|
|
4043
|
-
|
|
4044
|
-
),
|
|
4212
|
+
wt
|
|
4213
|
+
), g = b || zi(e), v = (
|
|
4045
4214
|
/*#slots*/
|
|
4046
4215
|
e[11].button
|
|
4047
|
-
),
|
|
4048
|
-
|
|
4216
|
+
), T = fe(
|
|
4217
|
+
v,
|
|
4049
4218
|
e,
|
|
4050
4219
|
/*$$scope*/
|
|
4051
4220
|
e[10],
|
|
4052
|
-
|
|
4053
|
-
), d =
|
|
4221
|
+
Ht
|
|
4222
|
+
), d = T || Vi(e);
|
|
4054
4223
|
return {
|
|
4055
4224
|
c() {
|
|
4056
|
-
t =
|
|
4225
|
+
t = A("div"), r = A("div"), u && u.c(), n = Le(), c && c.c(), i = Le(), g && g.c(), s = Le(), d && d.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
|
|
4057
4226
|
},
|
|
4058
4227
|
m(m, E) {
|
|
4059
|
-
|
|
4228
|
+
D(m, t, E), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), g && g.m(r, null), O(r, s), d && d.m(r, null), e[12](t), o = !0;
|
|
4060
4229
|
},
|
|
4061
4230
|
p(m, [E]) {
|
|
4062
|
-
h ? h.p && (!
|
|
4063
|
-
1024) &&
|
|
4231
|
+
h ? h.p && (!o || E & /*$$scope*/
|
|
4232
|
+
1024) && de(
|
|
4064
4233
|
h,
|
|
4065
|
-
|
|
4234
|
+
a,
|
|
4066
4235
|
m,
|
|
4067
4236
|
/*$$scope*/
|
|
4068
4237
|
m[10],
|
|
4069
|
-
|
|
4070
|
-
|
|
4238
|
+
o ? me(
|
|
4239
|
+
a,
|
|
4071
4240
|
/*$$scope*/
|
|
4072
4241
|
m[10],
|
|
4073
4242
|
E,
|
|
4074
|
-
|
|
4075
|
-
) :
|
|
4243
|
+
Gi
|
|
4244
|
+
) : pe(
|
|
4076
4245
|
/*$$scope*/
|
|
4077
4246
|
m[10]
|
|
4078
4247
|
),
|
|
4079
|
-
|
|
4080
|
-
) : u && u.p && (!
|
|
4081
|
-
1) && u.p(m,
|
|
4082
|
-
1024) &&
|
|
4248
|
+
Bt
|
|
4249
|
+
) : u && u.p && (!o || E & /*assetsurl*/
|
|
4250
|
+
1) && u.p(m, o ? E : -1), f ? f.p && (!o || E & /*$$scope*/
|
|
4251
|
+
1024) && de(
|
|
4083
4252
|
f,
|
|
4084
4253
|
l,
|
|
4085
4254
|
m,
|
|
4086
4255
|
/*$$scope*/
|
|
4087
4256
|
m[10],
|
|
4088
|
-
|
|
4257
|
+
o ? me(
|
|
4089
4258
|
l,
|
|
4090
4259
|
/*$$scope*/
|
|
4091
4260
|
m[10],
|
|
4092
4261
|
E,
|
|
4093
|
-
|
|
4094
|
-
) :
|
|
4262
|
+
Ui
|
|
4263
|
+
) : pe(
|
|
4095
4264
|
/*$$scope*/
|
|
4096
4265
|
m[10]
|
|
4097
4266
|
),
|
|
4098
|
-
|
|
4099
|
-
) : c && c.p && (!
|
|
4100
|
-
8) && c.p(m,
|
|
4101
|
-
1024) &&
|
|
4102
|
-
|
|
4267
|
+
St
|
|
4268
|
+
) : c && c.p && (!o || E & /*$_*/
|
|
4269
|
+
8) && c.p(m, o ? E : -1), b ? b.p && (!o || E & /*$$scope*/
|
|
4270
|
+
1024) && de(
|
|
4271
|
+
b,
|
|
4103
4272
|
p,
|
|
4104
4273
|
m,
|
|
4105
4274
|
/*$$scope*/
|
|
4106
4275
|
m[10],
|
|
4107
|
-
|
|
4276
|
+
o ? me(
|
|
4108
4277
|
p,
|
|
4109
4278
|
/*$$scope*/
|
|
4110
4279
|
m[10],
|
|
4111
4280
|
E,
|
|
4112
|
-
|
|
4113
|
-
) :
|
|
4281
|
+
ki
|
|
4282
|
+
) : pe(
|
|
4114
4283
|
/*$$scope*/
|
|
4115
4284
|
m[10]
|
|
4116
4285
|
),
|
|
4117
|
-
|
|
4118
|
-
) :
|
|
4119
|
-
10) &&
|
|
4120
|
-
1024) &&
|
|
4121
|
-
w,
|
|
4286
|
+
wt
|
|
4287
|
+
) : g && g.p && (!o || E & /*$_, errorcode*/
|
|
4288
|
+
10) && g.p(m, o ? E : -1), T ? T.p && (!o || E & /*$$scope*/
|
|
4289
|
+
1024) && de(
|
|
4122
4290
|
T,
|
|
4291
|
+
v,
|
|
4123
4292
|
m,
|
|
4124
4293
|
/*$$scope*/
|
|
4125
4294
|
m[10],
|
|
4126
|
-
|
|
4127
|
-
|
|
4295
|
+
o ? me(
|
|
4296
|
+
v,
|
|
4128
4297
|
/*$$scope*/
|
|
4129
4298
|
m[10],
|
|
4130
4299
|
E,
|
|
4131
|
-
|
|
4132
|
-
) :
|
|
4300
|
+
Di
|
|
4301
|
+
) : pe(
|
|
4133
4302
|
/*$$scope*/
|
|
4134
4303
|
m[10]
|
|
4135
4304
|
),
|
|
4136
|
-
|
|
4137
|
-
) : d && d.p && (!
|
|
4138
|
-
8) && d.p(m,
|
|
4305
|
+
Ht
|
|
4306
|
+
) : d && d.p && (!o || E & /*$_*/
|
|
4307
|
+
8) && d.p(m, o ? E : -1);
|
|
4139
4308
|
},
|
|
4140
4309
|
i(m) {
|
|
4141
|
-
|
|
4310
|
+
o || (K(u, m), K(c, m), K(g, m), K(d, m), o = !0);
|
|
4142
4311
|
},
|
|
4143
4312
|
o(m) {
|
|
4144
|
-
|
|
4313
|
+
be(u, m), be(c, m), be(g, m), be(d, m), o = !1;
|
|
4145
4314
|
},
|
|
4146
4315
|
d(m) {
|
|
4147
|
-
m && C(t), u && u.d(m), c && c.d(m),
|
|
4316
|
+
m && C(t), u && u.d(m), c && c.d(m), g && g.d(m), d && d.d(m), e[12](null);
|
|
4148
4317
|
}
|
|
4149
4318
|
};
|
|
4150
4319
|
}
|
|
4151
|
-
function
|
|
4320
|
+
function Wi(e, t, r) {
|
|
4152
4321
|
let n;
|
|
4153
|
-
|
|
4154
|
-
let { $$slots: i = {}, $$scope: s } = t, { assetsurl:
|
|
4155
|
-
const
|
|
4156
|
-
|
|
4157
|
-
},
|
|
4322
|
+
br(e, Ii, (d) => r(3, n = d));
|
|
4323
|
+
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: o = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c = "" } = t, p;
|
|
4324
|
+
const b = () => {
|
|
4325
|
+
$i(a);
|
|
4326
|
+
}, g = () => {
|
|
4158
4327
|
fetch(f).then((m) => m.json()).then((m) => {
|
|
4159
4328
|
Object.keys(m).forEach((E) => {
|
|
4160
|
-
|
|
4329
|
+
xt(E, m[E]);
|
|
4161
4330
|
});
|
|
4162
4331
|
}).catch((m) => {
|
|
4163
4332
|
console.error(m);
|
|
4164
4333
|
});
|
|
4165
4334
|
};
|
|
4166
|
-
Object.keys(
|
|
4167
|
-
|
|
4335
|
+
Object.keys(Tt).forEach((d) => {
|
|
4336
|
+
xt(d, Tt[d]);
|
|
4168
4337
|
});
|
|
4169
|
-
const
|
|
4338
|
+
const v = () => {
|
|
4170
4339
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4171
4340
|
};
|
|
4172
|
-
|
|
4341
|
+
Pr(() => () => {
|
|
4173
4342
|
});
|
|
4174
|
-
function
|
|
4175
|
-
|
|
4343
|
+
function T(d) {
|
|
4344
|
+
je[d ? "unshift" : "push"](() => {
|
|
4176
4345
|
p = d, r(2, p);
|
|
4177
4346
|
});
|
|
4178
4347
|
}
|
|
4179
4348
|
return e.$$set = (d) => {
|
|
4180
|
-
"assetsurl" in d && r(0,
|
|
4349
|
+
"assetsurl" in d && r(0, o = d.assetsurl), "lang" in d && r(5, a = d.lang), "errorcode" in d && r(1, h = d.errorcode), "clientstyling" in d && r(6, u = d.clientstyling), "clientstylingurl" in d && r(7, l = d.clientstylingurl), "translationurl" in d && r(8, f = d.translationurl), "mbsource" in d && r(9, c = d.mbsource), "$$scope" in d && r(10, s = d.$$scope);
|
|
4181
4350
|
}, e.$$.update = () => {
|
|
4182
4351
|
e.$$.dirty & /*lang*/
|
|
4183
|
-
32 &&
|
|
4184
|
-
68 && u && p &&
|
|
4185
|
-
132 && l && p &&
|
|
4186
|
-
516 && c && p &&
|
|
4187
|
-
256 && f &&
|
|
4352
|
+
32 && a && b(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4353
|
+
68 && u && p && Ni(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4354
|
+
132 && l && p && Li(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4355
|
+
516 && c && p && Mi(p, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4356
|
+
256 && f && g();
|
|
4188
4357
|
}, [
|
|
4189
|
-
|
|
4358
|
+
o,
|
|
4190
4359
|
h,
|
|
4191
4360
|
p,
|
|
4192
4361
|
n,
|
|
4193
|
-
|
|
4194
|
-
|
|
4362
|
+
v,
|
|
4363
|
+
a,
|
|
4195
4364
|
u,
|
|
4196
4365
|
l,
|
|
4197
4366
|
f,
|
|
4198
4367
|
c,
|
|
4199
4368
|
s,
|
|
4200
4369
|
i,
|
|
4201
|
-
|
|
4370
|
+
T
|
|
4202
4371
|
];
|
|
4203
4372
|
}
|
|
4204
|
-
class
|
|
4373
|
+
class dr extends kr {
|
|
4205
4374
|
constructor(t) {
|
|
4206
|
-
super(),
|
|
4375
|
+
super(), Rr(
|
|
4207
4376
|
this,
|
|
4208
4377
|
t,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4378
|
+
Wi,
|
|
4379
|
+
Xi,
|
|
4380
|
+
Ct,
|
|
4212
4381
|
{
|
|
4213
4382
|
assetsurl: 0,
|
|
4214
4383
|
lang: 5,
|
|
@@ -4218,92 +4387,100 @@ class qt extends _r {
|
|
|
4218
4387
|
translationurl: 8,
|
|
4219
4388
|
mbsource: 9
|
|
4220
4389
|
},
|
|
4221
|
-
|
|
4390
|
+
Ri
|
|
4222
4391
|
);
|
|
4223
4392
|
}
|
|
4224
4393
|
get assetsurl() {
|
|
4225
4394
|
return this.$$.ctx[0];
|
|
4226
4395
|
}
|
|
4227
4396
|
set assetsurl(t) {
|
|
4228
|
-
this.$$set({ assetsurl: t }),
|
|
4397
|
+
this.$$set({ assetsurl: t }), P();
|
|
4229
4398
|
}
|
|
4230
4399
|
get lang() {
|
|
4231
4400
|
return this.$$.ctx[5];
|
|
4232
4401
|
}
|
|
4233
4402
|
set lang(t) {
|
|
4234
|
-
this.$$set({ lang: t }),
|
|
4403
|
+
this.$$set({ lang: t }), P();
|
|
4235
4404
|
}
|
|
4236
4405
|
get errorcode() {
|
|
4237
4406
|
return this.$$.ctx[1];
|
|
4238
4407
|
}
|
|
4239
4408
|
set errorcode(t) {
|
|
4240
|
-
this.$$set({ errorcode: t }),
|
|
4409
|
+
this.$$set({ errorcode: t }), P();
|
|
4241
4410
|
}
|
|
4242
4411
|
get clientstyling() {
|
|
4243
4412
|
return this.$$.ctx[6];
|
|
4244
4413
|
}
|
|
4245
4414
|
set clientstyling(t) {
|
|
4246
|
-
this.$$set({ clientstyling: t }),
|
|
4415
|
+
this.$$set({ clientstyling: t }), P();
|
|
4247
4416
|
}
|
|
4248
4417
|
get clientstylingurl() {
|
|
4249
4418
|
return this.$$.ctx[7];
|
|
4250
4419
|
}
|
|
4251
4420
|
set clientstylingurl(t) {
|
|
4252
|
-
this.$$set({ clientstylingurl: t }),
|
|
4421
|
+
this.$$set({ clientstylingurl: t }), P();
|
|
4253
4422
|
}
|
|
4254
4423
|
get translationurl() {
|
|
4255
4424
|
return this.$$.ctx[8];
|
|
4256
4425
|
}
|
|
4257
4426
|
set translationurl(t) {
|
|
4258
|
-
this.$$set({ translationurl: t }),
|
|
4427
|
+
this.$$set({ translationurl: t }), P();
|
|
4259
4428
|
}
|
|
4260
4429
|
get mbsource() {
|
|
4261
4430
|
return this.$$.ctx[9];
|
|
4262
4431
|
}
|
|
4263
4432
|
set mbsource(t) {
|
|
4264
|
-
this.$$set({ mbsource: t }),
|
|
4433
|
+
this.$$set({ mbsource: t }), P();
|
|
4265
4434
|
}
|
|
4266
4435
|
}
|
|
4267
|
-
|
|
4268
|
-
const
|
|
4436
|
+
Dr(dr, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4437
|
+
const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4269
4438
|
__proto__: null,
|
|
4270
|
-
default:
|
|
4439
|
+
default: dr
|
|
4271
4440
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4272
4441
|
export {
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
P as
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
A as
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4442
|
+
k as $,
|
|
4443
|
+
O as A,
|
|
4444
|
+
ae as B,
|
|
4445
|
+
R as C,
|
|
4446
|
+
vr as D,
|
|
4447
|
+
Er as E,
|
|
4448
|
+
ge as F,
|
|
4449
|
+
ts as G,
|
|
4450
|
+
Ji as H,
|
|
4451
|
+
qi as I,
|
|
4452
|
+
ot as J,
|
|
4453
|
+
Qi as K,
|
|
4454
|
+
Ii as L,
|
|
4455
|
+
Ni as M,
|
|
4456
|
+
Li as N,
|
|
4457
|
+
Mi as O,
|
|
4458
|
+
ns as P,
|
|
4459
|
+
kr as S,
|
|
4460
|
+
lr as a,
|
|
4461
|
+
hi as b,
|
|
4462
|
+
rs as c,
|
|
4463
|
+
Dr as d,
|
|
4464
|
+
Rr as e,
|
|
4465
|
+
P as f,
|
|
4466
|
+
Fr as g,
|
|
4467
|
+
yr as h,
|
|
4468
|
+
Pt as i,
|
|
4469
|
+
C as j,
|
|
4470
|
+
D as k,
|
|
4471
|
+
A as l,
|
|
4472
|
+
$ as m,
|
|
4473
|
+
S as n,
|
|
4474
|
+
br as o,
|
|
4475
|
+
Pr as p,
|
|
4476
|
+
je as q,
|
|
4477
|
+
be as r,
|
|
4478
|
+
Ct as s,
|
|
4479
|
+
K as t,
|
|
4480
|
+
Yi as u,
|
|
4481
|
+
Le as v,
|
|
4482
|
+
es as w,
|
|
4483
|
+
ne as x,
|
|
4484
|
+
Ki as y,
|
|
4485
|
+
tt as z
|
|
4309
4486
|
};
|