@everymatrix/cashier-iframe-redirect 1.86.1 → 1.86.3
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/{CashierHeader-D2XHA52H.js → CashierHeader-BnG2i4Fl.js} +631 -635
- package/components/{CashierHeader-Dn37_6Lk.js → CashierHeader-D8IE5Tg_.js} +625 -629
- package/components/CashierHeader-D_PGBTSs.cjs +18 -0
- package/components/{CashierIframeRedirect-CDDNSIYo.cjs → CashierIframeRedirect-CC42ez9P.cjs} +1 -1
- package/components/{CashierIframeRedirect-DmWbmi10.js → CashierIframeRedirect-DhY2z5Sw.js} +15 -15
- package/components/{CashierIframeRedirect-BsxMBzJT.js → CashierIframeRedirect-ePvFwYtb.js} +17 -17
- package/components/{CashierSpinner-B3lawQbU.js → CashierSpinner-BsdZhkYV.js} +15 -15
- package/components/{CashierSpinner-sXZN-QNL.js → CashierSpinner-C2SA4tN-.js} +15 -15
- package/components/{CashierSpinner-l6siWw78.cjs → CashierSpinner-RJMMeyDA.cjs} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-DF3Mljkl.cjs +0 -5
|
@@ -14,23 +14,23 @@ function yt(e) {
|
|
|
14
14
|
function Qe() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ee(e) {
|
|
18
18
|
e.forEach(yt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function je(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function xt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
return e === t ? !0 : (
|
|
26
|
+
let ie;
|
|
27
|
+
function Si(e, t) {
|
|
28
|
+
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
29
29
|
}
|
|
30
30
|
function tr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Et(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -40,9 +40,9 @@ function xt(e, ...t) {
|
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
42
|
function rr(e, t, r) {
|
|
43
|
-
e.$$.on_destroy.push(
|
|
43
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ye(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
47
|
const i = vt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
@@ -51,7 +51,7 @@ function xe(e, t, r, n) {
|
|
|
51
51
|
function vt(e, t, r, n) {
|
|
52
52
|
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function xe(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function ve(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ee(e, t, r, n, i, s) {
|
|
70
70
|
if (i) {
|
|
71
71
|
const u = vt(t, r, n, s);
|
|
72
72
|
e.p(u, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ve(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -81,13 +81,13 @@ function Be(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fe(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
87
|
function nr(e, t, r) {
|
|
88
88
|
const n = ir(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
90
|
+
const i = V("style");
|
|
91
91
|
i.id = t, i.textContent = r, sr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -102,39 +102,39 @@ function ir(e) {
|
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
104
|
function sr(e, t) {
|
|
105
|
-
return
|
|
105
|
+
return fe(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function N(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function O(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function V(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ke(e) {
|
|
121
121
|
return document.createTextNode(e);
|
|
122
122
|
}
|
|
123
123
|
function qe() {
|
|
124
|
-
return
|
|
124
|
+
return ke(" ");
|
|
125
125
|
}
|
|
126
126
|
function Ht() {
|
|
127
|
-
return
|
|
127
|
+
return ke("");
|
|
128
128
|
}
|
|
129
129
|
function Bt(e, t, r, n) {
|
|
130
130
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function X(e, t, r) {
|
|
133
133
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ai(e, t, r) {
|
|
136
136
|
const n = t.toLowerCase();
|
|
137
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
137
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : X(e, t, r);
|
|
138
138
|
}
|
|
139
139
|
function or(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
@@ -152,97 +152,97 @@ function ur(e) {
|
|
|
152
152
|
}
|
|
153
153
|
), t;
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let J;
|
|
156
|
+
function q(e) {
|
|
157
|
+
J = e;
|
|
158
158
|
}
|
|
159
159
|
function hr() {
|
|
160
|
-
if (!
|
|
160
|
+
if (!J)
|
|
161
161
|
throw new Error("Function called outside component initialization");
|
|
162
|
-
return
|
|
162
|
+
return J;
|
|
163
163
|
}
|
|
164
164
|
function lr(e) {
|
|
165
165
|
hr().$$.on_mount.push(e);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
167
|
+
const U = [], Pe = [];
|
|
168
|
+
let D = [];
|
|
169
169
|
const Je = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
170
|
-
let
|
|
170
|
+
let Le = !1;
|
|
171
171
|
function cr() {
|
|
172
|
-
|
|
172
|
+
Le || (Le = !0, fr.then(T));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
174
|
+
function Ne(e) {
|
|
175
|
+
D.push(e);
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
let
|
|
177
|
+
const He = /* @__PURE__ */ new Set();
|
|
178
|
+
let $ = 0;
|
|
179
179
|
function T() {
|
|
180
|
-
if (
|
|
180
|
+
if ($ !== 0)
|
|
181
181
|
return;
|
|
182
|
-
const e =
|
|
182
|
+
const e = J;
|
|
183
183
|
do {
|
|
184
184
|
try {
|
|
185
|
-
for (;
|
|
186
|
-
const t =
|
|
187
|
-
|
|
185
|
+
for (; $ < U.length; ) {
|
|
186
|
+
const t = U[$];
|
|
187
|
+
$++, q(t), mr(t.$$);
|
|
188
188
|
}
|
|
189
189
|
} catch (t) {
|
|
190
|
-
throw
|
|
190
|
+
throw U.length = 0, $ = 0, t;
|
|
191
191
|
}
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
for (let t = 0; t <
|
|
195
|
-
const r =
|
|
196
|
-
|
|
192
|
+
for (q(null), U.length = 0, $ = 0; Pe.length; )
|
|
193
|
+
Pe.pop()();
|
|
194
|
+
for (let t = 0; t < D.length; t += 1) {
|
|
195
|
+
const r = D[t];
|
|
196
|
+
He.has(r) || (He.add(r), r());
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
} while (
|
|
198
|
+
D.length = 0;
|
|
199
|
+
} while (U.length);
|
|
200
200
|
for (; Je.length; )
|
|
201
201
|
Je.pop()();
|
|
202
|
-
|
|
202
|
+
Le = !1, He.clear(), q(e);
|
|
203
203
|
}
|
|
204
204
|
function mr(e) {
|
|
205
205
|
if (e.fragment !== null) {
|
|
206
|
-
e.update(),
|
|
206
|
+
e.update(), ee(e.before_update);
|
|
207
207
|
const t = e.dirty;
|
|
208
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
208
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function dr(e) {
|
|
212
212
|
const t = [], r = [];
|
|
213
|
-
|
|
213
|
+
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
function
|
|
218
|
-
e && e.i && (
|
|
215
|
+
const oe = /* @__PURE__ */ new Set();
|
|
216
|
+
let br;
|
|
217
|
+
function ae(e, t) {
|
|
218
|
+
e && e.i && (oe.delete(e), e.i(t));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Be(e, t, r, n) {
|
|
221
221
|
if (e && e.o) {
|
|
222
|
-
if (
|
|
222
|
+
if (oe.has(e))
|
|
223
223
|
return;
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
oe.add(e), br.c.push(() => {
|
|
225
|
+
oe.delete(e);
|
|
226
226
|
}), e.o(t);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function pr(e, t, r) {
|
|
230
230
|
const { fragment: n, after_update: i } = e.$$;
|
|
231
|
-
n && n.m(t, r),
|
|
232
|
-
const s = e.$$.on_mount.map(yt).filter(
|
|
233
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
234
|
-
}), i.forEach(
|
|
231
|
+
n && n.m(t, r), Ne(() => {
|
|
232
|
+
const s = e.$$.on_mount.map(yt).filter(je);
|
|
233
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
234
|
+
}), i.forEach(Ne);
|
|
235
235
|
}
|
|
236
236
|
function gr(e, t) {
|
|
237
237
|
const r = e.$$;
|
|
238
|
-
r.fragment !== null && (
|
|
238
|
+
r.fragment !== null && (dr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
239
239
|
}
|
|
240
240
|
function _r(e, t) {
|
|
241
|
-
e.$$.dirty[0] === -1 && (
|
|
241
|
+
e.$$.dirty[0] === -1 && (U.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
242
|
}
|
|
243
243
|
function yr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
244
|
-
const l =
|
|
245
|
-
|
|
244
|
+
const l = J;
|
|
245
|
+
q(e);
|
|
246
246
|
const a = e.$$ = {
|
|
247
247
|
fragment: null,
|
|
248
248
|
ctx: [],
|
|
@@ -266,18 +266,18 @@ function yr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
266
266
|
};
|
|
267
267
|
u && u(a.root);
|
|
268
268
|
let h = !1;
|
|
269
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
270
|
-
const f =
|
|
269
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
270
|
+
const f = d.length ? d[0] : m;
|
|
271
271
|
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && _r(e, c)), m;
|
|
272
|
-
}) : [], a.update(), h = !0,
|
|
272
|
+
}) : [], a.update(), h = !0, ee(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
273
273
|
if (t.hydrate) {
|
|
274
274
|
const c = or(t.target);
|
|
275
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
275
|
+
a.fragment && a.fragment.l(c), c.forEach(O);
|
|
276
276
|
} else
|
|
277
277
|
a.fragment && a.fragment.c();
|
|
278
|
-
t.intro &&
|
|
278
|
+
t.intro && ae(e.$$.fragment), pr(e, t.target, t.anchor), T();
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
q(l);
|
|
281
281
|
}
|
|
282
282
|
let Tt;
|
|
283
283
|
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
@@ -322,17 +322,17 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
322
322
|
let s;
|
|
323
323
|
return {
|
|
324
324
|
c: function() {
|
|
325
|
-
s =
|
|
325
|
+
s = V("slot"), i !== "default" && X(s, "name", i);
|
|
326
326
|
},
|
|
327
327
|
/**
|
|
328
328
|
* @param {HTMLElement} target
|
|
329
329
|
* @param {HTMLElement} [anchor]
|
|
330
330
|
*/
|
|
331
331
|
m: function(l, a) {
|
|
332
|
-
|
|
332
|
+
N(l, s, a);
|
|
333
333
|
},
|
|
334
334
|
d: function(l) {
|
|
335
|
-
l &&
|
|
335
|
+
l && O(s);
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
};
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
344
344
|
i in r && (t[i] = [e(i)]);
|
|
345
345
|
for (const i of this.attributes) {
|
|
346
346
|
const s = this.$$g_p(i.name);
|
|
347
|
-
s in this.$$d || (this.$$d[s] =
|
|
347
|
+
s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
|
|
348
348
|
}
|
|
349
349
|
for (const i in this.$$p_d)
|
|
350
350
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
362
362
|
this.$$r = !0;
|
|
363
363
|
for (const i in this.$$p_d)
|
|
364
364
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
365
|
-
const s =
|
|
365
|
+
const s = ue(
|
|
366
366
|
i,
|
|
367
367
|
this.$$d[i],
|
|
368
368
|
this.$$p_d,
|
|
@@ -384,7 +384,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
384
384
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
385
385
|
// and setting attributes through setAttribute etc, this is helpful
|
|
386
386
|
attributeChangedCallback(e, t, r) {
|
|
387
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
387
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
388
388
|
}
|
|
389
389
|
disconnectedCallback() {
|
|
390
390
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -397,7 +397,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
397
397
|
) || e;
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
function
|
|
400
|
+
function ue(e, t, r, n) {
|
|
401
401
|
const i = r[e]?.type;
|
|
402
402
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
403
403
|
return t;
|
|
@@ -426,7 +426,7 @@ function he(e, t, r, n) {
|
|
|
426
426
|
return t;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function xr(e, t, r, n, i, s) {
|
|
430
430
|
let u = class extends Tt {
|
|
431
431
|
constructor() {
|
|
432
432
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -443,7 +443,7 @@ function Er(e, t, r, n, i, s) {
|
|
|
443
443
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
444
444
|
},
|
|
445
445
|
set(l) {
|
|
446
|
-
l =
|
|
446
|
+
l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}), n.forEach((o) => {
|
|
@@ -455,7 +455,7 @@ function Er(e, t, r, n, i, s) {
|
|
|
455
455
|
}), e.element = /** @type {any} */
|
|
456
456
|
u, u;
|
|
457
457
|
}
|
|
458
|
-
class
|
|
458
|
+
class Er {
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -483,7 +483,7 @@ class xr {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, r) {
|
|
486
|
-
if (!
|
|
486
|
+
if (!je(r))
|
|
487
487
|
return B;
|
|
488
488
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return n.push(r), () => {
|
|
@@ -501,24 +501,24 @@ class xr {
|
|
|
501
501
|
}
|
|
502
502
|
const vr = "4";
|
|
503
503
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
|
|
504
|
-
const
|
|
504
|
+
const R = [];
|
|
505
505
|
function Hr(e, t) {
|
|
506
506
|
return {
|
|
507
|
-
subscribe:
|
|
507
|
+
subscribe: be(e, t).subscribe
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function be(e, t = B) {
|
|
511
511
|
let r;
|
|
512
512
|
const n = /* @__PURE__ */ new Set();
|
|
513
513
|
function i(o) {
|
|
514
|
-
if (
|
|
515
|
-
const l = !
|
|
514
|
+
if (xt(e, o) && (e = o, r)) {
|
|
515
|
+
const l = !R.length;
|
|
516
516
|
for (const a of n)
|
|
517
|
-
a[1](),
|
|
517
|
+
a[1](), R.push(a, e);
|
|
518
518
|
if (l) {
|
|
519
|
-
for (let a = 0; a <
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
for (let a = 0; a < R.length; a += 2)
|
|
520
|
+
R[a][0](R[a + 1]);
|
|
521
|
+
R.length = 0;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}
|
|
@@ -533,7 +533,7 @@ function ge(e, t = B) {
|
|
|
533
533
|
}
|
|
534
534
|
return { set: i, update: s, subscribe: u };
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function z(e, t, r) {
|
|
537
537
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
538
538
|
if (!i.every(Boolean))
|
|
539
539
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -547,9 +547,9 @@ function W(e, t, r) {
|
|
|
547
547
|
return;
|
|
548
548
|
c();
|
|
549
549
|
const f = t(n ? a[0] : a, u, o);
|
|
550
|
-
s ? u(f) : c =
|
|
551
|
-
},
|
|
552
|
-
(f, _) =>
|
|
550
|
+
s ? u(f) : c = je(f) ? f : B;
|
|
551
|
+
}, d = i.map(
|
|
552
|
+
(f, _) => Et(
|
|
553
553
|
f,
|
|
554
554
|
(v) => {
|
|
555
555
|
a[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -560,7 +560,7 @@ function W(e, t, r) {
|
|
|
560
560
|
)
|
|
561
561
|
);
|
|
562
562
|
return l = !0, m(), function() {
|
|
563
|
-
|
|
563
|
+
ee(d), c(), l = !1;
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
566
|
}
|
|
@@ -575,28 +575,28 @@ function wr(e) {
|
|
|
575
575
|
}
|
|
576
576
|
function Sr(e) {
|
|
577
577
|
var t = Object.prototype.toString.call(e);
|
|
578
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
578
|
+
return t === "[object RegExp]" || t === "[object Date]" || Or(e);
|
|
579
579
|
}
|
|
580
|
-
var Ar = typeof Symbol == "function" && Symbol.for,
|
|
581
|
-
function
|
|
582
|
-
return e.$$typeof ===
|
|
580
|
+
var Ar = typeof Symbol == "function" && Symbol.for, Cr = Ar ? Symbol.for("react.element") : 60103;
|
|
581
|
+
function Or(e) {
|
|
582
|
+
return e.$$typeof === Cr;
|
|
583
583
|
}
|
|
584
584
|
function Pr(e) {
|
|
585
585
|
return Array.isArray(e) ? [] : {};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
587
|
+
function Y(e, t) {
|
|
588
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(Pr(e), e, t) : e;
|
|
589
589
|
}
|
|
590
590
|
function Lr(e, t, r) {
|
|
591
591
|
return e.concat(t).map(function(n) {
|
|
592
|
-
return
|
|
592
|
+
return Y(n, r);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
function Nr(e, t) {
|
|
596
596
|
if (!t.customMerge)
|
|
597
|
-
return
|
|
597
|
+
return G;
|
|
598
598
|
var r = t.customMerge(e);
|
|
599
|
-
return typeof r == "function" ? r :
|
|
599
|
+
return typeof r == "function" ? r : G;
|
|
600
600
|
}
|
|
601
601
|
function Ir(e) {
|
|
602
602
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -619,51 +619,65 @@ function Mr(e, t) {
|
|
|
619
619
|
function $r(e, t, r) {
|
|
620
620
|
var n = {};
|
|
621
621
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
622
|
-
n[i] =
|
|
622
|
+
n[i] = Y(e[i], r);
|
|
623
623
|
}), Ye(t).forEach(function(i) {
|
|
624
|
-
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] =
|
|
624
|
+
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
625
625
|
}), n;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified =
|
|
627
|
+
function G(e, t, r) {
|
|
628
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
629
629
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
630
|
-
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) :
|
|
630
|
+
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : Y(t, r);
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
G.all = function(t, r) {
|
|
633
633
|
if (!Array.isArray(t))
|
|
634
634
|
throw new Error("first argument should be an array");
|
|
635
635
|
return t.reduce(function(n, i) {
|
|
636
|
-
return
|
|
636
|
+
return G(n, i, r);
|
|
637
637
|
}, {});
|
|
638
638
|
};
|
|
639
|
-
var Rr =
|
|
639
|
+
var Rr = G, Ur = Rr;
|
|
640
640
|
const Dr = /* @__PURE__ */ Br(Ur);
|
|
641
|
-
|
|
642
|
-
|
|
641
|
+
/*! *****************************************************************************
|
|
642
|
+
Copyright (c) Microsoft Corporation.
|
|
643
|
+
|
|
644
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
645
|
+
purpose with or without fee is hereby granted.
|
|
646
|
+
|
|
647
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
648
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
649
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
650
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
651
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
652
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
653
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
654
|
+
***************************************************************************** */
|
|
655
|
+
var Ie = function(e, t) {
|
|
656
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
643
657
|
r.__proto__ = n;
|
|
644
658
|
} || function(r, n) {
|
|
645
659
|
for (var i in n)
|
|
646
660
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
647
|
-
},
|
|
661
|
+
}, Ie(e, t);
|
|
648
662
|
};
|
|
649
|
-
function
|
|
663
|
+
function pe(e, t) {
|
|
650
664
|
if (typeof t != "function" && t !== null)
|
|
651
665
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
652
|
-
|
|
666
|
+
Ie(e, t);
|
|
653
667
|
function r() {
|
|
654
668
|
this.constructor = e;
|
|
655
669
|
}
|
|
656
670
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
657
671
|
}
|
|
658
|
-
var
|
|
659
|
-
return
|
|
672
|
+
var y = function() {
|
|
673
|
+
return y = Object.assign || function(t) {
|
|
660
674
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
661
675
|
r = arguments[n];
|
|
662
676
|
for (var s in r)
|
|
663
677
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
664
678
|
}
|
|
665
679
|
return t;
|
|
666
|
-
},
|
|
680
|
+
}, y.apply(this, arguments);
|
|
667
681
|
};
|
|
668
682
|
function Gr(e, t) {
|
|
669
683
|
var r = {};
|
|
@@ -674,14 +688,14 @@ function Gr(e, t) {
|
|
|
674
688
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
675
689
|
return r;
|
|
676
690
|
}
|
|
677
|
-
function
|
|
678
|
-
if (
|
|
691
|
+
function Te(e, t, r) {
|
|
692
|
+
if (arguments.length === 2)
|
|
679
693
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
680
694
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
681
|
-
return e.concat(s ||
|
|
695
|
+
return e.concat(s || t);
|
|
682
696
|
}
|
|
683
|
-
function
|
|
684
|
-
var r = t && t.cache ? t.cache :
|
|
697
|
+
function we(e, t) {
|
|
698
|
+
var r = t && t.cache ? t.cache : zr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
|
|
685
699
|
return i(e, {
|
|
686
700
|
cache: r,
|
|
687
701
|
serializer: n
|
|
@@ -690,103 +704,95 @@ function Ae(e, t) {
|
|
|
690
704
|
function Fr(e) {
|
|
691
705
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
692
706
|
}
|
|
693
|
-
function
|
|
707
|
+
function St(e, t, r, n) {
|
|
694
708
|
var i = Fr(n) ? n : r(n), s = t.get(i);
|
|
695
709
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
696
710
|
}
|
|
697
|
-
function
|
|
711
|
+
function At(e, t, r) {
|
|
698
712
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
699
713
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
700
714
|
}
|
|
701
|
-
function
|
|
715
|
+
function Ve(e, t, r, n, i) {
|
|
702
716
|
return r.bind(t, e, n, i);
|
|
703
717
|
}
|
|
718
|
+
function jr(e, t) {
|
|
719
|
+
var r = e.length === 1 ? St : At;
|
|
720
|
+
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
721
|
+
}
|
|
704
722
|
function kr(e, t) {
|
|
705
|
-
|
|
706
|
-
return At(e, this, r, t.cache.create(), t.serializer);
|
|
723
|
+
return Ve(e, this, At, t.cache.create(), t.serializer);
|
|
707
724
|
}
|
|
708
725
|
function Vr(e, t) {
|
|
709
|
-
return
|
|
726
|
+
return Ve(e, this, St, t.cache.create(), t.serializer);
|
|
710
727
|
}
|
|
711
728
|
var Xr = function() {
|
|
712
729
|
return JSON.stringify(arguments);
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}()
|
|
725
|
-
), Wr = {
|
|
730
|
+
};
|
|
731
|
+
function Xe() {
|
|
732
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
733
|
+
}
|
|
734
|
+
Xe.prototype.get = function(e) {
|
|
735
|
+
return this.cache[e];
|
|
736
|
+
};
|
|
737
|
+
Xe.prototype.set = function(e, t) {
|
|
738
|
+
this.cache[e] = t;
|
|
739
|
+
};
|
|
740
|
+
var zr = {
|
|
726
741
|
create: function() {
|
|
727
|
-
return new
|
|
742
|
+
return new Xe();
|
|
728
743
|
}
|
|
729
|
-
},
|
|
730
|
-
variadic:
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
734
|
-
r = arguments[n];
|
|
735
|
-
for (var s in r)
|
|
736
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
737
|
-
}
|
|
738
|
-
return t;
|
|
739
|
-
}, me.apply(this, arguments);
|
|
740
|
-
};
|
|
741
|
-
var d;
|
|
744
|
+
}, Se = {
|
|
745
|
+
variadic: kr,
|
|
746
|
+
monadic: Vr
|
|
747
|
+
}, b;
|
|
742
748
|
(function(e) {
|
|
743
749
|
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";
|
|
744
|
-
})(
|
|
745
|
-
var
|
|
750
|
+
})(b || (b = {}));
|
|
751
|
+
var x;
|
|
746
752
|
(function(e) {
|
|
747
753
|
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";
|
|
748
|
-
})(
|
|
749
|
-
var
|
|
754
|
+
})(x || (x = {}));
|
|
755
|
+
var F;
|
|
750
756
|
(function(e) {
|
|
751
757
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
752
|
-
})(
|
|
758
|
+
})(F || (F = {}));
|
|
753
759
|
function Ke(e) {
|
|
754
|
-
return e.type ===
|
|
755
|
-
}
|
|
756
|
-
function Zr(e) {
|
|
757
|
-
return e.type === y.argument;
|
|
760
|
+
return e.type === x.literal;
|
|
758
761
|
}
|
|
759
|
-
function
|
|
760
|
-
return e.type ===
|
|
762
|
+
function Wr(e) {
|
|
763
|
+
return e.type === x.argument;
|
|
761
764
|
}
|
|
762
765
|
function Ct(e) {
|
|
763
|
-
return e.type ===
|
|
766
|
+
return e.type === x.number;
|
|
767
|
+
}
|
|
768
|
+
function Ot(e) {
|
|
769
|
+
return e.type === x.date;
|
|
764
770
|
}
|
|
765
771
|
function Pt(e) {
|
|
766
|
-
return e.type ===
|
|
772
|
+
return e.type === x.time;
|
|
767
773
|
}
|
|
768
774
|
function Lt(e) {
|
|
769
|
-
return e.type ===
|
|
775
|
+
return e.type === x.select;
|
|
770
776
|
}
|
|
771
777
|
function Nt(e) {
|
|
772
|
-
return e.type ===
|
|
778
|
+
return e.type === x.plural;
|
|
773
779
|
}
|
|
774
|
-
function
|
|
775
|
-
return e.type ===
|
|
780
|
+
function Zr(e) {
|
|
781
|
+
return e.type === x.pound;
|
|
776
782
|
}
|
|
777
783
|
function It(e) {
|
|
778
|
-
return e.type ===
|
|
784
|
+
return e.type === x.tag;
|
|
779
785
|
}
|
|
780
786
|
function Mt(e) {
|
|
781
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
782
788
|
}
|
|
783
|
-
function
|
|
784
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
789
|
+
function Me(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
785
791
|
}
|
|
786
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
787
|
-
function
|
|
792
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
|
|
793
|
+
function qr(e) {
|
|
788
794
|
var t = {};
|
|
789
|
-
return e.replace(
|
|
795
|
+
return e.replace(Qr, function(r) {
|
|
790
796
|
var n = r.length;
|
|
791
797
|
switch (r[0]) {
|
|
792
798
|
case "G":
|
|
@@ -875,21 +881,11 @@ function Jr(e) {
|
|
|
875
881
|
return "";
|
|
876
882
|
}), t;
|
|
877
883
|
}
|
|
878
|
-
var
|
|
879
|
-
|
|
880
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
881
|
-
r = arguments[n];
|
|
882
|
-
for (var s in r)
|
|
883
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
884
|
-
}
|
|
885
|
-
return t;
|
|
886
|
-
}, E.apply(this, arguments);
|
|
887
|
-
};
|
|
888
|
-
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
889
|
-
function Kr(e) {
|
|
884
|
+
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
885
|
+
function Yr(e) {
|
|
890
886
|
if (e.length === 0)
|
|
891
887
|
throw new Error("Number skeleton cannot be empty");
|
|
892
|
-
for (var t = e.split(
|
|
888
|
+
for (var t = e.split(Jr).filter(function(m) {
|
|
893
889
|
return m.length > 0;
|
|
894
890
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
895
891
|
var s = i[n], u = s.split("/");
|
|
@@ -904,10 +900,10 @@ function Kr(e) {
|
|
|
904
900
|
}
|
|
905
901
|
return r;
|
|
906
902
|
}
|
|
907
|
-
function
|
|
903
|
+
function Kr(e) {
|
|
908
904
|
return e.replace(/^(.*?)-/, "");
|
|
909
905
|
}
|
|
910
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
906
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
911
907
|
function tt(e) {
|
|
912
908
|
var t = {};
|
|
913
909
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
@@ -954,7 +950,7 @@ function Dt(e) {
|
|
|
954
950
|
};
|
|
955
951
|
}
|
|
956
952
|
}
|
|
957
|
-
function
|
|
953
|
+
function tn(e) {
|
|
958
954
|
var t;
|
|
959
955
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
960
956
|
notation: "engineering"
|
|
@@ -972,7 +968,7 @@ function rt(e) {
|
|
|
972
968
|
var t = {}, r = Dt(e);
|
|
973
969
|
return r || t;
|
|
974
970
|
}
|
|
975
|
-
function
|
|
971
|
+
function rn(e) {
|
|
976
972
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
977
973
|
var i = n[r];
|
|
978
974
|
switch (i.stem) {
|
|
@@ -996,7 +992,7 @@ function nn(e) {
|
|
|
996
992
|
continue;
|
|
997
993
|
case "measure-unit":
|
|
998
994
|
case "unit":
|
|
999
|
-
t.style = "unit", t.unit =
|
|
995
|
+
t.style = "unit", t.unit = Kr(i.options[0]);
|
|
1000
996
|
continue;
|
|
1001
997
|
case "compact-short":
|
|
1002
998
|
case "K":
|
|
@@ -1007,13 +1003,13 @@ function nn(e) {
|
|
|
1007
1003
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1008
1004
|
continue;
|
|
1009
1005
|
case "scientific":
|
|
1010
|
-
t =
|
|
1011
|
-
return
|
|
1006
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1007
|
+
return y(y({}, l), rt(a));
|
|
1012
1008
|
}, {}));
|
|
1013
1009
|
continue;
|
|
1014
1010
|
case "engineering":
|
|
1015
|
-
t =
|
|
1016
|
-
return
|
|
1011
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1012
|
+
return y(y({}, l), rt(a));
|
|
1017
1013
|
}, {}));
|
|
1018
1014
|
continue;
|
|
1019
1015
|
case "notation-simple":
|
|
@@ -1058,13 +1054,13 @@ function nn(e) {
|
|
|
1058
1054
|
case "integer-width":
|
|
1059
1055
|
if (i.options.length > 1)
|
|
1060
1056
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1061
|
-
i.options[0].replace(
|
|
1057
|
+
i.options[0].replace(en, function(l, a, h, c, m, d) {
|
|
1062
1058
|
if (a)
|
|
1063
1059
|
t.minimumIntegerDigits = h.length;
|
|
1064
1060
|
else {
|
|
1065
1061
|
if (c && m)
|
|
1066
1062
|
throw new Error("We currently do not support maximum integer digits");
|
|
1067
|
-
if (
|
|
1063
|
+
if (d)
|
|
1068
1064
|
throw new Error("We currently do not support exact integer digits");
|
|
1069
1065
|
}
|
|
1070
1066
|
return "";
|
|
@@ -1078,25 +1074,25 @@ function nn(e) {
|
|
|
1078
1074
|
if (et.test(i.stem)) {
|
|
1079
1075
|
if (i.options.length > 1)
|
|
1080
1076
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1081
|
-
i.stem.replace(et, function(l, a, h, c, m,
|
|
1082
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1077
|
+
i.stem.replace(et, function(l, a, h, c, m, d) {
|
|
1078
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1083
1079
|
});
|
|
1084
1080
|
var s = i.options[0];
|
|
1085
|
-
s === "w" ? t =
|
|
1081
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), tt(s)));
|
|
1086
1082
|
continue;
|
|
1087
1083
|
}
|
|
1088
1084
|
if (Rt.test(i.stem)) {
|
|
1089
|
-
t =
|
|
1085
|
+
t = y(y({}, t), tt(i.stem));
|
|
1090
1086
|
continue;
|
|
1091
1087
|
}
|
|
1092
1088
|
var u = Dt(i.stem);
|
|
1093
|
-
u && (t =
|
|
1094
|
-
var o =
|
|
1095
|
-
o && (t =
|
|
1089
|
+
u && (t = y(y({}, t), u));
|
|
1090
|
+
var o = tn(i.stem);
|
|
1091
|
+
o && (t = y(y({}, t), o));
|
|
1096
1092
|
}
|
|
1097
1093
|
return t;
|
|
1098
1094
|
}
|
|
1099
|
-
var
|
|
1095
|
+
var se = {
|
|
1100
1096
|
"001": [
|
|
1101
1097
|
"H",
|
|
1102
1098
|
"h"
|
|
@@ -2511,13 +2507,13 @@ var oe = {
|
|
|
2511
2507
|
"h"
|
|
2512
2508
|
]
|
|
2513
2509
|
};
|
|
2514
|
-
function
|
|
2510
|
+
function nn(e, t) {
|
|
2515
2511
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2516
2512
|
var i = e.charAt(n);
|
|
2517
2513
|
if (i === "j") {
|
|
2518
2514
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2519
2515
|
s++, n++;
|
|
2520
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2516
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = sn(t);
|
|
2521
2517
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2522
2518
|
r += l;
|
|
2523
2519
|
for (; u-- > 0; )
|
|
@@ -2527,7 +2523,7 @@ function sn(e, t) {
|
|
|
2527
2523
|
}
|
|
2528
2524
|
return r;
|
|
2529
2525
|
}
|
|
2530
|
-
function
|
|
2526
|
+
function sn(e) {
|
|
2531
2527
|
var t = e.hourCycle;
|
|
2532
2528
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2533
2529
|
e.hourCycles && // @ts-ignore
|
|
@@ -2546,23 +2542,23 @@ function on(e) {
|
|
|
2546
2542
|
}
|
|
2547
2543
|
var r = e.language, n;
|
|
2548
2544
|
r !== "root" && (n = e.maximize().region);
|
|
2549
|
-
var i =
|
|
2545
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2550
2546
|
return i[0];
|
|
2551
2547
|
}
|
|
2552
|
-
var
|
|
2553
|
-
function
|
|
2548
|
+
var Ae, on = new RegExp("^".concat($t.source, "*")), an = new RegExp("".concat($t.source, "*$"));
|
|
2549
|
+
function p(e, t) {
|
|
2554
2550
|
return { start: e, end: t };
|
|
2555
2551
|
}
|
|
2556
|
-
var
|
|
2552
|
+
var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, ln = !!Object.fromEntries, fn = !!String.prototype.codePointAt, cn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, bn = dn ? Number.isSafeInteger : function(e) {
|
|
2557
2553
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2558
|
-
},
|
|
2554
|
+
}, $e = !0;
|
|
2559
2555
|
try {
|
|
2560
|
-
var
|
|
2561
|
-
|
|
2556
|
+
var pn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2557
|
+
$e = ((Ae = pn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2562
2558
|
} catch {
|
|
2563
|
-
|
|
2559
|
+
$e = !1;
|
|
2564
2560
|
}
|
|
2565
|
-
var nt =
|
|
2561
|
+
var nt = un ? (
|
|
2566
2562
|
// Native
|
|
2567
2563
|
function(t, r, n) {
|
|
2568
2564
|
return t.startsWith(r, n);
|
|
@@ -2572,7 +2568,7 @@ var nt = hn ? (
|
|
|
2572
2568
|
function(t, r, n) {
|
|
2573
2569
|
return t.slice(n, n + r.length) === r;
|
|
2574
2570
|
}
|
|
2575
|
-
),
|
|
2571
|
+
), Re = hn ? String.fromCodePoint : (
|
|
2576
2572
|
// IE11
|
|
2577
2573
|
function() {
|
|
2578
2574
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2586,7 +2582,7 @@ var nt = hn ? (
|
|
|
2586
2582
|
}
|
|
2587
2583
|
), it = (
|
|
2588
2584
|
// native
|
|
2589
|
-
|
|
2585
|
+
ln ? Object.fromEntries : (
|
|
2590
2586
|
// Ponyfill
|
|
2591
2587
|
function(t) {
|
|
2592
2588
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2596,7 +2592,7 @@ var nt = hn ? (
|
|
|
2596
2592
|
return r;
|
|
2597
2593
|
}
|
|
2598
2594
|
)
|
|
2599
|
-
), Gt =
|
|
2595
|
+
), Gt = fn ? (
|
|
2600
2596
|
// Native
|
|
2601
2597
|
function(t, r) {
|
|
2602
2598
|
return t.codePointAt(r);
|
|
@@ -2610,7 +2606,7 @@ var nt = hn ? (
|
|
|
2610
2606
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2611
2607
|
}
|
|
2612
2608
|
}
|
|
2613
|
-
),
|
|
2609
|
+
), gn = cn ? (
|
|
2614
2610
|
// Native
|
|
2615
2611
|
function(t) {
|
|
2616
2612
|
return t.trimStart();
|
|
@@ -2618,9 +2614,9 @@ var nt = hn ? (
|
|
|
2618
2614
|
) : (
|
|
2619
2615
|
// Ponyfill
|
|
2620
2616
|
function(t) {
|
|
2621
|
-
return t.replace(
|
|
2617
|
+
return t.replace(on, "");
|
|
2622
2618
|
}
|
|
2623
|
-
),
|
|
2619
|
+
), _n = mn ? (
|
|
2624
2620
|
// Native
|
|
2625
2621
|
function(t) {
|
|
2626
2622
|
return t.trimEnd();
|
|
@@ -2628,32 +2624,32 @@ var nt = hn ? (
|
|
|
2628
2624
|
) : (
|
|
2629
2625
|
// Ponyfill
|
|
2630
2626
|
function(t) {
|
|
2631
|
-
return t.replace(
|
|
2627
|
+
return t.replace(an, "");
|
|
2632
2628
|
}
|
|
2633
2629
|
);
|
|
2634
2630
|
function Ft(e, t) {
|
|
2635
2631
|
return new RegExp(e, t);
|
|
2636
2632
|
}
|
|
2637
|
-
var
|
|
2638
|
-
if (
|
|
2633
|
+
var Ue;
|
|
2634
|
+
if ($e) {
|
|
2639
2635
|
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2640
|
-
|
|
2636
|
+
Ue = function(t, r) {
|
|
2641
2637
|
var n;
|
|
2642
2638
|
st.lastIndex = r;
|
|
2643
2639
|
var i = st.exec(t);
|
|
2644
2640
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2645
2641
|
};
|
|
2646
2642
|
} else
|
|
2647
|
-
|
|
2643
|
+
Ue = function(t, r) {
|
|
2648
2644
|
for (var n = []; ; ) {
|
|
2649
2645
|
var i = Gt(t, r);
|
|
2650
|
-
if (i === void 0 || jt(i) ||
|
|
2646
|
+
if (i === void 0 || jt(i) || vn(i))
|
|
2651
2647
|
break;
|
|
2652
2648
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2653
2649
|
}
|
|
2654
|
-
return
|
|
2650
|
+
return Re.apply(void 0, n);
|
|
2655
2651
|
};
|
|
2656
|
-
var
|
|
2652
|
+
var yn = (
|
|
2657
2653
|
/** @class */
|
|
2658
2654
|
function() {
|
|
2659
2655
|
function e(t, r) {
|
|
@@ -2677,14 +2673,14 @@ var En = (
|
|
|
2677
2673
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2678
2674
|
var o = this.clonePosition();
|
|
2679
2675
|
this.bump(), i.push({
|
|
2680
|
-
type:
|
|
2681
|
-
location:
|
|
2676
|
+
type: x.pound,
|
|
2677
|
+
location: p(o, this.clonePosition())
|
|
2682
2678
|
});
|
|
2683
2679
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2684
2680
|
if (n)
|
|
2685
2681
|
break;
|
|
2686
|
-
return this.error(
|
|
2687
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2682
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2683
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2688
2684
|
var u = this.parseTag(t, r);
|
|
2689
2685
|
if (u.err)
|
|
2690
2686
|
return u;
|
|
@@ -2705,9 +2701,9 @@ var En = (
|
|
|
2705
2701
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2706
2702
|
return {
|
|
2707
2703
|
val: {
|
|
2708
|
-
type:
|
|
2704
|
+
type: x.literal,
|
|
2709
2705
|
value: "<".concat(i, "/>"),
|
|
2710
|
-
location:
|
|
2706
|
+
location: p(n, this.clonePosition())
|
|
2711
2707
|
},
|
|
2712
2708
|
err: null
|
|
2713
2709
|
};
|
|
@@ -2717,25 +2713,25 @@ var En = (
|
|
|
2717
2713
|
return s;
|
|
2718
2714
|
var u = s.val, o = this.clonePosition();
|
|
2719
2715
|
if (this.bumpIf("</")) {
|
|
2720
|
-
if (this.isEOF() || !
|
|
2721
|
-
return this.error(
|
|
2716
|
+
if (this.isEOF() || !De(this.char()))
|
|
2717
|
+
return this.error(b.INVALID_TAG, p(o, this.clonePosition()));
|
|
2722
2718
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2723
|
-
return i !== a ? this.error(
|
|
2719
|
+
return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2724
2720
|
val: {
|
|
2725
|
-
type:
|
|
2721
|
+
type: x.tag,
|
|
2726
2722
|
value: i,
|
|
2727
2723
|
children: u,
|
|
2728
|
-
location:
|
|
2724
|
+
location: p(n, this.clonePosition())
|
|
2729
2725
|
},
|
|
2730
2726
|
err: null
|
|
2731
|
-
} : this.error(
|
|
2727
|
+
} : this.error(b.INVALID_TAG, p(o, this.clonePosition())));
|
|
2732
2728
|
} else
|
|
2733
|
-
return this.error(
|
|
2729
|
+
return this.error(b.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2734
2730
|
} else
|
|
2735
|
-
return this.error(
|
|
2731
|
+
return this.error(b.INVALID_TAG, p(n, this.clonePosition()));
|
|
2736
2732
|
}, e.prototype.parseTagName = function() {
|
|
2737
2733
|
var t = this.offset();
|
|
2738
|
-
for (this.bump(); !this.isEOF() &&
|
|
2734
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2739
2735
|
this.bump();
|
|
2740
2736
|
return this.message.slice(t, this.offset());
|
|
2741
2737
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2757,9 +2753,9 @@ var En = (
|
|
|
2757
2753
|
}
|
|
2758
2754
|
break;
|
|
2759
2755
|
}
|
|
2760
|
-
var l =
|
|
2756
|
+
var l = p(n, this.clonePosition());
|
|
2761
2757
|
return {
|
|
2762
|
-
val: { type:
|
|
2758
|
+
val: { type: x.literal, value: i, location: l },
|
|
2763
2759
|
err: null
|
|
2764
2760
|
};
|
|
2765
2761
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2798,49 +2794,49 @@ var En = (
|
|
|
2798
2794
|
r.push(n);
|
|
2799
2795
|
this.bump();
|
|
2800
2796
|
}
|
|
2801
|
-
return
|
|
2797
|
+
return Re.apply(void 0, r);
|
|
2802
2798
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2803
2799
|
if (this.isEOF())
|
|
2804
2800
|
return null;
|
|
2805
2801
|
var n = this.char();
|
|
2806
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2802
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2807
2803
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2808
2804
|
var n = this.clonePosition();
|
|
2809
2805
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2810
|
-
return this.error(
|
|
2806
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2811
2807
|
if (this.char() === 125)
|
|
2812
|
-
return this.bump(), this.error(
|
|
2808
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2813
2809
|
var i = this.parseIdentifierIfPossible().value;
|
|
2814
2810
|
if (!i)
|
|
2815
|
-
return this.error(
|
|
2811
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2816
2812
|
if (this.bumpSpace(), this.isEOF())
|
|
2817
|
-
return this.error(
|
|
2813
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2818
2814
|
switch (this.char()) {
|
|
2819
2815
|
case 125:
|
|
2820
2816
|
return this.bump(), {
|
|
2821
2817
|
val: {
|
|
2822
|
-
type:
|
|
2818
|
+
type: x.argument,
|
|
2823
2819
|
// value does not include the opening and closing braces.
|
|
2824
2820
|
value: i,
|
|
2825
|
-
location:
|
|
2821
|
+
location: p(n, this.clonePosition())
|
|
2826
2822
|
},
|
|
2827
2823
|
err: null
|
|
2828
2824
|
};
|
|
2829
2825
|
case 44:
|
|
2830
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2826
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2831
2827
|
default:
|
|
2832
|
-
return this.error(
|
|
2828
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2833
2829
|
}
|
|
2834
2830
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2835
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2831
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2836
2832
|
this.bumpTo(i);
|
|
2837
|
-
var s = this.clonePosition(), u =
|
|
2833
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2838
2834
|
return { value: n, location: u };
|
|
2839
2835
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2840
2836
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2841
2837
|
switch (o) {
|
|
2842
2838
|
case "":
|
|
2843
|
-
return this.error(
|
|
2839
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, p(u, l));
|
|
2844
2840
|
case "number":
|
|
2845
2841
|
case "date":
|
|
2846
2842
|
case "time": {
|
|
@@ -2851,44 +2847,44 @@ var En = (
|
|
|
2851
2847
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2852
2848
|
if (c.err)
|
|
2853
2849
|
return c;
|
|
2854
|
-
var m =
|
|
2850
|
+
var m = _n(c.val);
|
|
2855
2851
|
if (m.length === 0)
|
|
2856
|
-
return this.error(
|
|
2857
|
-
var
|
|
2858
|
-
a = { style: m, styleLocation:
|
|
2852
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2853
|
+
var d = p(h, this.clonePosition());
|
|
2854
|
+
a = { style: m, styleLocation: d };
|
|
2859
2855
|
}
|
|
2860
2856
|
var f = this.tryParseArgumentClose(i);
|
|
2861
2857
|
if (f.err)
|
|
2862
2858
|
return f;
|
|
2863
|
-
var _ =
|
|
2859
|
+
var _ = p(i, this.clonePosition());
|
|
2864
2860
|
if (a && nt(a?.style, "::", 0)) {
|
|
2865
|
-
var v =
|
|
2861
|
+
var v = gn(a.style.slice(2));
|
|
2866
2862
|
if (o === "number") {
|
|
2867
2863
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2868
2864
|
return c.err ? c : {
|
|
2869
|
-
val: { type:
|
|
2865
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2870
2866
|
err: null
|
|
2871
2867
|
};
|
|
2872
2868
|
} else {
|
|
2873
2869
|
if (v.length === 0)
|
|
2874
|
-
return this.error(
|
|
2875
|
-
var
|
|
2876
|
-
this.locale && (
|
|
2870
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
2871
|
+
var S = v;
|
|
2872
|
+
this.locale && (S = nn(v, this.locale));
|
|
2877
2873
|
var m = {
|
|
2878
|
-
type:
|
|
2879
|
-
pattern:
|
|
2874
|
+
type: F.dateTime,
|
|
2875
|
+
pattern: S,
|
|
2880
2876
|
location: a.styleLocation,
|
|
2881
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2882
|
-
},
|
|
2877
|
+
parsedOptions: this.shouldParseSkeletons ? qr(S) : {}
|
|
2878
|
+
}, A = o === "date" ? x.date : x.time;
|
|
2883
2879
|
return {
|
|
2884
|
-
val: { type:
|
|
2880
|
+
val: { type: A, value: n, location: _, style: m },
|
|
2885
2881
|
err: null
|
|
2886
2882
|
};
|
|
2887
2883
|
}
|
|
2888
2884
|
}
|
|
2889
2885
|
return {
|
|
2890
2886
|
val: {
|
|
2891
|
-
type: o === "number" ?
|
|
2887
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2892
2888
|
value: n,
|
|
2893
2889
|
location: _,
|
|
2894
2890
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2901,50 +2897,50 @@ var En = (
|
|
|
2901
2897
|
case "select": {
|
|
2902
2898
|
var H = this.clonePosition();
|
|
2903
2899
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2904
|
-
return this.error(
|
|
2900
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
|
|
2905
2901
|
this.bumpSpace();
|
|
2906
|
-
var
|
|
2907
|
-
if (o !== "select" &&
|
|
2902
|
+
var L = this.parseIdentifierIfPossible(), w = 0;
|
|
2903
|
+
if (o !== "select" && L.value === "offset") {
|
|
2908
2904
|
if (!this.bumpIf(":"))
|
|
2909
|
-
return this.error(
|
|
2905
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2910
2906
|
this.bumpSpace();
|
|
2911
|
-
var c = this.tryParseDecimalInteger(
|
|
2907
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2912
2908
|
if (c.err)
|
|
2913
2909
|
return c;
|
|
2914
|
-
this.bumpSpace(),
|
|
2910
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
|
|
2915
2911
|
}
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
return
|
|
2912
|
+
var M = this.tryParsePluralOrSelectOptions(t, o, r, L);
|
|
2913
|
+
if (M.err)
|
|
2914
|
+
return M;
|
|
2919
2915
|
var f = this.tryParseArgumentClose(i);
|
|
2920
2916
|
if (f.err)
|
|
2921
2917
|
return f;
|
|
2922
|
-
var
|
|
2918
|
+
var ne = p(i, this.clonePosition());
|
|
2923
2919
|
return o === "select" ? {
|
|
2924
2920
|
val: {
|
|
2925
|
-
type:
|
|
2921
|
+
type: x.select,
|
|
2926
2922
|
value: n,
|
|
2927
|
-
options: it(
|
|
2928
|
-
location:
|
|
2923
|
+
options: it(M.val),
|
|
2924
|
+
location: ne
|
|
2929
2925
|
},
|
|
2930
2926
|
err: null
|
|
2931
2927
|
} : {
|
|
2932
2928
|
val: {
|
|
2933
|
-
type:
|
|
2929
|
+
type: x.plural,
|
|
2934
2930
|
value: n,
|
|
2935
|
-
options: it(
|
|
2936
|
-
offset:
|
|
2931
|
+
options: it(M.val),
|
|
2932
|
+
offset: w,
|
|
2937
2933
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2938
|
-
location:
|
|
2934
|
+
location: ne
|
|
2939
2935
|
},
|
|
2940
2936
|
err: null
|
|
2941
2937
|
};
|
|
2942
2938
|
}
|
|
2943
2939
|
default:
|
|
2944
|
-
return this.error(
|
|
2940
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, p(u, l));
|
|
2945
2941
|
}
|
|
2946
2942
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2947
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2943
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2948
2944
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2949
2945
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2950
2946
|
var n = this.char();
|
|
@@ -2953,7 +2949,7 @@ var En = (
|
|
|
2953
2949
|
this.bump();
|
|
2954
2950
|
var i = this.clonePosition();
|
|
2955
2951
|
if (!this.bumpUntil("'"))
|
|
2956
|
-
return this.error(
|
|
2952
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2957
2953
|
this.bump();
|
|
2958
2954
|
break;
|
|
2959
2955
|
}
|
|
@@ -2983,16 +2979,16 @@ var En = (
|
|
|
2983
2979
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2984
2980
|
var n = [];
|
|
2985
2981
|
try {
|
|
2986
|
-
n =
|
|
2982
|
+
n = Yr(t);
|
|
2987
2983
|
} catch {
|
|
2988
|
-
return this.error(
|
|
2984
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
2989
2985
|
}
|
|
2990
2986
|
return {
|
|
2991
2987
|
val: {
|
|
2992
|
-
type:
|
|
2988
|
+
type: F.number,
|
|
2993
2989
|
tokens: n,
|
|
2994
2990
|
location: r,
|
|
2995
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2991
|
+
parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
|
|
2996
2992
|
},
|
|
2997
2993
|
err: null
|
|
2998
2994
|
};
|
|
@@ -3001,34 +2997,34 @@ var En = (
|
|
|
3001
2997
|
if (a.length === 0) {
|
|
3002
2998
|
var c = this.clonePosition();
|
|
3003
2999
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3004
|
-
var m = this.tryParseDecimalInteger(
|
|
3000
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3005
3001
|
if (m.err)
|
|
3006
3002
|
return m;
|
|
3007
|
-
h =
|
|
3003
|
+
h = p(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3008
3004
|
} else
|
|
3009
3005
|
break;
|
|
3010
3006
|
}
|
|
3011
3007
|
if (l.has(a))
|
|
3012
|
-
return this.error(r === "select" ?
|
|
3008
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3013
3009
|
a === "other" && (u = !0), this.bumpSpace();
|
|
3014
|
-
var
|
|
3010
|
+
var d = this.clonePosition();
|
|
3015
3011
|
if (!this.bumpIf("{"))
|
|
3016
|
-
return this.error(r === "select" ?
|
|
3012
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3017
3013
|
var f = this.parseMessage(t + 1, r, n);
|
|
3018
3014
|
if (f.err)
|
|
3019
3015
|
return f;
|
|
3020
|
-
var _ = this.tryParseArgumentClose(
|
|
3016
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3021
3017
|
if (_.err)
|
|
3022
3018
|
return _;
|
|
3023
3019
|
o.push([
|
|
3024
3020
|
a,
|
|
3025
3021
|
{
|
|
3026
3022
|
value: f.val,
|
|
3027
|
-
location:
|
|
3023
|
+
location: p(d, this.clonePosition())
|
|
3028
3024
|
}
|
|
3029
3025
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3030
3026
|
}
|
|
3031
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3027
|
+
return o.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3032
3028
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3033
3029
|
var n = 1, i = this.clonePosition();
|
|
3034
3030
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3039,7 +3035,7 @@ var En = (
|
|
|
3039
3035
|
else
|
|
3040
3036
|
break;
|
|
3041
3037
|
}
|
|
3042
|
-
var l =
|
|
3038
|
+
var l = p(i, this.clonePosition());
|
|
3043
3039
|
return s ? (u *= n, bn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3044
3040
|
}, e.prototype.offset = function() {
|
|
3045
3041
|
return this.position.offset;
|
|
@@ -3106,47 +3102,47 @@ var En = (
|
|
|
3106
3102
|
}, e;
|
|
3107
3103
|
}()
|
|
3108
3104
|
);
|
|
3109
|
-
function
|
|
3105
|
+
function De(e) {
|
|
3110
3106
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3111
3107
|
}
|
|
3112
3108
|
function xn(e) {
|
|
3113
|
-
return
|
|
3109
|
+
return De(e) || e === 47;
|
|
3114
3110
|
}
|
|
3115
|
-
function
|
|
3111
|
+
function En(e) {
|
|
3116
3112
|
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;
|
|
3117
3113
|
}
|
|
3118
3114
|
function jt(e) {
|
|
3119
3115
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3120
3116
|
}
|
|
3121
|
-
function
|
|
3117
|
+
function vn(e) {
|
|
3122
3118
|
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;
|
|
3123
3119
|
}
|
|
3124
|
-
function
|
|
3120
|
+
function Ge(e) {
|
|
3125
3121
|
e.forEach(function(t) {
|
|
3126
3122
|
if (delete t.location, Lt(t) || Nt(t))
|
|
3127
3123
|
for (var r in t.options)
|
|
3128
|
-
delete t.options[r].location,
|
|
3124
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3129
3125
|
else
|
|
3130
|
-
|
|
3126
|
+
Ct(t) && Mt(t.style) || (Ot(t) || Pt(t)) && Me(t.style) ? delete t.style.location : It(t) && Ge(t.children);
|
|
3131
3127
|
});
|
|
3132
3128
|
}
|
|
3133
|
-
function
|
|
3134
|
-
t === void 0 && (t = {}), t =
|
|
3135
|
-
var r = new
|
|
3129
|
+
function Hn(e, t) {
|
|
3130
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3131
|
+
var r = new yn(e, t).parse();
|
|
3136
3132
|
if (r.err) {
|
|
3137
|
-
var n = SyntaxError(
|
|
3133
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3138
3134
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3139
3135
|
}
|
|
3140
|
-
return t?.captureLocation ||
|
|
3136
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3141
3137
|
}
|
|
3142
|
-
var
|
|
3138
|
+
var j;
|
|
3143
3139
|
(function(e) {
|
|
3144
3140
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3145
|
-
})(
|
|
3146
|
-
var
|
|
3141
|
+
})(j || (j = {}));
|
|
3142
|
+
var ge = (
|
|
3147
3143
|
/** @class */
|
|
3148
3144
|
function(e) {
|
|
3149
|
-
|
|
3145
|
+
pe(t, e);
|
|
3150
3146
|
function t(r, n, i) {
|
|
3151
3147
|
var s = e.call(this, r) || this;
|
|
3152
3148
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3158,48 +3154,48 @@ var ye = (
|
|
|
3158
3154
|
), ot = (
|
|
3159
3155
|
/** @class */
|
|
3160
3156
|
function(e) {
|
|
3161
|
-
|
|
3157
|
+
pe(t, e);
|
|
3162
3158
|
function t(r, n, i, s) {
|
|
3163
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3159
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
|
3164
3160
|
}
|
|
3165
3161
|
return t;
|
|
3166
|
-
}(
|
|
3167
|
-
),
|
|
3162
|
+
}(ge)
|
|
3163
|
+
), Bn = (
|
|
3168
3164
|
/** @class */
|
|
3169
3165
|
function(e) {
|
|
3170
|
-
|
|
3166
|
+
pe(t, e);
|
|
3171
3167
|
function t(r, n, i) {
|
|
3172
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3168
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3173
3169
|
}
|
|
3174
3170
|
return t;
|
|
3175
|
-
}(
|
|
3176
|
-
),
|
|
3171
|
+
}(ge)
|
|
3172
|
+
), Tn = (
|
|
3177
3173
|
/** @class */
|
|
3178
3174
|
function(e) {
|
|
3179
|
-
|
|
3175
|
+
pe(t, e);
|
|
3180
3176
|
function t(r, n) {
|
|
3181
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3177
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3182
3178
|
}
|
|
3183
3179
|
return t;
|
|
3184
|
-
}(
|
|
3185
|
-
),
|
|
3180
|
+
}(ge)
|
|
3181
|
+
), E;
|
|
3186
3182
|
(function(e) {
|
|
3187
3183
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3188
|
-
})(
|
|
3189
|
-
function
|
|
3184
|
+
})(E || (E = {}));
|
|
3185
|
+
function wn(e) {
|
|
3190
3186
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3191
3187
|
var n = t[t.length - 1];
|
|
3192
|
-
return !n || n.type !==
|
|
3188
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3193
3189
|
}, []);
|
|
3194
3190
|
}
|
|
3195
|
-
function
|
|
3191
|
+
function Sn(e) {
|
|
3196
3192
|
return typeof e == "function";
|
|
3197
3193
|
}
|
|
3198
|
-
function
|
|
3194
|
+
function he(e, t, r, n, i, s, u) {
|
|
3199
3195
|
if (e.length === 1 && Ke(e[0]))
|
|
3200
3196
|
return [
|
|
3201
3197
|
{
|
|
3202
|
-
type:
|
|
3198
|
+
type: E.literal,
|
|
3203
3199
|
value: e[0].value
|
|
3204
3200
|
}
|
|
3205
3201
|
];
|
|
@@ -3207,64 +3203,64 @@ function le(e, t, r, n, i, s, u) {
|
|
|
3207
3203
|
var h = a[l];
|
|
3208
3204
|
if (Ke(h)) {
|
|
3209
3205
|
o.push({
|
|
3210
|
-
type:
|
|
3206
|
+
type: E.literal,
|
|
3211
3207
|
value: h.value
|
|
3212
3208
|
});
|
|
3213
3209
|
continue;
|
|
3214
3210
|
}
|
|
3215
|
-
if (
|
|
3211
|
+
if (Zr(h)) {
|
|
3216
3212
|
typeof s == "number" && o.push({
|
|
3217
|
-
type:
|
|
3213
|
+
type: E.literal,
|
|
3218
3214
|
value: r.getNumberFormat(t).format(s)
|
|
3219
3215
|
});
|
|
3220
3216
|
continue;
|
|
3221
3217
|
}
|
|
3222
3218
|
var c = h.value;
|
|
3223
3219
|
if (!(i && c in i))
|
|
3224
|
-
throw new
|
|
3220
|
+
throw new Tn(c, u);
|
|
3225
3221
|
var m = i[c];
|
|
3226
|
-
if (
|
|
3222
|
+
if (Wr(h)) {
|
|
3227
3223
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3228
|
-
type: typeof m == "string" ?
|
|
3224
|
+
type: typeof m == "string" ? E.literal : E.object,
|
|
3229
3225
|
value: m
|
|
3230
3226
|
});
|
|
3231
3227
|
continue;
|
|
3232
3228
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var
|
|
3229
|
+
if (Ot(h)) {
|
|
3230
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3235
3231
|
o.push({
|
|
3236
|
-
type:
|
|
3237
|
-
value: r.getDateTimeFormat(t,
|
|
3232
|
+
type: E.literal,
|
|
3233
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3238
3234
|
});
|
|
3239
3235
|
continue;
|
|
3240
3236
|
}
|
|
3241
3237
|
if (Pt(h)) {
|
|
3242
|
-
var
|
|
3238
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3243
3239
|
o.push({
|
|
3244
|
-
type:
|
|
3245
|
-
value: r.getDateTimeFormat(t,
|
|
3240
|
+
type: E.literal,
|
|
3241
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3246
3242
|
});
|
|
3247
3243
|
continue;
|
|
3248
3244
|
}
|
|
3249
|
-
if (
|
|
3250
|
-
var
|
|
3251
|
-
|
|
3252
|
-
type:
|
|
3253
|
-
value: r.getNumberFormat(t,
|
|
3245
|
+
if (Ct(h)) {
|
|
3246
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3247
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3248
|
+
type: E.literal,
|
|
3249
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3254
3250
|
});
|
|
3255
3251
|
continue;
|
|
3256
3252
|
}
|
|
3257
3253
|
if (It(h)) {
|
|
3258
3254
|
var f = h.children, _ = h.value, v = i[_];
|
|
3259
|
-
if (!
|
|
3260
|
-
throw new
|
|
3261
|
-
var
|
|
3262
|
-
return
|
|
3255
|
+
if (!Sn(v))
|
|
3256
|
+
throw new Bn(_, "function", u);
|
|
3257
|
+
var S = he(f, t, r, n, i, s), A = v(S.map(function(w) {
|
|
3258
|
+
return w.value;
|
|
3263
3259
|
}));
|
|
3264
|
-
Array.isArray(
|
|
3260
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(w) {
|
|
3265
3261
|
return {
|
|
3266
|
-
type: typeof
|
|
3267
|
-
value:
|
|
3262
|
+
type: typeof w == "string" ? E.literal : E.object,
|
|
3263
|
+
value: w
|
|
3268
3264
|
};
|
|
3269
3265
|
}));
|
|
3270
3266
|
}
|
|
@@ -3272,38 +3268,38 @@ function le(e, t, r, n, i, s, u) {
|
|
|
3272
3268
|
var H = h.options[m] || h.options.other;
|
|
3273
3269
|
if (!H)
|
|
3274
3270
|
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3275
|
-
o.push.apply(o,
|
|
3271
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3276
3272
|
continue;
|
|
3277
3273
|
}
|
|
3278
3274
|
if (Nt(h)) {
|
|
3279
3275
|
var H = h.options["=".concat(m)];
|
|
3280
3276
|
if (!H) {
|
|
3281
3277
|
if (!Intl.PluralRules)
|
|
3282
|
-
throw new
|
|
3278
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3283
3279
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3284
|
-
`,
|
|
3285
|
-
var
|
|
3286
|
-
H = h.options[
|
|
3280
|
+
`, j.MISSING_INTL_API, u);
|
|
3281
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3282
|
+
H = h.options[L] || h.options.other;
|
|
3287
3283
|
}
|
|
3288
3284
|
if (!H)
|
|
3289
3285
|
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3290
|
-
o.push.apply(o,
|
|
3286
|
+
o.push.apply(o, he(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3291
3287
|
continue;
|
|
3292
3288
|
}
|
|
3293
3289
|
}
|
|
3294
|
-
return
|
|
3290
|
+
return wn(o);
|
|
3295
3291
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return t ?
|
|
3298
|
-
return r[n] =
|
|
3292
|
+
function An(e, t) {
|
|
3293
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3294
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3299
3295
|
}, {})) : e;
|
|
3300
3296
|
}
|
|
3301
3297
|
function Cn(e, t) {
|
|
3302
3298
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3303
|
-
return r[n] =
|
|
3304
|
-
},
|
|
3299
|
+
return r[n] = An(e[n], t[n]), r;
|
|
3300
|
+
}, y({}, e)) : e;
|
|
3305
3301
|
}
|
|
3306
|
-
function
|
|
3302
|
+
function Ce(e) {
|
|
3307
3303
|
return {
|
|
3308
3304
|
create: function() {
|
|
3309
3305
|
return {
|
|
@@ -3317,35 +3313,35 @@ function Pe(e) {
|
|
|
3317
3313
|
}
|
|
3318
3314
|
};
|
|
3319
3315
|
}
|
|
3320
|
-
function
|
|
3316
|
+
function On(e) {
|
|
3321
3317
|
return e === void 0 && (e = {
|
|
3322
3318
|
number: {},
|
|
3323
3319
|
dateTime: {},
|
|
3324
3320
|
pluralRules: {}
|
|
3325
3321
|
}), {
|
|
3326
|
-
getNumberFormat:
|
|
3322
|
+
getNumberFormat: we(function() {
|
|
3327
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3328
3324
|
r[n] = arguments[n];
|
|
3329
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3330
3326
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3327
|
+
cache: Ce(e.number),
|
|
3328
|
+
strategy: Se.variadic
|
|
3333
3329
|
}),
|
|
3334
|
-
getDateTimeFormat:
|
|
3330
|
+
getDateTimeFormat: we(function() {
|
|
3335
3331
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3336
3332
|
r[n] = arguments[n];
|
|
3337
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3333
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3338
3334
|
}, {
|
|
3339
|
-
cache:
|
|
3340
|
-
strategy:
|
|
3335
|
+
cache: Ce(e.dateTime),
|
|
3336
|
+
strategy: Se.variadic
|
|
3341
3337
|
}),
|
|
3342
|
-
getPluralRules:
|
|
3338
|
+
getPluralRules: we(function() {
|
|
3343
3339
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3344
3340
|
r[n] = arguments[n];
|
|
3345
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3341
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3346
3342
|
}, {
|
|
3347
|
-
cache:
|
|
3348
|
-
strategy:
|
|
3343
|
+
cache: Ce(e.pluralRules),
|
|
3344
|
+
strategy: Se.variadic
|
|
3349
3345
|
})
|
|
3350
3346
|
};
|
|
3351
3347
|
}
|
|
@@ -3364,11 +3360,11 @@ var kt = (
|
|
|
3364
3360
|
if (a.length === 1)
|
|
3365
3361
|
return a[0].value;
|
|
3366
3362
|
var h = a.reduce(function(c, m) {
|
|
3367
|
-
return !c.length || m.type !==
|
|
3363
|
+
return !c.length || m.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3368
3364
|
}, []);
|
|
3369
3365
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3370
3366
|
}, this.formatToParts = function(l) {
|
|
3371
|
-
return
|
|
3367
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3372
3368
|
}, this.resolvedOptions = function() {
|
|
3373
3369
|
var l;
|
|
3374
3370
|
return {
|
|
@@ -3382,12 +3378,12 @@ var kt = (
|
|
|
3382
3378
|
var u = i || {};
|
|
3383
3379
|
u.formatters;
|
|
3384
3380
|
var o = Gr(u, ["formatters"]);
|
|
3385
|
-
this.ast = e.__parse(t,
|
|
3381
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3386
3382
|
} else
|
|
3387
3383
|
this.ast = t;
|
|
3388
3384
|
if (!Array.isArray(this.ast))
|
|
3389
3385
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3390
|
-
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters ||
|
|
3386
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
|
|
3391
3387
|
}
|
|
3392
3388
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3393
3389
|
get: function() {
|
|
@@ -3400,7 +3396,7 @@ var kt = (
|
|
|
3400
3396
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3401
3397
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3402
3398
|
}
|
|
3403
|
-
}, e.__parse =
|
|
3399
|
+
}, e.__parse = Hn, e.formats = {
|
|
3404
3400
|
number: {
|
|
3405
3401
|
integer: {
|
|
3406
3402
|
maximumFractionDigits: 0
|
|
@@ -3461,7 +3457,7 @@ var kt = (
|
|
|
3461
3457
|
}, e;
|
|
3462
3458
|
}()
|
|
3463
3459
|
);
|
|
3464
|
-
function
|
|
3460
|
+
function Pn(e, t) {
|
|
3465
3461
|
if (t == null)
|
|
3466
3462
|
return;
|
|
3467
3463
|
if (t in e)
|
|
@@ -3482,36 +3478,36 @@ function Ln(e, t) {
|
|
|
3482
3478
|
n = void 0;
|
|
3483
3479
|
return n;
|
|
3484
3480
|
}
|
|
3485
|
-
const C = {},
|
|
3481
|
+
const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Vt = (e, t) => {
|
|
3486
3482
|
if (t == null)
|
|
3487
3483
|
return;
|
|
3488
3484
|
if (t in C && e in C[t])
|
|
3489
3485
|
return C[t][e];
|
|
3490
|
-
const r =
|
|
3486
|
+
const r = re(t);
|
|
3491
3487
|
for (let n = 0; n < r.length; n++) {
|
|
3492
|
-
const i = r[n], s =
|
|
3488
|
+
const i = r[n], s = In(i, e);
|
|
3493
3489
|
if (s)
|
|
3494
|
-
return
|
|
3490
|
+
return Ln(e, t, s);
|
|
3495
3491
|
}
|
|
3496
3492
|
};
|
|
3497
3493
|
let ze;
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3494
|
+
const te = be({});
|
|
3495
|
+
function Nn(e) {
|
|
3500
3496
|
return ze[e] || null;
|
|
3501
3497
|
}
|
|
3502
3498
|
function Xt(e) {
|
|
3503
3499
|
return e in ze;
|
|
3504
3500
|
}
|
|
3505
|
-
function
|
|
3501
|
+
function In(e, t) {
|
|
3506
3502
|
if (!Xt(e))
|
|
3507
3503
|
return null;
|
|
3508
|
-
const r =
|
|
3509
|
-
return
|
|
3504
|
+
const r = Nn(e);
|
|
3505
|
+
return Pn(r, t);
|
|
3510
3506
|
}
|
|
3511
|
-
function
|
|
3507
|
+
function Mn(e) {
|
|
3512
3508
|
if (e == null)
|
|
3513
3509
|
return;
|
|
3514
|
-
const t =
|
|
3510
|
+
const t = re(e);
|
|
3515
3511
|
for (let r = 0; r < t.length; r++) {
|
|
3516
3512
|
const n = t[r];
|
|
3517
3513
|
if (Xt(n))
|
|
@@ -3519,64 +3515,64 @@ function $n(e) {
|
|
|
3519
3515
|
}
|
|
3520
3516
|
}
|
|
3521
3517
|
function zt(e, ...t) {
|
|
3522
|
-
delete C[e],
|
|
3518
|
+
delete C[e], te.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3523
3519
|
}
|
|
3524
|
-
|
|
3525
|
-
[
|
|
3520
|
+
z(
|
|
3521
|
+
[te],
|
|
3526
3522
|
([e]) => Object.keys(e)
|
|
3527
3523
|
);
|
|
3528
|
-
|
|
3529
|
-
const
|
|
3530
|
-
function
|
|
3531
|
-
|
|
3524
|
+
te.subscribe((e) => ze = e);
|
|
3525
|
+
const le = {};
|
|
3526
|
+
function $n(e, t) {
|
|
3527
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3532
3528
|
}
|
|
3533
3529
|
function Wt(e) {
|
|
3534
|
-
return
|
|
3530
|
+
return le[e];
|
|
3535
3531
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3532
|
+
function Rn(e) {
|
|
3533
|
+
return re(e).map((t) => {
|
|
3538
3534
|
const r = Wt(t);
|
|
3539
3535
|
return [t, r ? [...r] : []];
|
|
3540
3536
|
}).filter(([, t]) => t.length > 0);
|
|
3541
3537
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return e == null ? !1 :
|
|
3538
|
+
function ce(e) {
|
|
3539
|
+
return e == null ? !1 : re(e).some(
|
|
3544
3540
|
(t) => {
|
|
3545
3541
|
var r;
|
|
3546
3542
|
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3547
3543
|
}
|
|
3548
3544
|
);
|
|
3549
3545
|
}
|
|
3550
|
-
function
|
|
3546
|
+
function Un(e, t) {
|
|
3551
3547
|
return Promise.all(
|
|
3552
|
-
t.map((n) => (
|
|
3548
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3553
3549
|
).then((n) => zt(e, ...n));
|
|
3554
3550
|
}
|
|
3555
|
-
const
|
|
3551
|
+
const Z = {};
|
|
3556
3552
|
function Zt(e) {
|
|
3557
|
-
if (!
|
|
3558
|
-
return e in
|
|
3559
|
-
const t =
|
|
3560
|
-
return
|
|
3553
|
+
if (!ce(e))
|
|
3554
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3555
|
+
const t = Rn(e);
|
|
3556
|
+
return Z[e] = Promise.all(
|
|
3561
3557
|
t.map(
|
|
3562
|
-
([r, n]) =>
|
|
3558
|
+
([r, n]) => Un(r, n)
|
|
3563
3559
|
)
|
|
3564
3560
|
).then(() => {
|
|
3565
|
-
if (
|
|
3561
|
+
if (ce(e))
|
|
3566
3562
|
return Zt(e);
|
|
3567
|
-
delete
|
|
3568
|
-
}),
|
|
3563
|
+
delete Z[e];
|
|
3564
|
+
}), Z[e];
|
|
3569
3565
|
}
|
|
3570
|
-
var at = Object.getOwnPropertySymbols,
|
|
3566
|
+
var at = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
|
|
3571
3567
|
var r = {};
|
|
3572
3568
|
for (var n in e)
|
|
3573
|
-
|
|
3569
|
+
Dn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3574
3570
|
if (e != null && at)
|
|
3575
3571
|
for (var n of at(e))
|
|
3576
|
-
t.indexOf(n) < 0 &&
|
|
3572
|
+
t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
|
|
3577
3573
|
return r;
|
|
3578
3574
|
};
|
|
3579
|
-
const
|
|
3575
|
+
const jn = {
|
|
3580
3576
|
number: {
|
|
3581
3577
|
scientific: { notation: "scientific" },
|
|
3582
3578
|
engineering: { notation: "engineering" },
|
|
@@ -3606,28 +3602,28 @@ const kn = {
|
|
|
3606
3602
|
}
|
|
3607
3603
|
}
|
|
3608
3604
|
};
|
|
3609
|
-
function
|
|
3605
|
+
function kn({ locale: e, id: t }) {
|
|
3610
3606
|
console.warn(
|
|
3611
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3607
|
+
`[svelte-i18n] The message "${t}" was not found in "${re(
|
|
3612
3608
|
e
|
|
3613
|
-
).join('", "')}".${
|
|
3609
|
+
).join('", "')}".${ce(P()) ? `
|
|
3614
3610
|
|
|
3615
3611
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3616
3612
|
);
|
|
3617
3613
|
}
|
|
3618
|
-
const
|
|
3614
|
+
const Vn = {
|
|
3619
3615
|
fallbackLocale: null,
|
|
3620
3616
|
loadingDelay: 200,
|
|
3621
|
-
formats:
|
|
3617
|
+
formats: jn,
|
|
3622
3618
|
warnOnMissingMessages: !0,
|
|
3623
3619
|
handleMissingMessage: void 0,
|
|
3624
3620
|
ignoreTag: !0
|
|
3625
|
-
},
|
|
3626
|
-
function
|
|
3627
|
-
return
|
|
3621
|
+
}, Q = Vn;
|
|
3622
|
+
function k() {
|
|
3623
|
+
return Q;
|
|
3628
3624
|
}
|
|
3629
|
-
function
|
|
3630
|
-
const t = e, { formats: r } = t, n =
|
|
3625
|
+
function Xn(e) {
|
|
3626
|
+
const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
|
|
3631
3627
|
let i = e.fallbackLocale;
|
|
3632
3628
|
if (e.initialLocale)
|
|
3633
3629
|
try {
|
|
@@ -3637,134 +3633,134 @@ function zn(e) {
|
|
|
3637
3633
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3638
3634
|
);
|
|
3639
3635
|
}
|
|
3640
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3636
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = kn : console.warn(
|
|
3641
3637
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3642
|
-
)), Object.assign(
|
|
3638
|
+
)), Object.assign(Q, n, { initialLocale: i }), r && ("number" in r && Object.assign(Q.formats.number, r.number), "date" in r && Object.assign(Q.formats.date, r.date), "time" in r && Object.assign(Q.formats.time, r.time)), I.set(i);
|
|
3643
3639
|
}
|
|
3644
|
-
const
|
|
3645
|
-
var
|
|
3640
|
+
const Oe = be(!1);
|
|
3641
|
+
var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3646
3642
|
for (var r in t || (t = {}))
|
|
3647
|
-
|
|
3643
|
+
Qn.call(t, r) && ht(e, r, t[r]);
|
|
3648
3644
|
if (ut)
|
|
3649
3645
|
for (var r of ut(t))
|
|
3650
|
-
|
|
3646
|
+
qn.call(t, r) && ht(e, r, t[r]);
|
|
3651
3647
|
return e;
|
|
3652
|
-
},
|
|
3653
|
-
let
|
|
3654
|
-
const
|
|
3648
|
+
}, Yn = (e, t) => Wn(e, Zn(t));
|
|
3649
|
+
let Fe;
|
|
3650
|
+
const me = be(null);
|
|
3655
3651
|
function lt(e) {
|
|
3656
3652
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3657
3653
|
}
|
|
3658
|
-
function
|
|
3654
|
+
function re(e, t = k().fallbackLocale) {
|
|
3659
3655
|
const r = lt(e);
|
|
3660
3656
|
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3661
3657
|
}
|
|
3662
|
-
function
|
|
3663
|
-
return
|
|
3658
|
+
function P() {
|
|
3659
|
+
return Fe ?? void 0;
|
|
3664
3660
|
}
|
|
3665
|
-
|
|
3666
|
-
|
|
3661
|
+
me.subscribe((e) => {
|
|
3662
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3667
3663
|
});
|
|
3668
|
-
const
|
|
3669
|
-
if (e &&
|
|
3670
|
-
const { loadingDelay: t } =
|
|
3664
|
+
const Kn = (e) => {
|
|
3665
|
+
if (e && Mn(e) && ce(e)) {
|
|
3666
|
+
const { loadingDelay: t } = k();
|
|
3671
3667
|
let r;
|
|
3672
|
-
return typeof window < "u" &&
|
|
3673
|
-
() =>
|
|
3668
|
+
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3669
|
+
() => Oe.set(!0),
|
|
3674
3670
|
t
|
|
3675
|
-
) :
|
|
3676
|
-
|
|
3671
|
+
) : Oe.set(!0), Zt(e).then(() => {
|
|
3672
|
+
me.set(e);
|
|
3677
3673
|
}).finally(() => {
|
|
3678
|
-
clearTimeout(r),
|
|
3674
|
+
clearTimeout(r), Oe.set(!1);
|
|
3679
3675
|
});
|
|
3680
3676
|
}
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3683
|
-
set:
|
|
3684
|
-
}),
|
|
3677
|
+
return me.set(e);
|
|
3678
|
+
}, I = Yn(Jn({}, me), {
|
|
3679
|
+
set: Kn
|
|
3680
|
+
}), _e = (e) => {
|
|
3685
3681
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3686
3682
|
return (n) => {
|
|
3687
3683
|
const i = JSON.stringify(n);
|
|
3688
3684
|
return i in t ? t[i] : t[i] = e(n);
|
|
3689
3685
|
};
|
|
3690
3686
|
};
|
|
3691
|
-
var
|
|
3687
|
+
var ei = Object.defineProperty, de = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3692
3688
|
for (var r in t || (t = {}))
|
|
3693
3689
|
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3694
|
-
if (
|
|
3695
|
-
for (var r of
|
|
3690
|
+
if (de)
|
|
3691
|
+
for (var r of de(t))
|
|
3696
3692
|
qt.call(t, r) && ft(e, r, t[r]);
|
|
3697
3693
|
return e;
|
|
3698
|
-
},
|
|
3694
|
+
}, W = (e, t) => {
|
|
3699
3695
|
var r = {};
|
|
3700
3696
|
for (var n in e)
|
|
3701
3697
|
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3702
|
-
if (e != null &&
|
|
3703
|
-
for (var n of
|
|
3698
|
+
if (e != null && de)
|
|
3699
|
+
for (var n of de(e))
|
|
3704
3700
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3705
3701
|
return r;
|
|
3706
3702
|
};
|
|
3707
|
-
const
|
|
3708
|
-
const { formats: r } =
|
|
3703
|
+
const K = (e, t) => {
|
|
3704
|
+
const { formats: r } = k();
|
|
3709
3705
|
if (e in r && t in r[e])
|
|
3710
3706
|
return r[e][t];
|
|
3711
3707
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3712
|
-
},
|
|
3708
|
+
}, ti = _e(
|
|
3713
3709
|
(e) => {
|
|
3714
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3710
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3715
3711
|
if (r == null)
|
|
3716
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3717
|
-
return n && (i =
|
|
3713
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3718
3714
|
}
|
|
3719
|
-
),
|
|
3715
|
+
), ri = _e(
|
|
3720
3716
|
(e) => {
|
|
3721
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3717
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3722
3718
|
if (r == null)
|
|
3723
3719
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3724
|
-
return n ? i =
|
|
3720
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3725
3721
|
}
|
|
3726
|
-
),
|
|
3722
|
+
), ni = _e(
|
|
3727
3723
|
(e) => {
|
|
3728
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3724
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3729
3725
|
if (r == null)
|
|
3730
3726
|
throw new Error(
|
|
3731
3727
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3732
3728
|
);
|
|
3733
|
-
return n ? i =
|
|
3729
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3734
3730
|
}
|
|
3735
|
-
),
|
|
3731
|
+
), ii = (e = {}) => {
|
|
3736
3732
|
var t = e, {
|
|
3737
|
-
locale: r =
|
|
3738
|
-
} = t, n =
|
|
3733
|
+
locale: r = P()
|
|
3734
|
+
} = t, n = W(t, [
|
|
3739
3735
|
"locale"
|
|
3740
3736
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3737
|
+
return ti(We({ locale: r }, n));
|
|
3738
|
+
}, si = (e = {}) => {
|
|
3743
3739
|
var t = e, {
|
|
3744
|
-
locale: r =
|
|
3745
|
-
} = t, n =
|
|
3740
|
+
locale: r = P()
|
|
3741
|
+
} = t, n = W(t, [
|
|
3746
3742
|
"locale"
|
|
3747
3743
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3744
|
+
return ri(We({ locale: r }, n));
|
|
3745
|
+
}, oi = (e = {}) => {
|
|
3750
3746
|
var t = e, {
|
|
3751
|
-
locale: r =
|
|
3752
|
-
} = t, n =
|
|
3747
|
+
locale: r = P()
|
|
3748
|
+
} = t, n = W(t, [
|
|
3753
3749
|
"locale"
|
|
3754
3750
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3751
|
+
return ni(We({ locale: r }, n));
|
|
3752
|
+
}, ai = _e(
|
|
3757
3753
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3758
|
-
(e, t =
|
|
3759
|
-
ignoreTag:
|
|
3754
|
+
(e, t = P()) => new kt(e, t, k().formats, {
|
|
3755
|
+
ignoreTag: k().ignoreTag
|
|
3760
3756
|
})
|
|
3761
|
-
),
|
|
3757
|
+
), ui = (e, t = {}) => {
|
|
3762
3758
|
var r, n, i, s;
|
|
3763
3759
|
let u = t;
|
|
3764
3760
|
typeof e == "object" && (u = e, e = u.id);
|
|
3765
3761
|
const {
|
|
3766
3762
|
values: o,
|
|
3767
|
-
locale: l =
|
|
3763
|
+
locale: l = P(),
|
|
3768
3764
|
default: a
|
|
3769
3765
|
} = u;
|
|
3770
3766
|
if (l == null)
|
|
@@ -3773,7 +3769,7 @@ const ee = (e, t) => {
|
|
|
3773
3769
|
);
|
|
3774
3770
|
let h = Vt(e, l);
|
|
3775
3771
|
if (!h)
|
|
3776
|
-
h = (s = (i = (n = (r =
|
|
3772
|
+
h = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3777
3773
|
else if (typeof h != "string")
|
|
3778
3774
|
return console.warn(
|
|
3779
3775
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3782,7 +3778,7 @@ const ee = (e, t) => {
|
|
|
3782
3778
|
return h;
|
|
3783
3779
|
let c = h;
|
|
3784
3780
|
try {
|
|
3785
|
-
c =
|
|
3781
|
+
c = ai(h, l).format(o);
|
|
3786
3782
|
} catch (m) {
|
|
3787
3783
|
m instanceof Error && console.warn(
|
|
3788
3784
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3790,11 +3786,11 @@ const ee = (e, t) => {
|
|
|
3790
3786
|
);
|
|
3791
3787
|
}
|
|
3792
3788
|
return c;
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3789
|
+
}, hi = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = P()) => Vt(e, t), mi = z([I, te], () => ui);
|
|
3790
|
+
z([I], () => hi);
|
|
3791
|
+
z([I], () => li);
|
|
3792
|
+
z([I], () => fi);
|
|
3793
|
+
z([I, te], () => ci);
|
|
3798
3794
|
function di(e, t) {
|
|
3799
3795
|
if (e) {
|
|
3800
3796
|
const r = document.createElement("style");
|
|
@@ -3812,7 +3808,7 @@ function bi(e, t) {
|
|
|
3812
3808
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3813
3809
|
});
|
|
3814
3810
|
}
|
|
3815
|
-
function
|
|
3811
|
+
function pi(e, t, r) {
|
|
3816
3812
|
if (window.emMessageBus) {
|
|
3817
3813
|
const n = document.createElement("style");
|
|
3818
3814
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3823,10 +3819,10 @@ function gi(e, t, r) {
|
|
|
3823
3819
|
function ct(e, t) {
|
|
3824
3820
|
zt(e, t);
|
|
3825
3821
|
}
|
|
3826
|
-
function
|
|
3827
|
-
|
|
3822
|
+
function gi(e) {
|
|
3823
|
+
Xn({
|
|
3828
3824
|
fallbackLocale: "en"
|
|
3829
|
-
}),
|
|
3825
|
+
}), I.set(e);
|
|
3830
3826
|
}
|
|
3831
3827
|
const mt = {
|
|
3832
3828
|
en: {
|
|
@@ -3844,18 +3840,18 @@ const mt = {
|
|
|
3844
3840
|
}
|
|
3845
3841
|
}
|
|
3846
3842
|
};
|
|
3847
|
-
function
|
|
3843
|
+
function _i(e) {
|
|
3848
3844
|
nr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
|
|
3849
3845
|
}
|
|
3850
|
-
const
|
|
3846
|
+
const yi = (e) => ({}), dt = (e) => ({}), xi = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), pt = (e) => ({});
|
|
3851
3847
|
function gt(e) {
|
|
3852
3848
|
let t, r, n;
|
|
3853
3849
|
return {
|
|
3854
3850
|
c() {
|
|
3855
|
-
t =
|
|
3851
|
+
t = V("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>', X(t, "class", "CashierHeaderLeftButton");
|
|
3856
3852
|
},
|
|
3857
3853
|
m(i, s) {
|
|
3858
|
-
|
|
3854
|
+
N(i, t, s), r || (n = Bt(
|
|
3859
3855
|
t,
|
|
3860
3856
|
"click",
|
|
3861
3857
|
/*back*/
|
|
@@ -3864,11 +3860,11 @@ function gt(e) {
|
|
|
3864
3860
|
},
|
|
3865
3861
|
p: B,
|
|
3866
3862
|
d(i) {
|
|
3867
|
-
i &&
|
|
3863
|
+
i && O(t), r = !1, n();
|
|
3868
3864
|
}
|
|
3869
3865
|
};
|
|
3870
3866
|
}
|
|
3871
|
-
function
|
|
3867
|
+
function vi(e) {
|
|
3872
3868
|
let t, r = (
|
|
3873
3869
|
/*backButton*/
|
|
3874
3870
|
e[1] && gt(e)
|
|
@@ -3878,18 +3874,18 @@ function Hi(e) {
|
|
|
3878
3874
|
r && r.c(), t = Ht();
|
|
3879
3875
|
},
|
|
3880
3876
|
m(n, i) {
|
|
3881
|
-
r && r.m(n, i),
|
|
3877
|
+
r && r.m(n, i), N(n, t, i);
|
|
3882
3878
|
},
|
|
3883
3879
|
p(n, i) {
|
|
3884
3880
|
/*backButton*/
|
|
3885
3881
|
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3886
3882
|
},
|
|
3887
3883
|
d(n) {
|
|
3888
|
-
n &&
|
|
3884
|
+
n && O(t), r && r.d(n);
|
|
3889
3885
|
}
|
|
3890
3886
|
};
|
|
3891
3887
|
}
|
|
3892
|
-
function
|
|
3888
|
+
function Hi(e) {
|
|
3893
3889
|
let t, r = (
|
|
3894
3890
|
/*$_*/
|
|
3895
3891
|
e[4](
|
|
@@ -3899,10 +3895,10 @@ function Bi(e) {
|
|
|
3899
3895
|
), n;
|
|
3900
3896
|
return {
|
|
3901
3897
|
c() {
|
|
3902
|
-
t =
|
|
3898
|
+
t = V("span"), n = ke(r), X(t, "class", "CashierHeaderTitle");
|
|
3903
3899
|
},
|
|
3904
3900
|
m(i, s) {
|
|
3905
|
-
|
|
3901
|
+
N(i, t, s), fe(t, n);
|
|
3906
3902
|
},
|
|
3907
3903
|
p(i, s) {
|
|
3908
3904
|
s & /*$_, titleText*/
|
|
@@ -3913,7 +3909,7 @@ function Bi(e) {
|
|
|
3913
3909
|
) + "") && ar(n, r);
|
|
3914
3910
|
},
|
|
3915
3911
|
d(i) {
|
|
3916
|
-
i &&
|
|
3912
|
+
i && O(t);
|
|
3917
3913
|
}
|
|
3918
3914
|
};
|
|
3919
3915
|
}
|
|
@@ -3921,10 +3917,10 @@ function _t(e) {
|
|
|
3921
3917
|
let t, r, n;
|
|
3922
3918
|
return {
|
|
3923
3919
|
c() {
|
|
3924
|
-
t =
|
|
3920
|
+
t = V("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>', X(t, "class", "CashierHeaderRightButton");
|
|
3925
3921
|
},
|
|
3926
3922
|
m(i, s) {
|
|
3927
|
-
|
|
3923
|
+
N(i, t, s), r || (n = Bt(
|
|
3928
3924
|
t,
|
|
3929
3925
|
"click",
|
|
3930
3926
|
/*close*/
|
|
@@ -3933,11 +3929,11 @@ function _t(e) {
|
|
|
3933
3929
|
},
|
|
3934
3930
|
p: B,
|
|
3935
3931
|
d(i) {
|
|
3936
|
-
i &&
|
|
3932
|
+
i && O(t), r = !1, n();
|
|
3937
3933
|
}
|
|
3938
3934
|
};
|
|
3939
3935
|
}
|
|
3940
|
-
function
|
|
3936
|
+
function Bi(e) {
|
|
3941
3937
|
let t, r = (
|
|
3942
3938
|
/*closeButton*/
|
|
3943
3939
|
e[3] && _t(e)
|
|
@@ -3947,130 +3943,130 @@ function Ti(e) {
|
|
|
3947
3943
|
r && r.c(), t = Ht();
|
|
3948
3944
|
},
|
|
3949
3945
|
m(n, i) {
|
|
3950
|
-
r && r.m(n, i),
|
|
3946
|
+
r && r.m(n, i), N(n, t, i);
|
|
3951
3947
|
},
|
|
3952
3948
|
p(n, i) {
|
|
3953
3949
|
/*closeButton*/
|
|
3954
3950
|
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3955
3951
|
},
|
|
3956
3952
|
d(n) {
|
|
3957
|
-
n &&
|
|
3953
|
+
n && O(t), r && r.d(n);
|
|
3958
3954
|
}
|
|
3959
3955
|
};
|
|
3960
3956
|
}
|
|
3961
|
-
function
|
|
3957
|
+
function Ti(e) {
|
|
3962
3958
|
let t, r, n, i;
|
|
3963
3959
|
const s = (
|
|
3964
3960
|
/*#slots*/
|
|
3965
3961
|
e[16].leftButton
|
|
3966
|
-
), u =
|
|
3962
|
+
), u = ye(
|
|
3967
3963
|
s,
|
|
3968
3964
|
e,
|
|
3969
3965
|
/*$$scope*/
|
|
3970
3966
|
e[15],
|
|
3971
|
-
|
|
3972
|
-
), o = u ||
|
|
3967
|
+
pt
|
|
3968
|
+
), o = u || vi(e), l = (
|
|
3973
3969
|
/*#slots*/
|
|
3974
3970
|
e[16].title
|
|
3975
|
-
), a =
|
|
3971
|
+
), a = ye(
|
|
3976
3972
|
l,
|
|
3977
3973
|
e,
|
|
3978
3974
|
/*$$scope*/
|
|
3979
3975
|
e[15],
|
|
3980
|
-
|
|
3981
|
-
), h = a ||
|
|
3976
|
+
bt
|
|
3977
|
+
), h = a || Hi(e), c = (
|
|
3982
3978
|
/*#slots*/
|
|
3983
3979
|
e[16].rightButton
|
|
3984
|
-
), m =
|
|
3980
|
+
), m = ye(
|
|
3985
3981
|
c,
|
|
3986
3982
|
e,
|
|
3987
3983
|
/*$$scope*/
|
|
3988
3984
|
e[15],
|
|
3989
|
-
|
|
3990
|
-
),
|
|
3985
|
+
dt
|
|
3986
|
+
), d = m || Bi(e);
|
|
3991
3987
|
return {
|
|
3992
3988
|
c() {
|
|
3993
|
-
t =
|
|
3989
|
+
t = V("div"), o && o.c(), r = qe(), h && h.c(), n = qe(), d && d.c(), X(t, "class", "CashierHeader");
|
|
3994
3990
|
},
|
|
3995
3991
|
m(f, _) {
|
|
3996
|
-
|
|
3992
|
+
N(f, t, _), o && o.m(t, null), fe(t, r), h && h.m(t, null), fe(t, n), d && d.m(t, null), e[17](t), i = !0;
|
|
3997
3993
|
},
|
|
3998
3994
|
p(f, [_]) {
|
|
3999
3995
|
u ? u.p && (!i || _ & /*$$scope*/
|
|
4000
|
-
32768) &&
|
|
3996
|
+
32768) && Ee(
|
|
4001
3997
|
u,
|
|
4002
3998
|
s,
|
|
4003
3999
|
f,
|
|
4004
4000
|
/*$$scope*/
|
|
4005
4001
|
f[15],
|
|
4006
|
-
i ?
|
|
4002
|
+
i ? xe(
|
|
4007
4003
|
s,
|
|
4008
4004
|
/*$$scope*/
|
|
4009
4005
|
f[15],
|
|
4010
4006
|
_,
|
|
4011
|
-
|
|
4012
|
-
) :
|
|
4007
|
+
Ei
|
|
4008
|
+
) : ve(
|
|
4013
4009
|
/*$$scope*/
|
|
4014
4010
|
f[15]
|
|
4015
4011
|
),
|
|
4016
|
-
|
|
4012
|
+
pt
|
|
4017
4013
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4018
4014
|
2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
|
|
4019
|
-
32768) &&
|
|
4015
|
+
32768) && Ee(
|
|
4020
4016
|
a,
|
|
4021
4017
|
l,
|
|
4022
4018
|
f,
|
|
4023
4019
|
/*$$scope*/
|
|
4024
4020
|
f[15],
|
|
4025
|
-
i ?
|
|
4021
|
+
i ? xe(
|
|
4026
4022
|
l,
|
|
4027
4023
|
/*$$scope*/
|
|
4028
4024
|
f[15],
|
|
4029
4025
|
_,
|
|
4030
4026
|
xi
|
|
4031
|
-
) :
|
|
4027
|
+
) : ve(
|
|
4032
4028
|
/*$$scope*/
|
|
4033
4029
|
f[15]
|
|
4034
4030
|
),
|
|
4035
|
-
|
|
4031
|
+
bt
|
|
4036
4032
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4037
4033
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4038
|
-
32768) &&
|
|
4034
|
+
32768) && Ee(
|
|
4039
4035
|
m,
|
|
4040
4036
|
c,
|
|
4041
4037
|
f,
|
|
4042
4038
|
/*$$scope*/
|
|
4043
4039
|
f[15],
|
|
4044
|
-
i ?
|
|
4040
|
+
i ? xe(
|
|
4045
4041
|
c,
|
|
4046
4042
|
/*$$scope*/
|
|
4047
4043
|
f[15],
|
|
4048
4044
|
_,
|
|
4049
|
-
|
|
4050
|
-
) :
|
|
4045
|
+
yi
|
|
4046
|
+
) : ve(
|
|
4051
4047
|
/*$$scope*/
|
|
4052
4048
|
f[15]
|
|
4053
4049
|
),
|
|
4054
|
-
|
|
4055
|
-
) :
|
|
4056
|
-
8) &&
|
|
4050
|
+
dt
|
|
4051
|
+
) : d && d.p && (!i || _ & /*closeButton*/
|
|
4052
|
+
8) && d.p(f, i ? _ : -1);
|
|
4057
4053
|
},
|
|
4058
4054
|
i(f) {
|
|
4059
|
-
i || (
|
|
4055
|
+
i || (ae(o, f), ae(h, f), ae(d, f), i = !0);
|
|
4060
4056
|
},
|
|
4061
4057
|
o(f) {
|
|
4062
|
-
|
|
4058
|
+
Be(o, f), Be(h, f), Be(d, f), i = !1;
|
|
4063
4059
|
},
|
|
4064
4060
|
d(f) {
|
|
4065
|
-
f &&
|
|
4061
|
+
f && O(t), o && o.d(f), h && h.d(f), d && d.d(f), e[17](null);
|
|
4066
4062
|
}
|
|
4067
4063
|
};
|
|
4068
4064
|
}
|
|
4069
|
-
function
|
|
4065
|
+
function wi(e, t, r) {
|
|
4070
4066
|
let n;
|
|
4071
|
-
rr(e,
|
|
4072
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4073
|
-
const
|
|
4067
|
+
rr(e, mi, (g) => r(4, n = g));
|
|
4068
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, S = !1;
|
|
4069
|
+
const A = () => {
|
|
4074
4070
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4075
4071
|
Object.keys(g).forEach((Ze) => {
|
|
4076
4072
|
ct(Ze, g[Ze]);
|
|
@@ -4083,45 +4079,45 @@ function Si(e, t, r) {
|
|
|
4083
4079
|
ct(g, mt[g]);
|
|
4084
4080
|
});
|
|
4085
4081
|
const H = () => {
|
|
4086
|
-
|
|
4087
|
-
},
|
|
4082
|
+
gi(c);
|
|
4083
|
+
}, L = () => {
|
|
4088
4084
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4089
|
-
},
|
|
4085
|
+
}, w = () => {
|
|
4090
4086
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4091
|
-
},
|
|
4087
|
+
}, M = () => {
|
|
4092
4088
|
r(1, _ = !!a && a !== "false");
|
|
4093
|
-
},
|
|
4094
|
-
r(3,
|
|
4089
|
+
}, ne = () => {
|
|
4090
|
+
r(3, S = !!m && m !== "false");
|
|
4095
4091
|
}, Yt = () => {
|
|
4096
4092
|
r(2, v = h || "header.general");
|
|
4097
4093
|
};
|
|
4098
4094
|
lr(() => () => {
|
|
4099
4095
|
});
|
|
4100
4096
|
function Kt(g) {
|
|
4101
|
-
|
|
4097
|
+
Pe[g ? "unshift" : "push"](() => {
|
|
4102
4098
|
f = g, r(0, f);
|
|
4103
4099
|
});
|
|
4104
4100
|
}
|
|
4105
4101
|
return e.$$set = (g) => {
|
|
4106
|
-
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14,
|
|
4102
|
+
"clientstyling" in g && r(7, u = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, a = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, d = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4107
4103
|
}, e.$$.update = () => {
|
|
4108
4104
|
e.$$.dirty & /*lang*/
|
|
4109
4105
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4110
4106
|
6144 && c && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4111
4107
|
129 && u && f && di(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4112
4108
|
257 && o && f && bi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4113
|
-
16385 &&
|
|
4114
|
-
4608 && c && l &&
|
|
4115
|
-
1024 && a &&
|
|
4116
|
-
8192 && m &&
|
|
4109
|
+
16385 && d && f && pi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4110
|
+
4608 && c && l && A(), e.$$.dirty & /*showbackbutton*/
|
|
4111
|
+
1024 && a && M(), e.$$.dirty & /*showclosebutton*/
|
|
4112
|
+
8192 && m && ne();
|
|
4117
4113
|
}, [
|
|
4118
4114
|
f,
|
|
4119
4115
|
_,
|
|
4120
4116
|
v,
|
|
4121
|
-
A,
|
|
4122
|
-
n,
|
|
4123
|
-
N,
|
|
4124
4117
|
S,
|
|
4118
|
+
n,
|
|
4119
|
+
L,
|
|
4120
|
+
w,
|
|
4125
4121
|
u,
|
|
4126
4122
|
o,
|
|
4127
4123
|
l,
|
|
@@ -4129,20 +4125,20 @@ function Si(e, t, r) {
|
|
|
4129
4125
|
h,
|
|
4130
4126
|
c,
|
|
4131
4127
|
m,
|
|
4132
|
-
|
|
4128
|
+
d,
|
|
4133
4129
|
s,
|
|
4134
4130
|
i,
|
|
4135
4131
|
Kt
|
|
4136
4132
|
];
|
|
4137
4133
|
}
|
|
4138
|
-
class Jt extends
|
|
4134
|
+
class Jt extends Er {
|
|
4139
4135
|
constructor(t) {
|
|
4140
4136
|
super(), yr(
|
|
4141
4137
|
this,
|
|
4142
4138
|
t,
|
|
4143
|
-
Si,
|
|
4144
4139
|
wi,
|
|
4145
|
-
|
|
4140
|
+
Ti,
|
|
4141
|
+
xt,
|
|
4146
4142
|
{
|
|
4147
4143
|
clientstyling: 7,
|
|
4148
4144
|
clientstylingurl: 8,
|
|
@@ -4153,7 +4149,7 @@ class Jt extends xr {
|
|
|
4153
4149
|
showclosebutton: 13,
|
|
4154
4150
|
mbsource: 14
|
|
4155
4151
|
},
|
|
4156
|
-
|
|
4152
|
+
_i
|
|
4157
4153
|
);
|
|
4158
4154
|
}
|
|
4159
4155
|
get clientstyling() {
|
|
@@ -4205,35 +4201,35 @@ class Jt extends xr {
|
|
|
4205
4201
|
this.$$set({ mbsource: t }), T();
|
|
4206
4202
|
}
|
|
4207
4203
|
}
|
|
4208
|
-
|
|
4204
|
+
xr(Jt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4209
4205
|
const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4210
4206
|
__proto__: null,
|
|
4211
4207
|
default: Jt
|
|
4212
4208
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4213
4209
|
export {
|
|
4214
|
-
|
|
4210
|
+
I as $,
|
|
4215
4211
|
Ci as C,
|
|
4216
|
-
|
|
4212
|
+
Er as S,
|
|
4217
4213
|
zt as a,
|
|
4218
4214
|
yr as b,
|
|
4219
|
-
|
|
4215
|
+
xr as c,
|
|
4220
4216
|
nr as d,
|
|
4221
|
-
|
|
4217
|
+
V as e,
|
|
4222
4218
|
T as f,
|
|
4223
|
-
|
|
4219
|
+
qe as g,
|
|
4224
4220
|
Ai as h,
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4221
|
+
Xn as i,
|
|
4222
|
+
Si as j,
|
|
4223
|
+
X as k,
|
|
4224
|
+
N as l,
|
|
4225
|
+
fe as m,
|
|
4226
|
+
Bt as n,
|
|
4227
|
+
B as o,
|
|
4228
|
+
O as p,
|
|
4233
4229
|
lr as q,
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4230
|
+
pi as r,
|
|
4231
|
+
xt as s,
|
|
4232
|
+
Pe as t,
|
|
4233
|
+
di as u,
|
|
4234
|
+
bi as v
|
|
4239
4235
|
};
|